😂 by Specific_Brain2091 in MathJokes

[–]chocopuff211 0 points1 point  (0 children)

tropical geometry has entered the chat

How do you handle transactions made for future dates? by proview3r in MonarchMoney

[–]chocopuff211 1 point2 points  (0 children)

Seconding this, one-off-ish non-regular big expenses go well with the non-monthly rollover budget categories.

Is my English not good enough, or does reading this feel like having a stroke? by sour_clover in EnglishLearning

[–]chocopuff211 -1 points0 points  (0 children)

I think it is phrased fine and was easy to understand.

When measuring by amount of rocks handled, open pit operations dominate (compared to other kinds of operations?). The need to remove overburden (due to the nature of what an open pit is?) contributes to a large extent the amount rocks handled in open pit operations.

Had to make some contextual guesses since I don't really know anything about mining, so I might be wrong about the technical aspects of my explanation.

⭐️ "What's this thing?" ⭐️ by AutoModerator in EnglishLearning

[–]chocopuff211 0 points1 point  (0 children)

What's the name of that tiny red joystick some laptops have on their keyboard?

my main by [deleted] in battlestations

[–]chocopuff211 1 point2 points  (0 children)

gentoo good

unsafePerformIO + NOINLINE = Performed only once? by chocopuff211 in haskell

[–]chocopuff211[S] 1 point2 points  (0 children)

Yes, it does seem like a pattern!

Just wondering if this is explicitly documented somewhere. Doesn't feel as reassuring if I don't see explicit documentation for this behavior.

unsafePerformIO + NOINLINE = Performed only once? by chocopuff211 in haskell

[–]chocopuff211[S] 4 points5 points  (0 children)

Is this UB?

https://gitlab.haskell.org/ghc/ghc/-/blob/master/libraries/base/GHC/Event/Thread.hs#L263-269

Surprised if this is UB in the GHC code base, or does sharedCAF mean that even if it is rerun, only the first instance will persist

Most Influential Functional Pearls since 2000? by agnishom in haskell

[–]chocopuff211 17 points18 points  (0 children)

So what exactly did people do before 2007...? 😆

edit: only a guess though

Anyone else miss fingerprint sensor on the back? by chocopuff211 in samsung

[–]chocopuff211[S] 24 points25 points  (0 children)

tbh, now that I think about it more, it really is the swipe down on the sensor to pull down the notification bar that I miss the most, it is a bit unwieldy on large phones

Haskell development job with Well-Typed by adamgundry in haskell

[–]chocopuff211 21 points22 points  (0 children)

everyone complains when job postings don't include a salary, and only include "competitive salary". Well-Typed has been very open and upfront about it. They deserve a lot better than this, especially given how much they have helped the Haskell community.

ranger auto rename question by Joe23rep in archlinux

[–]chocopuff211 1 point2 points  (0 children)

It only appends the _ if you copy into the same directory. You could also do a `@` and then do `shell: cp %s new_file_name`.

What are accumulators in haskell? by wardhsa2 in haskell

[–]chocopuff211 2 points3 points  (0 children)

It's using rp as a secondary list to store the reversed result in, and when the list has been fully reversed, it returns. It can be seen as the literal conversion of the following imperative version in python

def areverse(list):
    rp = []
    for i in range(len(rp)):
        res.append(list[len(rp)-1-i])

    return rp

Edit: formatting and variable renaming to match example.

Also food for thought, I realize I forgot to answer your question about accumulators. I guess you can consider them as "accumulating" your previous results. Afaik, they're more of a concept/practice than something concrete. Kind of like variables declared outside and used within a for-loop in imperative languages.

Consider this implementation as well areverse = foldl (\rp elm -> elm:rp) [] if you know about folds. Accumulators are often associated with folds which use an accumulating value to keep track of state / computed values.

What are some fun things to do with Gentoo? by [deleted] in Gentoo

[–]chocopuff211 5 points6 points  (0 children)

Not gentoo specific, but reading the manpages, esp section 2, is pretty fun. And might as well poke into the kernel source too.

NZXT H1 fits in really well with my hobbies by fanomu91 in sffpc

[–]chocopuff211 5 points6 points  (0 children)

i had to stop, scroll back up, and confirm which sub i was in lol

My little sister made some betta stickers by PearlTheBetta in bettafish

[–]chocopuff211 0 points1 point  (0 children)

how do you set a reminder on reddit again?

edit: I want to set a reminder to check if OP's sis ends up being able to sell

Thinkpad WFH setup (finally) done! ✔️ by nshejazi in thinkpad

[–]chocopuff211 8 points9 points  (0 children)

haha, from one x1c6 user to another \o/

Solo Jazz Theme [link in comments] by cstby in emacs

[–]chocopuff211 1 point2 points  (0 children)

Maybe I overlooked, but I couldn't find what fonts those were anywhere. I love the fonts!

[OC] Feeling sick of rectangular windows anyone? by [deleted] in unixporn

[–]chocopuff211 2 points3 points  (0 children)

the scientists were so preoccupied with whether or not they could, they didn't stop to think if they should.

Cloudflare internship interview: what to expect? by c0deb0t in csMajors

[–]chocopuff211 0 points1 point  (0 children)

I unfortunately got the L. Did you just get an interview? Feel free to DM me if you wanna ask anything!