Better HN
topnewbestaskshowjobs
Log inSign up

codeflo

9,663 karma · joined Jun 14, 2010 (16y ago) · 1,502 submissions

Submissions

comment 2y ago · link · parent

Wasn’t “Shellshock” the name for a very severe security bug? When I read “shell-shockingly good Kubernetes”, at first, I thought this was an article warning about container security.

comment 2y ago · link · parent

All of this information is static, there's no need to sacrifice a whole CPU register only to store data that's already known. A simple lookup data structure that maps an instruction address range to the stack offset of the return address should be enough to recover the stack layout. On Windows, you'd precompute that from PDB files, I'm sure you can do the same thing with whatever the equivalent debug data structure is on Linux.

comment 2y ago · link · parent

Google Chrome on a 13” MacBook Air almost fills the entire menu bar on its own for me — you don’t need that many notification icons before some start disappearing. (I also think Google Chrome has way too many menu entries, but that’s a different discussion.)

Also, the fact that a menu item that doesn’t fit on the left of the notch by 1px has to move to the right as a whole means that the notch effectively takes up a lot more usable pixels than it seems at first glance.

comment 2y ago · link · parent

But note that at the end of that century, the CO2 is still there and will continue to heat the atmosphere indefinitely. We really need to stop adding carbon to the cycle; optimizing the form of that carbon can only ever be a secondary goal.

comment 2y ago · link · parent

I just looked it up to be sure. It seems like the mean lifetime is 12 years, which is the figure one uses for calculations. The half life is shorter.

comment 2y ago · link · parent

At this point, Linux is so integral to Microsoft's strategy that if anything, it's more likely that Microsoft would abandon the Windows kernel and rebuild the Windows UI on top of Linux.

(To be clear, that's not going to happen, but it's also no longer at the "hell would freeze over" level of absurdity for Nadella's Microsoft.)

comment 2y ago · link · parent

It only creates "more CO2" if the carbon atom wasn't part of the carbon cycle to begin with. That's the case for natural gas, but not for biological sources.

comment 2y ago · link · parent

Sure, but the question is still whether that carbon came from a fossil source or was part of the cycle to begin with.

Let's say a cow eats grass, produces methane, the methane gets converted into CO2, the grass grows back. No net increase in CO2.

If, on the other hand, the methane came from natural gas, you have permanently added carbon to the cycle.

comment 2y ago · link · parent

I get that methane has a strong greenhouse effect, and that climate models need to account for its concentration to make accurate predictions. But in terms of climate activism, isn't worrying about methane mostly a red herring?

My understanding is that it only stays in the atmosphere for 12 years or so. It doesn't accumulate over centuries the way CO2 does. This means even if we manage to permanently reduce the amount of methane in the atmosphere, it would only be a one-time effect equivalent to not emitting a certain amount of CO2 once. In the long run, the amount of net carbon added to or removed from the carbon cycle, for example from fossil reservoirs, is the only thing that really matters.

comment 2y ago · link · parent

The idea is a lot older than Al-Khwarizmi: positional base-60 fractions were already used by the Babylonians in *2000 BC*.

comment 2y ago · link · parent

I’m sure most of the world’s population has no idea what the boiling temperature of water is in Fahrenheit.

comment 2y ago · link · parent

I honestly thought “That sounds really dangerous for the hardware”.

comment 2y ago · link · parent

There’s probably a piece missing in the article’s simplified explanation, but if corrosion were in fact “instant” as claimed, nothing should help, as the damage would already be done. Probably it’s not really instant, just very fast, and displacing the water with alcohol is the quickest way to get it out before it can do even more damage.

comment 2y ago · link · parent

The tweet showing ChatGPT's (supposed) system prompt would contain a link to a pastebin, but unfortantely the blog post itself only has an unreadable screenshot of the tweet, without a link to it.

Here's the tweet: https://twitter.com/dylan522p/status/1755086111397863777

And here's the pastebin: https://pastebin.com/vnxJ7kQk

comment 2y ago · link · parent

I mean, there's a point here. Even in the videos OpenAI shows as "successes", you can spot uncanny coherence mistakes. There's one where a forklift morphs into one that's turned 90 degrees. The previous frame looks a bit ambiguous about the direction the squarish shape was pointing at, and somehow what happens for several seconds before that wasn't a strong enough signal for the model. And in the "failure" videos, we see objects merging and splitting in similar ways that DALL-E inserts extra arms into scenes with groups of people.

To me, it's clear that there's no real global understanding yet. Whether this person's preferred ML approach solves that, I'm not knowledgeable enough to tell.

comment 2y ago · link · parent

I'm not trying to be overly dramatic, but I think it's precisely when the industry accepted this as a law -- instead of treating it as something that needs be trained out of junior programmers -- is when software quality started to tank.

Consider any other form of engineering. Take some kind of screw. It has a documented specification in terms of torque, material strength and whatnot. Good engineers on the customer side will use the screws in a way that keeps within the spec. And good engineers on the supplier side will find ways to fulfill that specification as cheaply (which usually also means as narrowly) as possible.

There could be a kind of Hyrum's Law at play, if hardware engineers were idiots. Let's say that the screws accidentally overfulfil the specification today by 20%, and a customer measures the material to figure this out, and starts to depend on that. A year later, the supplier finds a cheaper way to produce the screws (or introduces a binning process) and as a consequence, the screws only exceed the spec by 5%, and the customer's product breaks. Who's responsible? The customer. And I should add, obviously.

This is fixed by training engineers. No one in their right mind would start to introduce artificial faults into their screws purely for the reason to prevent users from depending on the excess strength or something. But that's exactly the kind of thing that's regularly suggested to guard against Hyrum's Law.

So whenever I see software developers on my team look at the source code of a library to figure out "whether it's thread-safe" or "whether the sort order is stable" or whatever, I die a little on the inside. The problem is, you almost have to do that, because were two generations of software engineers into this and the practice is so accepted now that libraries no longer bother to document what they do (and don't) guarantee.

And then people wonder why every existing piece of software needs a fully staffed team nowadays just to keep it working. And why as a consequence, even core products built by competent companies (like Google Maps) have regressions in 15-year-old features every other week.

comment 2y ago · link · parent

Anonymous source close to the OpenAI situation, according to the Financial Times: "His superpower is getting people onside, shaping narratives, pushing situations into the shape that work for him."

Paul Graham: "Sam is extremely good at becoming powerful."

comment 2y ago · link · parent

That's funny, I used the same trick of making it output an inner monologue. I also noticed that the custom instructions are not being followed anymore. Maybe the RLHF tuning has gotten to the point where it wants to be in "chatty chatbot" mode regardless of input?

comment 2y ago · link · parent

> The computing world would be very different today if all personal computers had modems and could be terminals as well as computers.

Doesn't every smart phone have a modem and act both as a computer (running local software) and as a terminal (in the modern form of the web browser)?

comment 2y ago · link · parent

You think that any rule in any realistic scenario would be just a single sentence containing an ambiguous word without any known surrounding context, clarifications, examples, or rationale? I've never seen such a thing. This scenario is completely contrived, and still, it kind of worked.

comment 2y ago · link · parent

> JSX proves that HTML actually won.

While I think that might be true, similarly, JSX proves that for the dynamic parts of the template, you want a real programming language.

comment 2y ago · link · parent

But there is widespread agreement. Looking at the graphs, the only questions where opinions are in the 40%-60% range are the bike and the tank memorial. Neither of those two is even in the 45%-55% range, and on everything else, there's an even clearer majority. So even this intentionally and unrealistically vague rule would work in practice. This proves the opposite point of what's claimed here.

comment 2y ago · link · parent

"You agreed with the majority: 100%"

Which proves it's not actually impossible, the majority opinion is actually sensible, and this take is incorrect. Case closed.

comment 2y ago · link · parent

Unless there's official documentation that this is officially supported, hacks like these can stop working at any moment. For an unimportant machine, sure, use whatever third-party tool to bypass the installer you want. For a production machine, I don't think that's wise.

comment 2y ago · link · parent

If the sort order isn't fully determined by a query, can the query plan influence the result order? If so, what you're suggesting might be nearly impossible. The new query wouldn't be able to just skip the first N results, it would have to match each individual row against a dictionary of previously sent ones.

comment 2y ago · link · parent

Sad that it's Windows 11 only. I can't upgrade. I have a normal, recent PC that I dual boot with Linux, and Microsoft wants me to keep Windows 10 in that constellation. Upgrading is prevented by a silly if statement, and there's nothing I can do. It's the first time a software vendor actively doesn't want me to to have their latest software, but it is what it is.

comment 2y ago · link · parent

1600 words that are only an update to a paywalled review of another paywalled magazine article.

We're missing all the context, but the part we can read has a strange kind of logic to it. The claim is that you should only take advice on how to build successful relationships from people who don't know how to build successful relationships. This makes no sense, but is padded with so many filler paragraphs that by the time the point is made, the dots one would need to connect to notice the contradiction have almost evaporated from working memory.

The final sentence is good, though: "The people I know from various oft-discussed groups - transgender, super-religious, autistic, rich, etc - are all nicer and more normal than their public representatives would lead you to believe." People who act as "public representatives" are often insufferable narcissists, and that's true regardless of the group they claim to represent.

comment 2y ago · link · parent

> no unit testing

I also prefer to do stuff on the server because doing things in the database does invariably seem to drift towards a confusing, brittle mess. However, I do wonder if that's necessarily the case or just a limitation of our frameworks. There's no principle that would prevent someone from setting up a simple test suite for database code. It would be a lot of work, but maybe there's an architecture nirvana right in front of our eyes if someone just were to properly engineer a good framework around Postgres functions.

1
8910
51