4 ms·
I'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
by SloopJon 10y ago
I'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.
- mrkgnao 10y agoHuh, that's cool. I wonder if there's any way I can expand my etymology-fu apart from just picking stuff up randomly or learning Latin/Ancient Greek. (I did read Word Power Made Easy as a kid. It kicked off my interest in these things.)
- amyjess 10y agoOne thing you can do is, if you come across a word you're curious about, plug it into Wiktionary and see what comes up. Wiktionary tends to be pretty good with etymology. For example, thaumaturgy: https://en.wiktionary.org/wiki/thaumaturgy https://en.wiktionary.org/wiki/thaumaturgy Clicking on one of the links provided gives this: https://en.wiktionary.org/wiki/ἔργον https://en.wiktionary.org/wiki/ἔργον which lists a number of derived forms. Did you know that the words "energy" and "lethargy" and the prefix "ergo-" come from a derivative the Greek root of "urge"? Neither did I until I started writing this comment. And looking up "demiurge" leads me to this: https://en.wiktionary.org/wiki/Δημιουργός https://en.wiktionary.org/wiki/Δημιουργός where it comes from the Greek for "public worker". So that probably means the "demi" in "demiurge" comes from the same root as "democratic"! And going to the lowercase form gives https://en.wiktionary.org/wiki/δημιουργός https://en.wiktionary.org/wiki/δημιουργός And I just realized that referring to a divine entity as "the Demiurge" is just a fancy way of saying "the Creator" or "the Maker".
- mrkgnao 10y agoThat's very similar to what I do now. I was looking for something more systematic than "hope you stumble across cool words" :) I did not know that energy and lethargy come from the same Greek root, though, thanks!
- nils-m-holm 10y agoSubC was designed for demonstrating how a compiler works, not as a drop-in replacement for C. It's more like the Small C compilers of the 1980's, but without bending the rules (i.e. it compiles with little or no warnings). (I'm the author of SubC, which is the language implemented by Gosubc.)
- sctb 10y agoThanks, we've updated the title from the submitted “Gosubc: a C89 compiler written in Go”.