Joe Gibbs Politz
banner
joepolitz.bsky.social
Joe Gibbs Politz
@joepolitz.bsky.social
The little-known discordant projection
November 7, 2025 at 5:10 PM
Thank you for your honesty. In my experience when people blame Linux for their problems, it’s usually projection.
November 7, 2025 at 3:43 PM
I guess in contrast cannot be called into.
November 1, 2025 at 10:37 PM
Natural next step after the vacuum tube
October 27, 2025 at 1:50 PM
rust fixes this
what are you replying to?
October 16, 2025 at 4:49 AM
What prints if you press the red printer button
September 10, 2025 at 10:13 PM
(This says to me even *if* we get all the dynamic requires sorted there will still be issues with these kinds of libraries)
September 5, 2025 at 3:55 AM
I think it's possible to get there, someone is going to have to mind-meld with the runtime and bun to do it.

I have another experiment going to see if I can get github.com/Automattic/n... to be bundled into the binary (which is how the image library works).

Currently that's ending somewhat sadly.
September 5, 2025 at 3:54 AM
Ah nice thanks.

I should have said I got nerd-sniped into going through this exercise this morning (github.com/jpolitz/pyre...), even up to saving an image to disk.

Then I moved the binary and it stopped working. We have dynamic requires and they still poke around in node_modules.
github.com
September 5, 2025 at 3:50 AM
And just to confirm, a simple js program that just logs does produce a binary with sensible behavior using the same command, so I don't think I'm goofing on the basic thing to try :-)
September 4, 2025 at 4:57 PM
(The last command prints nothing)
September 4, 2025 at 4:53 PM
At least on my system, the doing the most straightforward thing has no error messages but creates a binary that doesn't produce any output at the terminal (running the compiler blob with `node` and no arguments should print the usage).
September 4, 2025 at 4:53 PM
At a glance that page says “All built-in Bun and Node.js APIs are supported.” which is actually more than Node's support at the time I tried (only supported a subset), but Pyret has a fair amount of surface area these days.

Would love more expertise and input here.
September 4, 2025 at 4:39 PM
This would be great. I went down the rabbit hole of node's support for this for a few days. It's a so close/so far thing.

For example, we use node-canvas and other similar packages to get the image library to work headless, and they rely on a pile of C code, which complicates things.
September 4, 2025 at 4:39 PM
For users who are savvy devs, it's probably better to just npm install pyret-npm as a dependency of the project, and then all the node_modules are local to the working directory and run with `npx pyret ...`
September 3, 2025 at 8:03 PM
Thanks. This is probably fixable by using `require.resolve()` appropriately, and is needed for different --install-strategy settings to work.

We need something like the symlink if we want pyret to work as a global command because we want to generate standalone JS blobs runnable with plain `node`.
September 3, 2025 at 8:03 PM