Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
srcreigh
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
7 ms
·
91.
▲
by
srcreigh
8mo ago
I agree. You understand why I wrote this post. It's what I wanted to read 3 weeks ago. We're told "Use Diagnostics like the json stdlib module!" but then you realize the json module is way too simplistic for a complicate
92.
▲
by
srcreigh
8mo ago
It's worth every effort to avoid situations where a function creates extra clean up responsibilities to the caller only on error conditions. If I really needed a large error payload, too big to fit on the stack, I'd probably want
93.
▲
by
srcreigh
8mo ago
Oh thanks a bunch. That’s confusing. Removed that.
94.
▲
by
srcreigh
8mo ago
This is just a "complex real world app code" extension of the stdlib Diagnostics pattern. % rg Diagnostics zig/lib/std | wc -l 165 The zig stdlib kind of has it easy because, for example, the json module can hav
95.
▲
by
srcreigh
8mo ago
What more do you want than what's covered in the post? To me, this post is proof zig doesn't need "proper support". You can already have extremely ergonomic error payloads with existing language features. Earlier version
96.
▲
by
srcreigh
8mo ago
It's just stored as a [256]u8 in the struct. // sqlite.zig pub const ErrorPayload = struct { message: [256]u8, pub fn init(db: *c.sqlite3) @This() { var self = std.mem.zeroes(@This());
97.
▲
Error payloads in Zig
(srcreigh.ca)
93 points
by
srcreigh
8mo ago
|
37 comments
98.
▲
by
srcreigh
8mo ago
The US regime allows its citizens to criticize politicians. That doesn't mean you are free to criticize those in power.
99.
▲
by
srcreigh
8mo ago
Care to elaborate?
100.
▲
by
srcreigh
8mo ago
There's a relevant open issue[1] here about stack memory optimization. It would be nice to be able to use a [500]u8 in a block and another [500]u8 in another block, and have that only contribute 500 bytes to the stack frame, but Zig ca
101.
▲
by
srcreigh
8mo ago
Please stop posting 0-information-content complaints.
102.
▲
by
srcreigh
8mo ago
Your math point is proven wrong, with math. The argument goes like this: 1. AI is a computer program. 2. Some math is not solvable with any computer program. 3. Therefore, there are limits to what AI can do with math. I recommend you to rea
103.
▲
by
srcreigh
8mo ago
This is kind of the root of the issue. Humans are mystical beings with invisible sensibilities. Many of our thoughts come from a spiritual plane, not from our own brains, and we are all connected in ways most of us don't fully understa
104.
▲
by
srcreigh
8mo ago
It’s literally not possible. It has nothing to do with intelligence. A perfectly intelligent AI still can’t read minds. 1000 people give the same prompt and want 1000 different things. Of course it will need supervision and intervention. We
105.
▲
by
srcreigh
8mo ago
Various cheating to get their conclusions (from the paper): > To allow for an unobstructed gait recording, participants were instructed not to wear any baggy clothes, skirts, dresses or heeled shoes. > Due to technical unreliabiltiti
106.
▲
by
srcreigh
8mo ago
Source?
107.
▲
by
srcreigh
8mo ago
> the technology explicitly promises tomorrows models will be better then todays, which means the skill investment is deflationary This is just wrong. A) It doesn’t promise improvement B) Even if it does improve, that doesn’t say anythin
108.
▲
by
srcreigh
8mo ago
It’s a sandbox. If your model generates and runs a script for each email in your inbox and has access to sensitive information, you want to make sure it can’t communicate externally.
109.
▲
by
srcreigh
8mo ago
This is just sleight of hand. In this model the spec/scenarios are the code. These are curated and managed by humans just like code. They say "non interactive". But of course their work is interactive. AI agents take a few mi
110.
▲
by
srcreigh
8mo ago
This is incorrect. The set paradox it’s analogous to is the inability to make the set of all ordinals. Russel’s paradox is the inability to make the set of all sets.
111.
▲
by
srcreigh
8mo ago
Hey, sorry about that. I find your site very charming. Yeah it takes a few seconds to understand, but that's completely fine imo. You are excused if the site misleads anybody, just because you published "Estimated completion date:
112.
▲
by
srcreigh
8mo ago
Wow, the way this data is presented is hilarious. Log scale: Less than 3% done, but it looks like over 50%. Estimated completion date: 10 March 2195 It would be less funny if they used an exponential model for the completion date to match t
113.
▲
by
srcreigh
8mo ago
Idk. Did you see the "Buffer reuse" section of this blog post? [1] Kudos to that guy for solving the puzzle, but I really don't want to use a special trick to get the compiler to let me reuse a buffer in a for loop. [1]: htt
114.
▲
by
srcreigh
8mo ago
I don't really want to learn how to use the borrow checker, LLM help or not, and I don't really want to use a language that doesn't have a reputation for very fast compile/dev workflow, LLM help or not. Re; Go, I don
115.
▲
by
srcreigh
8mo ago
It shouldn’t come up because it’s not sufficient. How would systemd prevent local JavaScript code from sending DNS, http, webrtc network requests when it’s opened in the users browser?
116.
▲
by
srcreigh
9mo ago
Somebody has to go back to first principles. I wrote pig scripts in 2014 in Palo Alto. Yes, it was shit. IYKYK. But the author, and near everybody in this thread, are wrong to generalize. PCIe would have to be millions of times faster than
117.
▲
by
srcreigh
9mo ago
MapReduce is from a world with slow HDDs, expensive ram, expensive enterprise class servers, fast network. In that case to get best performance, you’d have to shard your data across a cluster and use mapreduce. Even in the authors 2014 SSDs
118.
▲
by
srcreigh
9mo ago
This is cool. No need to guesstimate, it could be a world record category.
119.
▲
by
srcreigh
9mo ago
As an aside, I wonder how to account for the information content embedded in the hardware itself. A Turing Machine compressor program would likely have more bytes than the amd64 binary. So how to evaluate KolmogorovComplexity(amd64)? The la
120.
▲
by
srcreigh
9mo ago
> By default, all network access is denied. Your `network.allowLocalBinding` flag, when enabled, allows data exfiltration via DNS. This isn't clear from the docs. I made an issue for that here: https://github.com/ant
More ›