leif's recent activity

  1. Comment on Day 9: Mirage Maintenance in ~comp.advent_of_code

    leif
    (edited )
    Link
    Once again, Mathematica feels like cheating: Part 1 Total[InterpolatingPolynomial[#, Length@# + 1] & /@ Import["input.txt", "Table"]] Part 2 Total[InterpolatingPolynomial[#, 0] & /@...

    Once again, Mathematica feels like cheating:

    Part 1
    Total[InterpolatingPolynomial[#, Length@# + 1] & /@ Import["input.txt", "Table"]]
    
    Part 2
    Total[InterpolatingPolynomial[#, 0] & /@ Import["input.txt", "Table"]]
    
    2 votes
  2. Comment on Game recommendations, specifically in ~games

    leif
    (edited )
    Link Parent
    I felt the same about the tank controls in Stephen’s Sausage Roll when I started playing. Eventually I got used to them and I think it was worth it — the game really exemplifies the idea of...

    I felt the same about the tank controls in Stephen’s Sausage Roll when I started playing. Eventually I got used to them and I think it was worth it — the game really exemplifies the idea of teaching a new technique every puzzle. I tried replaying the start of the game a while ago and found almost all the puzzles trivial, not because I remembered the solutions but because I knew the techniques.

    3 votes
  3. Comment on What have you been listening to this week? in ~music

    leif
    Link
    I’ve been listening to Rósín Murphy’s Hit Parade (2023). My favourite track is Fader, which has a fantastically busy production and a positive vibe that feels similar to another of my favourite...

    I’ve been listening to Rósín Murphy’s Hit Parade (2023). My favourite track is Fader, which has a fantastically busy production and a positive vibe that feels similar to another of my favourite albums, The Avalanches’ We Will Always Love You.

  4. Comment on Let's talk about computer algebra systems in ~comp

    leif
    (edited )
    Link Parent
    This has been my experience as well, which sucks because Mathematica’s pricing gets expensive quickly — as far as I can tell the cheapest way as a student to get two licenses is to pay 266NZD per...

    This has been my experience as well, which sucks because Mathematica’s pricing gets expensive quickly — as far as I can tell the cheapest way as a student to get two licenses is to pay 266NZD per year for wolfram one.

    3 votes
  5. Comment on <deleted topic> in ~tildes

    leif
    Link
    My guess is people get multiple invites, and don't bother replying to the ones they don't use.

    My guess is people get multiple invites, and don't bother replying to the ones they don't use.

    5 votes
  6. Comment on What games have you been playing, and what's your opinion on them? in ~games

    leif
    (edited )
    Link Parent
    Agree on Dead Cells. The combat is fluid and feels good, but not enough changes between runs so going through the same areas again and again becomes boring.

    Agree on Dead Cells. The combat is fluid and feels good, but not enough changes between runs so going through the same areas again and again becomes boring.

    2 votes
  7. Comment on What games have you been playing, and what's your opinion on them? in ~games

    leif
    Link
    Outer Wilds is the best game I've played since Dark Souls in 2014. It's a short game but it's absolutely unique in how it makes outer space feel unknown and unforgiving.

    Outer Wilds is the best game I've played since Dark Souls in 2014. It's a short game but it's absolutely unique in how it makes outer space feel unknown and unforgiving.

    3 votes
  8. Comment on Day 20: Jurassic Jigsaw in ~comp

    leif
    Link
    This one was brutal—storing the tiles as sets of coordinates helped a lot.

    This one was brutal—storing the tiles as sets of coordinates helped a lot.

    1 vote
  9. Comment on Day 19: Monster Messages in ~comp

    leif
    (edited )
    Link Parent
    To use a multi-return parser was definitely the way to do this. I didn't, and... part 2 parser data RuleRhs = SubRules [[RuleId]] | Lit Char toParser2 :: IntMap RuleRhs -> Parser () toParser2...

    To use a multi-return parser was definitely the way to do this. I didn't, and...

    part 2 parser
    data RuleRhs = SubRules [[RuleId]] | Lit Char
    
    toParser2 :: IntMap RuleRhs -> Parser ()
    toParser2 rules = choice $ do
      n <- [2 .. 10]
      m <- [1 .. n - 1]
      pure . try $
        replicateM_ n (toParser rules 42)
          *> replicateM_ m (toParser rules 31)
          *> eof
    
    toParser :: IntMap RuleRhs -> Int -> Parser ()
    toParser rules n = go (rules IntMap.! n)
      where
        go (Lit c) = () <$ single c
        go (SubRules subRules) = choice $ fmap f subRules
          where
            f :: [RuleId] -> Parser ()
            f = try . traverse_ (\ruleId -> go $ rules IntMap.! ruleId)
    

    runs in 22ms at least.

    2 votes
  10. Comment on Day 12: Rain Risk in ~comp

    leif
    Link Parent
    Ooh chucking the directions into an array and rotating by moving between elements is a good idea. I manually wrote down the (x, y) -> (-y, x) transformations for 90 degrees left, 90 degrees right,...

    Ooh chucking the directions into an array and rotating by moving between elements is a good idea. I manually wrote down the (x, y) -> (-y, x) transformations for 90 degrees left, 90 degrees right, etc.

    3 votes
  11. Comment on What keyboard do you use? in ~tech

    leif
    Link
    I use a kinesis advantage. It has the arrow keys just below the index and middle fingers of each hand, so they’re actually usable for navigation. I used to use a planck but nowadays having my...

    I use a kinesis advantage. It has the arrow keys just below the index and middle fingers of each hand, so they’re actually usable for navigation.

    I used to use a planck but nowadays having my hands so close together causes wrist pain.

    2 votes
  12. Comment on What's a dish you've made that you're most proud of? in ~food

    leif
    Link
    I’ve been in a tiny Tokyo apartment for the last six months without much room to cook, but I managed to make a stew from seared chicken thighs that was quite delicious. I basically followed...

    I’ve been in a tiny Tokyo apartment for the last six months without much room to cook, but I managed to make a stew from seared chicken thighs that was quite delicious. I basically followed https://m.youtube.com/watch?v=ORcTvgK-vPg , minus the ‘roast’ part.

    How do you make your hummus? Whenever I’ve tried making hummus it has always ended up tasting slightly… grainy? Almost like the consistency of curdled milk, if that makes any sense.

    6 votes
  13. Comment on Google announces "Stadia", a new game-streaming platform with deep YouTube integration in ~games

    leif
    Link
    Here's their website: https://stadia.dev/ They're using Debian on the backend.

    Here's their website: https://stadia.dev/
    They're using Debian on the backend.

    2 votes
  14. Comment on What are you reading these days? #14 in ~books

    leif
    Link Parent
    Which translation? I tried reading Pevear and Volokhonsky's translation of The Brothers Karamazov but couldn't get into it. Now, I'm reading Constance Garnett's translation (formatted and typeset...

    Which translation? I tried reading Pevear and Volokhonsky's translation of The Brothers Karamazov but couldn't get into it. Now, I'm reading Constance Garnett's translation (formatted and typeset by Standard Ebooks, shoutout) which I think flows much better and is easier to read.

    2 votes
  15. Comment on The internet's hidden rules: An empirical study of Reddit norm violations at micro, meso, and macro scales in ~science

    leif
    Link Parent
    It seems like Tildes would benefit from a page which clearly explains the intended purpose and use of each of the site's features, like voting. Perhaps as an update to mechanics?

    It seems like Tildes would benefit from a page which clearly explains the intended purpose and use of each of the site's features, like voting. Perhaps as an update to mechanics?

  16. Comment on What’s something that you wish more people would inform themselves about? in ~talk

  17. Comment on What’s something that you wish more people would inform themselves about? in ~talk

    leif
    (edited )
    Link Parent
    What is a good resource to learn more about stretching, muscles, posture, etc.? It seems like most of the information online has no scientific backing whatsoever.

    What is a good resource to learn more about stretching, muscles, posture, etc.? It seems like most of the information online has no scientific backing whatsoever.

    6 votes
  18. Comment on Share your favorite vegetarian meals in ~food

    leif
    Link Parent
    I like this recipe for lentil soup. Manjula's Kitchen has great vegetarian recipes.

    I like this recipe for lentil soup. Manjula's Kitchen has great vegetarian recipes.

    4 votes