HNHacker News
TopNewBestAskShowJobs

lorenzhs

5,080 karma · joined March 7, 2014

submissionscomments
lorenzhs··on The new Google Pay repeats all the same mistakes of Google Allo
You can also combine that with a DNS-level ad-blocking pseudo-VPN running on the device (like a pi-hole but without the pi). That gets rid of most in-app ads and a ton of tracking.
lorenzhs··on Tintern 'secret' medieval tunnel system found by accident
It's the same with some countries' names. Switzerland always has a female article in German: you can spend your vacation in France ("in Frankreich") but Switzerland requires an article ("in der Schweiz"). Same with Iran and Iraq, which always require a male article, and some plural countries (Netherlands, US). Note that the full list is quite a bit longer: https://deutschtraining.org/deutsche-grammatik/artikel/laend...
lorenzhs··on Accidentally quadratic: When Python is faster than C++
They're not part of the standard, but gcc, clang, and icc (Intel) support them. Alternatively, you could emit the correct instructions in an asm block on supported architectures (x86: 'jo'/'jno' for jumps, 'cmovo'/'cmovno' for conditional moves [1]) or reimplement the operations in software [2]

[1] https://www.felixcloutier.com/x86/jcc and https://www.felixcloutier.com/x86/cmovcc

[2] https://wiki.sei.cmu.edu/confluence/display/c/INT32-C.+Ensur....

lorenzhs··on The Air Force is having to reverse engineer parts of its own stealth bomber
s/CCCP/СССР/ - Latin C and Cyrillic С (and P/Р) are different unicode characters, see also https://en.wikipedia.org/wiki/IDN_homograph_attack ;)
lorenzhs··on Accidentally quadratic: When Python is faster than C++
Why do you assume -std=c++20? The code is written for C++17, and compiles just fine for that.
lorenzhs··on Accidentally quadratic: When Python is faster than C++
Something like this? https://godbolt.org/z/6nod5e. It even produces almost identical assembly.

The equivalent to checked_mul is __builtin_mul_overflow, which is a compiler builtin: https://gcc.gnu.org/onlinedocs/gcc/Integer-Overflow-Builtins.... Similarly, saturating_sub seems like it can be implemented with __builtin_sub_overflow.

lorenzhs··on Don’t blindly prefer emplace_back to push_back
Several few decades ago, pointer chasing was much cheaper because the difference between an arithmetic operation and a memory access was far lower. CPUs in those times didn't even have caches (because they weren't needed). That made linked lists a reasonable choice. But CPU and memory speeds have been diverging -- both are growing at an exponential pace, but with different exponents, so the gap is also growing exponentially! So now we have a huge memory hierarchy and random accesses into memory are really slow and linked lists rarely make sense.
lorenzhs··on LastPass Android app has got 7 trackers in it
It integrates with the system password manager interface but it's sometimes a bit slow to start. I think the problem is that it updates the passwords every time it is opened instead of relying on cached copies. Other than that it works fine.
lorenzhs··on Why Nuclear Must Be Part Of The Energy Solution (2018)
It's mostly cautionary but a problem for forest management because it means that the radioactivity of game has to be checked and it often can't be sold. I've eaten the mushrooms in question (self-picked) and would do it again. They're delicious. But my region also wasn't particularly hard-hit by the Chernobyl fallout.
lorenzhs··on Why Nuclear Must Be Part Of The Energy Solution (2018)
France is investing heavily: "By 2028, the European Union’s second-largest economy wants to double installed renewable electricity capacity to up to 113 GW, compared to 2017." https://ieefa.org/france-boosts-renewable-energy-spending-to... which btw also says "Meanwhile, 14 nuclear reactors in the country will be closed by 2035, two of which have already been shuttered at Electricité de France SA’s Fessenheim plant in eastern France this year."

100% solar is a strawman you constructed. Nobody is suggesting anything close to that. And don't pretend that uranium mining is a clean business.

Power to gas technology is still in its infancy, efficiency rates will improve as it is scaled up. Every technology starts out small.

Any nuclear project we start now won't be producing power for at least a decade, more likely two. We don't have that time. You might have had an argument twenty years ago, but arguing that we can defer renewable investment if we just build enough nuclear now doesn't make sense to me. By the time your proposed plants start to come online, the transition needs to be complete.

And if you're truly interested in debate, maybe you shouldn't compare your opponents to a murderous regime?

lorenzhs··on Why Nuclear Must Be Part Of The Energy Solution (2018)
"Utilizing 28.36% of installed capacity" is what the linked map says about solar right now.

I just rewound the slider to 8pm yesterday and it says "35% renewable".

lorenzhs··on Why Nuclear Must Be Part Of The Energy Solution (2018)
"Base load" doesn't really exist any more. Yes, there's a minimum below which demand almost never dips, but the implication of base load is that this should be produced by the type of power plants that provide a continuous supply, like nuclear or coal. But these are extremely inflexible and can't react quickly to changes in demand or supply by other means. As the share of renewables grows, the position nuclear is in becomes worse, not better. More flexible solutions are needed that don't need demand scheduling days or weeks ahead.
lorenzhs··on Why Nuclear Must Be Part Of The Energy Solution (2018)
Your use of "green energy ayatollahs" tells me you're more interested in ranting than debate. Yet even in the current low-wind, low-sun scenario, 37% of German electricity is from renewable sources according to your link. Your conclusions don't match your own data.
lorenzhs··on Why Nuclear Must Be Part Of The Energy Solution (2018)
"As a result of the Chernobyl reactor accident, certain species of mushrooms and wild game are still highly contaminated with caesium-137 in some areas of Germany." https://www.bfs.de/EN/topics/ion/environment/foodstuffs/mush..., from the Federal Office for Radiation Protection.
lorenzhs··on Why Nuclear Must Be Part Of The Energy Solution (2018)
It's well known that coal exhaust isn't fairy dust, but it doesn't pose a storage problem [edit: on the scale of millenia], so your argument amounts to whataboutism.
lorenzhs··on Why Nuclear Must Be Part Of The Energy Solution (2018)
> "But instead of getting the other 50% from a relatively clean source (nuclear), they choose instead to use fossil fuels."

Unless you're saying that Germany is choosing to build new fossil fuel plants instead of building more renewables (which it largely isn't), what you're describing is a transition that isn't finished yet, not a choice.

lorenzhs··on Facebook is pushing back on Apple’s new iPhone privacy rules
I use https://apps.apple.com/app/apple-store/id691121579 but the UI is very basic - it doesn't come with any filter lists, you need to point it at a hosts list like https://raw.githubusercontent.com/BlackJack8/iOSAdblockList/... manually. It's not compatible with other VPNs at the same time and it displays as a VPN in the top bar. Not ideal but
lorenzhs··on Enable hibernation when Lockdown is enabled
How do you suggest enforcing that root can't write to a LUKS swap partition? Root knows the key, root can write to block devices, what's stopping me from disabling swap and writing a backdoored image to the partition with a user-space implementation of LUKS?
lorenzhs··on Lithuania plans to hold drills in case of accident at the Belarus nuclear plant
Nah, I disagree with him a lot, too, but I recognise the nickname from other communities. He's just a dude who's very passionate about nuclear power and, iirc, holds some other views I strongly disagree with. But he's entitled to his views and opinions. I'm much more annoyed by the people who vote his comments to the top :)
lorenzhs··on Before buying a NYT subscription, here's what it'll take to cancel it
German law stipulates that ToS requiring a call (or letter) to cancel when you subscribed online are void (§ 309 Nr. 13 BGB limits what restrictions can be placed on the mode of communications). Cancelling via their contact form, email, or even SMS is totally fine as far as the law is concerned. I don't see how the NYT could refuse your cancellation via their contact form. Maybe nobody's bothered to sue them? (IANAL)

Deepl translation of the law: Even to the extent that a deviation from the statutory provisions is permissible, the following shall be invalid in general terms and conditions: [...] 13. (Form of notices and declarations) A provision by which notices or statements to be given to the user or to a third party are bound a) to a form more stringent than the written form in a contract for which notarization is required by law; or b) to a form more stringent than textual form in contracts other than those referred to in point (a); or c) to special access requirements

lorenzhs··on Supermicro Hack: China Exploited a US Tech Supplier over Years [2021 Follow-Up]
The word of someone who's not an expert in the subject, who wasn't in the meetings and only heard about them via an unspecified number of intermediates, and doesn't even work there but "advises" the companies? Forgive me, but for the only sourcing of their main claim, that's a bit too weak to clear my standard of evidence.
lorenzhs··on Apple redirects Google Safe Browsing traffic through proxy servers in iOS 14.5
But their services revenue is from selling stuff (apps, in-app purchases, music/video/game subscriptions, cloud storage) to their users, it's just digital stuff instead of hardware. That doesn't change anything fundamental about the business model. They make money from selling stuff to their users. How is that at odds with the grandparent comment?
lorenzhs··on 20% of requests for Wikimedia Commons are for one image of a flower
> This is a pretty puzzling idea to me.

That's because you're responding to an entirely different issue. "Hotlinking" isn't linking to something, it's including a resource that is hosted elsewhere. It's putting <img src="https://concordDance.whatever/images/big_image.jpg"> on my website without asking you. Now if my site ends up on the front page of HN, that could cause a lot of traffic to your site, potentially overwhelming your server or increasing your hosting bill. It's not nice, and rightfully frowned upon.

lorenzhs··on The endless browser wars
You can export your saved passwords from chrome on chrome://settings/passwords, click the three dot icon to the right of "Saved Passwords" then "Export Passwords". You'll get a CSV file with columns name,url,username,password.

This file can be imported into Firefox with https://github.com/louisabraham/ffpass/ (Firefox doesn't support importing the passwords from a chrome profile on Linux). It shouldn't be too hard to import it into your password manager of choice, either.

lorenzhs··on Just because I have a vertical screen doesn’t mean I’m on a phone
ʇxǝʇ uʍop ǝpᴉsdn sʇɹoddns uǝʌǝ NH 'uɐǝɯ I
lorenzhs··on Google threatens to withdraw search engine from Australia
So just because a country is a democracy, Google has to do business there, and if they choose not to, that's dictatorial and an attack on the country's sovereignty? That's a strange argument. What other companies would you apply this standard to? Because there are lots that offer their digital services only in specific markets.
lorenzhs··on College campuses are designed at human-scale – cities can be too
I don't have a car, but the city I live in has an excellent car sharing system. I just checked, if I wanted to go hiking tomorrow, the nearest suitable car that's available all day is 200m from my place. Booking it for 8 hours and driving 100km would cost me 33€ ($41), all costs included. The key is in a lockbox that opens with a card, so it's available 24/7/365 without another human in the loop. Booking is easy and convenient. If the weather were any good tomorrow, I might have done that and gone winter hiking. Not having a car doesn't have to be as limiting as you may think :)
lorenzhs··on Nikon Is ending 70 years of camera production in Japan
Well, the parent was talking about their even older DSLR and their equally modern phone, so I'm not sure what your point is. Nobody is claiming that a 2020 phone is anywhere close to a 2020 (or 2015, for that matter) DSLR or mirrorless camera.
lorenzhs··on Nikon Is ending 70 years of camera production in Japan
I can't relate to this at all. I have a Canon EOS 450D (Rebel XSi, 2008 model year) with a few lenses that I used to love, but haven't really used for years now. Its low light performance sucks, it's almost impossible to photograph people at night. My phone does a much better job of that. Yes, the DSLR's optics run circles around any phone, but the sensor really does show its age. And since you specifically mention the autofocus, I just want to add that I find it infuriating. It's awful compared to my phone! It reliably focuses on the wrong thing and is really rather slow. At night, it barely works.

To me, the old DSLR is simply not worth the weight of lugging it around any more. It's funny how we have such different perceptions of our old DSLRs.

lorenzhs··on iPhone factory workers say they haven’t been paid, cause millions in damages
Wistron isn't "some supplier that almost exclusively supplies to Apple". They also manufacture electronics for Microsoft, Dell, Lenovo, Motorola. Originally, they were Acer's production arm. Lots of things about how workers in the supply chain are treated is very wrong, but if you accuse others of trolling, you'd better get your facts straight.
← PreviousPage 3 of 34Next →