maybe a better question is: why is this particularly interesting vs. the many other languages that fill this niche? my impression is that the main selling point is that it’s “easy to pick up”, but I’m curious how it compares in terms of performance, etc to some of the others OP listed.
If I am embedding a language, it’s because I want people to program my system. That means I want a language that they’re likely to know already. Lua and JavaScript have a pretty large installed base and a lot of people know them. Embedding Lua or one of half a dozen lightweight JavaScript interpreters (jsquick seems to be the fashionable one now, I quite like DukTape) means that there’s a good chance that people using my scripting environment can do so and they can reuse any nice helpers that they or others have written.
An alternative would need to offer something compelling. Is it easier to use? Faster? Supporting multicore systems better?
Ada, Perl, Ruby and a couple of languages inspired by them.
When I was way younger and jumping programming languages a lot that felt like the main thing I always got wrong, elif, elsif, elseif and else if.
The last one despite being the most to type feels the most logical to me, being a combination of what’s already there with else and if, but is also the closest to a natural language/English.
Ok but why this instead of eg lua, moonscript, fennel, fe, guile, any forth core, etc?
Why not?
maybe a better question is: why is this particularly interesting vs. the many other languages that fill this niche? my impression is that the main selling point is that it’s “easy to pick up”, but I’m curious how it compares in terms of performance, etc to some of the others OP listed.
If I am embedding a language, it’s because I want people to program my system. That means I want a language that they’re likely to know already. Lua and JavaScript have a pretty large installed base and a lot of people know them. Embedding Lua or one of half a dozen lightweight JavaScript interpreters (jsquick seems to be the fashionable one now, I quite like DukTape) means that there’s a good chance that people using my scripting environment can do so and they can reuse any nice helpers that they or others have written.
An alternative would need to offer something compelling. Is it easier to use? Faster? Supporting multicore systems better?
Asking the real questions :)
Very wren vibes from the website
From the GitHub page:
I’ve never seen
elsif
beforeYou might also like
alas if
in squire. :)Haha amazing. ‘kindof’ could also have been ‘natureof’
Ada, Perl, Ruby and a couple of languages inspired by them.
When I was way younger and jumping programming languages a lot that felt like the main thing I always got wrong,
elif
,elsif
,elseif
andelse if
.The last one despite being the most to type feels the most logical to me, being a combination of what’s already there with else and if, but is also the closest to a natural language/English.
It should really be
else, if
orelse; if
to be even more like English and to really make it hard for parsers.x equals thirty-three or else... if your hat is green, of course.
Good luck, parser! o7After discovering
cond
in Lisp, I wished every language had it instead ofif
,else
and the various combinations of those two.ruby?
Ada uses elsif. I wish all these elifs, elsifs, elseifs and else ifs keywords were interchangeable.
I’m surprised there is no keyword for function.