Why does Sup Forums laugh at python?

Seems like a pretty cool language that doesn't afraid of anything.

>inb4 write assembly

Other urls found in this thread:

nuitka.net/
twitter.com/NSFWRedditImage

It's so un-ergonomic and doesn't transfer well from other more useful languages.

Whitespace is significant. Other than that it's okay as a scripting language. Has a lot of neat libraries

> doesn't transfer well from other more useful languages
Sadly this. It's a good language, but if you don't use PyPy, the performance are shit. So if you try to transfer it, it's useless, since languages with the best performance (C, C++, etc.) are very different and you have to rewrite a lot of code

Do you mean that the syntax is not is not similar to other languages? Like how c++ and java are kinda a similar?

Yeah I've noticed my ide complaining about whitespace.

So games in python is a bad idea? My CS prof mentioned that the speed of languages is becoming less of an issue with advances in processors.

I was implying syntax and performance.

I would also like to add that python is still a good language tool for scripting however it's still limited on what it can do with the system.

Python is definitely a good tool for people learning to program however it's also a bad one because python's syntax is very english-based, leading to people getting confused the first time they see a real language.

There are python libraries to compile sections of your code into C code. Do this for performance heavy sections of your code and it's almost as fast as pure C, but way easier to write.

Depends on what you are doing. For small projects it's ok, if you know to how to optimise, but for very large project or for enterprise software, you would need a more "performant" language.

Also the fact he claims the speed is less an issue is just ignorance, since Moore's law is already approaching the limit and we have to move to multi-threading, which most programming language that are widely used, aren't good in concurrency

It's not a bad language, you can learn from it and write very performant code like mentioned. But keep in mind that there is a reason why most AAA games are written in C++ and not in Python.

I know, but I just wanted to mention one of the problems with Python

python challenge:
using tkinter, crate a button a widget with a button that performs a different action every time it is clicked without using random numbers or a global.

Because anything not compiled is shit tier

could you elaborate ?
how it's un-ergonomic and doesn't transfer well to ___more useful___ languages when writing python is like writing pseudo code ?

non-sense. you are confusing the programming language itself with its implementation. there is actually an implementation of python which compiles to native code nuitka.net/

>import liberal_opinions

Best random generator ever

because it's an easy language to learn and Sup Forums hates it when normies get into their speshul club

The functional aspects are awkward. The dynamic typing creates a lot of hard to track down bugs, especially when working with binaries

>The dynamic typing creates a lot of hard to track down bugs, especially when working with binaries
explain

python has no use cases

server side scripting: js
simple shells scripting: bash
complex shell scripts: kill yourself
gui scripting language: js, lua
"""serious""" programming: C#f
serious but performance oriented programming: C++ (maybe rust in the future)
math, research: F#, any ML

missed any?

>math, research: F#, any ML
lel, what the fuck, f# and ml don't have the tenth of tools for scientific computing/research that python has. in sciences, python has completely ditched out perl and fortran.

>no use case
Rapid Prototyping, been using Python for a RPi device I'm building to test quickly which pieces works and how should I structure the "serious version".
Also, since I'm using the RPi from ssh, it's easier and faster to run a py script than compiling a program each time I change a line.

two groups of Sup Forums hate python for different reasons:
1) one group hates python because they're hipsters and mainstream languages offend them. they like obscure languages

2) the other, larger group hates python because they learned to program via lower level languages and, like hazing, they think you should suffer just as much as they did.

Recent example, had a very obvious type error in a qt application interfacing with a map program (marble)

Rather than giving a compile error all I got was a seg fault which obviously didnt give me much to work with.

I personally only hate python for it's indentation crap, I think that was an incredibly stupid decision.

Other than that it's great if you know what it's good for. Very obviously most of Sup Forums does not know what it's good for and how it's supposed to be used.

If someone was a programming virgin and wanted to learn some basics, what language should they learn?

The language semantics basically rule out a fast implementation, because indirectly it is more dynamic than JS. All attempts to build JIT compilers so far are underwhelming.

So, basically you only can use it for interpreters.

But what is that? CPython doesn't have any advantage you could get from a well-made interpreter. And since it's the reference implementation, all other implementations are (also willingly) fucked.

Therefore, it's fucked, basically.

Maybe with Python 4 they decide if they want to embrace AOT compilation or interpretation.

Sauce on pic?

>real language
Can this meme end? Actual things that make money are written in Python. It's certainly more real than the functional language memes that you guys love to peddle.

AlphaGo and newer deepmind aid are built with python/tensor flow.

Sup Forums is afraid of cutting-edge ai, so it doesn't use python :^)

Cant go wrong with python.

Lisp is great because it lets you build your own abstractions a la SICP.

C is great for teaching you basics about pointers, references etc, and will give you insight in how other languages does things for you.

You probably want to stick to python, java or maybe scala as your main language while learning, if nothing else for the suppot you get from you IDE

>server side scripting
>js
I bet you write code littered with promises and deferreds.

> math, research: F#, any ML
Look at this idiot, he conflate le functional programming meme with actual science and R&D.

Scientists need obvious programming language with many libraries, python fills this niche.

japanese_whore109348966

Not only actual things like Instagram, fucking Google Deepmind's ALPHAGO was partially written in python.

>What is gdb
It's like you fucks never actually learned to program

Instagram was also written with React, which is top meme

because Sup Forums is a bunch of mentally challenged kids who once learned 20% of some programming language and thing they can have an opinion on everything

This is what I hate most about it
Why can't I just program, why do I need to learn to be tidy? Fuck the dutch cunt who came up with that shit

>why do I need to learn to be tidy?
So other people can read your code

>My CS prof mentioned that the speed of languages is becoming less of an issue with advances in processors.

your prof sounds shitty