68 points · by nfriedly · 11y ago · 53 comments
http://androidxref.com/4.2_r1/xref/bionic/linker/linker.cpp#...
This hilarious memset(3) bug was shipping for years:
https://android-review.googlesource.com/#patch,sidebyside,14...
Well, that's what you get when you NIH your libc...
[1]: http://catb.org/~esr/writings/taoup/html/ch02s01.html#id2880...
In terms of installed operating systems and the applications people interact with, Unix or Unix-alike systems win. I don't care if the desktops they use are Windows, or if the phones they run (which have a Unix/Linux kernel usually) don't expose a shell prompt -- the applications they run get the largest part of their functionality through server daemons running on systems running *nix.
There's definitely some Unixes that are still trying to do something different, like DragonFly BSD, MINIX 3, Genode and so forth.
Most of it is academic efforts, as always.
[1] = https://en.wikipedia.org/wiki/Usage_share_of_operating_syste...
OS X 10.10 ships with a version of bash from 2007. Without something like homebrew or macports to install an updated userland the "Unix" core of OS X is rotting away.
As for him being impartial I wouldnt go so far. I also remember that episode and how they showed bouncing ball on Atari with a stupid "see, we can do it too" comment, totally ignoring the fact Atari 520ST was burning >80% CPU just to blit that ball across the screen while Amiga did it all in hardware while CPU was free to run other programs in full preemptive multitasking OS :)
And multitasking on an 8mhz 68000 -- and with no memory protection in the slightest -- was not much of a win. We had multitasking extensions for the ST, too, and after fiddling with them for a while, the use cases were... unclear. Without an MMU it was dubious.
In reality the ST was cheap competition for the Macintosh, not the Amiga. And paired with a hi-res monitor and Atari's cheap laser printer and a copy of Calamus it was a cuthroat priced, quality DTP workstation. Or in a studio as a sequencer hooked up to a bank of synthesizers.
The Amiga found its niche in video applications... and games.
Anyways, this is all off topic to Gary Kildall :-)
Makes one wonder where the Amiga had been had those chips been sitting at the end of a zorro bus rather than on the mainboard.
Indeed, bearing in mind that Jay Miner had designed his previous chips for Atari 8-bit computers, when he worked there. And that Commodore actually bought the Amiga from Amiga Corp ;-)
The ball looks like it's about 128 pixels wide and 100 pixels high, so 8 words x 100 rows. Note how the screen appears to be laid out in a bitplane-minded fashion: you have a 1 plane backdrop, a 1 plane shadow, and a 2-plane bouncing ball. So, you don't have to mask in your background when writing. Load source, write dest.
You'd pre-shift your ball lots of times to make this go quickly. (The shifted copies would have the ball's rotation applied, so you'd get a two-for-one with this.) One ball = 8 words * 2 bitplanes * 100 rows = 3,200 bytes. Plenty of room, even with 512K.
So your loop for one row will go something like this, I guess. Assume A0 points to your 2-plane sprite data, arranged bitplane 0, bitplane 1, bitplane 0, bitplane 1, and so on, for 8 words, then your 1-plane shadow data, again 8 words. Assume A1 points to bitplane 0.
First draw the ball:
MOVEM.L (A0)+,D0-D7 ; 76
MOVE.L D0,(A1)+ ; 12
MOVE.L D1,1*8-4(A1) ; 16
MOVE.L D2,2*8-4(A1) ; 16
MOVE.L D3,3*8-4(A1) ; 16
MOVE.L D4,4*8-4(A1) ; 16
MOVE.L D5,5*8-4(A1) ; 16
MOVE.L D6,6*8-4(A1) ; 16
MOVE.L D7,7*8-4(A1) ; 16
So, 200 cycles per line.Then draw the shadow in the same sort of way into bitplane 2 (this is the reason for the (A1)+ and the -4s everywhere above - it lets you start off with (A1) here, rather than 4(A1), saving you 4 cycles).
MOVEM.W (A0)+,D0-D7 ; 44
MOVE.W D0,(A1) ; 8
MOVE.W D1,1*8(A1) ; 12
MOVE.W D2,2*8(A1) ; 12
(and so on, as above)
So, for that, 136 cycles per line.Cycles per frame = 8,000,000/50 = 160,000; cycles per ball = (200+136)*100 = 33,600.
Taking into account that you'd have to erase the old ball and its shadow, and you'd have to advance your pointer from row to row, and whatnot - maybe 25% in total?
Right, forgot ST cant do 640×512 4bit, so it would have to fake it at 4x smaller picture, that shrinks requirements considerably. What is ST memory bandwidth? something like almost 40KB per frame?
Sure, you can use pre rendered screens, at that point you could argue C64 could do raytracing because this: https://www.youtube.com/watch?v=yxZ7Idi2Bi4 displayed on real C64 with 16MB ram expansion, every frame of animation is 2 frame buffers in 320x200 ~16color NUFLI mode.
On that note here is venix86, IBM XT/AT Unix variant, ready to run on emulators:
http://virtuallyfun.superglobalmegacorp.com/2015/08/14/ventu...
http://www.bbc.co.uk/iplayer/episode/p01z4rrj/horizon-197719...
Edit: Here's the show on YouTube for those that can't get iPlayer or don't want to install Flash: https://www.youtube.com/watch?v=HW5Fvk8FNOQ
OSX along with iOS which controls a large part of the mobile/tablet. Android has it's Linux roots too.
Windows NT set MS up to finally switch to a better OS and discard of DOS based Windows.
The server space continues today to be run by Unix based OS's (Linux, BSD, etc).
What's really interesting is that in 1985 when this video was out, Next was just being formed and they were building NextStep.
A "minimal" boot system that is highly user maintainable etc.
Gives a feeling of control that i kinda missed during the Windows years, where everything was hidden behind cryptic registry entries and services.