Skip to content

Piero Bosio Social Web Site Personale Logo Fediverso

Social Forum federato con il resto del mondo. Non contano le istanze, contano le persone

#AdventOfCode #Day7 with #rust

Uncategorized
4 2 8

Gli ultimi otto messaggi ricevuti dalla Federazione
Post suggeriti
  • 0 Votes
    1 Posts
    5 Views
    👻🚂Locomotive graveyard. Lebanon’s ghost train stations stand frozen in time and choked by unchecked plant growth.The first railway opened in 1895 under the Ottoman Empire. It ran from Beirut to Damascus. By the 1930s, Lebanon had joined the Orient Express network via the Taurus Express link through Homs.After decades of decline and wartime damage, the final train service ran in 1990.#Lebanon #Trains #SteamTrain #Steam #Locomotive #Transport #Rust #Train
  • #AdventOfCode #Day8 with #rust

    Uncategorized adventofcode day8 rust
    1
    0 Votes
    1 Posts
    8 Views
    #AdventOfCode #Day8 with #rust I spent an inordinate amount of time on part1 because * imo the problem definition is wrong* it does matter if you put permutations or combinations in the list, even if you filter them out :( Part 2 is basically the same and I already did it in ruby so I'm not doing it again, at least not today.I wanted to do this with union-find but I have yet to get to the chapter about generics and it seems cheating to do it without it :) https://gist.github.com/riffraff/267f1e326e447815ab0ac28f217bc01f
  • #AdventOfCode #Day5 with #rust

    Uncategorized adventofcode day5 rust
    3
    0 Votes
    3 Posts
    11 Views
    @ormai yeah I think it's interacting with this https://doc.rust-lang.org/book/ch15-02-deref.html#implicit-deref-coercions-with-functions-and-methodswhich is indeed very ergonomic, but confuses the hell out me, cause e.g. >= works but arithmetic does not :)
  • 0 Votes
    1 Posts
    5 Views
    so, day 1 #AdventOfCode, the #ruby solution is easy, and the #rust one too.I'm a bit sad rust doesn't seem to have integer subrange types a-la pascal (or I couldn't find them 🤷)rust important bits, if you want to criticize them :)https://gist.github.com/riffraff/7aa3fb332ae9e2d61783b671cf160361