- 35,014
- 21,722
You forgot self-modifying code. That was the best!
Last edited:
Wow, @Vanadium 50, that brings back memories ##-## in the mid-'80s I was working as a mainframe systems engineer for a manufacturer of 'IBM mainframe clones' ##-## Gene you-know-who was the founder of the company ##-## we had a problem, in that our otherwise plug-to-plug compatible product, in the running of a particular database product (known as Model nnn ##-## you presumably know the nnn digits) ran fine on the IBM box, but ran extremely slowly on ours ##-## we had a pipelined processor ##-## the Mnnn code called subroutines sometimes hundreds of levels deep ##-## the code was 'optimized' so that a calling routine would modify the STM instruction at the start of the subroutine to save only the registers the contents of which it anticipated would be actually modified in the subroutine ##-## that meant that our machine had to flush the pipeline, etc., and it was a bit of a nightmare ##-## fortunately, the Mnnn vendor had an option to compile/assemble without the STM optimization, and that allowed our customers to carry on well enough . . .Vanadium 50 said:You forgot self-mofifying code. That was the best!
berkeman said:
Oh yes, I once encountered a page of Cobol dense with the infamous ”alter goto”, which did just what the name suggests. No comments or doc of any kind, of course.Vanadium 50 said:You forgot self-modifying code. That was the best!
##\dots## lest we forget ##\dots##PAllen said:Oh yes, I once encountered a page of Cobol dense with the infamous ”alter goto”, which did just what the name suggests. No comments or doc of any kind, of course.Vanadium 50 said:You forgot self-modifying code. That was the best!
Ed Post; Real Programmers Don't Use Pascal; DATAMATION July 1983 pp. 263-265 (Readers' Forum) said:ref: http://homepages.inf.ed.ac.uk/rni/papers/realprg.html
- Real Programmers write self-modifying code, especially if they can save 20 nanoseconds in the middle of a tight loop.
Vanadium 50 said:saves only a little bit of a resource there is plenty of
I had to look that up, because I didn't believe it did what I thought it did. It did. It's not quite as bad as INTERCAL's COME FROM operation, but that language is meant to be a joke.PAllen said:Oh yes, I once encountered a page of Cobol dense with the infamous ”alter goto”, which did just what the name suggests. No comments or doc of any kind, of course.
PAllen said:I once encountered a page of Cobol dense with the infamous ”alter goto”, which did just what the name suggests.

INTERCAL is funny -- using PLEASE DO NOT IGNORE COME FROM risks an error for overpolteness ##\dots##Ibix said:I had to look that up, because I didn't believe it did what I thought it did. It did. It's not quite as bad as INTERCAL's COME FROM operation, but that language is meant to be a joke.
That was dropped in '85.PeterDonis said:This makes me glad that I've never had to program in Cobol.![]()
PeterDonis said:Even now there are still some systems (such as embedded systems) where memory is not such a resource.
Yeah, I remember once when I was in my early days at NASA my boss and I had to write code to capture digital telemetry data, massage it, and transfer it to digital tape. After a fair amount of refinement we got it down to about 130% of real-time. Problem was, the data didn't care about us, it was going to come in at real-time whether we could capture it or not. So we resorted to program self modification at the machine level (assembly language). and FINALLY got it down just below 100% which at first had not seemed possible.Vanadium 50 said:You forgot self-modifying code. That was the best!
I posted this about 5 years ago on a Police forum:Vanadium 50 said:I actually met Gene Amdahl as a young man. Twice, in fact. Spooky smart.
Mainframe Pioneer Gene Amdahl Passes On at Age 92
11-16-2015, 05:19 AM
It was a few days ago but I just found out about it.
http://nytimes.com/2015/11/13/techno...?_r=0&referer=
I worked as a Systems Engineer for Amdahl Corp..
I wept on learning of his passing.
He was a great man.
Every day the Police use technology he played crucial roles in
conceiving, designing, and developing over a span of decades.
The next few times you run anyone's name through NLETS or NCIC,
or any mainframe-based system, please think of Gene Amdahl.
![]()
RIP Mr. Gene Amdahl Sir -- your great work still works -- God bless you and yours.
![]()
Does that include having seen @Vanadium 50 do it in post #29 ?harborsparrow said:But IMO it is not reasonable to ask all students to come up with this. Only a few will be able to, and I only because I saw it done by a student once.
phinds said:Does that include having seen @Vanadium 50 do it in post #29 ?