4 ms·
Why can't someone just write another compiled language with 100% Python syntax? e.g Julia. only more general purpose.
by max_ 10y ago
Why can't someone just write another compiled language with 100% Python syntax? e.g Julia. only more general purpose.
- thebooktocome 10y agoJulia is general-purpose already.
- max_ 10y agoI thought they were focused towards technical computing?
- ZenoArrow 10y agoThat sort of focus is expressed by the library ecosystem, not the language itself. You can write any type of program you want with Julia, you'll just be doing more work if you're building something that can't fully rely on preexisting libraries. As the library ecosystem becomes broader and more mature, this issue goes away.
- aidos 10y agoBecause the libraries keep people on Python and you'd need to support all those too. Edit to add, my understanding is that the flexible nature of Python makes it hard to swap out the python without implementing all the stuff that makes it flexible. In a way I guess pypy is the python you're talking about. And it does exist, and is faster, but doesn't support all libraries.
- chrisseaton 10y agoMaybe some people use Python because of the semantics. If you just replicate the syntax would it really be Python any more?
- coldtea 10y agoYou can't separate the (full) syntax from the semantics, so he means both.
- allendoerfer 10y agoI think Nim (http://nim-lang.org/ http://nim-lang.org/) is what you are looking for.
- max_ 10y agoIs that a joke? cause I find it really funny..
- alehander42 10y agowhy?
- max_ 10y agoNim's syntax is far away from that of Python its more like "clean" JavaScript. I wasnt intending to be sarcastic. I apologize if so.
- dom96 10y agoThere are certain differences but I wouldn't say the syntax is "far away". It's incredibly similar to Python.
- alehander42 10y agoI think it's very pythonic. Can you give examples? Also, "clean" JavaScript can look like CoffeeScript which look very much like Python/Ruby, you can almost say that "clean" versions of languages tend to converge to something like that for some ppl
- collyw 10y agoCoffeeScript is terrible. Full of implicit rules and magic. Python generally seems to be the opposite.
- alehander42 10y ago
- nerdponx 10y agoCython?
- dagw 10y agoThat's basically Cython. Cython normally gives you 40-100% speedup over python without making any changes to the code and can often give you 10-100x speed up with some relatively minor changes to the code.