r/ProgrammingLanguages • u/AnyOne1500 • Mar 24 '26
Language announcement Been making a language called XS. Feedback?
https://github.com/xs-lang0/xsMade XS, everything you need to know is in README. Haven't tested MacOS yet, so LMK if there are any bugs or issues.
54
Upvotes
14
u/BlueberryPublic1180 Mar 24 '26
It's been a long time since someone posted a project that's interesting in here. Good job.
5
u/Pleasant-Form-1093 Mar 25 '26
Really good project, this is just the type of "just what I want with no extra frills" project I was looking for.
3
u/GidraFive Mar 25 '26
There is an option to build the script into an vm ir file, but i don't see if we can run it. Is there a standalone vm executable that accepts the compiled files?
7
u/azhder Mar 24 '26
Don't do anything in excess, like nothing extra small.
2
u/AustinVelonaut Admiran Mar 24 '26
I had a quick look at
LANGUAGE.md, and have a question about theArrayimplementation -- are they homogenous (all of your examples are)? If so, how is this enforced at runtime, and how is the base type specified in the array declaration?2
u/Difficult_Mix8652 Mar 25 '26
this looks awesome. was there any inspiration for the plugin design?
2
u/bjarneh Mar 25 '26 edited Mar 25 '26
Superb language design! It looks like an early version of Rust (v0.1 - v0.2 days), back when I really liked it.
2
u/raevnos Mar 24 '26
XS is the name of perl's ffi specification langauge... maybe a different name?
1
u/othd139 Mar 24 '26
This seems really cool. I had a bit of a look at the readme and language.md. I'm curious what you see as the main use case for your language?
1
u/Positive_Total_4414 Mar 25 '26
Looks interesting! What is the supposed way of writing in the language? Is there maybe a VSCode extension or plugins for other editors?
1
u/UVRaveFairy 🦋8Bitch Faceless Witch - Roll my own IDEs / poly IDE user /ACE Mar 25 '26
Good work, cool project.
1
u/jumpixel Mar 25 '26
Amazing project and love the syntax! How are you able to get a proper syntax highlight for XS in GitHub?
1
u/FirmSupermarket6933 Mar 26 '26
Cool project!
1
u/Electrical-Ad1886 Mar 24 '26
Curious why you wrote the compiler in C instead of the languages I usually see compilers in like lisp?
1
u/CyberDainz Mar 25 '26
tried
xs transpile --target c concurrency.xs > concurrency.c
result is garbage.
Yet another vibecoded PL ?
1
u/Mean-Decision-3502 DQ May 28 '26
Amazing project. I've played a little with the playground. Please consider these:
The first one ins important for the mathematicians.
No automatic number <-> bool conversion is a must, I think. Dont carry on the mistakes from C.
-1
u/OwnNeedleworker3758 Mar 24 '26
Hm that's cool it's like a non-traditional coating language basically it's not written or design traditionally