3 ms·
Kinx: A scripting language for people who want C-like syntax
- krackers 6y ago>JavaScript is very good for me, and it is a C like style. But node.js is too heavy. There are lightweight implementations such as QuickJS.
- chubot 6y agoYeah, also https://duktape.org/ 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.
- mythz 6y agoWren is also C-like and lightweight https://wren.io https://wren.io
- rurban 6y agoYes, and more elegant. But Kinx seems to have a better jit.
- samatman 6y agoReminds me of squirrel: http://squirrel-lang.org http://squirrel-lang.org Like it really reminds me of squirrel.
- xeeeeeeeeeeenu 6y agoPike is also similar: https://en.wikipedia.org/wiki/Pike_(programming_language) https://en.wikipedia.org/wiki/Pike_(programming_language)
- smlckz 6y agoThis is going to be ''the next big thing'', I'd like to predict. 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?)
- smlckz 6y agoThe Makefile of this project starts with .POSIX and then you have an ifeq .. endif block? and then after a few lines: %.o: src/%.c Why?
- gerikson 6y agoSo it's Perl?
- smlckz 6y agoIt is like Perl minus $@%*&'s 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?
- bbmate 6y agoI 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.
- billconan 6y agothis is perfect. 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.