I would like to clarify that mojo is not python – it’s easy to set up for simple programs for just a super quick and easy 20x speed up or smth but for more robust programs you will actually need to edit/completely reqrite your code
I also find it odd that the only problem you have with python is that it’s slow. I mean my main complaint is that it has no curly brackets and that it uses def not function. Otherwise, there’s no real argument. Python has it’s strengths and weaknesses as all languages have. Just because it’s slow doesn’t mean you shouldn’t use it period. Oftentimes, when doing things such as data science or machine learning, it’s important to have short, readable code. Even if there’s an argument to switch to other programming languages for programming, fields such as machine learning use python exclusively for production because it’s readable and also because even though other languages may be faster, machine learning is so slow to complete it normally doesn’t really matter if it’s 50 hours or 51 hours. Finally, there are ways to speed up python. There’s a lot of biased arguments that python is slow because other langs are fast but other programming languages are already optimized and actually sometimes need to be “un”-optimized in certain situations. Python is similar to this but actually is “un”-optimized. Firstly, it has trouble with globals and with a few simple fixes, it’s possible to just rewrite your code into a function (local) and have only a single global call to this function, giving a small speedup. In addition, using python lists is inefficient and instead mathematical matrices such as in numpy can be used. Also, programmers should use more efficient data structures like sets or dictionaries as they are O(logn) and O(1) lookup times respectively much faster than O(n). Finally, in fields such as data science or machine learning frameworks such as pandas, numpy, and tensorflow make them unbelievably faster (albeit because they are coded in C iirc). Thus, python has it’s place – JavaScript does too.
There wasn’t a main argument here lmao, the TechEmpower benchmarks just happened to be the strongest and only trustworthy source that I had. If you can find me a formal study that explains how braces are better than the wicked, cruel and sickening torture of indentation, I can add it on to the list of main arguments. Of course, data science and machine learning do mainly use python, but they are just a mere diversion towards our ultimate goal of eradicating this stomach-curling, wretched esolang
I am also literally agreeing with you I have no idea why you started this lol…
I said I wanted those things then you misunderstood it as I didn’t want it and I just told you I wanted it – never ever even said anything remotely to suggest I was arguing
since when was javascript the alternative? All I mentioned was that javascript was 5/4 slower to write than python, since it was its main competitor, but there are obviously way better languages out there