News for hackers. Stuff that matters.
Re:Faster Python with Guido van Rossum by amelius on Thursday October 07, 2021 @11:55AM (#28787992)
People's main reason for using Python is the ecosystem.
Re:Faster Python with Guido van Rossum by arc619 on Thursday October 07, 2021 @12:57PM (#28789054)
Nim can use Python's ecosystem in both directions with nimpy https://github.com/yglukhov/nimpy and nimporter https://github.com/yglukhov/nimpy

This lets you gradually transition hot path Python modules to Nim, get compiled performance generally on par with C and Rust, whilst enjoying strong, static typing with great type inference.

In my experience (6-7 years 4 of which are full time) Nim strikes the perfect balance of the productivity you get with Python with high performance at the same time.

Also the metaprogramming features are incredible and, importantly, don't use a language subset but use the base Nim language itself.

Re:Faster Python with Guido van Rossum by arc619 on Thursday October 07, 2021 @01:00PM (#28789094)
Oops wrong link for nimporter. Actual link: https://github.com/Pebaz/Nimporter
Re:Faster Python with Guido van Rossum by amelius on Thursday October 07, 2021 @01:00PM (#28789091)
That's interesting but it looks like Nim has no support for Qt yet (where Python has PyQt and PySide).
Re:Faster Python with Guido van Rossum by arc619 on Thursday October 07, 2021 @01:15PM (#28789332)
I've never used Qt myself, but the Status messaging app written in Nim does, so it's definitely doable: https://github.com/status-im/status-desktop

There's also a QML wrapper here: https://github.com/filcuc/nimqml

Re:Faster Python with Guido van Rossum by fithisux on Thursday October 07, 2021 @01:16PM (#28789350)
Use Groovy then.