2 ms·
How would the dynamism and expressivity of something like Django port to Nim? I love the whole declarative paradigm of the Django forms and models API. Is Nim g
by andybak 7y ago
How would the dynamism and expressivity of something like Django port to Nim? I love the whole declarative paradigm of the Django forms and models API. Is Nim good at this kind of DSL-ish plasticity?
- alehander42 7y agoi'd say so: i think many rails/django concepts are translate-able to metaprogramming in nim, not always with the same idioms, but usually there is a way to do it, and you can typecheck some things
- PMunch 7y agoExtremely well I'd say. Nim has a very powerful macro system, and DSLs are very common across various modules. Haven't used Django myself, but something like Jester (https://github.com/dom96/jester https://github.com/dom96/jester) or Karax (https://github.com/pragmagic/karax https://github.com/pragmagic/karax) is a good place to start if you want to do web development in Nim.
- treeform 7y agoI feel DSL-ish ways of Nim are so much more advanced then python. I have written UI DSLs in Nim, as well as SQL DSLs. Only LISPy languages come close to the level of DSL you can do.
- TylerE 7y agoPoorly. Nim is not an object-oriented language. You could certainly write an expressive web framework in nim, but a django/rails sort of paradigm is not the way.