Better HN
topnewbestaskshowjobs
Log inSign up

rtpg

21,271 karma · joined Nov 23, 2012 (14y ago) · 6,737 submissions

real name: Raphael

blog: https://rtpg.co

email: raphael at above domain

Submissions

comment 11mo ago · link · parent

> for comprehensions are the same thing as do notation

The ergonomics of scala for comprehensions are, in my mind, needlessly gnarly and unpleasant to use despite the semantics being the same

comment 11mo ago · link · parent

One thing I think worth considering for systems languages on this point: if you don't want to solve every expressiveness issue downstream of Result/Option/etc from the outset, look at Swift, which has nullable types.

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

I legit would recommend you try the "macbook pro speaker" test if you have one... it was really night and day for me

comment 11mo ago · link · parent

Unfortunate! Yet another little bit of Go design decision that makes things worse for, in my opinion, no reason.

comment 11mo ago · link · parent

You don't even need to end the file in `.go` or the like when using shebangs, and any self-respecting editor will be good at parsing out shebangs to identify file types (... well, Emacs seems to do it well enough for me)

no need to name your program foo.go when you could just name it foo

comment 11mo ago · link · parent

I have the same sound issues with a lot of stuff, my current theory at this point is that TVs have gotten bigger and we're further away from them but speakers have stayed kinda shitty... but things are being mixed by people using headphones or otherwise good sound equipment

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

> And a few days ago a security vulnerability was found in the Rust Linux kernel code.

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

Thunderbird has succeeded at doing this and is in a somewhat similar spot (though huge asterisk there given the existence of Chrome)

comment 11mo ago · link · parent

Yeah I've been meaning to send a request to Princeton's libraries with his notes but don't know what a good request looks like

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

Church ends up defining zero as the identity function, and N as "apply a function to a zero-unit N times"

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

My magical ideal is to be able to do this even without the sender's consent. Let me, as a reviewer, chop up half of someone's PR and then get that sent in, CI'd, approved.

comment 11mo ago · link · parent

Very interesting historical document, though I don't have that much confidence in the precision of the explanation of the terms.

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 am _not_ a microservices guy (like... at all) but reading this the "monorepo"/"microservices" false dichotomy stands out to me.

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

> It's work they would be doing anyway because they all benefit from it, which is why it isn't a coordination problem

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

The thing is that some section of the right has convinced itself that Calibre is some DEI font. Meanwhile the rest of the world is just living life and having to deal with people getting this worked up about the default font of Microsoft Office since what, 2008?

Parallel universes

comment 11mo ago · link · parent

> Standards are different. The purpose of the standard is that Alice wants her output device to be compatible with everyone else's input device and Bob wants his input device to be compatible with everyone else's output device.

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 think Canonical did this with codecs for a long time too, behind a prompt

comment 11mo ago · link · parent

Good points.

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

I'm pretty sure in most places in the world if you are travelling from abroad you are asked to share your passport, and have been for a very very very very long time.

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 think people are overindexing on how much of this is "get more data on users".

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

It’s pretty disgusting how much the SV zeitgeist had spent years talking about liberty from tyranny and less than a year into this admin so many people are totally in line.

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 11mo ago · link · parent

Sony still makes TV they get to sell to the highest bidder! They get to sell to Apple TV or Netflix.

Not recurring revenue but they have their thing set up

comment 12mo ago · link · parent

I think if you want to make this argument you can go look at the stats. Look at the relative cost of vehicles in the EU over the past 25 years, compare to the cost of vehicles in the US over the past 25 years.

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

they're going to compete on ad unit economics against a company whose entire bread and butter has been selling ads. All while increasing unit costs to provide their service (like all the AI companies seem to be doing by just having more and more planning layers)

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 understand not having a link to the primary source at the top of an article because you might be trying to write an explainer, but if you want to avoid confusing your readers but still do the right thing at the very least include a bunch of source links at the bottom of the article!

I know all the cynical reasons not to do it, but I feel like even the good faith objection has a pretty straightforward solution.

comment 1y ago · link · parent

I think most tools in this space do the "infer a bunch of data and show it to the user for confirmation", which lowers the pain of a miss here.
1
141516
225