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

I take offense to that diagram; Germany should refuse to be covered by a PDF that's not in proper DIN format.

In theory, DIN paper sizes go all the way from subatomic to the size of the universe. It seems like A(-39) is barely too small to cover Germany's land mass, but A(-40) should be more than sufficient. That's 882 x 1247 km if I didn't miscalculate.

comment 2y ago · link · parent

No, but in theory, an insurance company could use this to calculate your risks differently. Even a 1% signal isn't worthless.

comment 2y ago · link · parent

> reading more than a few paragraphs is rapidly becoming something akin to a chore for the majority of the population

I agree with that part. Some people will do anything to avoid reading articles: they watch shallow videos with 10 minutes of advertisement-friendly padding, they ask ChatGPT to hallucinate something. But I don't see that those people become better informed as a result of those tools. It's not working, it's only a simulation of knowledge acquisition.

> text-first platforms don't have a mass-market future

They never had. High-information media have always been a niche. It's when economic effects cause them to die out completely that we get a problem as a civilization.

comment 2y ago · link · parent

Why would you add the lost life expectancy to the length of the trip? That doesn’t make any mathematical sense to me.

Edit (this might be wrong, see Edit 2 below -- I'm leaving this as is because otherwise, some of the responses don't make sense):

I noticed that the calculation is wrong even within the article's own logic. Supposedly, this calculates "the expected length of the trip (including dead time) at different speeds", and does so by adding the expected loss of lifetime to the total trip length.

However, you're surely not always going to die exactly at the end of the trip. In fact, you can be expected to die at the half-way point on average, meaning this "total time" in case of death is only half the trip length plus the loss of life expectancy. If you plug this into the equation, the speed that minimizes the travel time dramatically shifts to around 100 mph.

And more absurdly, near the end of your life, when your mathematical life expectancy might be measured in hours, it's "faster" according to this logic to just kill yourself and get it over with than to undertake any long trips at all. I wouldn't recommend following this line of reasoning.

Edit 2: The above line of reasoning might be wrong, I think I made an error and the calculation is correct within the article's premises. In that case, I take that part back. I still don't agree that adding loss of life expectancy to travel time is a reasonable way to look at things.

comment 2y ago · link · parent

I still find Go too tolerant on this. It should scan your Git history and stash as well, and fail to compile if it finds any unused code there.

comment 2y ago · link · parent

Why did those silly 18th century physicists even bother with those sextants and complicated mathematics when they just could have looked up the answer on Wikipedia?

comment 2y ago · link · parent

It's narcissistic BS corporate speak that ridicules the victims. We shouldn't stop pointing that out just because it's common.

comment 2y ago · link · parent

How to measure the distance? Easy, compare the apparent size to the actual size and calculate the distance from that. Then how do you measure the actual size? Easy, multiply the apparent size by the distance!

comment 2y ago · link · parent

But I do know. Though not specified by the standard, ints are 4 bytes on any standard platform anyone has used in this millennium.

comment 2y ago · link · parent

I think most C programmers know that the size of ints is implementation defined, and I've programmed on platforms where it was 2 bytes instead of 4. But when someone promises a brain teaser, and then asks an unclear question, you read that and go "What the author actually means can't be that dumb, can it?" It's annoying when a charitable reading of an unclear statement leads to an aggressive "gotcha".

comment 2y ago · link · parent

Since the questions specified neither a specific compiler/platform nor included Undefined or Unspecified Behavior as an option, I assumed this is an informal quiz and the author just tested the programs on their specific compiler.

Turns out the author does mean according to the standard, but thinks that “I don’t know” is a synonym for both undefined and unspecified behavior. It seems weird to use imprecise terminology in a post that’s all about lecturing about standards compliance.

comment 2y ago · link · parent

> hurtful

Listen, the man publicly defended Epstein's system of coercion and claimed that his victims were "willing". If you seriously think it's the people pointing that out who are the ones lacking empathy and behaving "hurtfully", there's something very broken with your moral compass.

comment 2y ago · link · parent

I don’t think Stallman is irrelevant. He’s still in charge of the GNU stuff, he still blocks progress on GCC, he still has donors and an audience, he’s still a pedophilia apologist.

Edit: https://www.vice.com/en/article/9ke3ke/famed-computer-scient...

https://selamjie.medium.com/remove-richard-stallman-fec6ec21...

comment 2y ago · link · parent

> Beautiful visualization of data

The "Repetition of Popular Music, by Year" graph doesn't work for me. First it's empty, When I scroll past the graph and back, it seems to show data sometimes, but only when it's not in the viewport. As soon as I scroll it into view, it undraws the data and is blank again. I don't even have any blockers installed on this browser.

Beautiful for me = less shitty JavaScript that prevents me from seeing the graphs.

comment 2y ago · link · parent

> And I'd say the fact so many people in this very thread don't understand it is exactly the proof that the GPs comment actually has some merit.

Finally someone noticed the irony, thank you.

(On the other hand, at least some people also criticize my tone rather than the point I'm making, which I guess is fair as well.)

comment 2y ago · link · parent

> Being further pedantic - aren't all digits base ten? I thought that was part of the definition of digit.

We call computer circuits "digital" even though they work in base 2.

Regardless of the word's origin, digits are simply the symbols in a positional number system: https://en.wikipedia.org/wiki/Numerical_digit

comment 2y ago · link · parent

> The word "digit" is defined as 0-9

Lots of people seem to think that, hence the -2 rating of my comment, but that's not the modern definition: https://en.wikipedia.org/wiki/Numerical_digit

comment 2y ago · link · parent

That's the word's origin, not its current mathematical meaning. Also, number systems that are not base IIIIIIIIII have been used historically. That humans can only compute in a base that matches the number of fingers we have is a relatively recent myth.

comment 2y ago · link · parent

The point is that most of the time when digits are mentioned, it’s only a coincidental fact about one inelegant representation of the number — and often people are insufficiently aware of that.

comment 2y ago · link · parent

I’m not deeply familiar with either, though I have written a toy x86_64 bootloader once. There are more levels in x86_64 (which makes sense to me that a larger address space would benefit from a sparser encoding). What else is significantly different?

comment 2y ago · link · parent

There’s so much numerology in the world, even among smart people, that I think this is worth being pedantic about:

There’s no such thing as a “four-digit number”, only a four-digit base-10 numeral. And facts about base-10 numerals aren’t facts about numbers.

comment 2y ago · link · parent

> If ads and sales are on the same continuum, then the world's best salespeople are engineers, data scientists, and product managers.

I stumbled over that sentence. I genuinely don’t understand what this means in context. Can someone explain the metaphor and/or the point that’s being made here?

comment 2y ago · link · parent

Or not posted at all. It baffles me that people genuinely seem to think that pressing a button on a tool (that we all have access to) is a unique and valuable contribution to the discussion.

comment 2y ago · link · parent

> You'd think so... but no.

Well, your first counter examples are beginner mistakes (obviously) and a graphics card that the younger half of HN readers have never heard of.

Blender getting it wrong would be inexcusable, though. Maybe I was overly optimistic.

comment 2y ago · link · parent

The point about gamma correction is important. Many effects like scaling and blurring should occur in what's called linear color space, otherwise you add or remove energy, which can look very wrong. Normal RGB isn't linear.

GPUs and most game engines get this correct, maybe because in animated 3D graphics, you'd notice this immediately. But browsers are ridiculously bad at understanding this -- there was an article a while back that demonstrated some pathological cases.

comment 2y ago · link · parent

There was a second page when I posted it, but then it stopped working. Sorry.

This archive link is also semi-broken, but at least seems to have the complete article text on page 1:

https://web.archive.org/web/20120719224016/https://www.drdob...

comment 2y ago · link · parent

The Wikipedia article skips an important trick on how to arrange the quadtree nodes to make this work.

This link is better: http://www.drdobbs.com/jvm/an-algorithm-for-compressing-spac...

comment 2y ago · link · parent

It’s not irrational: an ETF would make it a lot easier to buy Bitcoin, which would increase demand. It’s funny though, because if Bitcoin would work as well as advertised, a traditional exchange shouldn’t offer this kind of advantage.

comment 2y ago · link · parent

You might be right, but they don’t turn smoothly, so I’m not entirely sure. The ball is definitely a sprite, it always faces the same direction.
1
91011
51