Ancestors

Written by Oinak :ruby: on 2024-12-09 at 19:07

I just completed "Disk Fragmenter" - Day 9 - Advent of Code 2024 #AdventOfCode in #ruby

I abandoned a whole strategy (stuck at off-by-1s) and tried a completely different approach.

You can peek: https://gitlab.com/oinak/advent-of-code-2024/-/tree/main/day09

=> More informations about this toot | More toots from oinak@ruby.social

Toot

Written by Mina No No No on 2024-12-09 at 20:00

@oinak

A bit lengthy, but written so clearly that I understood what you did, despite not knowing Ruby at all.

I guess, nobody said that about my code I publishes this morning. 😁

Good job!

=> More informations about this toot | More toots from mina@berlin.social

Descendants

Written by Oinak :ruby: on 2024-12-09 at 20:21

@mina I had a "clever" version all doing math on indexes/size/values vecause I feared the unfolded-input-size memory impact... but I got stuck on off-by-ones and my brain was oozing out my ears, so I scraped it all and started anew prograing ruby the way I like, very semantic/domain-close, not very perf-oriented.

It took 20s on part 2, so "good enough".

Reading your code I get nostalgic, I learnt Perl long before Ruby (but used it much less) and still see its influence often on ruby's ancestry

=> More informations about this toot | More toots from oinak@ruby.social

Written by Mina No No No on 2024-12-09 at 21:16

@oinak

Although, it's not what I usually do, I totally believe in good semantics.

If I manage to do tomorrow's assignments quickly ("if", because it very well might be a toughy), I shall try to make something readable.

=> More informations about this toot | More toots from mina@berlin.social

Written by Oinak :ruby: on 2024-12-09 at 21:53

@mina you know Larry Wall is going to put you on the "naughty" list, right? 😈

=> More informations about this toot | More toots from oinak@ruby.social

Written by Mina No No No on 2024-12-09 at 21:57

@oinak

I know that very well.

BTW: I learned Turbo Modula in uni in the late 80s.

=> More informations about this toot | More toots from mina@berlin.social

Written by Oinak :ruby: on 2024-12-09 at 22:00

@mina I learned TurboPascal! I wonder if there is a rule forcing universities to teach you something called /Turbo.*/ ?

=> More informations about this toot | More toots from oinak@ruby.social

Written by Mina No No No on 2024-12-09 at 22:11

@oinak

It was all the rage of the time.

Remember the "turbo" button on PCs?

=> More informations about this toot | More toots from mina@berlin.social

Written by Oinak :ruby: on 2024-12-10 at 12:34

@mina yes I am that old, my first "program" (DOS batch) was written on this https://en.wikipedia.org/wiki/PC1512

=> More informations about this toot | More toots from oinak@ruby.social

Written by Mina No No No on 2024-12-10 at 12:37

@oinak

We must be roughly the same age.

My first "real" computer (after the ZX81) was a 286 AT, slightly more powerful than your machine.

=> More informations about this toot | More toots from mina@berlin.social

Proxy Information
Original URL
gemini://mastogem.picasoft.net/thread/113624643183086396
Status Code
Success (20)
Meta
text/gemini
Capsule Response Time
345.499857 milliseconds
Gemini-to-HTML Time
1.749393 milliseconds

This content has been proxied by September (3851b).