Let's say that I want to replace JavaScript with Nim as my front-end development language. How ready is Nim and the ecosystem for this?
I tried playing with Karax and a couple of days ago I discovered Nimja. However, I haven't experimented with them enough to conclude on this. Are Nim and its ecosystem ready for all front-end needs (CSR, SSR, SSG etc.)?
I don't mind transpiling stuff to JS (almost all the other languages do that I guess). I just wanted to know how mature Nim and its ecosystem in this regard.
I just don't want to write JavaScript or think logically in it ever again (I don't hate the language). I'm okay with CSS; though it would be lovely if we can have some CSS-in-Nim...haha!
This forum software (as bad as it might seem?) is written in Nim with Karax. The ecosystem is ready. Ymmv.
PS: "transpiling" is an illdefined term and even worse: it's an ugly word.
Also nitter.net is done in nim!
I've done alot of small stuff in nimja (obviously) and for this it's quite nice. For larger stuff the compile cycle sometimes is a little annoying. So I can recommend a watcher that recompile your stuff on change for example: https://github.com/treeform/guardmons/blob/master/src/guardmons/watchmon.nim
Got ya. Thanks @cmc
I'd only been active on Discord. But I had not started doing front-end stuff with Nim.
Although slow recompile
How long does it takes for you? Have you considered split in libraries/modules?
For a complex web app, that could be several megabytes, ...
Pure speculation and seems to be an unrealistic extrapolation.