Live data from Hacker News

XS: A programming language. Anywhere, anytime, by anyone

xslang.org

21–30 of 44 posts

Re: XS: A programming language. Anywhere, anytime, by anyone

#21
post #6

Earlier quoted context omitted.

While at it: How much Perl code is still running in production? I only know about two large Perl codebases, at Debain, and at booking.com.

I thought CraigsList and maybe eBay?

It seems eBay ditched Perl a long time ago: https://stackoverflow.blog/2021/03/01/sacrificial-architectu...

Re: XS: A programming language. Anywhere, anytime, by anyone

#22

Initially, the page looked very intriguing and the promises looked every fascinating. A whole DX toolchain in one binary? The binary can run in different systems? Only 3 MB? Then I read the comments here saying its ai slop, I lost all my interest now.

why? why you should care if it is human written or by ai, if the result is the same?

That’s a big if. I am not willing to spend time on reviewing slop. I am already on my limit of how much information I process daily.

Re: XS: A programming language. Anywhere, anytime, by anyone

#23
post #9

This language, README, website has been written by AI agents. At one point, the author may have written a fair bit of code by hand (starting with a Crafting Interpreters project, and then adapting it recently using agents?). The commit history is very confusing. The design of the VM is nearly identical to the clox interpreter in Crafting Interpreters . There's also a bit of Lua inspiration mixed in the instruction en…

> With that being said, I'd take the cross platform claims with an extreme grain of salt ...

Given that it's written in C (and assuming it actually compiles), I'm likely to believe the cross-platform claim.

Re: XS: A programming language. Anywhere, anytime, by anyone

#24
post #23
post #9

This language, README, website has been written by AI agents. At one point, the author may have written a fair bit of code by hand (starting with a Crafting Interpreters project, and then adapting it recently using agents?). The commit history is very confusing. The design of the VM is nearly identical to the clox interpreter in Crafting Interpreters . There's also a bit of Lua inspiration mixed in the instruction en…

> With that being said, I'd take the cross platform claims with an extreme grain of salt ... Given that it's written in C (and assuming it actually compiles), I'm likely to believe the cross-platform claim.

Have you ever tried to optimize code that runs on LSB and MSB hardware? Or 32 and 64 bits? It can get pretty hairy.

Re: XS: A programming language. Anywhere, anytime, by anyone

#25

Initially, the page looked very intriguing and the promises looked every fascinating. A whole DX toolchain in one binary? The binary can run in different systems? Only 3 MB? Then I read the comments here saying its ai slop, I lost all my interest now.

why? why you should care if it is human written or by ai, if the result is the same?

Human accomplishment is a predictor of future accomplishment. AI not as much.

Human effort signals value, AI does not.

Human effort is often inviting collaboration. AI rarely does.

Re: XS: A programming language. Anywhere, anytime, by anyone

#26
post #6

Perl developers that depend on XS [1] for extending their code's behavior will have a "lovely" time with this lol! Here's an example https://github.com/adriaandens/XSamples/blob/master/XSamples... [1] https://perldoc.perl.org/perlxs

While at it: How much Perl code is still running in production? I only know about two large Perl codebases, at Debain, and at booking.com.

Cpanel, IMDb(?)

Re: XS: A programming language. Anywhere, anytime, by anyone

#27

Earlier quoted context omitted.

why? why you should care if it is human written or by ai, if the result is the same?

That’s a big if. I am not willing to spend time on reviewing slop. I am already on my limit of how much information I process daily.

Does this mean that you will not review human slop too?

Then, what if ai will write something cool/good/interesting/high quality/amazing?

Re: XS: A programming language. Anywhere, anytime, by anyone

#28
post #7
post #2

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

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,…

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.

Re: XS: A programming language. Anywhere, anytime, by anyone

#29
post #6

Perl developers that depend on XS [1] for extending their code's behavior will have a "lovely" time with this lol! Here's an example https://github.com/adriaandens/XSamples/blob/master/XSamples... [1] https://perldoc.perl.org/perlxs

While at it: How much Perl code is still running in production? I only know about two large Perl codebases, at Debain, and at booking.com.

DuckDuckGo.
Post reply on HN