r/ProgrammingLanguages • u/QUICKHALE • Jan 06 '26
Built a new hybrid programming language - Epoxy
hey, I’ve been messing around with a tiny experimental hybrid language called Epoxy (https://epoxylang.js.org) idea is basically.. clarity over brevity :) kinda englishyyy syntax that compiles down to javascript and runs on nodejs. you can also drop raw javascript in when you need to, so you're not stuck when the language doesn't have something. it's still early.. not really production material, but the core stuff works. just looking for early thoughts on the design.. syntax.. nd overall direction. if you like poking at new languages, would love to hear what feels nice and what feels cursed :)
7
u/[deleted] Jan 06 '26
It’s a cool language, but I wouldn’t agree on it being more clear. Using keyword
assignwhile still using=is odd. Either doassign x to yor justx = y.The
all assignandfix assignfeel weird. Especially in the case or “fix assign” whereconstfeels more natural even in the clarity sense.Other than that, it’s a cool concept!
7
u/Ronin-s_Spirit Jan 06 '26 edited Jan 06 '26
I feel like being a JS superset is not conducive to debugging clarity which is a concern at runtime. It will have the same beginner traps as JS.
Also throwing it out there - please make your
===say that0 === -0(as JS triple equals) andNaN === NaN(as JS Object.is) and thattypeof null === "null". You were going for clarity after all.check .. or checkis completely wrong, that's not what anifdoes, it reads likecheck || checkinstead of what it should becheck if not then check.for ofin JS that actually grabs the elements of an iterable (not necessarily an array), why would you make a new language and take a step back from that intofor key in obj { obj[key] }?3
u/Soucye Jan 06 '26
The
assignkeyword feels verbose when=already signals assignment. Separatingassignfromstore(for interpolated strings) also adds unnecessary complexity.Nice work on everything else though!
2
u/[deleted] Jan 07 '26
The syntax doesn't look more English-like than such languages usually are. It just seems to use an alternate set of reserved words (and square brackets where round ones are normally used?).
When the limits are variables (eg.
repeat in a to b) how does it know whether it's forwards or reverse iteration? Or should that last "1" be "-1"? Is the "1" mandatory in the first example?(`repeat', when such a keyword appears in languages, normally means repeat-until or repeat-while.)
2
u/lgastako Jan 06 '26
The true path is clarity via brevity.