logoalt Hacker News

skybriantoday at 5:12 PM1 replyview on HN

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...


Replies

nine_ktoday at 5:37 PM

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.

show 1 reply