Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
Zambyte
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
27 ms
·
751.
▲
by
Zambyte
1y ago
Regarding the explicit integer casting, it seems like there is some cleanup that will be coming soon: https://ziggit.dev/t/short-math-notation-casting-clarity-of-...
752.
▲
by
Zambyte
1y ago
Are you speaking from experience? "NYC" is a very large and heterogenous area.
753.
▲
by
Zambyte
1y ago
I have a theory that removing the battery and locking it well is enough. I'm testing that theory by storing my electric scooter with a quick release battery (Hiboy x300) with a D lock and a chain in the same bike room my roommate has t
754.
▲
by
Zambyte
1y ago
It guarantees you won't "lose that investment". Whether or not it is stolen is a different matter. Also there are angle grinder resistant locks. Check out videos of people testing them out and buy ones that they fail to cut,
755.
▲
by
Zambyte
1y ago
Buy a lock. You should usually be spending 10-20% of the value of the vehicle on locks. I bought two locks (a chain lock and a D lock) totaling $150 for my $750 electric scooter that I just got. They came with a $4000 warranty for vehicles
756.
▲
by
Zambyte
1y ago
Why was the IRS-Public[0] group created for this, instead of using the existing irsgov[1] group? [0] https://github.com/IRS-Public [1] https://github.com/irsgov
757.
▲
by
Zambyte
1y ago
Why can't Atoi report that?
758.
▲
by
Zambyte
1y ago
The legally enforced monopoly on support is to blame for this, not well-functioning hardware.
759.
▲
by
Zambyte
1y ago
This is weird to say when Microsoft has been very obviously inspired by KDE.
760.
▲
by
Zambyte
1y ago
Average computer literacy of computer users is at an all time low. If trillion dollar company says it's time to consume more product, they must know something I don't.
761.
▲
by
Zambyte
1y ago
Good question. This seems to be a more official IRS organization: https://github.com/irsgov I found a link to that organization here[0] at least, so this one at seems to be official. [0] https://www.irs.gov/
762.
▲
by
Zambyte
1y ago
Every subset of Lisp is growing into a full Lisp :)
763.
▲
by
Zambyte
1y ago
Linux has no such goal
764.
▲
by
Zambyte
1y ago
Interesting, Go is actually a language I tend to reach for when dealing with JSON.
765.
▲
by
Zambyte
1y ago
That's really interesting, thank you for explaining that! Somehow I've never thought to implement interferences to describe types that already exist.
766.
▲
by
Zambyte
1y ago
The stack is fully unwound before running the panic function, including the main stack frame. This will run all deferred deallocation statements, and pretty much leave you with nothing to do but exit. You could try to launch the program aga
767.
▲
by
Zambyte
1y ago
Reading my top level comment again, I realized I did refer to the Zig way as "nice" relative to the exception style control flow.
768.
▲
by
Zambyte
1y ago
> We discussed this in the meeting today and decided that we'll start by changing all => unreachable to => return error.Unexpected in std.posix and std.os. https://github.com/ziglang/zig/issues/6
769.
▲
by
Zambyte
1y ago
Quotes are cute, and I prefer them over uncited negative claims. Can you link somewhere he actually said that? Because from a quick search I find him saying: > It should be handled on a case-by-case basis. For some syscalls, EINVAL shoul
770.
▲
by
Zambyte
1y ago
Probably not. I have never used panic / recover in application code at least.
771.
▲
by
Zambyte
1y ago
It is quite literally using the "recover" function in go, so I think it's accurate to call it "recovering". > this is fine I didn't mention the merit, just that it is exception style control flow.
772.
▲
by
Zambyte
1y ago
Dumping the log somewhere, telling the user that the program is exiting, things like that.
773.
▲
by
Zambyte
1y ago
I'm not as familiar with the Rust ecosystem, but I know it is used all the time in Go. For example, the standard http server library wraps user provided endpoint handler functions with panic handlers.
774.
▲
by
Zambyte
1y ago
People say nonsense all the time. LLMs also don't have this issue all the time. They are also often right instead of saying things like this. If this reply was meant to be a demonstration of LLMs not having human level understanding
775.
▲
by
Zambyte
1y ago
> It doesn't look to be too much of a temptation to use panics as regular errors in Rust though Maybe not, but it was enough for the author to dedicate at least one whole section of the article to reasoning about this. > like whe
776.
▲
by
Zambyte
1y ago
> I might have agreed with more of this article if panics actually crashed the program, but in multithreaded Rust that’s rarely the case. Why is that?
777.
▲
by
Zambyte
1y ago
The article pretty much says this as well, but a concise way I saw Andrew Kelley put it recently in the context of Zig (but it seems to apply well for any language that has errors-as-values + panics) is: "Assertions for programmer mist
778.
▲
by
Zambyte
1y ago
The bar for this excludes humans xor includes LLMs. I guess you're opting for the former? If you don't believe me, here is a fun mental exercise: define "understand" and "reason" in a measurable way, that inclu
779.
▲
by
Zambyte
1y ago
Why not go all the way to the source? John McCarthy coined the term "artificial intelligence", and then invented / discovered LISP in pursuit of it in the 1950s :D
780.
▲
by
Zambyte
1y ago
"candid" dev is a very ironic name.
More ›