tom
banner
lauerman.dev
tom
@lauerman.dev
ex-google dev / nintendo addict / (roller)skater boy / lauerman.dev
Thanks! Your approach is great too, and would likely scale better in a real-world environment. Good stuff 😁
December 7, 2024 at 6:53 PM
@patoui.bsky.social has a very nice stream-based solution for reading files that could trivially be applied to Deno.stdin.readable. But alas, it uses @std/streams/text-line-stream and I'm trying to avoid external dependencies 🫠 github.com/patoui/aoc-2...
github.com
December 7, 2024 at 6:39 PM
In the past I've used Node's readFile APIs, but Deno's implementation doesn't support file descriptors at this time. I filed an issue about it last week and, amazingly, it should be fixed in the next release. Still, I'd think Deno would natively support this a bit better github.com/denoland/den...
node:fs readFileSync fails with EISDIR when reading from stdin · Issue #27123 · denoland/deno
Version: Deno 2.1.1 OS: macOS 15.2, Ubuntu 22.04 (WSL) Minimal reproducible example: import { readFileSync } from 'node:fs'; readFileSync(0); Worth noting that the Deno.stdin flavor of APIs seem to...
github.com
December 7, 2024 at 6:34 PM
I love writing my AoC solutions as standalone scripts. This year I was planning to use Node and write in JS, but Deno with built-in TS support is enticing! And now there’s stickers involved?! I’m convinced
November 28, 2024 at 1:26 AM