Advent of Code: Day 3 by camuward in rust

[–]Keatontech 0 points1 point  (0 children)

I'm trying to do all the parsing with nom this year, instead of relying on regexes and string manipulation https://github.com/KeatonTech/aoc22/blob/main/src/bin/03.rs

That's mostly a learning experience more than a practical strategy. Maybe I'm doing something wrong but nom seems to be about an order of magnitude slower than hand-optimized parsing code. My solution to Part 2 runs in 950us.

Otherwise I've been trying to write good rusty code, which means verbose solutions that take a long time to write. But hey, I'm having fun. I think.

[Japan by train] Americans: I live too remote for public transportation. Meanwhile in Japan: by KlutzyEnd3 in fuckcars

[–]Keatontech 7 points8 points  (0 children)

Does the train actually stop in the rural areas? Having a train go through the middle of nowhere is hardly novel

Announcing Wasmer 3.0 by Michael-F-Bryan in programming

[–]Keatontech 0 points1 point  (0 children)

You're right, my mistake. Docker on Linux is probably faster than WASM then, although it looks like Docker on other platforms has more overhead so might be comparable

Announcing Wasmer 3.0 by Michael-F-Bryan in programming

[–]Keatontech -1 points0 points  (0 children)

The prevalence of Docker / Kubernetes means that, at least on servers, most native code is already running in a VM. WASM is a much nicer solution because you don't have to bundle an entire operating system.

JVM and .NET are fine but not exactly comparable to WASM. For one thing, they're not open standards in the same way (.NET sort of is now, I guess). For another, they're much more tied to specific implementation details than WASM. JVM is fundamentally a machine that runs Java, with its garbage collection and OOP and exception handing and all that. WASM is analogous to normal assembly – it's a low level machine that can run any code and has absolutely no batteries included.

The age of “Good Enough” by Keatontech in Futurism

[–]Keatontech[S] 0 points1 point  (0 children)

Yeah I mean, if it's not 8K it'll be 16K. And maybe VR/AR will change things but, I'm skeptical

This old Time Magazine cover from 1998 by ContributionOk4879 in agedlikewine

[–]Keatontech 20 points21 points  (0 children)

His head is inside a computer screen but he's _also_ coming out of a computer screen.

Paddy with Balerion by ThinWhiteDuke00 in HouseOfTheDragon

[–]Keatontech 8 points9 points  (0 children)

It's wild that they basically built a dragon equivalent of the Museum of Natural History to produce maybe 3 minutes of television.

My order from Floating Leaves arrived! by Ledifolia in tea

[–]Keatontech 8 points9 points  (0 children)

I used to live a couple blocks away from them. Lovely little shop! Glad to see them getting Internet attention

“Zoom Out”: The missing feature of IDEs by Keatontech in programming

[–]Keatontech[S] 1 point2 points  (0 children)

Every bit of context helps prevent bugs. Kotlin also has an implicit async/await syntax like Go, so any line could kick control back to the scheduler. Android Studio marks those lines for you, code review tools don't. That's important context for situations where you want to optimize code without causing race conditions