It's interesting that the web streams API for bring-your-own-buffer readers invalidates the reference to the buffer you provide, and you reacquire it after the read completes. Clever way to accomplish Rust-like exclusive ownership within Javascript.

Show thread

One of my favorite things about web streams vs old node streams is that there are no duplex stream objects. Anything that is both readable+writable is represented as a pair of ReadableStream+WritableStream, which helps prevent mixing up what an object is being used for somewhere.

Show thread

Well, with web streams there is a certain architectural question I keep running into: should I make a function take a ReadableStream as an argument, or should I make it return a WritableStream that the user pipes a ReadableStream into?
In most situations the choice feels extremely arbitrary. Usually #1 was a little easier so I did that more often.
I did notice that #1 has the benefit of letting you use bring-your-own-buffer mode readers, though that's not always relevant.

Show thread

using the newish web standard stream APIs (ReadableStream etc) in Deno. Highly prefer them to the old Node.js stream APIs. I feel pretty proficient in asynchronous JS but every time I dealt with Node.js streams I felt like I was jiggling connectors randomly until things worked.

Macil boosted

yall ever get to the end of a book and it feels unsatisfactory and then you read the small print on the last page and it says:

The full version of this story is maintained as a Texinfo manual. If the info program and this story are properly inst

Macil boosted

Strategy game in which you're given a quota of crates and tasked with adding them to a badly-designed arena to balance it out.

Two teams of AI-controlled units fight it out after your modifications, and you win if their scores are within a close enough margin of each other.

Macil boosted
Macil boosted

While we're all focused on the Corona crisis the US government is quietly pushing an internet #surveillance bill that is aimed at abolishing message encryption:

We should probably pay attention to this and spread awareness even if we are not American: eff.org/deeplinks/2020/03/earn

Macil boosted

people think doomguy is constantly consumed by furious bloodlust but actually the inside of his head is just him performing endless fuzzy algebra on his ammo reserves

Macil boosted
Macil boosted

proposal: doom with bones files

- no saving

- if you die, you restart the level with pistol as normal

- but you have a chance to find one of your own corpses, with a subset of its weapons/ammo/health. maybe even a rare chance for a key. nearby monsters will stay dead/hurt

imagine if everyone who started a World of Warcraft account was shipped a goldfish. And they all had to keep their goldfish alive. If the goldfish died, then their WoW account would get closed forever. It'd be fucked up and people would ask blizzard what the fuck.
But we have basically the same deal with reality and these meat bodies we get and everyone thinks it's normal
We need to make reality 2.0
thank you for attending my ted talk

I was dreaming about mario maker this morning, and when my alarm went off, I was still mostly asleep and convinced that my alarm clock was an object in my mario maker dreamspace rather than in meatspace, so I was scared that if I woke up all the way, I would lose access to the dreamspace and wouldn't ever be able to turn off the alarm. I focused on falling back asleep so I'd be able to hit the snooze button on the alarm. It took me a while to reason myself out of that and finally get my alarm.

Macil boosted
Macil boosted
Macil boosted
Macil boosted

downloading five versions of NeXTSTEP at once on the interplanetary file system is an extremely online activity

been waiting all night
what time does sleep happen

Show older
Mastodon

The original server operated by the Mastodon gGmbH non-profit