Live data from Hacker News

BBC BASIC raytracer in 432 characters

mastodon.me.uk

1–10 of 96 posts

Re: BBC BASIC raytracer in 432 characters

#6
post #4

In the replies underneath, someone ran it on a real Acorn Electron computer (6502 at 1 MHz), where it completed in 8 hours and 40 minutes. Not too bad really.

that's astounding; i would have guessed months or years

BBC BASIC is surprisingly efficient for an interpreted language. It kind of had to be, running on processors that slow.

Re: BBC BASIC raytracer in 432 characters

#9
Ok, this is probably a dumb question: I get that the code traces the rays for this scene, obviously — but where is the scene, then? That is, where is the “data” (as opposed to the algorithm) that says “there’s a sphere at coordinates x,y,z with radius r, and here’s the other one, and here’s the checkerboard plane”?

Re: BBC BASIC raytracer in 432 characters

#10
post #4

Earlier quoted context omitted.

that's astounding; i would have guessed months or years

BBC BASIC is surprisingly efficient for an interpreted language. It kind of had to be, running on processors that slow.

Some good discussion of that on The BBC BASIC wiki entry: https://en.wikipedia.org/wiki/BBC_BASIC (paragraph beginning "Due to a number of optimizations[…]".
Post reply on HN