5 ms·
Ray tracer in a boot sector
- ceeam 2y ago[flagged]
- MarceColl 2y ago[flagged]
- deleted 2y ago[deleted]
- jacksonhacker 2y ago[dead]
- suchwow99 2y ago[flagged]
- callumprentice 2y agoMy first thought at seeing something pretty in so few bytes was: “perhaps you could just run through every value in each of those 484 bytes and find other gems in there too” then I did the math - or tried to… :)
- grishka 2y agoJust a reminder that most of the modern cryptography uses keys that are at most 32 bytes.
- dahart 2y agoCheck out the BBC micro version in 432 chars (443 bytes). https://bbcmic.ro/?t=9ctpk https://bbcmic.ro/?t=9ctpk ... That cuts your problem down by a factor of ~5.5e98. ;) Or even a lot more if you limit to readable ascii. I'd be curious if you did that how many of the tries would result in a valid runnable program.
- tromp 2y agoYou don't need to go anywhere near 400 bytes to find inscrutable programs, if your programming language is concise enough. Even 8 bytes, or 64 bits to be precise, offers plenty unchartered territory for finding new gems in lambda calculus [1], one such recent discovery being a 49 bit program whose output exceeds Graham's number. [1] https://oeis.org/A333479 https://oeis.org/A333479
- zarathustreal 2y agoHonestly why bother with actual bytes? Why not just take Wolfram’s approach of looking through programs encoded as cellular automata?
- jakeogh 2y agoFrom the oeis link: https://tromp.github.io/blog/2023/11/24/largest-number https://tromp.github.io/blog/2023/11/24/largest-number
- tromp 2y agoAcutally, I only learned about the 49 bit program after writing that blog entry. It is described in https://github.com/tromp/AIT/blob/master/fast_growing_and_conjectures/melo.lam https://github.com/tromp/AIT/blob/master/fast_growing_and_co...
- peignoir 2y agomov al,0x13 brings back memories :)
- mysterydip 2y agoI love these little projects, and the efficiency of the resulting code. I wish I was skilled enough to turn it into a game or something, though.
- AlexeyBrin 2y agoThe author has two books about writing small games that can run in the boot sector. First book also has a quick course in 8086 Assembly: Programming Boot Sector Games More Boot Sector Games
- YawnNews 2y ago[flagged]
- Zeetah 2y agoUnbelievable! I'd be very grateful for an explanation for how the first three lines in the Atari basic version that have only numbers and no alphabet work? I just can't remember what Atari basic does, how that data is presented to be read into the array... Thanks!
- datameta 2y agoUnreal codegolfing!
- itvision 2y agoIf you like it, you definitely want to visit these two websites: https://www.shadertoy.com/ https://www.shadertoy.com/ https://www.pouet.net/ https://www.pouet.net/ The last demo party was this one: https://www.pouet.net/party.php?which=1550&when=2024 https://www.pouet.net/party.php?which=1550&when=2024 And this is 64K: https://www.pouet.net/prod.php?which=96589 https://www.pouet.net/prod.php?which=96589 Something out of this world.
- userbinator 2y agoAnd this is 128 bytes: https://www.pouet.net/prod.php?which=63518 https://www.pouet.net/prod.php?which=63518 It appeared on HN too: https://news.ycombinator.com/item?id=7940212 https://news.ycombinator.com/item?id=7940212
- nhatcher 2y ago> Thanks to Peter Ferrie for helping me to save 23 bytes That's the spirit!
- rajnathani 2y agoAnother masterpiece from Oscar Toledo. Context about him and the Toledo family: https://hn.algolia.com/?dateRange=all&page=0&prefix=true&query=Toledo%20family&sort=byDate&type=comment https://hn.algolia.com/?dateRange=all&page=0&prefix=true&que...
- punk-coder 2y agoI have the authors Programming Atari 2600 Games and really enjoyed it. I started my professional programming career programming in Assembler on an OS/360 mainframe back in the mid 90s and it really helped me starting out at such a low level. It was enjoyable revisiting Assembler while going through his book.