Yeah, also https://duktape.org/ . Although JS has a lot of warts, I can't think of a project where I would choose a language that's very much like JS but not compatible with it. Some kind of common subset could be a good approach.
I feel it is good for me.
I am also looking for the language like javascript but nodejs.
And I think a good point is that the language is including useful libraries by default.
By the way, the source size seems to be reduced to 24MB.
I want to implement a new shell, but I don't like shell script.
I'd like something similar to javascript, especially being object oriented. However, I don't like event loop and call backs, that's not suitable for scripting.
12 comments
[ 1.7 ms ] story [ 52.2 ms ] threadThere are lightweight implementations such as QuickJS.
Like it really reminds me of squirrel.
But one request, please: make 'break' implicit at the end of each case in switch statements, introduce fallthrough (fallthru?) as a keyword instead.
(How many times did you need to NOT use break in switch-case?)
It is like PHP, but without namespace pollution (like C has)
It is like JavaScript: the good parts
It is like C : as advertised, only in syntax
== End of free advertising, yeah ==
It is like Wren or Squirrel, but not as lightweight. Why the source code tgz'd is more that 100MB?
By the way, the source size seems to be reduced to 24MB.
I want to implement a new shell, but I don't like shell script.
I'd like something similar to javascript, especially being object oriented. However, I don't like event loop and call backs, that's not suitable for scripting.