Oilsh has focused more on backwards compatibility. This approach of adding a small functional language is interesting. The author seems to have done an elegant job with the syntax. Adding this to my list of things to download and play with.
Looks like the last item in the all-files array is an empty string - maybe that's why? Either that, or the current directory (".") might be included as the first element.
If . was included then .. almost certainly would be as well. But an empty string at the end like you say and as explained by the sibling comment makes sense.
I have a project that uses free unparsed text with evaluated sexpressions mixed in. I understand that alot of people just dont like sexpressions...but otherwise is anyone really bothered by this style of allowing arbitrary junk at the top level?
I think it’s fine, it’s like you’re saying that every expression is implicitly wrapped in a ‘()’ itself, so the syntax is redundant at the top level in a shell.
> A new system shell that uses the Janet[1] programming language
Why have I never heard of Janet before? This ticks every single box so far on my Perfect Lisp Language (and possibly Perfect Language) check list, the language I've been looking for for years but couldn't find.
Haha. I haven't heard of it either. I though that this was a toy project or something. Seems like it's real business. What don't you like about the other Lisps, like Common Lisp, for example? What boxes still remained unticked?
26 comments
[ 2.6 ms ] story [ 64.0 ms ] threadThis is great! Are there any other shells like this? I like the idea of something backwards compatible with bash.
http://xonsh.org/
[1]: https://en.wikipedia.org/wiki/The_Good_Place
Not sure I’d appreciate it outside of a shell.
In the future I hope it will support mac/freebsd/openbsd/linux and be easy to install and use.
Why have I never heard of Janet before? This ticks every single box so far on my Perfect Lisp Language (and possibly Perfect Language) check list, the language I've been looking for for years but couldn't find.
[1] https://janet-lang.org
Janet discussion: https://news.ycombinator.com/item?id=19179963