Hacker News new | ask | show | jobs
by xyproto 2068 days ago
I was skeptical towards Nim. Then I wrote a small program that uses SDL2, and compared it to the same program written in over 10 other programming languages. Nim has an excellent combination of ease of use and performance.
2 comments

Nim is my mistress. I work with Elixir and Javascript, but something about Nim is so pure and exact and precise. I love it.

I'm hoping someone builds a great web framework with it, and a library like Ecto for better postgresql access. This language great potential to build faster software.

Can you output WebAssembly/Emscripten project that uses SDL2?
This seems quite possible from everything I've explored, and also is something I want to try soon. It's also interesting to use Nim through JS for a scripting layer for an application written in Nim; where they both communicate through shared data structures or something.

Here's a repo I found: https://github.com/Jipok/Nim-SDL2-and-Emscripten

Yes. People have done this.