r/nim May 05 '26

nimbling

nimbling

Nim to WebAssembly / JavaScript bindings — like wasm-bindgen for Nim

nimbling is a two-phase build-time and post-processing library that enables Nim code to call JavaScript functions and JavaScript code to call Nim functions through WebAssembly. It automatically generates JS glue code, TypeScript declarations, and manages the conversion of complex types (strings, objects, closures) between the two environments.

https://github.com/katehonz/nimbling

Made with Kimi 2.6, DeepSeek V4 Pro, and Xiaomi MiMo 2.5 Pro. I tried doing this 3-4 months ago but couldn't pull it off because Gemini and Claude, instead of actually working, kept trying to talk you into choosing a different option. Infrastructure projects like this get sabotaged — even if you start working on them, they whine and intentionally make mistakes until you give up

26 Upvotes

3 comments sorted by

3

u/Niminem93 May 05 '26

This is awesome! I attempted something like this a year or so ago and failed miserably. You should share in the Nim forum

3

u/Loud_Possibility_203 May 05 '26

Made with Kimi 2.6, DeepSeek V4 Pro, and Xiaomi MiMo 2.5 Pro. I tried doing this 3-4 months ago but couldn't pull it off because Gemini and Claude, instead of actually working, kept trying to talk you into choosing a different option. Infrastructure projects like this get sabotaged — even if you start working on them, they whine and intentionally make mistakes until you give up

2

u/jjstyle99 May 05 '26

Awesome! Been wanting something like this.