Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
bccdee
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
13 ms
·
121.
▲
by
bccdee
9mo ago
Trouble with this is, it's pretty much LLM-only. I don't want to type out a request for Clause to draw a box for me and describe where, and I don't want to be pasting box-drawing characters. I want to click & drag. This i
122.
▲
by
bccdee
9mo ago
Yeah, your error handling should not always be backwards/forwards compatible. If the new version of a library is throwing a new kind of error, that library's clients need to be updated. Being able to break your clients when necess
123.
▲
by
bccdee
9mo ago
I don't think you do eat starches in a higher volume. The associated fibre and resistant starches lead to many starchy foods being quite satiating—potatoes, oatmeal, and whole grains in particular. Moreover, the relevance of insulin
124.
▲
by
bccdee
9mo ago
> There is good reason why even the languages that support defined error sets have trended back to using open-ended constructs. Rust does it that way & has never trended in any other direction. The generally-accepted wisdom is "
125.
▲
by
bccdee
9mo ago
You're right, but I still think they have a point. What I miss from `error.Is/As` is exhaustive matching. I'd love a way to statically guarantee I haven't missed an important error type. It really comes back to the absen
126.
▲
by
bccdee
9mo ago
Assuming that "chemical modification" is when you modify something by adding a chemical reagent to it, milk is chemically modified to create cheese curds, sugars are chemically modified to create vinegar and alcohol, and breads &a
127.
▲
by
bccdee
9mo ago
Yeah, (1) there is no "war on protein," (2) you do not need to eat very much protein unless you are trying to build muscle and you already work out a lot. The normal recommended daily intake for protein is 0.8 g/kg. 1.2-1.6 i
128.
▲
by
bccdee
9mo ago
There's a fair argument to make that, by that standard, a civilized civilization has never existed. Atrocity has ever been our giddy companion.
129.
▲
by
bccdee
9mo ago
That worst case shouldn't happen. When you do something like this: let data = serialize(&doc) .or_raise(|| StorageError::permanent("serialization failed"))?; you're burying the error thrown by `serialize
130.
▲
by
bccdee
9mo ago
> AI will become good enough to write songs better than humans; it's a matter of time. I'm unconvinced. The process of songwriting is so dependent on being able to listen to what you've made and decide whether you enjoy it
131.
▲
by
bccdee
9mo ago
Okay, nothing is secure against every threat model. The only way to secure against rubber hose cryptanalysis is by hiring a team of bodyguards, and even that won't protect you from LEOs or nation-state actors. Your threat model shoul
132.
▲
by
bccdee
9mo ago
I'm not sure I like how they're trying to dynamically cast to an error type. Err(report) => { // For machines: find and handle the structured error if let Some(err) = find_error::<StorageError>(&
133.
▲
by
bccdee
9mo ago
Amazon self-publishing is full of spam, obviously, but nobody buys those. They're the book equivalent of a broken 3-star GitHub repo with 2 commits. If that was all that coding agents were used for, I'd call those a failed use cas
134.
▲
by
bccdee
9mo ago
Nah, that misunderstands writing pretty fundamentally. Language is how we express ideas. An LLM that could write as well as a person would need to be able to think as well as a person, and they just don't. That's why nobody's
135.
▲
by
bccdee
9mo ago
Obviously the session should be recorded & transcribed. If you take issue with your mark, you can escalate it to the professor, same as you would for a written exam. If you're looking for suggestions, I'd love for you to start
136.
▲
by
bccdee
9mo ago
Oral exams scale fine. A TA makes $25 per hour, and an oral exam is going to take an hour at most. I absolutely would not accept a $25 tuition rebate in exchange for having my exam administered by an LLM.
137.
▲
by
bccdee
9mo ago
Oh my god, this sounds awful. After the first few paragraphs, I was ready to be impressed, but then they started dropping all these insane details: --- > Only 13% preferred the AI oral format. 57% wanted traditional written exams. 83% fo
138.
▲
by
bccdee
9mo ago
> Rust by default doesn't really encourage the group-element mindset and people have to work against the language in order to do it. It's true that you don't see stuff like arena allocators very often, but Rust's life
139.
▲
by
bccdee
9mo ago
> If you want to make pointers not have a nil state by default, this requires one of two possibilities: requiring the programmer to test every pointer on use, or assume pointers cannot be nil. The former is really annoying, and the latte
140.
▲
by
bccdee
9mo ago
It's much better to have a `panic!("this should never happen")` statement than to let your program get into an inconsistent state and then keep going. Ideally, you can use your type system to make inconsistent states impossib
141.
▲
by
bccdee
9mo ago
> There really was a strong consensus about exceptions, and then an agreement that checked exceptions are a failure, and now, suddenly, we are back to “checked exceptions” with a twist, in the form of “errors are values” philosophy. I th
142.
▲
by
bccdee
9mo ago
So far what I've been doing is, I look for the parts that seem like they'd be rewarding to code and I do them myself with no input from the machine whatsoever. It's hard to really understand a codebase without spending time w
143.
▲
by
bccdee
9mo ago
Splitting one big codebase into 100 microservices always seems tempting, except that big codebases already exist in modules and that doesn't stop one module's concerns from polluting the other modules' code. What you've
144.
▲
by
bccdee
9mo ago
> How many highway over passes have unique “chef quality” designs? Have you ever built a highway overpass? That kind of engineering is complex and interdisciplinary. You need to carry out extensive traffic pattern analysis and soil compo
145.
▲
by
bccdee
9mo ago
Ok but you understand that the fundamental nature of LLMs amplifies errors, right? A hallucination is, by definition, a series of tokens which is plausible enough to be indistinguishable from fact to the model. If you ask an LLM to explain
146.
▲
by
bccdee
9mo ago
What if you're calling an API? How do you test a tool that does a bunch of back-and-forth with another service without actually hitting that other service? Do you have to spin up your entire k8s ecosystem in a local cluster just to val
147.
▲
by
bccdee
9mo ago
Martin Fowler draws a useful distinction between mocks, fakes, and stubs¹. Fakes contain some amount of internal logic, e.g. a remote key-value store can be faked with a hashmap. Stubs are a bit dumber—they have no internal logic & just
148.
▲
by
bccdee
10mo ago
There's no simple replacement for what Protobuf does. Forwards and backwards compatibility is well-specified across clients in all languages. I can write a v2 message with new fields and pass it to a service written in a different lang
149.
▲
by
bccdee
10mo ago
Sure I do. The integration looks like this: jmsg, _ := protojson.Marshal(msg) fmt.Println(jmsg) That's negligible.
150.
▲
by
bccdee
10mo ago
> For the negligible added CPU cost of deserialization, you completely lose human readability. You could turn that around & say that, for the negligible human cost of using a tool to read the messages, your entire system becomes slow
More ›