Hacker Newsnew | past | comments | ask | show | jobs | submit | erwincoumans's commentslogin

CentralComputers is worth visiting, if you were into Frys.

It is common for header-only libraries: you need to include this header in one c++ using the macro for linking (don't use that macro in other c++ files to avoid duplicate symbols). In C++, you can declare a function as many times as you want, but you can only define it (write the actual body) once in the entire project.

I understand that part, but I don't see why do this instead of basic Makefile or CMake setup. It seems like more work than a regular linker at that point. For what purpose?

Because not everyone is using Makefiles or CMake.

A true header-only library should be build-system agnostic and this is one way to do that.

We can argue about build systems for C++ all day long and never come to an agreement. With this approach this piece of code can be used anywhere.


We can also argue C++ is not a scripting language, which is what is approach is all about.

When C and C++ were the main programming languages during the 1990's, and commercial compilers abounded strangely we could manage handling all those build systems approaches.


I think you are romanticizing the past. I’m pretty sure integration of third party C or C++ code sucked as much back then if not more. You just didn’t have as much of those dependencies because open source was in its infancy and the number of available libraries was much smaller too.

I highly recommend starting with the very affordable and well documented Lerobot SO101 arms. You can 3d print or buy parts and actuators, camera. Lots of tutorials and training policies, data collection and simulations. https://huggingface.co/docs/lerobot/en/so101


Indeed, magic. How about the Commodore 64, there was a game (Eindeloos, Radarsoft, 1985) within 64kb that has a huge map. Someone recently (after 40 years!) extracted the map (500 screens) and the png alone is 800kb. See the story an zoom in and try finding the little heart in the map! https://adayinthelifeof.nl/2025/03/07/endless.html


Elite on the BBC Micro - which had 32kB of RAM, a huge chunk of which was required for the screen - managed to have eight galaxies with 256 distinct planets each.

Everything about them was procedurally generated, even the names, which required some clever code to ensure none of them used rude words.


> which had 32kB of RAM, a huge chunk of which was required for the screen

People assume 10KB, with the BBC Micro¹² version's version using a mix of modes 4 & 5 (320×256×1bbp and 160×256×2bbp respectively), but as well as the split screen trickery they tweaked the graphics hardware in more detail than that to create custom modes. There were only 248 scanlines and either 256 or 128 pixels per line, so the display took 7.75KB. As well as leaving more memory for the rest of the code, this reduced the amount being drawn, so helped keep the draw speed acceptable.

This left about 24KB⁴ for the rest of the code and its working data. Still a very impressive feat!

> - managed to have eight galaxies with 256 distinct planets each.

IIRC it was originally going to be larger than that, they toned it down a bit but not due to technical limitations (the galaxy generator code would not have needed to be any larger).

--------

[1] The Electron lacked support that allowed the split screen to work (one of the chips removed meant the required timing signal wasn't available), so it was all monochrome though still with the custom resolution and taking 7.75KB.

[2] The version enhanced for the Master series use a mix of mode 1 and mode 2 to enable more colours, 2bbp for the view of space and 4bbp³ for the dashboard. This still used the custom resolution, so took 15.5KB rather than 20KB. This was achieved by using the shadow RAM bank to host the screen display (some programs instead used this feature to implement double-buffering for smoother screen drawing), allowing the screen to take twice as much space while also freeing up memory to hold things that would have been loaded from disc when needed⁵ in the Micro version.

[3] Actually effectively 3bbp as the BBC hardware did 8 colours and flashing variants instead of 16 colours (which most other systems used to provide two shades of 8 colours, using the 4th bit as an intensity flag).

[4] less a few chunks here & there needed by code in system ROMs when doing things like reading extra data from the floppy

[5] There were two chunks of code, one for in-flight and one for while docked, that were swapped in as you entered or left a space station. On the Micro these were pulled from disk each time, on the Master they could both be in RAM. If playing from cassette you had a cut-down version of the game that didn't need this split.


that is a legitimate post by itself


If only exfat had symbolic links.


Nice shots, would fit well in the Baraka (or Samara) movie.


Yes, an amazing and detailed post, enjoyed all of it. In AI, it is common to use jit compilers (pytorch, jax, warp, triton, taichi, ...) that compile to cuda (or rocm, cpu, tpu, ...). You could write renderers like that, rasterizers or raytracers.

For example: https://github.com/StafaH/mujoco_warp/blob/render_context/mu...

(A new simple raytracer that compiles to cuda, used for robotics reinforcement learning, renders at up to 1 million fps at low resolution, 64x64, with textures, shadows)


Pretty complex project, brings up C64 assembly programming memories (with some freeze cartridge with monitor to enter asm OP codes). It would be interesting to see all the actual LLM queries to get those results.


I wonder if they used silent computer fans? I love the quiet Noctua fans, and replace all noisy fans with them: fans in pc, wifi router, playstation 5, mister fpga, robots, jetson orin etc.


I use a bank of eight Noctuas to vent from the rooom with our wood stove to the main hall. Then use more units with two sets of Noctuas ganged to move from the hall to various remote rooms. Been using them for more years than I can remember. Silent, never failed yet. It has been great vs. using house fans (my initial approach). BTW: Our local thrift store has a huge amount of various DC power supplies from donations. I sift thru them to find the right volts/amp combo needed for the ganged units, and generally spend about a dollar per supply. HTH, RF.


I tried Bluesky and wanted to like it. My account got flagged as spam, still no idea why. Ironically it could be another way of loosing ones voice to an LLM :)


> My account got flagged as spam, still no idea why.

This happened to me too, 3 weeks ago. The email said why I got flagged as spam, I replied to the email explaining I actually was a human, and after some minutes they unflagged my account. Did you not receive an email saying why?


If you follow certain people, various communities will, en mass, block you and report you automatically with software "block lists". This can lead to getting flagged as spam.


Well that's the thing -- you might be flagged as spam in the Bluesky PDS, but there are other PDS's, with their own feeds and algorithms, and in fact you can make your own if you so choose. That's a lot of work, and Twitter is definitely easier, but atproto means that an LLM cannot steal your voice.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: