3 ms·
The migration is so difficult that you might as well migrate to a different language and solve the speed and memory usage issues while you're at it.
by stefantalpalaru 13y ago
The migration is so difficult that you might as well migrate to a different language and solve the speed and memory usage issues while you're at it.
- falcolas 13y agoWhat language would you recommend, that would have a similar jump in syntax, and still give you more speed and resolve memory usage? Go? Go is painfully statically typed (painful example: requiring you to cast an int to float32 to do a `>` or `<` operation) and feels a lot more like writing C than Python (not to mention its lack in the "batteries included" department). Ruby? Same speed and memory "problems" as Python. Perl? Faster, but its language design philosophy is diametrically opposed to that of Python. Clojure/Haskel? Syntax and program structure are so radically different from Python there's no comparing them to Python3 when discussing differences from Python2.
- maxk42 13y agoI would actually pick Go. Yes, the strong static typing is a pain in the ass, but the rules are simple and regular. It's easy to understand and implement. The same cannot be said for the multitude of changes to Python.
- codygman 13y agoI use/used Go for a while, but early on I thought the type system was stronger than it was. I was disappointed in a later project, and started looking at languages with stronger type systems. I came across Haskell and Hindley Milner ;) I believe Haskell replaces Go for me and with some experience (when I can picture types in my head better) it will replace python as my go to dynamic language.
- stefantalpalaru 13y agoGo would be my first recommendation. The strictly enforced coding habits, lack of generics, the packaging system without dependency versioning and quirks like typed nil are a small price to pay for the sane syntax, impressive performance and a very easy to use CSP implementation. P.S.: I don't know what you mean by that example. You don't need to cast an int to anything in order to use comparison operators.
- codygman 13y agoI'm actually leaning towards Haskell and Clojure these days. They get me more of the simplicity that Python won me over with along with other benefits. I gave Go a chance to supplant Python as my main language, and I thin it could do that. I had a few other problems with Go though which led to me looking at Haskell. I'm giving Haskell a chance to supplant Python/Go as my "go to" language atm and it seems to be winning me over, but only time will tell.