Elektrine lite

← Feed

jjj

jjj@piefed.blahaj.zone

Posts

  • View post

    :%s/\s*—/,/g

  • View post

    …which is why I love #[rustfmt::skip] so much! You can do stuff like #[rustfmt::skip] const DIRECTIONS: [[i8; 2]; 4] = [ [0, 1], [-1, 0], [1, 0], [0, -1], ] while still enjoying the convenience of auto formatting elsewhere. Although linters which act on the behavior of code are unequivocally a good thing, e.g. “hey, this comparison will always return false you probably made a mistake here”.

  • View post

    Will it ever finish? Can I keep making a computer in Scrap Mechanic please? It turns out you can make a really fast instruction decoder in Scrap Mechanic if only you can figure out a special bit mask for each ALU operation. It turns out this is really frickity fucking hard to do by hand so I told a SAT solver to do it and it was fine until I asked for all the combinations I wanted and then… This. out.dimacs is 36MB c CNF file written by RustSAT p cnf 217953 1366264 Also dimacs uses “...