News for hackers. Stuff that matters.
Re:Z.lua – A new cd command that navigates faster by learnin... by naniwaduni on Monday February 04, 2019 @05:15PM (#19081181)
> Currently shell code is limited to one language. If you have bash, you can only do bash. But we could imagine a shell that understands webassembly, and hence we can use it with many languages. We could even imagine tools to inline webassembly generation, so that you can code directly in your favorite language in the shell, and it gets transparently compiled and executed.

We might even compile directly to native code, nay, automatically identify the format and pass it to the appropriate interpreter, and then provide an interface to call arbitrary modules that conform to a particular interface―

... and then expose it as a library function so the shell can use it, let's call it execve().

Re:Z.lua – A new cd command that navigates faster by learnin... by Camto on Tuesday February 05, 2019 @07:44AM (#19084767)
Since so many languages use # for comments, we could even have a special comment that finds the interpreter for you! If only we had something like that.