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 #Da11 with #rust yeah I skipped two days cause I couldn't get part 2 working.

Uncategorized
2 1 0

Gli ultimi otto messaggi ricevuti dalla Federazione
Post suggeriti
  • #AdventOfCode #Day8 with #rust

    Uncategorized adventofcode day8 rust
    1
    0 Votes
    1 Posts
    7 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
    9 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, #Day2 of #AdventOfCode with #rust and #ruby.Brute force, but in ruby it feels more natural for me to create a bunch of arrays, in rust it seemed easier to fiddle with array indexes. I wonder if I could use some "zero cost" slices?I'm pretty sure I could do both things the same way tho. Also my first rust tests! I'm not sure what the naming convention is supposed to be, the rust book doesn't make it clear imo.https://gist.github.com/riffraff/0aae02aeaa3af9e0320b8d944ab78e2d
  • 0 Votes
    1 Posts
    13 Views
    I’ve been using static-web-server to host a local mirror for my machines, and the experience has been excellent.It’s incredibly fast, lightweight, and easy to run and perfect for those times when you just want to serve files without the overhead of a full web server like Apache.To make it even simpler for Slackware users, I wrote the https://slackbuilds.org/repository/15.0/network/static-web-server/?search=static-web-server#slackware #rust #staticwebserver #http