HNHacker News
TopNewBestAskShowJobs

fpoling

4,446 karma · joined December 24, 2015

submissionscomments
fpoling··on LastPass notifies users of yet another data breach
I worked for a big company that switched from 1password to Keeper. The transition was smooth and I do not see why it shouldn’t be as long as IT knows what they are doing.
fpoling··on Mexican government unveils a prototype for a new homegrown, ultra-affordable EV
And they are so much nicer. Way less noise and pollution and much better maneuverability on narrow streets or on slippery roads in winter.
fpoling··on Identity verification on Claude
Many such IDs are designed for local physical verification, like proof that the mobile phone owner is above certain age or has a valid driving license, they are not designed for remote verification.
fpoling··on Prefer duplication over the wrong abstraction (2016)
With LLMs the cost of duplication is much lower both to write and maintain. So abstractions needs much higher justification.
fpoling··on Prefer duplication over the wrong abstraction (2016)
With LLMs the cost of duplication is much lower and LLMs
fpoling··on Computed goto for efficient dispatch tables (2012)
I wonder are there any compilers that recognizes switch-in-loop pattern of interprets and optimizes it to be branch-predictor friendly using multiple indirect jumps?
fpoling··on Norway greenlights first full-scale ship tunnel
A few years ago I counted 42 tunnels on 100 km between Voss and Bergen center.
fpoling··on Twenty One Zero-Days in FFmpeg
For executables on Linux there are things like bubblewrap or firejail. One can also use a restrictive container. But those are strictly weaker than browser sandboxes.

The most secure way presently is to use qubes-os that allows to use a very hardened VM to run individual applications.

fpoling··on Twenty One Zero-Days in FFmpeg
Browsers run it in a sandbox process together with allocator hardening. Most of the bugs then are just crashed of the sandbox

Another option is WASM or WASM-style sandboxes if using another process is undesirable.

fpoling··on Iran Shock Jolts Asia and Europe to Speed Up Energy Transition
Modern solar work nicely in UK in May-August when wind is weakest due to long hours and cooler weather. However one needs more expensive panels that also work on a cloudy days.

Then in UK somebody calculated that a house needs 1MWh battery to last over winter using only solar panels that a typical suburb house can install. In 5-10 years that would cost 40K USD making it rather realistic to have. This ignore availability of industrial-scale wind which is the strongest in winter.

fpoling··on Codex just found a "workaround" of not having sudo on my PC
The full access to the docker socket from a user account is typically used on a development machine where malware has many other opportunities to become a root.
fpoling··on Codex just found a "workaround" of not having sudo on my PC
User namespaces significantly rise the risk of exploits and many setups disable them. One may argue that Docker should have used them when they were available, but that would break too many useful setups involving privileged containers.
fpoling··on Danish Pension Blacklists SpaceX over 'Catastrophic Governance'
In 1920 in Berlin there were more electrical taxes than gasoline one. But cheap gasoline killed electrical car industry.

Without that electrical cars would proceed to develop and batteries with high capacity would happen much sooner.

As for pollution it would not be that bad. Fuel would be expensive and cars with combustion engines would not happen on massive scale. There would be much more freight by trains and nuclear energy would be developed on much bigger scale.

fpoling··on Danish pension fund excludes SpaceX citing governance and valuation
If oil and gas would not exist, then liquid fuel would be produced from coal. With the latest processes the cost of production is like 80 dollars per barrel, but with processes that Germans developed during WWII it was probably like twice of that in modern money.

In alternative universe that would be cheaper due to massive scale, but the era of very cheap liquid fuel would never happen. So electrical cars on big scale will happen much earlier. And given that coal is much more evenly distributed on Earth, one can speculate that there would be much less reasons for conflicts.

fpoling··on It's hard to justify buying a Framework 12
ThinkPad X1 from 2 years ago was very solid and under Fedora everything but camera worked out of the box. And for camera issue I had to blame myself for not checking details of a specific model as Lenovo was offering at that time fully-Linux compatible model. It took about one and halve year before Linux fully supported it. And I already upgraded SSD on it which took less than 10 minutes.

The only complain is bad battery life. With several VMs running mostly idle it doesn’t lasts even two hours. But then I used beefy MacBook M2 at my previous work and with VMs it lasted only 4 hours.

fpoling··on Migrating from Go to Rust
With Go basic stuff like url parsing or HTTPS support is written in Go and comes with the standard library. With Rust too many necessary things are just wrappers around C and C++ making cross-compilation and reproducible builds much harder to archive.

As for availability if CGO is ok, then calling C or C++ code from Go is not that hard. Also, there is always an option to just start C++ process if extra data copies are OK.

fpoling··on Migrating from Go to Rust
With backend serving many clients with widely varying performance profile of individual requests when latency spikes happen there is no particular hot loop. Just many go routines each doing reasonable thing but with a particular request pattern hitting pathological case of GC.
fpoling··on Migrating from Go to Rust
Java with its copying GC deals fine with fragmentation albeit at the cost of more upfront memory. And even in Rust one can change the allocator to try to deal with fragmentation. But with Go there is simply no good options besides the rewrite.
fpoling··on Green card seekers must leave U.S. to apply, Trump administration says
In his last book “The Dawn of Everything” David Graeber very convincingly argued that the idea of modern democracy came from Indian tribes in Northern America.

And it is also interesting how easily European countries went back to authoritarian or even totalitarian states given the opportunity. Yet US is more resilient and one explanation is subtle influence of Indian culture that still affects US.

As for technological advantage of Europe then 3000 years ago Ancient Egypt was way more advanced than Europe. 1000 years ago Arabic countries were more advance and 500 years ago China was more advanced. And Europe was lucky that China was focused on internal problems and not territorial expansion.

fpoling··on Migrating from Go to Rust
For me the main advantage of Go over Rust is compilation speed. Then compared with Go Rust still rely on many C and C++ libraries making it problematic to cross-compile or generate reproducible builds or static binaries.

The minus side of Go is too simplistic GC. When latency spikes hit, there are little options to address them besides painful rewrite.

fpoling··on Green card seekers must leave U.S. to apply, Trump administration says
The only real advantage of European settlers was smallpox immunity. If not for that the history could move in a very different direction.
fpoling··on I’ve banned query strings
Wikipedia web server treats anything after /wiki/ literally as the name of the article.

So en.wikipedia.org/wiki/// is the article about C++ style comments

fpoling··on AI slop is killing online communities
There was a post today that Google introduced unbreakable capture that required unrooted phone to pass its QR code.

We may end up with things like that…

fpoling··on Docker 29 has changed its default image store for new installs
On my 2 years old ThinkPad laptop SSD is faster than lz4. On a fat EC2 server lz4 is faster. So one really has to test a particular config.
fpoling··on F-35 is built for the wrong war
If Ukraine had access to Tomahawks, Russian oil industry would not exist at this point. With drones after two and halve years of attacks with multiple hits at the same refineries Ukraine reduced Russian fuel production at best by 20%.

Flamingo is still mostly vaporware. For precise strikes against Russian factories Ukraine uses either Storm Shadow or domestic Neptun.

But that just shows again that drones are not particularly effective against most industrial targets and even against oil installations the damage is not lasting.

Or consider how US was able to destroy the bridge in Iran yet Crimea bridge and bridges in Rostov that are absolutely vital to Russian war logistics still stands.

fpoling··on F-35 is built for the wrong war
Yep, apparently Ukraine still cannot affect fuel production in Russia to any significant point. Drones with less than 100 kg of explosives do not do particularly significant damage. One really need to deliver like a ton or more of explosives and for that one needs bombers that can penetrate air defenses or very expensive stealth cruise missiles or big ballistic missiles.
fpoling··on Europe has "maybe 6 weeks of jet fuel left"
Ukraine was not able to interrupt production of gasoline and diesel in Russia in a significant way after two years of targeting oil refineries. Then attacks on pipelines and their pumping stations were not effective either as Russia was able to repair damage within days and weeks. And then all Russian oil terminals on Baltic and Black seas are operational again albeit in reduced capacity after big Ukrainian attacks few weeks ago. Apparently 50-100 kg warheads that Ukrainian drones deliver is not that effective at damaging oil infrastructure.

This may change if Ukraine can sustain what they were doing last couple of months, but so far Russia benefits extremely well from US war against Iran.

fpoling··on Git commands I run before reading any code
The author does not look at counter values but rather at how the values changes. That reveals dynamics.
fpoling··on Case study: recovery of a corrupted 12 TB multi-device pool
But that is just raid on top of dm-integrity. And Redhat docs omits an important part when suggesting to use the bitmap mode with dm-integrity:

man 8 integritysetup:

       --integrity-bitmap-mode. -B
           Use alternate bitmap mode (available since Linux kernel 5.2) where dm-integrity uses bitmap instead of a journal. If a bit in the bitmap is 1, then corresponding region’s data and integrity tags are not synchronized - if the machine crashes, the unsynchronized regions will be recalculated. The bitmap mode is faster than the journal mode, because we don’t have to write the data twice, but it is also less reliable, because if data corruption happens when the machine crashes, it may not be detected.
I just do not see how without a direct filesystem support one can have both reliable checksums and performance.
fpoling··on Case study: recovery of a corrupted 12 TB multi-device pool
lvm only supports checksums for metadata. It does not checksum the data itself. For checksums with arbitrary filesystems one can have dm-integrity device rather than LVM. But the performance suffer due to separated journal writes by the device.
← PreviousPage 4 of 16Next →