3 ms·
Python is my go-to language and I write big batch jobs in it and profile them and use PyPy. I do it because it's so clean and concise. Recent C++ with lambda
by willvarfar 9y ago
Python is my go-to language and I write big batch jobs in it and profile them and use PyPy. I do it because it's so clean and concise.
Recent C++ with lambda and auto is much improved but still not nearly as productive as Python.
Likewise lambda has really made Java better, but lack of type inference really makes it clunky to write.
I really want a statically typed Python. But because I don't have it, I choose Python for the syntax over c++/Java even for performance critical code.
- crypto5 9y ago> I really want a statically typed Python. Can golang fill this role?
- cookiecaper 9y agoBoth Golang and Swift were designed as performant, type-aware Pythons. It should be able to fill the role fine. Python also has optional type support since 3.5: https://docs.python.org/3/library/typing.html https://docs.python.org/3/library/typing.html
- echlebek 9y ago> Both Golang and Swift were designed as performant, type-aware Pythons. What do you base that assertion on? :)
- deleted 9y ago[deleted]
- milcron 9y ago> I really want a statically typed Python. You need to give type annotations a shot! https://www.python.org/dev/peps/pep-0484/#abstract https://www.python.org/dev/peps/pep-0484/#abstract pip install mypy mypy script.py
- willvarfar 9y ago(I am the author of https://pypi.python.org/pypi/obiwan https://pypi.python.org/pypi/obiwan ;) )
- IJP 9y agoGive Kotlin a try. The syntax should be quite familiar to someone coming from python, whilst you have access to full jvm ecosystem