home.social

#heaps — Public Fediverse posts

Live and recent posts from across the Fediverse tagged #heaps, aggregated by home.social.

  1. Dear #LazyWeb,

    I have an inordinate fondness for the array representation of #heaps: the left child of record `i` is `2i+1`, and the right child is `2i+2`. It's Just An Array, with no management tables or node pointers or any of that fluff. You can even trivially find the parent index of any `i` without leaving your accumulator. It feels like a tool perfectly suited for the 1960s.

    Are there any other approaches like this that you love? Are there extremely space-efficient or code-density-heavy methods for organising data that we don't use because our modern systems are so big and fast?

    I ask because I have a notebook full of #algorithms and #dataStructures aimed at a PDP-8 with 8k of core, as I fiddle with neat ways to make it do things we used to expect from larger more powerful systems.

  2. [Sélection - Match amical]
    États-Unis 🇺🇸1-2🇧🇷 Brésil
    Lindsey est entrée en jeu à la 56ᵉ minute
    Pas de temps de jeu pour

  3. [Sélection - Match amical]
    États-Unis 🇺🇸2-0🇧🇷 Brésil
    84 minutes et un but sur penalty pour Lindsey
    81 minutes et un carton jaune pour

  4. Followup: Using and is really difficult, especially for 3D. I've spent 2 hours trying to put a model on screen, and set ambient lighting.

    Getting the model on the screen was pretty easy, but the ambient lighting has me stumped. All documentation and samples online seem to be out of date, the function they use doesn't exist anymore.

    It's especially frustrating because I could have used , and clicked a few buttons to just set the ambient light. Oof. Think I'll go back to that.

  5. I'm in a really game-making mood. So here's a cube, courtesy of and

    Haxe is a pretty nice language, and I'm really liking it along with Heaps. I do wish there was better documentation, although at least they link to a few example projects which is helpful.

    Next up: figuring out how to rotate the camera with user input, and drawing a plane or triangles instead of a cube.

  6. More #heaps tonight. Reading 15 year old python code and porting it to #Haxe is both challenging and relaxing... I've almost completed the Help Section of the game.

  7. Restarting my work on the #haxe #heaps.io port of Monsterz, an old game from Sam Hocevar. It's nice and cozy to work using this language.