Better HN
topnewbestaskshowjobs
Log inSign up

Denvercoder9

5,570 karma · joined Oct 5, 2013 (13y ago) · 1,210 submissions

Submissions

comment 3y ago · link · parent

> will continue to be dependent on petrochemical solids for long after we switch completely to electric vehicles and renewable energy

Does anyone have insight in what the negative effects here are, if any? It feels like this should be problematic, but I just can't put my finger on what problems this is creating. Like e.g. extracting oil to create single-use plastics that get put in a landfill after usage: it sounds bad, but what's actually the problem (assuming the whole process is done without burning any of the oil - which afaik is possible)?

comment 3y ago · link · parent

> So like 3 people...

Just about everything human-built around you had someone consider the thermodynamics of it during the design.

comment 3y ago · link · parent

I think the water board can spare ten bucks for interest out of their €130M budget.

comment 3y ago · link · parent

Or people on H-1B visas that can't take the risk of leaving.

comment 3y ago · link · parent

> GCC and Clang are state of the art optimizing compilers for C/C++ and it's interesting that all the effort to optimize compilers is for those languages.

The optimizers from GCC and Clang aren't usable just for C/C++. Both compilers have frontends for different languages that share the optimization pipeline. For example, GCC has a D frontend, and the Zig compiler has a LLVM backend.

comment 3y ago · link · parent

Exif data is the metadata of the image.

comment 3y ago · link · parent

> all phones should be like that.

No, let's have some choice. You pay for the ruggedness in size, weight and aesthetics. That's not a trade-off everyone wants to make.

comment 3y ago · link · parent

I wouldn't attach any meaning to an election that didn't allow most candidates to run, had the lowest turnout in history, and still ended up with a significant amount of blank/invalid votes, despite that being explicitly forbidden.

comment 4y ago · link · parent

What's the blast radius of this? Are only specific models of phones affected (if so, which?), or does this impact entire brands or the whole ecosystem?

comment 4y ago · link · parent

What you want to look at in that table is reciprocal throughput, which is almost everywhere doubled for 512-bit wide instructions.

comment 4y ago · link · parent

While I agree that in general a warning about "condition is always true/false"-style checks is useful, it's also a bit tricky to do without false positives. With macros and inlining (and in C++, templates) you can easily end up with conditionals of which any given instance is always true or false, but that aren't superfluous. Portability is another example. Depending on your environment and code style hitting these might be exceptional and warning-worthy, or something that happens all over the place.

comment 4y ago · link · parent

The C specification doesn't say anything about what a compiler may or may not do during compilation. It only specifies how the compiled program should behave.

So, yes, the C specification allows a standard-conforming compiler to erase your disk during compilation. It even allows it to do that if your code doesn't contain UB.

comment 4y ago · link · parent

> But there are better and worse things compilers can do in the presence of UB, and the big one is warning you about it when it possibly can.

The problem is that this is really hard to do without producing either too much or too little warnings, as undefined behaviour is usually input-triggered; and the compiler usually doesn't know all constraints on the arguments that the programmer knows about.

For example, the function f() in the article of the other discussion is perfectly well-defined for any argument x <= 0x402010, as in that case no overflow happens. The compiler doesn't know whether all callers ensure the argument is valid (e.g. this might be a library function, or the invariants might not be expressable in a way the compiler can understand). This is a lose-lose situation for the compiler: it can warn, but people will find the unnecessary warnings annoying and turn them off, while if it doesn't warn people will complain about perceivedly bad optimizations.

Of course there's a point to be made that the real problem here is that the C standard makes signed integer overflow undefined behaviour, but that's not gcc's fault and can be easily worked around with -fno-strict-overflow or -Wstrict-overflow.

comment 4y ago · link · parent

It's physically impossible to dedicate one satellite to time synchronization. The satellites broadcasts a time signal, but that's the time at the moment of transmission, not the moment of reception. Since the receiver by definition doesn't know where it is yet, it doesn't know the propagation delay from the satellite, and it can't calculate the time at the reception site (to the accuracy needed for positioning, anyway).

comment 4y ago · link · parent

Not completely true; while you don't have to accept messages for them to show up in your conversation list, when you receive the first message from someone not in your contact list you get the option to choose between "report", "block" and "continue".

comment 4y ago · link · parent

You want to be very careful about what kind of equipment you power like this. If it has resistance that's substantial compared to the resistance of the lamps, the voltage divider won't be a neat 50:50 anymore and you'll get more than 110 V.

comment 4y ago · link · parent

I don't understand this attitude. Shouldn't the requirement be that it's better than the alternative, i.e. human drivers? Human drivers certainly aren't impeccable.

comment 4y ago · link · parent

Most defense stocks are up YTD.

comment 4y ago · link · parent

The chart for my country show both an obvious jump from February to March and from June to September: https://www.cbs.nl/nl-nl/visualisaties/dashboard-economie/pr...

comment 4y ago · link · parent

> If you don't believe me then open an inflation chart of your country of choice and try to spot any change to the shape of the curve around Feb 2022.

That's not how it works. It takes time for price increases to propagate through the supply chain. Utilities usually contract their gas months ahead, so if the prices for natural gas increased in February due to the war, the increase in consumer prices wouldn't have happened until months later.

comment 4y ago · link · parent

Chapter 11 proceedings will not pay investors before depositors.

comment 4y ago · link · parent

> Economically, it doesn't seem to make sense for artists and venues to be giving so much money to a partner who is delivering so little value.

Artists and venues receive a part of the fees that TicketMaster charges. TicketMaster's essentially being paid by artists and venues to be the bad guy.

comment 4y ago · link · parent

The geography of the UK isn't really suitable for space launches. You want to launch eastwards to benefit from the rotation of the Earth, and (unless you're China) you don't want to launch over land in case your rocket fails. Launch sites further south might also be preferable as they have better access to low inclination orbits (though for polar orbits you'd prefer northern launch sites). There's no good location in the UK that satisfies all these. Btw, the US does most of its launches from Floria for much the same reasons.

comment 4y ago · link · parent

> Falcon Heavy is not designed for crew. [..] On the other hand, this launched today.

The Orion capsule launched today did not include the ECLSS system.

comment 4y ago · link · parent

Those things don't seem to be e-ink displays, which (imo) makes a huge difference in applications like this.

comment 4y ago · link · parent

No, as not all memory is free()'d, think e.g. of crashes and buffer overflows.

comment 4y ago · link · parent

Those agencies tracking reentry also are of the opinion that the risk to any individual is negligble: see e.g. https://twitter.com/jeff_foust/status/1587858672373403654

comment 4y ago · link · parent

It's actually good to not support such things, because it makes it way too easy to give more permissions than you intent to. In your example it effectively gives unlimited root access, as you can do `systemctl edit unit-name` and change the unit to run arbitrary programs as root.

comment 4y ago · link · parent

> ~2,936,000 changes

I don't think it makes sense to add all added and removed lines together and call it "changes": for example, this counts even a single character typo fix as 2 changes.

1
141516
41