3 ms·
Very good point, which partially alludes to the hype. It is amazing how much publicity that Jai is getting, despite being in a closed beta. It brings up the a
by Tozen 4y ago
Very good point, which partially alludes to the hype. It is amazing how much publicity that Jai is getting, despite being in a closed beta. It brings up the argument that if it were open to the public, with more eyes and critics on it, would the "hype train" crash? Odin (https://odin-lang.org/ https://odin-lang.org/), a near category language, that is influenced by Jai and is open to the public, does not appear to be getting anywhere near the recognition.
To what extent does Jonathan Blow's status as a celebrity programmer, plays into all of this? As in, people want Jai to be the "next big thing", versus the actual merits of the language.
- tialaramex 4y agoOne of the things people get excited about is meta-programming, which Jai has much more of than Odin. Jai has a lot more weird stuff than Odin. Idiosyncratic features like if we're iterating through a sequence we can delete items as we go with a dedicated keyword, via a swap and shrink mechanism. Perhaps some of that weird stuff will be smoothed off during beta, or perhaps Jon will double down on it. But it does make Jai more interesting to talk about meanwhile than Odin which is a more "normal" language design. I suspect I will never have reason to use either language "in anger" so to speak, but Jai is more interesting to me for the reasons I stated.
- matiasfernandez 4y agoPop and swap while iterating is definitely a useful feature. You can also queue removals up and do the pop and swap all together on a cleanup pass (snippet below). That said, most people don't code this way, so yeah, useful for sure. https://github.com/matias-eduardo/conway/blob/2496472b0018bbb88c2a8e17fd3462a3c5b4327f/main.odin#L327-L339 https://github.com/matias-eduardo/conway/blob/2496472b0018bb...