I have the luck of having written GPU code on the base pixel shader on a title (Halo 4) that sold on the order of 10 million copies, first game I ever worked on. A back of the envelope calculation for how many times this code has been executed since 2012: 1e7 copies * 10 hours * 60 minutes * 60 seconds * 30fps * 1280 * 720 ~~ 300 quadrillion
According to Wolfram Alpha [1], it's 9953280000000000000, which is 10 quintillion! :O [1] https://www.wolframalpha.com/input/?i=1e7+*+10+*+60+*+60+*+3...
Ask HN: Oldest code you have written that is still in use?
261–270 of 363 posts
Re: Ask HN: Oldest code you have written that is still in use?
#262I bet I have most people beat here, especially with web software. I released the first content management system for websites back in about 1995. It was a fully database driven system with different post types, much like WordPress in design, and editable page content. About 15 years ago, I wrote an entire web-based system for managing an online grocery delivery company. The whole site runs off of version 2 of that co…
I found at least one live instance of it still running: www.uwo.ca/cgi-bin/cgiemail/somedept/questions3.txt
I'm not sad that it's mostly replaced.
Re: Ask HN: Oldest code you have written that is still in use?
#263I posit if you want to make sure your code survives you, write video game code. Nevertheless, my own examples are all non-games. In the early nineties I wrote a program in Turbo Pascal to manage grades and print report cards, I heard one elementary school in my home town was using this until 2012. On one of my first web programming jobs, I made a cold fusion-like template interpreter and ecommerce engine in C, that w…
I dunno, firmware seems like a pretty safe bet too. I wrote seek algorithm firmware for Quantum's Atlas series of SCSI disk drives in the late 1990s, I suspect there are still a few of those spinning out there somewhere.
Re: Ask HN: Oldest code you have written that is still in use?
#264There's an entire community of video game hackers (smwcentral.net) using a cross-assembler I wrote in 2001 named xkas. I added a few minor patches and by early 2004 I had released the final version, v06. I never really intended for anyone to use it seriously. I made it for myself, but went ahead and posted it online anyway. It is a 1500-line single-file, nearly-commentless, nearly-spaceless abomination of code with n…
Of course they did
Re: Ask HN: Oldest code you have written that is still in use?
#265I designed some of the electronics and wrote some firmware code for the Bell AH-1S Cobra in 1978 1979. The system is still flying as I see the external parts of the system in news clips. Does that count? Beat that! Mean looking image of a parked up one - the red bag covers part of the system: http://www.vaq136.com/misawa/cobra73418-017b.jpg
Re: Ask HN: Oldest code you have written that is still in use?
#266Earlier quoted context omitted.
I couldn't find said example (sorry), but I did find one of his other examples of abusing the assembler: http://bin.smwcentral.net/u/1686/boredom.asm You won't believe me unless you try it for yourself, but ... download xkas v06 here: http://www.romhacking.net/utilities/269/ Then download the above boredom.asm. And now run the following on the command-line: touch boredom.sfc xkas boredom.asm boredom.sfc Note again th…
I'm not a black hat, what is going on?
He exploits the parser to corrupt the stack frame, and executes raw x86 instructions embedded in that file.
How exactly it converts that pile of gibberish into a valid x86 program is beyond even my comprehension.
Alcaro's always been a wizard at stuff like this. Here's an example of an SNES ROM image he crafted to execute native x86 code from inside ZSNES: https://www.youtube.com/watch?v=Q3SOYneC7mU (Yes, you can potentially get a real PC virus from loading up an SNES ROM in ZSNES. Or a specially crafted source code file in xkas v06.)
Re: Ask HN: Oldest code you have written that is still in use?
#267I bet I have most people beat here, especially with web software. I released the first content management system for websites back in about 1995. It was a fully database driven system with different post types, much like WordPress in design, and editable page content. About 15 years ago, I wrote an entire web-based system for managing an online grocery delivery company. The whole site runs off of version 2 of that co…
Re: Ask HN: Oldest code you have written that is still in use?
#268In 2009-ish I wrote a Java-based templating system for Autosys' Job Information Language. If you don't know it, Autosys is a horrible, horrible, job management and scheduling system. You define these little files (.jil extension) that specify not only the job definition (command, user, cron-like schedule, etc.), but also its dependencies (which job must run before this one, what runs after...). Nothing wrong with tha…
We have an old Oracle PL/SQL system which wrote out these .jil files which were to be picked up by Autosys, built in around 1998. When Autosys was replaced we didn't touch the old PL/SQL code, .jil file parser was written so the jobs could be scheduled through Quartz instead.
Would have been easier to replace the whole job creation and scheduling system instead of just the Autosys part.
Re: Ask HN: Oldest code you have written that is still in use?
#269A few times I've started a game programming job and found my code there already.
Recently someone ported it to C# where it can live on in Unity games.
Re: Ask HN: Oldest code you have written that is still in use?
#270Earlier quoted context omitted.
I like this: http://www.romhacking.net/utilities/269/ "Newer versions have been released, however contain poor documentation, and removal of features that can be found in v0.06. Version 0.06 is still considered the best version available by most ROM hackers until the author addresses the shortcomings of subsequent versions."
There's a reason I stopped associating with that scene/site years ago. Almost everyone in it is toxic and stuck in their rebellious teenage years. Case in point: http://www.romhacking.net/forum/index.php/topic,21797.html The newer versions are called bass, and you can compare yourself here: http://byuu.org/tool/bass/ There is full documentation of every possible command, the code is readable by human beings (eg varia…
(eg. if you add {macro}, continue to support !macro as well)
Sometimes you do find that you've painted yourself into a corner, though.