3 ms·
Lol at Python or Javascript being your answers to "fast and concurrent". Does Javascript even have concurrency constructs?
by jbooth 15y ago
Lol at Python or Javascript being your answers to "fast and concurrent".
Does Javascript even have concurrency constructs?
- getsat 15y agoJython and JRuby don't suffer from the GIL and GVL respectively from their reference implementations. You can go thread crazy with JVM-based implementations.
- jbooth 15y agoYeah, but Jython's still on Python 2.2 compatibility (I believe) and both of them perform pretty poorly due to Java 7 and invokedynamic being several years late.
- Tichy 15y agoDo you have a more concrete example of what you are trying to do?
- jbooth 15y agoService programming, as in not-web-programming. Solr, for a random example, would not be a good task for either Python or Javascript, there are tricky concurrency concerns involving your index reads/writes and they're both just-plain-not-fast-enough. The only dynamic language I know of that isn't just embarrassingly slow compared to Java is Lua, due to some extreme fanciness on the part of their VM.
- Tichy 15y agoLast I heard JavaScript was the fastest dynamic language, don't remember but might be only factor 2 compared to Java.