6 ms·
Gosubc – An implementation of the SubC language in Go
- jandrese 10y ago...why? I get it if this is someone's project just for fun, but relevance to the HN crowd seems a bit iffy.
- vargavince91 10y ago> SubC is a simple subset of C originally written by Nils Holms for teaching newcomers how to write a compiler. I assume it's for fun and to learn
- jandrese 10y agoThe original headline said C89, not SubC. It makes more sense as a SubC compiler.
- jdreaver 10y agoWriting compilers for fun is not relevant to HN? Get off your high horse, this project is really cool!
- mumphster 10y agoWhy not? Have you never coded something for fun and wanted to show it off? HN seems like just the place to do that, full of like minded people who just code for the sake of coding.
- latenightcoding 10y agoYou are joking right? This is the most HN sounding title I've seen in a while.
- greendragon 10y agoJudging from their account age I hope so.
- Cyph0n 10y agoIt's (1) a side project that involves (2) writing code to implement (3) a compiler for a subset of C. I don't really see where your issue is, but I do see 3 reasons for it being on HN.
- tptacek 10y agoYou can do a lot more with compiler infrastructure than simply building programs. C89 is a useful starting point.
- cortesoft 10y agoIt is called "HackerNews", not "PracticalAndEfficientNews
- aikah 10y agoIt would have been even more fun(and useful) to write a safer C.
- marktangotango 10y agoWhat would that look like in your opinion?
- SloopJon 10y agoI'm not sure where the C89 in the submitted title came from. This is for SubC, "a simple subset of C." This README describes the many differences: http://www.t3x.org/subc/README-current.html http://www.t3x.org/subc/README-current.html
- klodolph 10y agoWow, that's a lot of features removed. No double, float, short, long, signed, unsigned, or typedef? There goes 99% of the C programs ever written.
- amyjess 10y agoSounds like they're trying to make it more like B.
- stcredzero 10y agoCharlie Stross should put the language Z in his books. It's another language of that heritage, but writing a working compiler in it would constitute a thaumaturgic formula so powerful, the universe would end.
- nickpsecurity 10y agoYou talking about the specification language? If so, I can give you the compiler you asked for written using it.
- mrkgnao 10y agoIs "thaumaturgic" related to "demiurge" etymologically?
- Hemospectrum 10y agoYes. The "urge" part means "work:" Thaumaturgy is using magic to do work, and a demiurge was just a craftsman or artisan until Plato borrowed the term for theological purposes.
- latenightcoding 10y agoI love this type of projects. Relevant: https://github.com/robertkrimen/otto https://github.com/robertkrimen/otto (JavaScript interpreter in go) https://github.com/Shopify/go-lua https://github.com/Shopify/go-lua Lua VM in go
- padator 10y agoSo? Is it shorter? How much shorter? How does Go improve over C? Just curious.