Hacker News new | ask | show | jobs
by skybrian 36 days ago
It’s a bit hard to tell what’s interesting about the language itself.

On the website, the standard library lacks a table of contents, but you can see what it has here:

https://github.com/xs-lang0/xslang.org/tree/main/src/app/doc...

1 comments

It's a small language that looks familiar if you know other imperative Algol-derived languages. The point is not in that, the point is a single binary for everything, and portability.

It's like busybox, which is unremarkable as Unix userland, but is interesting because it's a single small binary.

But beyond the standard Algolish stuff, XS seems to have quite a few modern niceties, such as traits, generics, closures, OOP, pattern-matching, and even algebraic effects.

Assuming that's the primary value prop, they should go all the way and distribute it as a single cross-OS/arch fat binary. It looks like this may be a way to actually accomplish that: https://github.com/jart/cosmopolitan.