Better HN
topnewbestaskshowjobs
Log inSign up

throwawaylinux

3,517 karma · joined Jul 23, 2021 (5y ago) · 2,823 submissions

Submissions

comment 5y ago · link · parent

The Linux kernel has 28 million lines of C code, and 180 thousand goto statements.

1 every 160 lines is a goto, and that's just a naive count so includes all header and preprocessor gunk, whitespace, some generated C code, comments, etc.

If you're talking about more pure lines if C, it would probably be close to 1% of statements are goto.

It might not be everyone's cup of tea as the pinnacle of C programming, but it's a real highly used medium-large project that has coped well with a pretty high rate of change from a very wide spectrum of contributors. So it is a good real world example of open C code you can look at that is maintainable while making a lot of use of goto.

comment 5y ago · link · parent

> from the fact that he OKs unsafe technology and brands it as "autopilot" to half-baked, rushed assembly processes that produces terrible quality in the Model 3s

https://en.wikipedia.org/wiki/Engineering_disasters

Engineers don't get to put themselves up on a pedestal and claim they never do wrong, are never subject to incompetence, negligence, or other personal pressure in their lives like money.

comment 5y ago · link · parent

That's not really being fair, because the metric is presented to look like traditional perf/watt. And idle is not so important in supercomputers and cloud compute nodes which get optimized to keep them busy at all costs. But even in cases where it is important, averaging between the two might be reasonable but multiplying the loaded efficiency with the idle efficiency increase is ludicrous. A meaningless unit.

I can't see any possible charitable explanation for this stupidity. MBAs and marketing department run amok.

comment 5y ago · link · parent

This is the rub. Nobody ever wants to discuss this part of it, they just want to focus on the "deniers" because they want an imaginary enemy to blame their failures on.

"Deniers" aren't standing in the way of this. Even in the countries with the highest levels of deniers, they are under 20% of the population. America it's about 13%, and the people who want to do more to combat climate change is 60-70%.

Far far less popular agenda gets shoved through all the time by politicians, it's never stopped them before. But somehow in this one instance, when politicians attempt to deal with what they call the greatest problem ever to face humanity, the arch-enemy "dumb redneck unemployed coal miner" has used their vast network of power and influence to put a stop to it. They couldn't stop their Robert E Lee statues from being torn down by unruly mobs, but they'll go toe to toe with the Bilderberg Group? Get real.

It's just so hilariously stupid I can't understand why people don't see through it. Utter rubbish. The failure rests 100% on the shoulders of the politicians, corporations, and international groups who have been claiming they will do something about it while clearly never having any intention to solve the problem.

And while we are on the subject of popular opinion, a huge amount of damage has been done by hypocrite politicians and elites. I don't care if the private jets they use to fly around the world and their huge electricity-guzzling mansions "don't emit much in the scheme of things", what people hate more than anything else is hypocrisy and unfairness. Particularly when the commoners are admonished if they claim their contribution or their country's contribution is insignificant in the scheme of things, because "everyone has to sacrifice because we're all in it together". I bet that 13% would be 5% and the 30% would be 10% if it wasn't for the entitled, wasteful, hypocritical and hateful behavior and rhetoric from these people -- our "betters" -- who have proclaimed themselves to be in charge of solving this problem.

And what we should be discussing is not stuck on the idiotic yes/no whether it's a problem and whether we should do something about it. That is done. The popular mandate for this has existed almost globally but certainly throughout the west for 20 years or more. What we should be talking about is having a real debate and ask difficult questions about the proposed solutions that are not well explained to the public.

We should ask why countries with high emissions intensity of production are getting concessions. That's an incentive to increase emissions of production. We should ask why talk about per-capita concessions have so much weight, when that is a good incentive for countries to increase populations and reduce living standards for their people.

comment 5y ago · link · parent

Wow that's stupid, I didn't look that closely. So it's really a 5x perf/watt improvement. I assume it will be the same deal for this, around 5-6x perf/watt improvement. Which does make more sense, FP16 should already be pretty well optimized on GPUs today so 30x would be a huge stretch or else require specific fixed function units.

comment 5y ago · link · parent

30x efficiency is specifically for 16 bit FP DGEMM operations, and it is in the context of an HPC compute node including GPUs and any other accelerators or fixed function units.

For general purpose compute, so such luck unfortunately. Performance and efficiency follows process technology to a first order approximation.

https://www.tomshardware.com/news/amd-increase-efficiency-of...

comment 5y ago · link · parent

This test can not be optimized to always true:

    if (count > 0)
        total += unit_price(volume, count);
Are you confusing it with the opposite scenario:

    total += unit_price(volume, count);
    if (count == 0)
        printf("oops\n");
That test might be optimized out because divide by zero is undefined behavior.

comment 5y ago · link · parent

Are these all things you're just making up? It's a common theory that first people reached Australia with the help of boats (and lower sea levels), for example.

Who claims they can not possibly have used boats?

comment 5y ago · link · parent

Practically all modern historians? Or even just the major consensus of this field? That's astounding to me, I have trouble believing it without at least some anecdotes. Do you have a link or name of one well respected and cited modern historian who adamantly believes this? And a reference to some of their writings or talks where they explain their ideas? That would be fascinating to read about, thank you.

comment 5y ago · link · parent

Oh I don't think women were supported and encouraged universally. I'm sure there were moralizing puritans as well as those who felt their positions of power threatened, who took great offense to women using male pseudonyms back then. I don't expect the outcome will be very different in this case.

comment 5y ago · link · parent

100% of this solar system's other planets and moons are (likely) unreachable by you within your lifetime.

comment 5y ago · link · parent

> part of the world which is now called Austria

The phrase "present day Austria" is commonly understood to mean exactly that.

I see nothing wrong with the title. Surely the ambiguity caused by the possibility that Austrians might be using their time machines to eat ancient cheese didn't cause you too much confusion?

comment 5y ago · link · parent

> I am genuinely glad we are progressively leaving the "ancestors were dumb" narrative. It seems to have been a long and slow process, I fully root for it.

Other than the "our dumb ancestors dumbly believed their ancestors were dumb" narrative, I don't think I have ever seen this among people who who have actually seriously thought about it.

And if you're referring to dumb cavemen hitting everything with clubs "narrative" that's seen in comedy and other entertainment, I don't see why you think this article indicates we're moving away from that. Or really what the problem with it is at all, or why we would want to move away from it. Larson et al. rigorously proved it to be hilarious.

comment 5y ago · link · parent

> Assuming you have an hardware DMA ring buffer for I/O that is directly mapped in userspace, the only thing that is really needed is to write the operation type, size, disk position and memory position to the ring buffer, update the buffer position and check for flush, doable in around 8 CISC instructions (plus the slowpath), so around 100x inefficient.

This type of thing is not measured in instructions anymore, it's measured in off-board operations and latencies. Cache misses, latencies to poke MMIO and get back interrupts if necessary, DMA transfer to complete, device access time. In this case it seems the hardware is theoretically capable of about 12M so the core mostly be just waiting for that.

comment 5y ago · link · parent

Oh hang on a minute, I'm not so sure. The right to not be offended by anything could have its perks.

I'm offended that people responsible for or complicit in wars and intervention and destruction of Iraq, Afghanistan, Libya, Syria, etc. have not been found guilty and imprisoned for life, while we're being preached at by these same criminals about how the collective good is our paramount responsibility.

I'm offended people are being told their freedom must be sacrificed so their hospital systems can remain as gutted and fragile as ever, years after fairly gradual pandemic with relatively low hospitalization and death rates almost caused health systems to collapse, while allowing the ruling class and multinational corporations to get away with obscene tax loopholes that could be helping to pay for an actual robust health system.

Yes I think we could make some real progress here.

comment 5y ago · link · parent

Well no to be fair the vaccines actually don't work very well at all, compared to what was commonly understood for earlier vaccines. This is why various definitions of the word had to be adjusted to reflect the new understanding and definitions around these covid vaccines.

The covid vaccines do not appear to provide immunity to the disease at all (or not in large proportion, as in previous vaccines). Certainly not in all the cases they consider to be successful vaccinations, which use reduction in hospitalization or death as the headline numbers. Many people can certainly contract and transmit covid after being vaccinated.

And you can die of multiple contributing factors. If he did not have cancer he might have survived. If he did not have covid he might have survived. A significant proportion of covid deaths have various other factors like this in play though, so Colin's case is not unusual to be listed as covid, vaccinated or not.

comment 5y ago · link · parent

I'm not sure what any of this has to do with my asking about objective data, even with your very generous idea about the definition of objective data.

comment 5y ago · link · parent

Not knowing anything about surfing, why can't you casually paddle out anyway, and get your pick of the good stuff when it comes. Do you not know it's good until it's further in?

comment 5y ago · link · parent

> But the government is acting as an agent for hire. Ugly.

I fail to see the "but". This is how the corporate-political cabal operates. They go to war for corporations, they assassinate leaders and sponsor genocidal uprisings. They do the same thing and worse to people like Assange who dare to lift the lid on any of their dealings. You think something as mundane as this is above them?

What's surprising is that any of this is a surprise to anyone.

comment 5y ago · link · parent

> Yes, why shouldn't it go to the same dataset?

I didn't say it should or shouldn't, I was just asking about the data you are using.

> Sure, they can drive only in routes that are less difficult. But they have a product to develop (a public robotaxi service) and areas to expand. So they don't really have an incentive to exclusively work towards artificially reducing disengagement rate.

Oh they absolutely do if people buying their shares, their services, employing them, or writing legislation, or just general public attitudes are influenced by this data.

The marginal cost of cars is so low given the costs involved that it would be trivial to add easy miles while still doing difficult routes to develop the product. Including doing most of the difficult work in other states.

> Nope, I indeed mean they are better than Tesla. There are no other (aspiring or current) L4+ systems that don't use lidar. When Tesla used to report disengagement rate in CA, they were still worse than their competitors. That and the tons of YouTube videos showing FSD being unable to handle basic scenarios tells us their current disengagement rate is far worse than competitors.

Okay, so not the objective data I wanted but thanks for helping.

> What they should be really doing is start being transparent and report safety data like everyone else.

I don't think this is really a matter of transparency given all the problems with the data and tests we've just identified. When the products and are made available to the public that would be a different matter.

comment 5y ago · link · parent

Are you talking about entertainment videos where some random person tests there own car where the cut to the beginning the most difficult routes they have found where previous software and sometimes even human drivers have difficulty, with the uneventful parts often cut or sped up?

If so, I've seen quite a few of those for the Tesla FSD beta, but none for any other cars. Not that I try to find them, the Tesla hype must just make those come up more. Do you have any of them with other cars showing them go through these same routes without problems, that FSD struggles with? That might be fun to watch, even if it's not significant actual data.

comment 5y ago · link · parent

Well it's the government that is prosecuting the person, it's just that the corporate-political oligarchy is for them, not you.

How do you expect the plebs to "push back"? You get bullied, threatened, branded a conspiracy theorist, their corporations censor you and publish lies about you. If you're a really big threat they get law enforcement and intelligence agencies to go after you, manufacture evidence, create charges, persecute you in their "secret courts".

They have six ways from Sunday at getting you.

comment 5y ago · link · parent

> Yes. CA DMV accident and disengagement data for self driving systems using Lidar show they are indeed better (and by miles).

This seems to be a self reporting scheme for companies testing self driving cars in the state. I could find little or nothing about the details of the testing being done or methodology used by each company.

> Note that Tesla refuses to share FSD beta data because they classify it as a level 2 system. I'm willing to bet their disengagement rate is in the single digits.

Hypothetically, could company A use company employees as human drivers driven specific routes chosen by the company, while company B used volunteers from the public in their own cars driving their own routes, and both data sets would go into the same CA DMV data?

Could company A have any incentive to improve miles per disengagement to the point where they might intensively train their drivers, direct them about certain situations which don't require disengagement, etc., choose to drive on routes known to be less difficult? And could the drivers employed to do so much test driving rapidly learn more about the behavior and know when they can avoid disengagement?

If so, then I'm a bit skeptical about the objectivity of that data.

Given Tesla FSD numbers are not included, are you saying that data is showing lidar systems are better by showing numbers for e.g., Waymo and Cruise vs other non-Tesla companies which don't use lidar? Which companies are those? I'd like to understand how you're using this CA DMV data.

comment 5y ago · link · parent

> While that's significant, replacing all fossil fuel usage for power production is significant.

I'm not sure what you mean by that.

Replacing fossil fuels outside electricity generation will require large amounts of electricity. Hydrogen production using electrolysis, electric arc furnaces, battery charging, etc.

comment 5y ago · link · parent

I do. I don't see how your comment addresses what I wrote though.

comment 5y ago · link · parent

Do lidar driving systems have objectively better performance? Genuine question (I don't keep up with driving "AI"). I'm skeptical if they would never kill anyone or cause any crashes.

That said, I see sign poles flattened all the time. Paint and tire marks all over barriers, walls, and islands. People crash all the time. The old anecdote game isn't really useful, automatic driving could be 100x better than human drivers in all measurable metrics and you'd still be able to upload dashcam videos of it fucking up.

comment 5y ago · link · parent

It is a lie. The company does not "defy" anything about the opposing side of the minimum-wage debate. It is a deliberate and calculated lie about the characterization of the minimum wage debate.

Unless there happens to be a major group I've never heard of in that state which opposes legal minimum wages and also wants legislation to outlaw companies giving pay rises to their lowest paid workers.

comment 5y ago · link · parent

That's not the part being taken issue with, this is:

> What Winston Plywood is doing defies almost everything we have been told about wages in Mississippi — that raising the minimum wage would cripple profits, throw company pay structures into chaos, create inflation and ultimately wreck the economy.

The minimum wage of that debate is a government legislated minimum wage, obviously.

They took a story of interest and lied about it to mislead people to put a favorable spin on a political issue. I.e., modern journalism.

1
808182
95