News for hackers. Stuff that matters.
Re:Knit – A Scripting Language by nilput on Tuesday July 14, 2020 @08:06PM (#23839679)
This is a scripting language i've written in C.

It has a surprisingly decent performance compared to other interpreted languages.

This could be partly attributable to the fact that the whole language is written in headers, so everything is available to the compiler where it can inline and do all kinds of optimizations, additionally the language is small and doesn't require much during initialization (the benchmark is ran 100 times with perf).

There's a benchmark in examples/bench/ where it beats PHP7, Python, Perl, and PUC Lua

Re:Knit – A Scripting Language by blacksqr on Friday July 17, 2020 @10:59AM (#23871236)
I hope you keep working on this. I think there is a definite need for something very small and simple that can be embedded into other tools, to squeeze out extra performance in critical spots without resorting to the nitroglycerin of C/C++.