5 ms·
The Onyx Programming Language
- burky 3y agoHere's a recent discussion on HN... Onyx, a new programming language powered by WebAssembly (wasmer.io) https://news.ycombinator.com/item?id=38489340 https://news.ycombinator.com/item?id=38489340
- wharvle 3y agoLigature font in the examples. Please don’t. I had to copy-paste one of them somewhere else to figure out what it actually is.
- deleted 3y ago[deleted]
- frfl 3y agoThat's a valid criticism. I was 100% sure there was a "play" button for some reason on the second line of the "factorial :: (n: i32) -> i32 {" example. Only now do I realize it's not a play button |> iter.fold(1, (x, y) => x * y); Let's not. Let's keep things clear for the reader.
- wharvle 3y agoSame one that tripped me up. I looked at it a while thinking it was some outside-the-code commentary thing pointing out the line to me, and I couldn’t figure out why. Wasn’t until I spotted the more-familiar-to-me => ligature elsewhere that I realized what was going on. And even then I wasn’t sure what you type to get a triangle (obvious in hindsight, but not at the time)
- fkyoureadthedoc 3y agoI don't see any, but maybe they recently changed it I do see font-variant-ligatures: none !important; on the code blocks
- usgroup 3y agoPerhaps a generic comment, but part of the problem with new programming languages is that they are a massive achievement for -- usually -- the single human that made them. There is just no way that you'll invent a whole programming language that works and performs and say nothing about it, whether it adds anything to the "grand scheme of things" or not. Again, now saying it applies directly here -- although I personally struggle to see the rationale from what I read on the front page -- just a generically applicable comment.
- imtringued 3y agoThe problem with all these programming languages is that they aren't novel enough. I have an idea for a programming language that would change fundamental aspects. If I wanted to make the programming language I would keep it simple. Just an auto generated parser and interpreter to demonstrate a novel concept. For industrial use, I just want Java with less boilerplate (i.e. Kotlin or Groovy). The space for niche programming languages is quite large, but nobody is picking the fruit, because a programming language that isn't general purpose isn't as exciting.
- _a_a_a_ 3y ago> I have an idea for a programming language that would change fundamental aspects. I'm interested, go on.
- spinningslate 3y ago> Just an auto generated parser and interpreter I guess you mean one of the parser-generators or PEG libraries to auto-generate the parser. I'm not aware of tools for auto-generating interpreters. Can you point to one/some if there are? Thanks.
- UncleEntity 3y agoThere are methods to generate an interpreter but AFAICT there are no real implementations. Seems to be one of those pure research fields. https://github.com/sillycross/PochiVM https://github.com/sillycross/PochiVM is the closest I've seen to an actual implementation but it looks mostly abandoned. And I'm talking about generators on the same level as flex/bison and not something like pypy where they (used to?) use abstract interpretation/partial evaluation as you're really just transforming a handwritten interpreter with all the hard work that entails.
- deleted 3y ago[deleted]
- pipeline_peak 3y ago"Try Onyx" editor default code fails to compile: Failed to compile your code: