6,853 karma · joined Feb 21, 2011 (15y ago) · 549 submissions
comment 8mo ago · link · parent
Anyway, I skimmed the file for you this time, and basically you're either correct or wrong, depending on your definition of "error checking." The code handles error conditions by aborting the process. Seeing as it's a standalone CLI program and not a library meant for reuse, safely shutting down with a meaningful message sounds like fair game to me.
comment 9mo ago · link · parent
I am guessing that Python, like Ruby, is dynamic enough that it's impossible to detect all typos with a trivial double-pass interpreter, but still.
Wonder if there was ever a language that made the distinction between library code (meant to be used by others; mandates type checking [or other ways of ensuring API robustness]), and executables: go nuts, you're the leaf node on this compilation/evaluation graph; the only one you can hurt is you.
comment 9mo ago · link · parent
How about "Hey, your Bean ain't sprouting"? :)
I'm sorry, I feel like I'm not communicating this properly. Um, have you ever discussed with someone a book or a TV show that was translated into your language? Did you have problems referring to the exact parts you liked or disliked? :)
comment 9mo ago · link · parent
class Bean {
private boolean sprouted;
public void sprout() {
this.sprouted = true;
// ...
}
}
or data Bean = Dormant | Sprouted
sprout :: Bean -> Bean
sprout Dormant = Sprouted
sprout Sprouted = -- aw, beans, we could have modeled
-- this state as impossible to construct,
-- but you chose runtime checks, so
-- here we are.
As for pointing to the source line, I think JavaScript people solved that one for us with source maps. Just because we download and execute a single 4Mb line of minified code, doesn't mean we can't tell which line of the original source caused the error. :)comment 9mo ago · link · parent
Imagine all the hours saved that are currently spent on tired tabs vs spaces debates, or manicuring .prettierrc, etc etc. The color of the bike shed might matter (sometimes a lot) to some people, I know, but it's storing bikes away from the elements and thieves that is the goal, not obsessing over optimizing something that is demonstrably a subjective matter of taste.
comment 9mo ago · link · parent
I guess Unison is the closest to this platonic ideal right now? https://github.com/unisonweb/unison/issues/499
40.
Pipelined Relational Query Language, Pronounced "Prequel"(prql-lang.org ↗)
66 points · by dmit · 9mo ago · 58 comments
41.
repgrep – Interactive Find/Replace(github.com ↗)
2 points · by dmit · 9mo ago · discuss
comment 9mo ago · link · parent
As for financial database concerns, if you're serious about including a project like that in your system, you have thorough correctness and performance testing stages before you commit to it. And once it passes the hurdles, at that point what difference does it make if it's written in a beta language, or a bunch of shell scripts in a trench coat, or whatever.
comment 9mo ago · link · parent
Check out how the precursor of this project did it! https://news.ycombinator.com/item?id=44719222
> I built a basic CNN trained against penises and swastikas, and then anything that doesn't hit the 63% confidence score gets sent to a mod queue, a vibe-coded fish-tinder (https://bsky.app/profile/bigass.bsky.social/post/3luvikxn3f2...).
51.
Nannou – A creative coding framework for Rust(github.com ↗)
59 points · by dmit · 10mo ago · 19 comments
comment 10mo ago · link · parent
Proclaiming oneself a centrist might seem like a noble, moderate position. But in 2026, with the Overton window basically being shifted outside the frame?
comment 10mo ago · link · parent
Edit: the two configuration.nixen has since been merged in a single dotfiles repo, which also covers my Macbook via https://nix-darwin.org.
comment 11mo ago · link · parent
comment 1y ago · link · parent
Telling prospective employees that if you're not ready to work 60-hour weeks, then what the fuck are you doing here? for one.
> Zig does force some safety with ReleaseSafe IIRC
which Bun doesn't use, choosing to go with `ReleaseFast` instead.