Hacker News new | past | comments | ask | show | jobs | submit login

So, it is like Nim? Templates, metaprogramming, custom iterators, Nim's comp-time is also powerful, but I heard that 100% of Jai is available at compile time? How good is interop with other languages? Does Jai's syntax have some nice features? Syntax sugar like Nim's UFCS or list comprehension (collect macro in nim)? effects system? Functional paradigm support?



Yup if I would pick a language that’s closest to Jai I would choose Nim. Both have a bytecode-VM interpreter to run comp-time code (unlike with Zig where it still tree-walks the AST), have similar template codegen systems (though Nim also has AST macros), and has good interop with existing C/C++ code.

The one issue with Nim I had while trying it out is that there is an incredibly rich amount of features but many of them seem half-baked and it’s constantly being changed, so you’re always a bit unsure what’s a feature stable and safe to use or is “experimental”. But at least it’s been public for quite some time and you can actually use it right away…




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: