javascript
class Monorail {
#value;
#size = 1;
constructor(value) {
this.#value = value;
}
bind(f) {
const newThis = f(this.#value);
if (newThis.#size < this.#size + 1) newThis.#size = this.#size + 1;
console.log(`the glaceon is now ${newThis.#size} meters tall`);
return newThis;
}
};
@monorail you can build an interface around a list such that everything using that interface is purrfurming non-deterministic computations, BUT, if you do arbitrary shit to a list directly, you don’t have the guarantee that that abstraction will make any sense
@monorail yeah, not all use cases fur list make sense as a monad. this is actually why it's impurrtant imo to sepurrate the data type from a monad built around it
@Lady no?
@Lady seems to be working pretty ok fur alpine
@monorail a n y w a y look into monadic parsing sometime it's very cool
@monorail if you ever look into coding a monadic parser with nondeterministic output i think the idea of list-monad-as-parallel-universes might click into place fur you
pedantry
@monorail the data types are not monads; the data type and the implementations of the wrapper and the runner functions are what constitute a monad. i mention this because i know of two monads on List; similarly, you could feasibly define two very diffurent kinds of monads around lazy evaluation
@monorail as far as the purractical considerations go, yes, you get it, that’s what you use a monad fur
the thing to observe that you didn’t mention is that the interface to this abstraction/contextualization is extremely general, and exactly reusable line-fur-line with other abstractions, which is neat
#Jortage — after Stripe shitcanned my account due to them no longer allowing donations on their platform (my account was in good standing, as it has been for years), all recurring donations are gone. Currently, we're receiving $340.47/mo out of the $340.47/mo we need to break even!!!!!!!!!!!!!!!!!!
JORTAGE IS FULLY FUNDED!
(100.00%) ■■■■■■■■■■
last updated June 04 23:17 PDT
Please consider pitching in on the new payment processor if you can!
@girls
@girls the big steppies
it’s pronounced “ashling”. canonically a black housecat or any of the grass cat pokémon, but currently experiencing daily TFs. Commewnist. she/it. i automatically change my pfp on the furst post of the day
GlitchCat syscatmin and meowstodev; @ me about techincal problems with the instance, or fur feature requests. i got a job due to some extent to my work on this instance
i have very strong opinions about the sonic furanchise. pokémon has me in a chokehold when it comes to merchandise
available via email with the same username and domain. DM/email for other purrotocols
workplace policy is to clarify that all of my opinions expressed here are my own, and not those of my employer
“all this shit is still incomprehensible but im glad u accomplished something” ―@wallhackio
“i feel mildly relieved that the obscure and esoteric code that i use to build the site will always be definitely outclassed by the obscure and esoteric code that you use to serve it” ―@Lady