5 ms·
I notice this was written in 2016, but I wonder if the author's opinion has changed since dataclasses have been implemented in Python.
by o10449366 8y ago
I notice this was written in 2016, but I wonder if the author's opinion has changed since dataclasses have been implemented in Python.
- benatkin 8y agoPython's async support also seems to be getting better. There's a flask clone called Quart (http://pgjones.gitlab.io/quart/ http://pgjones.gitlab.io/quart/) and an async postgres client (https://github.com/MagicStack/asyncpg https://github.com/MagicStack/asyncpg). It works very similar to JavaScript, with async and await keywords. I think it should provide speed and comfort especially if you're a regular JavaScript user.
- Waterluvian 8y agoI wrote a pretty substantial experiment using asyncio for 100k websocket client connections across a massive theoretical fleet of robots. It's not open source but the general result was that I used to hate async in Python and now I love it. The syntax makes blending sync and async easy. And the cooperative multitasking paradigm is very easy to reason about. No locks!
- deleted 8y ago[deleted]
- simple_phrases 8y agoIf you did a write-up or went into more detail about your experience, I'd read it. Big fan of Python and am heavily invested in its ecosystem, but I currently prefer async programming in modern JavaScript compared to Python. Did you make use of third-party async libraries?
- Waterluvian 8y agoI'm going to ask my boss to open source it and then do a write up.
- j88439h84 8y agoPython is even better since it has http://trio.rtfd.org http://trio.rtfd.org which provides structured concurrency.
- Scarbutt 8y agoThe author switched to kotlin from clojure, kotlin's interop with java is leagues ahead of clojure.
- zeroDivisible 8y agoI do not have experience with Kotlin and it's interop with Java. Do you maybe have examples or articles which you'd recommend on the subject?
- Scarbutt 8y agoThe official reference: https://kotlinlang.org/docs/reference/java-interop.html https://kotlinlang.org/docs/reference/java-interop.html
- fgonzag 8y agohttps://kotlinlang.org/docs/reference/java-to-kotlin-interop.html https://kotlinlang.org/docs/reference/java-to-kotlin-interop... https://kotlinlang.org/docs/reference/java-interop.html https://kotlinlang.org/docs/reference/java-interop.html https://developer.android.com/kotlin/interop https://developer.android.com/kotlin/interop
- Per_Bothner 8y agoMay I suggest Kawa (https://www.gnu.org/software/kawa https://www.gnu.org/software/kawa) if you're open to Lisp-style syntax (Kawa is a Scheme dialect)? Kawa has great Java interoperability, Java-like performance (with the help of optional type declarations), a nice REPL, full documentation, maturity (continuous development since 1996), and many neat features. It doesn't require special tools or workflow. (I do suggest using the git version, as it is overdue for a release.)
- iLemming 8y agoKotlin simply is an attempt to fix Scala problems, which in itself is an attempt to fix Java problems. Clojure by design - simply doesn't have those problems.
- bradcypert 8y agoBlog Post Author Here: My opinion has not change as I've never looked back ;) I've found a fun little home in the JVM, but I'll definitely check out data classes in Python! That seems pretty cool :)