HNHacker News
TopNewBestAskShowJobs

arghwhat

9,034 karma · joined January 12, 2017

no.
submissionscomments
arghwhat··on Ask HN: Why is there no P2P streaming protocol like BitTorrent?
With streaming, the service provider is generally also controlling the clients, so they should be much better off when it comes to client behavior.

In case of bring-your-own-client, the incentives are exactly the same: Clients would likely default to good behavior as network health equals user experience, and exactly like BitTorrent there will be neither punishment nor need for it if some clients disobey.

arghwhat··on Temu pulls its U.S. Google Shopping ads
It might have been better reputation-wise than the current game of chicken, but tariffs will always sour economic partnerships, which in turn leads to bolstering alternative economic partnerships...
arghwhat··on Temu pulls its U.S. Google Shopping ads
Temu vs. AliExpress is usually a shipment speed vs. cost tradeoff. Their catalogues also differ quite a bit in some areas, so sometimes one has to use one or the other.

I feel like AliExpress has improved in this area though, likely due to pressure from Temu.

arghwhat··on Temu pulls its U.S. Google Shopping ads
> I personally feel bad for the environment

1 item per day is certainly not efficient, but nowadays temu and aliexpress batch things over a small period so that shouldn't really happen...

> and all the people on the losing side of cheap low quality junk production

Remember that taking away bad jobs does not save anyone, quite the contrary. People go from having shit jobs to no jobs, or even worse jobs with lower-profile companies.

Helping them requires creating vast numbers of better paying jobs with better working condition in their country, which require redirecting vast amounts of money to those countries. E.g., by buying even more stuff from those regions, but from manufacturers paying better wages (and selling goods more expensively), so they end up having to massively expand and hire more.

arghwhat··on Ask HN: Why is there no P2P streaming protocol like BitTorrent?
This comments on why bittorrent as is isn't used for live streaming, not why P2P shouldn't be used for live streaming

> Latency matters. In bit torrent if the peer goes away, no big deal, just try again in 5 minutes with another peer, you are downloading in random order, who cares if one piecs is delayed 5 minutes. In a live stream your app is broken if it cuts out for 5 minutes.

First of all, BitTorrent clients do not download in random order or wait 5 minutes. They usually download the rarest block first, but can do whatever they want, whenever they want.

Second, standard HLS sets a nominal segment size of 6 seconds (some implementations will go as high as 10 seconds), and a client will usually cache multiple segments before playing (e.g., 3). This mean that you have 18 seconds before a segment becomes critical.

This is not a difficult thing for a P2P network to handle. You'd adapt things to introduce timing information and manage number of hops, but each client can maintain a connection to a number of other clients and have sufficient capacity to fill a segment if a connection fails. Various strategies could be used to distribute load while avoiding latency penalties.

Low-latency HLS uses much smaller segments and would be more demanding, but isn't impossible to manage.

> BitTorrent punishes people who dont contribute

Private communities punish this behavior, BitTorrent clients do not. Most new downloads will appear as freeriders for a long time, and only over long periods far exceeding the download time will enough compatible seeding opportunities arise for them to contribute in any substantial way.

The network does not need everyone to seed, it only needs enough people to seed.

arghwhat··on SSD1306 display drivers and font rendering
The I2C peripheral is DMA - a write just queues an operation descriptor in a hardware FIFO, and interrupts fire whenever something exciting happens or the FIFO is drained. The synchronous implementation is just blocking on a condition set by the interrupt handler.

But this is exactly the kind of thing the SPI peripheral is meant for. This cannot be said for the I2C peripheral, with its measly fast mode support.

Depending on the chip and your usecase, you might also want to use I2S for your DAC.

arghwhat··on SSD1306 display drivers and font rendering
I2C is fine for sensors and other low-bandwidth devices, but inappropriate for displays and other high-bandwidth devices.

When used with those kits, you'd use the QWIIC/whatever connector for all the sensors and other low-bandwidth things like I2C is meant for, while the display would be connected with SPI.

(I2C isn't more plug and play than SPI though, and a preterminated plug shouldn't be a big deal.)

arghwhat··on SSD1306 display drivers and font rendering
Go for the SPI version, which is the same chip but just s different breakout board.

Many ESP32's can only do 400kHz I2C, whereas their SPI peripheral can often do 80 MHz or more (although you wouldn't want to go that fast here). 400kHz sort of works, but if you also want to handle other I2C devices it can easily become a problem.

arghwhat··on Air pollution fell substantially as Paris restricted car traffic
Same tier EVs are always more powerful than gasoline cars as they are generally just battery limited, not motor limited.

EVs are just a better tech in that regard, and buyers are not buying a Dolphin or golf based on torque or max HP. They're compacts in the same space. Someone looking at a dolphin would more likely be looking at the lighter eco motors.

This is true in other tiers too, e.g. a performance tier gasoline car might be 250-350 HP, while the same tier EV might start at 450-550hp just because they can.

The difference within a tier, simply based on the fact you're replacing at best a lightweight 100kg engine with 400-500kg worth of battery, can't be as small as you suggest.

With larger EVs, the battery weight is much greater, increasing the impact. Rocket equation and all.

arghwhat··on BPS is a GPS alternative that nobody's heard of
This is a clickbait article. More towers mean that existing triangulation somewhat more accurate, and "anyone with access" is the cellular service provider.

5G does not always result in more towers, it just supports closer towers for better performance.

"Anyone with access" to Google or Apple data also knows exactly where you are. "Anyone with access" to <social media app of choice> knows exactly where you are. "Anyone with access" to police databases know exactly where you drove. "Anyone with access" to VISA/Mastercard data knows exactly where you've shopped. "Anyone with access" to Find my data will know exactly where your phones, headphones, and other trackable items are at any point in time.

This isn't a complaint about 5G, but about cellular anonymity which has never existed.

arghwhat··on Air pollution fell substantially as Paris restricted car traffic
The lower battery trim is not available in all markets, and only does 300km on a charge which is below average. As such the minimum weight will have to be the 1658 kg value.

The BYD is taller to offset the battery, making the size misleading. However, the golf is not particularly a particularly good or space efficient car - others will do better at similar or lower weight.

250kg seems like a fair minimum weight increase, roughly 20%. The larger the car, the larger the gap though, as the rocket equation catches up - see a Skoda Octavia vs. a Polestar 2.

EVs are still way more efficient, but that doesn't mean we should turn our blind eye to making an already bad tire problem worse.

arghwhat··on Air pollution fell substantially as Paris restricted car traffic
You are comparing the max loaded weight of the polo with the unloaded weight of a dolphin.

VW Polo Mk6 is 1751mm wide, 1461mm tall, 4067mm long and has an unloaded curb weight of 1105 kg. https://en.m.wikipedia.org/wiki/Volkswagen_Polo_Mk6

The BYD Dolphin 2025 60kWh is 1770mm wide, 1570mm tall, 4290mm long, and has an unloaded curb weight of 1658 kg. https://bydautomotive.com.au/brochures/BYD-DOLPHIN-2025.pdf.

The VW Golf Mk8 might be a better comparison with an unloaded curb weight of 1255 kg, which reduces the gap from 543kg to 403kg.

(Note that for the gasoline and diesel cars, lighter trims give longer range, whereas it is opposite for electric cars, and that a fully loaded 45L tank of a polo weighs less than 40kg, especially if gasoline)

arghwhat··on BPS is a GPS alternative that nobody's heard of
There is zero relation there.

OP is falling about the spec incorporating usage monitoring.

5G was designed with a very public and explicit goal for IoT of allowing many more devices to connect than 4G could, and more conveniently. Nothing unexpected or user-harming, and nothing new as 4G was already used for IoT.

arghwhat··on Air pollution fell substantially as Paris restricted car traffic
In the EU an average car is 1400 kg (3000 lbs), with most vehicles probably in the 1000-1200 kg range. We don't really want the average here, but the median - and we don't want to compare to the average EV, but to the equivalent EV - comparing an F150 to, say, a model 3 isn't right.

A BYD Dolphin, roughly sized like a VW Polo, is some 400kg heavier than the polo. A Polestar 2 is roughly 500 kg heavier than equivalent sized cars. In other words, something like 33% heavier.

arghwhat··on Air pollution fell substantially as Paris restricted car traffic
We're talking about brakes, not engines.

But I know at least one EV maker that has a manually selected mode that guides you through driving with the brakes engaged for surface treatment, as rust buildup will be the main issue.

arghwhat··on Rust to C compiler – 95.9% test pass rate, odd platforms
Using C compiler infrastructure, taking Rust where rustc/llvm does not go. Proprietary platforms with proprietary compilers for example.
arghwhat··on systemd ParticleOS
logind does not "manage devices", it just provides an API for your display server to open privileged I/O devices and get a file descriptor, and have these file descriptors revoked later.

The difference with a plain `open` is that logind will allow only one process at a time to have access, and only for sessions that logged in physically (tracked using PAM), and does not require the process to have direct file access (which could enable key-logging). It will also revoke the file descriptors when switching sessions.

logind's other random features like dock and power button triggers can be done whenever logind is running and ready - the underlying API reports levels and are not timing critical.

The only thing logind really uses at runtime from systemd is temporary storage of file descriptors that it can get back after restart for graceful upgrades.

Projects like elogind and eudev exists that painstakingly strip out the systemd portions while retaining the functionality, but it's an uphill battle to constantly redo every time there's a change.

arghwhat··on Systemd ParticleOS
Modularity would be to be able to use, say, systemd-logind or systemd-udev without using systemd as your init, as there is no tangible or important dependency on the use of systemd as init for those functions.

On a fully-systemd system you can opt out of systemd features. But you cannot opt in to systemd features on a non-systemd system.

arghwhat··on Photo calorie app Cal AI was built by two teenagers
The point of the app is to figure out the calories of a meal automatically by taking a photo.

Without knowing the amount of sugar, butter, oil, etc. is used in a dish, one cannot know if a dish is worth 250 kilocalories or 750 kilocalories.

If I need to manually fill in details of ingredients and amounts to get to the calories to be have an error margin of less than 100%, then the app is not useful and is at best misleading.

arghwhat··on US Administration announces 34% tariffs on China, 20% on EU
The case for the local guy is not calculated correctly for EU VAT, leading to the misunderstanding. The cost of the input increases proportionate to VAT, with the VAT refund cancelling this out exactly.

Let's assume as you did that the actual input has the same real cost to manufacture (ignoring e.g. local labor cost differences, fuel cost differences, government incentives, etc.), and that your example therefore needs exactly 80 USD worth of real, untaxed input in both cases.

The US producer buys this for 80 USD out of pocket as there's no VAT to pay, adds 20 USD profit and sells it for 100 USD. An importer adds 20% VAT, making it 120 USD.

The local producer has to pay VAT so their price for the same thing is 96 USD out of pocket. They get 16 USD VAT back from the government next time they file VAT (irrespective of what they sell), i.e. the "relief" undoes the VAT entirely. They add 20 USD profit making the price 100 USD, add 20% VAT, and what do you know, same 120 USD price tag.

In both cases the final consumer price is 120 USD, and after VAT is cleared the input seller gets 80 USD, the producer itself gets 20 USD profit and the government at the point of consumer sale gets 20 USD VAT.

If the local guy exports the goods to the US the VAT is refunded, making both prices 100 USD. Input seller earns the same, profits remain 20 USD, but no VAT is earned.

This is also why all companies only discuss prices excluding VAT, as the VAT is purely symbolical if it's not a consumer sale.

arghwhat··on US Administration announces 34% tariffs on China, 20% on EU
> Local produces also have VAT reduced by the value of goods they bought locally, so it is not such a burden for a local producer vs importer who doesn't benefit from such VAT reduction at all for his costs.

Huh? VAT is transparent to all involved companies regardless of import/export in such a way that the final transaction to a consumer cover the whole VAT of the value chain.

A quick VAT tutorial:

---

The local producer buys seeds, and pays a price that includes VAT. They then sell crop for a price that includes VAT. The difference is settled with the government: The local producer gets back all the VAT they paid, and instead give the government all the VAT they collected.

A reseller buys local produce at a price that includes VAT, and sells it at a price that includes VAT. They then get back all the VAT they paid (which is exactly what the government got from the local producer from this exact transaction!), and in turn give the government VAT they collect from the final consumer.

In the end, the amount of VAT retained by the government is exactly the price paid by the last recipient of the goods. No company in the chain ended up paying VAT out of their own pocket, and no other government earned VAT.

---

Now try with imported goods: The foreign producer buys seeds at a price that includes their local VAT. They then sell crops for export at a price with no VAT. The producer gets back all the VAT they paid, and give nothing to their government as they collected none during export.

The reseller buys the foreign produce at a price without VAT and instead report and pay VAT themselves to initiate the VAT chain. They sell it at a price that includes VAT. They get all the VAT they paid back, and in turn give the government the VAT they collect form the final consumer.

In the end, the amount of VAT retained by the government is exactly the price paid by the last recipient of the goods. No company in the chain ended up paying VAT out of their own pocket, and no other government earned VAT.

Granted, the importer's country is the one stuffing their pillows with the VAT, which does not benefit the foreign producer. That's the difference.

arghwhat··on US Administration announces 34% tariffs on China, 20% on EU
That's interesting, and if true (what one publicly states does not necessarily reflect ones actions) then the mind remains boggled.
arghwhat··on US Administration announces 34% tariffs on China, 20% on EU
The funny thing is that we actually have a quite big commercial market for such utility vehicles, currently met by dropside vans: vehicles built on a van frame with a flatbed or other custom equipment on the back.

This is not really that different from how the F-series works either, providing a frame where the rear can be built up dependent on needs.

It's just that the F-150 is a terrible fit. Our dropside vans are small with a very large footprint-to-bed ratio, is light and have low fuel consumption, is almost always custom, and has zero luxury or otherwise private appeal. There is no demand for e.g. engine performance, as the light vehicle class has load and towing limits that are easily met.

The F-150 is too bulky for casual city use and without a need to optimize have a low footprint-to-bed ratio, is heavy with and thirsty, is often just used "as is" with the stock bed, and is often used privately with a significant "muscle" appeal. In order to be driven with a regular license and not be affected by truck speed limits, tracking requirements and driving/rest time limits, it would still be registered as a light vehicle, making any additional load bearing/towing capacity unusuable.

There's nothing wrong with models being extremely optimized for specific markets and unfit for others. I imagine there aren't many EU-style dropside vans in the US, not to mention EU-style trucks. Japanese Kei cars are an even more extreme case of such market optimization.

arghwhat··on US Administration announces 34% tariffs on China, 20% on EU
Here in the EU, you'd generally just pay VAT of imports. And to be clear, we pay the same VAT on internal goods.

To make it convenient for consumers, large foreign platforms would automatically handle VAT at point of sale, reducing friction and thereby pushing more import.

Some specific things had tariffs - e.g., nuclear reactors, and chinese electric cars - but it was by no means the norm, and I don't think citizens liked this. The Chinese car tariff in particular feels like German automotive lobbying, stifling competition. Tesla, pre-DOGE, also showed that we would have an unsatiable hunger for import of competitive cars, it's just that an F150 isn't a competitive car in EU.

Now, because if the trade war, we end up with blanket retaliatory tariffs and a strong push for buying local products, killing imports, that just wasn't there before. US and China was already in a trade war, so I guess that was the current state of affairs there.

arghwhat··on Convert Linux to Windows
Ah apologies, you're right - I was tired and read things wrong.

But I suspect "GL issues" (i.e., GL API stability) is being mixed together with e.g. mesa issues if mesa is being bundled inside the app/in a "flatpak SDK" instead of being treated as a system library akin to what you would do with DirectX.

Mesa contains your graphics driver and window system integrations, so when the system changes so must mesa change - but the ABI exposed to clients does not change, other than new features being added.

arghwhat··on Convert Linux to Windows
Apologies, but "I heard that..." is not an example.
arghwhat··on Utah becomes first US state to ban fluoride in its water
Of course it does. Their goal was to stop it from being added, including in said towns.

Policy makers make things happen by passing laws that make it a requirement or provide financial incentives to do it, and make things stop by outlawing it or taxing it. It is what they are elected to do.

This is not "big government" - democracy does not mean that small groups that disagree should be allowed to do whatever they want, and water additives is a quite signficant thing to mess with.

arghwhat··on Convert Linux to Windows
Sure, win32 contains GUI bits, but modern apps do not use those GUI bits.

OpenGL and Vulkan ABIs are also stable on Linux, provided by mesa. The post is pretty focused on the simplicity of win32 though, which is what I'm refuting as being as relevant today for new apps.

> As long as they didn't pull a Hyrum's Law on you

It is guaranteed that they "pull a Hyrum's Law", the question is just what apparent behavior they relied on.

arghwhat··on Convert Linux to Windows
These are however the same on Linux - mesa may change, but what the app uses is OpenGL and GLX. A more modern app might use EGL instead of GLX, or have switched to Vulkan, but that doesn't break old code.

You can also run an old mesa from the time the app was built if it supports your newer hardware, but I'd rather consider that to be part of the platform the same way you'd consider the DirectX libraries to be part of windows.

arghwhat··on Utah becomes first US state to ban fluoride in its water
Not really when it comes to government initiatives. They'd like the water plants to stop adding fluoride, so they make a policy that the plants should not add fluoride.
← PreviousPage 15 of 34Next →