Skip Navigation
InitialsDiceBearhttps://github.com/dicebear/dicebearhttps://creativecommons.org/publicdomain/zero/1.0/„Initials” (https://github.com/dicebear/dicebear) by „DiceBear”, licensed under „CC0 1.0” (https://creativecommons.org/publicdomain/zero/1.0/)SW
swlabr @awful.systems

Only Bayes Can Judge Me

Posts 29
Comments 1.2K
Advent of Code Week 3 - you're lost in a maze of twisty mazes, all alike
  • 17!

    p1 discussion

    Simultaneously very fun and also the fucking worst.

    Fun: Ooooh, I get to simulate a computer, exciting!

    Worst: Literally 8 edge cases where fucking up even just one can fuck up your hour.

    p2 discussion

    I did this by hand. sort of. I mean I didn't code up something that found the answer.

    Basically I looked at the program in the input and wrote it out, and realised that A was essentially a loop variable, where the number of iterations was the number of octal digits A would take to represent. The most significant octal digits (octits?) would determine the tail end of the output sequence, so to find the smallest A you can do a DFS starting from the MS octit. I did this by hand.

    EDIT: code. Not gonna explain any of it.
    class Comp {
      List<int> reg;
      List<int> prog;
      int ip = 0;
    
      List<int> output = [];
      late List<(int, bool) Function()> ops;
    
      int get combo => prog[ip + 1] < 4 ? prog[ip + 1] : reg[prog[ip + 1] - 4];
    
      Comp(this.reg, this.prog) {
        ops = [
          () => (reg[0] = (reg[0] >> combo), false),
          () => (reg[1] ^= prog[ip + 1], false),
          () => (reg[1] = combo % 8, false),
          () => (reg[0] != 0) ? (ip = prog[ip + 1], true) : (0, false),
          () => (reg[1] ^= reg[2], false),
          () {
            output.add(combo % 8);
            return (0, false);
          },
          () => (reg[1] = (reg[0] >> combo), false),
          () => (reg[2] = (reg[0] >> combo), false)
        ];
      }
    
      compute() {
        output.clear();
        while (ip < prog.length) {
          if (!ops[prog[ip]]().$2) {
            ip += 2;
          }
        }
      }
    
      reset(int A) {
        ip = 0;
        reg[0] = A;
        reg[1] = 0;
        reg[2] = 0;
      }
    }
    
    void d17(bool sub) {
      List<String> input = getLines();
      Comp c = Comp(
          input.take(3).map((s) => s.split(" ").last).map(int.parse).toList(),
          input.last.split(" ").last.split(",").map(int.parse).toList())
        ..compute();
      print("Part a: ${c.output.join(",")}");
    
      if (!sub) return;
    
      List<int> sols = [];
      bool dfs(int cur) {
        bool found = false;
        sols.add(cur);
        int sol = sols.reduce((a, b) => 8 * a + b);
        c..reset(sol)..compute();
        if (c.prog
            .whereIndexed((i, e) => i >= c.prog.length - c.output.length)
            .foldIndexed(true, (i, p, e) => p && c.output[i] == e)) {
          if (found = c.output.length == c.prog.length) {
            print("Part b: $sol");
          } else {
            for (int i = 0; i < 8 && !(found = found || dfs(i)); i++) {}
          }
        }
    
        sols.removeLast();
        return found;
      }
    
      for (int a = 0; a < 8 && !dfs(a); a++) {}
    }
    
    
  • Advent of Code Week 3 - you're lost in a maze of twisty mazes, all alike
  • 16!

    p1

    I used A*, though mathematically I would have been fine with Dijkstra's. Also, here's how I remember how to spell Dijkstra: ijk is in alphabetical order.

    p2

    If you've implemented path/back tracking on a search algo before, this wasn't too bad, though instead of tracking best parent you need to track equivalently best parents. Woke AOC trying to normalise families with more than two parents, SMH

  • Advent of Code 2024 Week 2: this time it's all grids, all the time
  • P2 complete

    The issue with my code was that I didn't make a push atomic, i.e. I would move boxes even if their ancestors couldn't be pushed. Making a list of candidate boxes to push solved this.

    Here's the visualisation of the complete solution, though it doesn't show the last 100 frames or so. Please forgive me

    https://imgur.com/a/RL50MaC

  • Advent of Code 2024 Week 2: this time it's all grids, all the time
  • Day 15

    p1

    Pretty easy. Just check in the direction you want to push if you have space.

    p2 DNF

    Currently debugging with test cases from the subreddit. I’ve also created a shitty visualiser for it, stay tuned!

  • Advent of Code 2024 Week 2: this time it's all grids, all the time
  • I didn’t really know what they wanted in part 2, so…

    lol

    I made a pretty shitty animation to render the bots and paused it when the tree appeared. This took me way longer than if I had just looked at the 10000 entry text file that I had already made. If I have the energy I’ll make a screen recording.

  • GM avoids reinventing a bus or a train with this one weird trick

    1
    Are we going to see prediction markets enter mainstream journalism? Taylor Lorenz says yes
  • FWIW, I read this somewhat charitably: I didn't read this article as "I want there to be prediction markets in journalism" as much as "The right-wing fuckos are very into this shit, so expect for it to froth up out of the sewers in 2025." That being said, as discussed elsewhere, many of the finer points are questionable.

    N.B: I am not aware of Lorenz's shit opinions.

  • Advent of Code 2024 Week 2: this time it's all grids, all the time
  • Day 13, day 13 of shirking other responsibilities.

    p1

    Ok. So, I overthought this a little. Ultimately, this problem boils down to solving a system of 2 linear equations aka inverting a matrix.

    Of course, anyone who has done undergraduate linear algebra knows to look to the determinant in case some shit goes down. For the general problem space, a zero determinant means that one equation is just a multiple of the other. A solution could still exist in this case. Consider:

    a => x+1, y+1
    b => x+2, y+2
    x = 4, y = 4 (answer: 2 tokens)
    

    The following has no solution:

    a => x+2, y+2
    b => x+4, y+4
    x = 3, y = 3
    

    I thought of all this, and instead of coding the solution, I just checked if any such cases were in my input. There weren't, and I was home free.

    p2

    No real changes to the solution to p1 aside from the new targets. I wasn't sure if 64 bit ints were big enough to fit the numbers so I changed my code to use big ints.

    I'm looking at my code again and I'm pretty sure that was all unnecessary.

  • Are we going to see prediction markets enter mainstream journalism? Taylor Lorenz says yes
  • Oh yeah, haha. I often face the dilemma dilemma in which I have to choose between ignoring the 'incorrect" usage (i.e. not a choice between two things that are difficult to choose between) and seethe OR mention the correct usage and look like a pedant. Sometimes it's a trilemma, and I'm all over the shop. But more seriously, I usually let it slide and let people use it to mean "a situation".

    I doubt that Lorenz has a dilemma in line with the correct usage. I couldn't fight the urge to steelman, spoilered below, which I suspect this is nothing near what Lorenz had in mind.

    exhausting Steelman within. I only tried to come up with something, it's not a good steelman. I'm so sorry about this.

    In the world that Lorenz posits, where prediction markets somehow represent accurate news reporting, either a journalist participates in the market whilst reporting news (conflict of interest), or they don't, and they are bad at their job (and not performing at your job is unethical, I guess?)

  • Are we going to see prediction markets enter mainstream journalism? Taylor Lorenz says yes

    original link

    “If all of this sounds like a libertarian fever dream, I hear you. But as these markets rise, legacy media will continue to slide into irrelevance.”

    12

    SF tech startup Scale AI, worth $13.8B, accused of widespread wage theft

    8

    In which some researchers draw a spooky picture and spook themselves

    Abstracted abstract: >Frontier models are increasingly trained and deployed as autonomous agents, which significantly increases their potential for risks. One particular safety concern is that AI agents might covertly pursue misaligned goals, hiding their true capabilities and objectives – also known as scheming. We study whether models have the capability to scheme in pursuit of a goal that we provide in-context and instruct the model to strongly follow. We evaluate frontier models on a suite of six agentic evaluations where models are instructed to pursue goals and are placed in environments that incentivize scheming.

    I saw this posted here a moment ago and reported it*, and it looks to have been purged. I am reposting it to allow us to sneer at it.

    *

    !

    9

    Gotta pump tuah and dump that thang

    www.independent.co.uk Hawk Tuah girl faces ‘pump and dump’ allegations as crypto coin collapses

    ‘Hawk Tuah Girl’ Haliey Welch launched her own cryptocurrency, only for it to plummet by 90 percent just hours later

    Hawk Tuah girl faces ‘pump and dump’ allegations as crypto coin collapses
    10

    Elon is constructing a texas compound to trap, err, I mean, house his ex wives and children

    www.nytimes.com Elon Musk Wants Big Families. He Bought a Secret Compound for His.

    As the billionaire warns of population collapse and the moral obligation to have children, he’s navigating his own complicated family.

    Elon Musk Wants Big Families. He Bought a Secret Compound for His.

    Didn’t see this news posted but please link previous correspondence if I missed it.

    https://archive.is/XwbY0

    3

    Should a man be allowed to sell his soul on the blockchain? (Podcast ep dated 23rd February 2022)

    This is somewhat tangential to the usual fare here but I decided to make a post because why not.

    I’ve been listening to the back catalog of the Judge John Hodgman podcast, and this ep came up. This ep is the second crypto based case after “crypto facto” in ep 333.

    John Hodgman is a comedian, probs best known for being the “I’m a PC” guy in the “I’m a Mac” ad campaign from ancient times. In the podcast, he plays a fake judge that hears cases and makes judgements. In this ep, “Suing for Soul Custody,” he hears a case in which a husband wants to sell his soul on the blockchain, while his wife does not want him to do that.

    Some good sneers against the crypto bro husband (in both this case and the other I linked). Brief spoilers as to the rulings in case you don’t want to listen:

    333

    Judge rules that the husband should continue to mine ETH until his rig burns down his house.

    556

    Judge rules that the guy shouldn’t sell his soul, for symbolic reasons.

    Note: I like John Hodgman. He’s funny. He’s not really inside the tech space, but he is good friends with Jonathan Coulton, who is. If all you know of him is the “I’m a PC” ads, he has an entertaining wider catalogue worth checking out.

    0

    Playing energy market has become more profitable than mining bitcoin

    www.economist.com Why Texas Republicans are souring on crypto

    Playing the state’s energy market has become more profitable than mining bitcoin

    > On the hottest and coldest days, when demand for electricity peaks and the price rockets, the bitcoin miners either sell power back to providers at a profit or stop mining for a fee, paid by ercot. Doing so has become more lucrative than mining itself. In August of 2023 Riot collected $32m from curtailing mining and just $8.6m from selling bitcoin.

    Archive link: https://archive.md/O8Cz9

    4
    www.euronews.com Microsoft says EU to blame for the world's worst IT outage

    Up to 8.5 million Windows devices were affected by Friday's IT outage after Crowdstrike's antivirus update went awry.

    Microsoft says EU to blame for the world's worst IT outage

    Kind of sharing this because the headline is a little sensationalist and makes it sound like MS is hard right (they are, but not like this) and anti-EU.

    I mean, they probably are! Especially if it means MS is barred from monopolies and vertical integration.

    28
    bless this jank @awful.systems swlabr @awful.systems

    Occasionally my username appears incorrect

    Wish I had a screengrab of this, but occasionally when I open the awful.systems page, it looks like I've logged in as a different user. Just now the username "autumnal" appeared instead of my own. Don't know how to reproduce.

    This has happened in chrome on macosx a few times, haven't seen it elsewhere.

    3
    the-boys.fandom.com VoughtCoin

    VoughtCoin is a cryptocurrency created by Vought International. On December 15, 2022, Vought International announced that VoughtCoin can be used to purchase digital collectible cards of Homelander. Each authentic and non-fungible card be purchased for 777 VoughtCoin. The use of cryptocurrency to pur...

    VoughtCoin

    TIL that television program “The Boys” has an in universe cryptocurrency as a satire of, well, cryptocurrency in general but also specifically that time when DJT was selling NFTs. They occasionally tweet about it.

    It has a listing on the “BSCScan” crypto tracker under the name “VTC” so someone might have actually minted it? It might surprise some of you that I have no way of telling the realness of such a thing.

    11

    Uncritically sharing this article with naive hope. Is this just PR for a game? Probably. Indies deserve as much free press as possible though.

    9
    www.buzzsprout.com "Going Infinite": Michael Lewis Takes On Sam Bankman-Fried - If Books Could Kill

    Peter and Michael discuss Michael Lewis’s bestselling book about the rise and fall of Sam Bankman-Fried, a young prodigy whose only flaw was that he dreamed too big.Where to find us:&nbsp;Peter's other podcast, 5-4Mike's other podcast, Maintenance...

    "Going Infinite": Michael Lewis Takes On Sam Bankman-Fried - If Books Could Kill

    As is tradition I am sharing this link without having listened yet.

    10

    “Crypto is already a giant video game — and we are here to make it more fun and rewarding.”

    The video game in question:

    !

    11

    An AI beauty pageant? Miss me with that Miss AI.

    www.forbes.com World’s First AI Pageant To Judge Winner On Beauty And Social Media Clout

    In a contest sponsored by Fanvue, models and influencers crafted from artificial intelligence can now jockey for the title "Miss AI."

    World’s First AI Pageant To Judge Winner On Beauty And Social Media Clout
    9
    www.buzzsprout.com "The Better Angels of Our Nature" Part 2: Campus Lies, I.Q. Rise & Epstein Ties - If Books Could Kill

    2 Better 2 AngelsSupport us on Patreon:https://www.patreon.com/IfBooksPodWhere to find us:&nbsp;Peter's other podcast, 5-4Mike's other podcast, Maintenance PhaseSources:Jeffrey Epstein’s Science of SleazePinker’s response to Epstein allegationsHow...

    "The Better Angels of Our Nature" Part 2: Campus Lies, I.Q. Rise & Epstein Ties - If Books Could Kill

    Followup to part 1, which now has a transcript!

    As is tradition, I am posting this link without having listened to it. (too many podcasts)

    15

    Guy who “would convince employees to take shots of pricey Don Julio tequila, work 20-hour days attend 2am meetings” wants to own WeWork again

    www.theguardian.com WeWork co-founder Adam Neumann bids to buy it back for more than $500m

    Former CEO of shared office space rental company has reportedly been in talks with investors

    WeWork co-founder Adam Neumann bids to buy it back for more than $500m
    9

    Google is as Google does

    www.wired.com Google Used a Black, Deaf Worker to Tout Its Diversity. Now She’s Suing for Discrimination

    Jalon Hall was featured on Google’s corporate social media accounts “for making #LifeAtGoogle more inclusive!” She says the company discriminated against her on the basis of her disability and race.

    11
    www.abc.net.au Man vanishes after allegedly pocketing about $500,000 in cryptocurrency account error

    A Mildura man has allegedly pocketed hundreds of thousands of dollars after a cryptocurrency trading platform accidentally added an extra zero to the funds in his account.

    Man vanishes after allegedly pocketing about $500,000 in cryptocurrency account error
    8
    news.yahoo.com Colorado pastor accused of pocketing $1.3M in crypto scheme says 'Lord told us to'

    A Colorado-based pastor for an online church accused of pocketing $1.3 million through a cryptocurrency fraud scheme told followers in a video statement that the Lord told him to do it.

    Colorado pastor accused of pocketing $1.3M in crypto scheme says 'Lord told us to'
    4