21,271 karma · joined Nov 23, 2012 (14y ago) · 6,737 submissions
blog: https://rtpg.co
email: raphael at above domain
comment 11mo ago · link · parent
MyObject can't be null. MyObject? can be null. Handling nullability as a special thing might help with the billion-dollar mistake without generating pressure to have a fully fleshed out ADT solution and everything downstream of that.
To people who would dismiss ADTs as a hard problem in terms of ergonomics: Rust makes it less miserable thanks to things like the question-mark shorthand and a bazillion trait methods. Languages like Haskell solve it with a monads + do syntax + operating overload galore. Languages like Scala _don't_ solve it for Result/Option in any fun way and thus are miserable on this point IMHO
comment 11mo ago · link · parent
no need to name your program foo.go when you could just name it foo
comment 11mo ago · link · parent
it's very funny how when watching a movie on my macbook pro it's better for me to just use HDMI for the video to my TV but keep on using my MBP speaker for the audio, since the speakers are just much better.
comment 11mo ago · link · parent
was it a security vulnerability? I'm pretty sure it was "just" a crash. Though maybe someone smarter than me could have turned that into something more.
I have no dog in this race, I really like the idea of Rust drivers but can very much understand retiscience at getting Rust to be handling more core parts of the kernel, just because Rust's value seems to pay off way more in higher level code where you have these invariants to maintain across large code paths (meanwhile writing a bunch of doubly-linked lists in unsafe Rust seems a bit like busy work, modulo the niceties Rust itself can give you)
comment 11mo ago · link · parent
The jump from "there is a successor operator" to "numbers take a successor operator" is interesting to me. I wonder if it was the first computer science-y "oh I can use this single thing for two things" moment! Obviously not the first in all of science/math/whatever but it's a very good idea
comment 11mo ago · link · parent
While defining numbers in terms of their successors is decently doable, this logical jump (that works super well all things considered!) to making numbers take _both_ the successor _and_ the zero just feels like a great idea, and it's a shame to me that the papers I read from Church didn't intuit how to get there.
After the fact, with all the CS reflexes we have, it might be ... easier to reach this definition if you start off "knowing" you could implement everything using just functions and with some idea of not having access to a zero, but even then I think most people would expect these objects to be some sort of structure rather than a process.
There is, of course, the other possibility which is just that I, personally, lack imagination and am not as smart as Alonzo Church. That's why I want to know the thought process!
comment 11mo ago · link · parent
Related to this: does anyone know if there's any document that delves into how Church landed on Church numerals in particular? I get how they work, etc, but at least the papers I saw from him seem to just drop the definition out of thin air.
Were church numerals capturing some canonical representation of naturals in logic that was just known in the domain at the time? Are there any notes or the like that provide more insight?
comment 11mo ago · link · parent
I think way too much tooling assumes 1:1 pairings between services and repos (_especially_ CI work). In huge orgs Git/whatever VCS you're using would have problems with everything in one repo, but I do think that there's loads of value in having everything in one spot even if it's all deployed more or less independently.
But so many settings and workflows couple repos together so it's hard to even have a frontend and backend in the same place if both teams manage those differently. So you end up having to mess around with N repos and can't send the one cross-cutting pull request very easily.
I would very much like to see improvements on this front, where one repo could still be split up on the forge side (or the CI side) in interesting ways, so review friction and local dev work friction can go down.
(shorter: github and friends should let me point to a folder and say that this is a different thing, without me having to interact with git submodules. I think this is easier than it used to be _but_)
comment 11mo ago · link · parent
HDMI: tech is shared between you and competitors, but you don't get to collect all the licensing fees for yourself
Some bespoke interface: you can make the bet that your tech is so good that you get to have control over it _and_ you get to license it out and collect all the fees
in the standards case, the standards body will still charge licensing fees but there's an idea that it's all fair play.
Apple had its lightning cable for its iPhones. It collaborated with a standards body for USB-C stuff. Why did it make different decisions there? Because there _are_ tradeoffs involved!
(See also Sony spending years churning through tech that it tried to unilaterally standardize)
comment 11mo ago · link · parent
Parallel universes
comment 11mo ago · link · parent
I do think there's value and a lot of work in coming up with a standard that manufacturers agree on. It's a huge coordination problem, based on the idea of unlinking a standard's success with the success of, say, a hardware competitor. It's real work! And like.... HDMI is an invention, right? If that isn't then what is?
"we should have drivers for the hardware that relies on this tech" just feels like an obvious win to me though. The (short-term) ideal here is just the forum being like "yes it's good if HDMI 2.1 works on linux" and that being the end of the story
I don't have much love for things that mean that like VGA info online all being "we reverse engineered this!!!" so they're not my friends but I wouldn't succeed much at standards coordination
comment 11mo ago · link · parent
I do agree that "not without a warrant" is a pretty load-bearing thing and it _should_ be tedious to get information. When a lot of info is just so easy to churn through that can activate new forms of abuse, even if from an information-theoretical point of view the information was always there.
And it's not even just about public officials. All those stories of people at Google reading their exes emails or whatever (maybe it was FB? Still) sticks to me.
comment 11mo ago · link · parent
The difference between sending it over a chat and handing it over to a clerk (who then photocopies it or types in the data into the computer) feels almost academic. Though at least "Typing it into the computer" doesn't leave them with a picture, just most of the data.
comment 11mo ago · link · parent
I don't get why people believe there's a conspiracy here. There's perhaps a large tent, but "social media bad" is not a controversial opinion! "The gov't should do something about it" is more controversial, though I think the controversiality is less heavy in spaces with parents, teachers, places where people have to deal with kids.
Not that this is how things should be determined, but... I think reading this as a "get more data and track people" play feels like giving everyone involved too much credit. It really just feels like what it says on the tin here.
comment 11mo ago · link · parent
This just feels so downstream of “the people I dislike are against this so I will be for it” logic. At least the libertarians had some form of principled reasoning … sometimes.
comment 12mo ago · link · parent
Obviously the lack of difference there wouldn't prove much (if I had to bet I'd bet cars in the US have gotten way more expensive faster than in the EU, just from labor costs), but the lack of a major difference would complicate the theory that new regulations in the past 15 years have massively improved costs, absent a theory that some other thing the EU is doing but the US is not doing is also kicking in to similarly counteract that.
The numbers exist, this isn't in the abstract. Just a question of doing the legwork
comment 12mo ago · link · parent
If ChatGPT went away tomorrow everyone who wanted to would be fine just moving to one of the other random chatbots from one of the other providers. ChatGPT is the default name that people know, but I don't think that's the same as a moat. A moat would allow OpenAI to go really hard on pricing and ads, and I don't think they have that margin!
comment 1y ago · link · parent
I know all the cynical reasons not to do it, but I feel like even the good faith objection has a pretty straightforward solution.