Better HN
topnewbestaskshowjobs
Log inSign up

websiteapi

340 karma · joined Aug 8, 2025 (1y ago) · 239 submissions

password is username. this is ur account now. I am user 24 :D, please update the user (user+1) once you login and take over. or change the password and keep, the hive mind will just make another account.
Submissions

comment 11mo ago · link · parent

A few mention on tests, but I expected more. The main value of pure functions is that now their behavior is representative in tests. In fact, I'd argue that all you need for reliability is determinism and tests of all equivalent scenarios. functional programming (and immutability) are only helpful to the extent that it's easier to have representative tests, but not necessarily required.

comment 11mo ago · link · parent

assuming this is true, perhaps it's best to freeze sperm regularly with labels that way if you go off the deep end you can snapshot quite literally your best self? some possible times - right before college, right after college, after you meet someone you think you'd marry (but before you do), after marriage.

seems like a neat premise for a sci fi novella.

comment 11mo ago · link · parent

I'm in USA - New York area - I rarely see vending machines - it's entirely possible I just don't visit the kinds of buildings that would have them like hospitals tho

comment 11mo ago · link · parent

other than these tests I actually rarely see vending machines. are they really representative or popular still in usa?

comment 11mo ago · link · parent

your scenario here doesn't really make any sense. one you're conflating getting married with staying together. you could get married and then divorced. two, such a bet wouldn't make sense since it could easily be rigged (and indeed this is what happens with sports betting).

again, if someone says they know the winning lottery and they don't play, they're unserious. nearly impossible to rig, high payout - outcome is of interest to layperson.

comment 11mo ago · link · parent

of course - such claims just shouldn't be taken seriously.

comment 11mo ago · link · parent

people who claim to know the winning lotto numbers but never buy tickets shouldn't be taken seriously =)

comment 11mo ago · link · parent

this is not true - if you know for certaint that trump will be president through winning an election in 2028 you can make over 20X your money.

at the end of the day people don't actually believe it, which is why trump is valued little. people who aren't willing to bet with their money on things they say so absolutely aren't serious people.

comment 11mo ago · link · parent

this doesn't really make any sense. in this scenario what's the hedge then?

comment 11mo ago · link · parent

isn't it true though that laws that have frequently abused loopholes that effectively go against the spirit of the law are indeed failures? isn't that the entire purpose of having lawmakers who are constantly evaluating such things?

comment 11mo ago · link · parent

I wonder how the startup scene will adjust to this if it becomes mainstream. can employee contracts be modified to force compensation even in this case? seems difficult to write one up without weird second order effects.

if this does end up being something that is legal and successfully circumvents anti trust, does it mean antitrust actually is a failure in practice?

2026 hasn't even begun and more shenanigans are in flight.

comment 11mo ago · link · parent

why wouldn't it decrease volume? presumably if it starts costing 100 bucks a day people would stop driving and take these hypothetical buses, no? of course as I mentioned I know this would never actually work for political reasons.

comment 11mo ago · link · parent

it would never happen, but ideally toll roads would be dynamically priced such that the average speed is always within 10% of the speed limit. congestion fixed.

earmark this money in a way that can't be siphoned and build public transportation with it. in addition buy fleets of buses with the cash that are exempt and analyze the destinations and origins of the traffic and put them there.

comment 11mo ago · link · parent

these sorts of comments always make me laugh considering where they are posted.

in before: "HN isn't social media!"

comment 11mo ago · link · parent

postgres is great but seems too high level "for everything."

comment 11mo ago · link · parent

I always wonder if things can be simpler. When you think of a really simple DB you think of SQLite. What's the really simple K8s? Even doing a single node deployment these days seems complicate with Prometheus, Grafana, etc. etc. docker/podman compose up with quadlets and all of this stuff just seems so eh.

I really like the idea of something like Firebase, but it never seems to work out or just move the complexity to the vendor, which is fine, but I like knowing I can roll my own.

comment 11mo ago · link · parent

sure, but my point wasn't exclusive to them (hence the etc in the first comment). it was just related to any mass media platform, all of them collectively will win. you are right about YouTube in particular though, good point.

comment 11mo ago · link · parent

> the format of the media simply isn't amenable to output matching longer-form work, no matter how much gets produced

why not? seems like a tautology. what's a robust set of criteria we can use the evaluate this objectively. I bet you TikTok will win. mind you I am not saying the average TikTok is good, just that there's probably some set of videos that that are of comparable quality than something put together over a longer period of time like a novel.

comment 11mo ago · link · parent

that's a funny example, because something like Cobra Kai literally began on YouTube, there are others like Hazbin Hotel.

anyway, as for the statistics, for the case of YouTube since there are is no forced directive to which all videos must follow (creatively), you can treat all videos as random attempts. then it's just stats to show that such a distribution will have outliers that match or exceed in subjective quality the gate kept works (traditional tvs or literature).

comment 11mo ago · link · parent

I'm not sure I understand your analogy. YouTube has both diversity and quantity at levels tens of orders of magnitude higher than any high-quality-low-quantity good. Given the subjectivity of quality and amounts considered it's simply statistical fact that YouTube will always have things at the highest ends of subjective quality for any category.

The algorithm doesn't select for mediocrity - it selects for viewership, but regardless there are millions of creators at there that aren't optimizing for views anyway. It's the same reason some set of random blog posts or comments on sites such as this one will have quality similar to snippets of the highest quality technical documentation. Sheer diversity and quantity will always win.

comment 11mo ago · link · parent

is there actually a programming language that makes race conditions impossible (I am not being facetious, I actually do not know)? if the existence of races makes a language unsafe, then aren't all languages unsafe?

comment 11mo ago · link · parent

is go not memory safe? other than unsafe and other contrived goroutine scenarios, isn't it? I'm actually really curious - I've been writing go for just a couple years now and my understanding is the only ways for it to be unsafe are the two scenarios I described earlier.

comment 11mo ago · link · parent

I like Cal Newport and own all of his books, but this sort of commentary is ultimately just pretentious. Aristocrats back in the day had similar thoughts about peasants even being literate.

I assure you, by sheer virtue of quantity, no matter what criteria you use YouTube/TikTok/Shorts/etc has a [set of videos] which demonstrates quality similar to any novel or literary work.

It's true there's more garbage out there than ever before, but this is an artifact of democratization of creation and this is good imho. I also reject the premise that time to creation is an indication of quality.

comment 11mo ago · link · parent

yes, but I find it hard to constrain it to a minimal implementation. what usually happens is it writes some tests, then an implementation, and then according to the thinking, makes some modification. it works with a relatively precise prompt, but starts to go a bit off the rails when you say things in broad terms ("write tests to ensure concurrency works, and the implementation to ensure said tests are correct")

comment 11mo ago · link · parent

fair. I used to think that too, but I find at least for golang, the sota models write tests way faster than I would be able to. tdd is actually really possible with ai imo. except of course you get the scaffolding implementation (I haven't figured out a way to get models to write tests in a way that ensures the tests actually do something useful without an implementation).

comment 11mo ago · link · parent

weird - even if AI was literally omnipotent and omniscient, you would still be bottlenecked on human's ability to actually evaluate and verify what it is doing and reconciling that with what you wanted it to do. Unless you're of course, willing to YOLO the entire company on output you haven't actually checked yourself.

for that reason alone humans will always need to be in the loop. of course you can debate how many people you need to the above activity, but given that AI isn't omniscient, nor omnipotent I expect that number to be quite high for the foreseeable future.

one example - I've been vibe coding some stuff, and even though a pretty comprehensive set of tests are passing, I still end up reading all of the code. if I'm being honest some of the decisions the AI makes are a bit opaque to me so I end up spending a bunch of time asking it why (of course there's no real ego there, but bare with me...), re-reading the code, thinking about whether that actually makes sense. I personally prefer this activity/mode since the tests pass (which were written by the AI too), and I know anything I manually change can be tested, but it's not something I could just submit to prod right away. this is just a MVP. I can't imagine delegating if real money/customers were on the line without even more scrutiny.

comment 11mo ago · link · parent

this is based on comments on the actual flagged articles - some people say why they flag you know.

comment 11mo ago · link · parent

why unredact, rather than just edit the pdf to remove the redaction box and insert whatever you want? presumably you'd want a viewer to see that you modified a redaction, but why?
1
45678