8 ms·
Let's compile like it's 1992 (2014)
- nneonneo 10y agoNeeds a (2014) tag.
- douche 10y agoIf you have a few hours (or days) free, go through the rest of Fabien's source code reviews and articles. It's fantastic stuff. I really hope he does finish up the book he's writing on the Wolfenstein 3D engine.
- kibwen 10y agoLet's play the game "Wolfenstein miscompilation or Dwarf Fortress screenshot?": http://fabiensanglard.net/Compile_Like_Its_1992/images/run_wolf4.png http://fabiensanglard.net/Compile_Like_Its_1992/images/run_w...
- Waterluvian 10y agoI just see an ASCII interpretation of the TV channels my mom told me to stay away from. Hey, I think I see a pair of @'s
- crowbahr 10y agoDef not dorffort
- kenoh 10y agoWay too many vermin }, would be detrimental to the fort.
- RugnirViking 10y agoIt took me a while of thinking 'Isn't it obvious that it's not dwarf fortress?' before realizing that I am way too into that game to be the intended audience for the joke ;)
- Coincoin 10y agoNo mention of how much time it took to compile? I don't know if my memory is faulty but I remember Turbo C++ to be much much faster than today's C++ compilers.
- hvs 10y agoIn 1992 it probably wouldn't have had templates nor much of much else (it wasn't standardized until 1998). Modern C++ is barely the same language anymore.
- badsectoracula 10y agoBorland C++ 3.1 (mentioned in the article) does have templates, although it doesn't have nested templates. It also didn't have namespaces (i think that was added in 5.0, which was still released before the first C++ standard). Keep in mind that the C++98 mainly standardized what compilers were already doing.
- throewai 10y agoIt's basically an ugly Python now.
- pvg 10y agoThe source is also plain C. Id/Carmack didn't switch to C++ until Doom 3.
- quantumhobbit 10y agoI don't know about c++, but turbo pascal compiled so fast that it felt like an interpreter back in the day.
- boznz 10y agoUsed both. TP was a lot faster but TC was no slouch. A Few years ago I managed to copy an old DOS diskette onto DOS VM and compiled and run a space invaders game I wrote. TC said it compiled but just kept returning me to the IDE when it executed! I eventually tweeked the VM speed down by about 100 at which point I saw the very fast invaders move to the bottom in about 2 seconds and kill my defender!
- transitorykris 10y agoI was super excited to play with this tonight but sadly it appears the Borland C++ URL is giving 404s. EDIT: Found Turbo C++ 3.0 and TASM and these work just fine!
- GeertVL 10y agoAny links to the correct downloads?
- transitorykris 10y agohttps://s3-us-west-2.amazonaws.com/likeits1992/tasm.zip https://s3-us-west-2.amazonaws.com/likeits1992/tasm.zip https://s3-us-west-2.amazonaws.com/likeits1992/turboc.zip https://s3-us-west-2.amazonaws.com/likeits1992/turboc.zip
- ISL 10y agocurl? 1992? ;).
- chj 10y agoI installed tc and built wolf3d from source following the instructions. The whole process is surprisingly smooth.
- deleted 10y ago[deleted]
- easytiger 10y agoThere was something about the visceral nature of the tc environment and editor and toolset that just felt like you were very mentally close to the code you were writing. Perhaps something about the bare simplicity. I can't help but feel i've been chasing it ever since in emacs.
- pjmlp 10y agoI tried to chase it in Emacs during 10 years, back in the 90 - 2000's, until I came to the conclusion that Mac and Windows IDEs are still closer to the old Borland experience than anything else. So nowadays I only use Emacs for Clojure or when I happen to access an UNIX server box.
- swah 10y agoRecently I had to do something I always avoided since it was platform specific a huge unknown space to me - code something in C#. It was one of the most pleasurable experiences with "programming" since those Pascal times, and gave that feeling of being close to the code. I attribute it to fast compiles, no need for context switching (due to superb autocompletion), and everything just working well inside the tool. Documentation was also very good, and the huge API you're exposed gives a feeling of power (like I felt as a teen with computers, that I could do so much). (My recent experience was Python, C (embedded too), Golang, and JS in the browser.)
- kuschku 10y ago> Documentation was also very good, and the huge API you're exposed gives a feeling of power (like I felt as a teen with computers, that I could do so much). That’s the reason why C#, or the language it was copied from (Java) are still popular when performance doesn’t have to be 100% perfect. Easy to use, very well documented and powerful, and reasonably fast.
- rb808 10y agoEdit and continue is the best thing about C#, its so useful to be able to set a breakpoint, and modify code in debug mode, move back a few lines and try again.
- frozenport 10y agoThis was an exciting time because you could tune a radio to the clock frequency to detect crashes!
- raverbashing 10y agoAh this was very interesting But sadly Wolf3D is real mode (maybe 16-bit?) and I got accustomed to the "luxuries" of 32-bit development on DOS under DJGPP
- jlgaddis 10y agoWow, that Borland IDE UI certainly brings back memories. Turbo Pascal 6.0 (for DOS) was my first real exposure to programming (not counting the various BASICs and a short stint learning 6502 assembly) and led to my teenage self writing a bunch of "IGMs" for Legend of the Red Dragon [0], a BBS game. Unfortunately, just as I started teaching myself C, I scored a copy of Visual Basic 3.0 and it was all downhill from there. It's really cool to see this game I played 20+ years ago and think about how technology has come. I can't imagine what the next 20 years will bring. [0]: https://en.wikipedia.org/wiki/Legend_of_the_Red_Dragon https://en.wikipedia.org/wiki/Legend_of_the_Red_Dragon
- rbanffy 10y agoVisual Basic paid my bills for quite some time. Funny I had to get smacked on the head a couple times (with Dataflex, VB, Python/Zope) to realise what @paulg articulates so well in "Beating the Averages".
- chiph 10y agoThe language/IDE of choice at college was Turbo Pascal. But then they introduced Turbo C and I just had to use it for my graphics class (because C was obviously going to be faster than that Pascal stuff, right?) Wrong. The Pascal compiler had had years of optimization done to it and their C compiler was a 1.0 product. My programs ran at half the speed of everyone else's.
- coldcode 10y agoScrew that lets compile like it's 1981, when I started. Actually, no thank you.
- wcummings 10y agoI did this with the original xdoom source when I was a teenager. It all basically works w/ some minor changes. The biggest hurdle is setting up X w/ some goofy color depth.
- hunterjrj 10y agoRelated to all the Pascal discussion in this thread, Carmack actually started working in Pascal before C: https://twitter.com/id_aa_carmack/status/376210391346315264 https://twitter.com/id_aa_carmack/status/376210391346315264