7
lopu
3y

Have I ever done acid?

No, but I have used await in a forEach loop...

Comments
  • 4
    The forEach method can’t be asynchronous. Use for await of instead.
  • 3
    @wackOverflow Or, if you fancy concurrency, Promise.all and Array.map
  • 1
    @homo-lorens depends on the use case but yeah that’s a way to do it. Can look messy though.
  • 0
    @wackOverflow It can also cause memory spikes because you are most likely parallelising an unknown number of data retrievals.
  • 0
    @wackOverflow However I can't imagine it looking messy unless the async function isn't somewhat pure.
  • 0
    I think the anamorphism is the analog to acid. Or the hylomorphism maybe, considering information might be lost in singularities?

    I'm not sober enough for this shit

    https://en.m.wikipedia.org/wiki/...

    So I'd say the universe is like a recursive unfolding loop mapping into some Functor data structure, every Planck tick endlessly reducing and generating based on neighboring types, presumably started with some seed value(s?) 13.7B years ago. It's an unfold, generating infinite fractals at every scale.

    I would like it if, when time ends, it folds in on itself and ends with a 1.

    1 is a pretty neat number, it has so much identity.

    Or maybe null? Nil? Bottom? Big crunch throws exception? Gross, I don't like exceptions. It would be nice to end on a Maybe monad, an Option. The universe dies, and all that's left is an unknown, an either-nothing-or-something. Maybe it reduces into the seed value of the next universe.
  • 0
    Oh this rant is not about acid sorry ignore me
  • 0
    Oh wait no don't make it a hylomorphism, that would probably optimize the universe away 😱

    I mean we'll all be incinerated to dust at some point in life... So maybe just as well? Is there value in living life as an intermediates, if the universe dies at some point?

    Maybe we should make software less efficient. Don't do quicksort... use something slower, let your program enjoy it's pointless runtime for a bit longer before it is forever extinguished. Let it experience those processing cycles to the fullest.

    Although maybe the halting problem is also there for the universe though, maybe we just assume there will be an end, maybe the universe stabilizes into an infinite loop 🤔

    Oh and maybe don't use 300μg...
  • 0
    @bittersweet thanks for the good read.
Add Comment