Better HN
topnewbestaskshowjobs
Log inSign up

ComputerGuru

32,403 karma · joined Jan 3, 2008 (18y ago) · 8,297 submissions

mqudsi on most sites.
Submissions

comment 4y ago · link · parent

> Virtually every filesystem has some kind of error detection, maybe even error-correction built in.

Nitpick: you mean physical encoding, not filesystem.

Not nitpick: it’s nowhere near enough. Blu-Ray bitrot is a huge issue and if you don’t either write out your data twice (to the same disc or to distinct discs) or use PAR2 or similar, your backup isn’t worth the money you paid for those shiny coasters.

comment 4y ago · link · parent

Yup. A well-known issue with tape is that machines have a hard time supplying it with data fast enough to keep up with its linear travel speed when creating the backups.

comment 4y ago · link · parent

I think the title needs to say “iOS” in there.

comment 4y ago · link · parent

I wrote a (userland) general purpose and driver/hardware-agnostic multitouch daemon w/ gesture support for Linux that works with the existing input stack (i.e. doesn’t require switching to libinputy but also supports it), if anyone is interested:

https://neosmart.net/blog/2020/multi-touch-gestures-on-linux...

https://github.com/mqudsi/syngesture

The biggest benefit is that you can use drivers with actually correct acceleration curves like xf86-input-synaptics (if you’re on X11) instead of the offensively bad, NIH reimplementation that ships with libinput.

Oh wait, I’m on HN so I shouldn’t neglect to mention my project is written in rust!

comment 4y ago · link · parent

Thanks for the correction. It’s been a long time and I’m going off my memory without having refreshed it since. You are bringing back vivid memories I didn’t know I had!

comment 4y ago · link · parent

PeekMessage and PulseEvent are convenience functions that should have never been written. I intentionally excluded PulseEvent from my posix port of WaitForMultipleObjects because it is inherently racy: https://github.com/NeoSmart/PEvents

(It can be enabled via a compile-time define because my OCD kept me from shipping an incomplete port.)

comment 4y ago · link · parent

ISS doesn’t have much radiation. It’s not the moon.

comment 4y ago · link · parent

I think it’s more about local pockets over temporally short periods of time. Gravity probably plays a role in kicking off the dispersion process by moving them from their initial place of production (where you exhale) so it doesn’t just cluster there.

comment 4y ago · link · parent

No, thanks. It’s terribly hard to read strangers’ handwriting.

comment 4y ago · link · parent

BBC news is the closest to “just the facts, ma’am” to the extent that the app shows me (untouched, unbumped) months old news stories for categories that have had no recent updates. Their articles have a “news only with a narrative” main section and then any opinion is separated by an hr with the name of the person and their take on the news.

comment 4y ago · link · parent

Even just curation without text still risks an agenda. WaPo is famous for this: when there is something happening they want to take a position on, their entire homepage becomes every nitty gritty news piece or reflection that would push one via sheer inundation into supporting their cause with shock and rage.

Edit: maybe I shouldn’t have mentioned any names; it seems some people took that as an attack on their particular herd.

comment 4y ago · link · parent

I think most people that are overly fond of Windows 98 did not live through/experience the Windows 3.11 to Windows 95 transition. I just remember Windows 98 as bundling in some features that were only available with Microsoft Plus! such as active content on the desktop and heavier marketing of associated web-related tech/apps.

comment 4y ago · link · parent

See my other reply - it was an async IO stack failure; Windows had completion-based async IO long before io_using came around but it has gotchas that would cause completion events to not reach except in tandem with user input on the message pump.

https://devblogs.microsoft.com/oldnewthing/?p=36423

comment 4y ago · link · parent

It’s true - until today, Windows 95 setup hangs in a VM if input is not connected until you just click in it once. It’s not cause by strong cryptographic sources (this is Windows 9x where the logon username and password was optional!) but rather a more insidious issue with how async IO was handled in apps. Windows had async IO support long before that was on the radar for a lot of other operating systems, but it isn’t as easy to use, leading to issues like this.

https://devblogs.microsoft.com/oldnewthing/?p=36423

comment 4y ago · link · parent

s/stata/sata in the title

comment 4y ago · link · parent

It still depends on what your alternative is. Much of the world does not use electricity for heat; in the United States, electricity is rarely used for heat in in the parts of the country that traditionally get brutal winters. It's cheaper for me to heat my home via the forced-air natural gas furnace (even though it is a less efficient fuel-to-heat process as compared to resistance heaters) given the disparity in pricing between residential electric and natural gas costs. I tried mining ethereum for a month last winter and I don't think that I broke even (despite using a relatively recent RTX 2080).

comment 4y ago · link · parent

It’s typically one page that hits Reddit/HN/whatever with its fixed set of static images. It’s pretty much the ideal scenario for the kernel’s in-memory cache.

comment 4y ago · link · parent

I’ve come across those but - perhaps because they’re just slides - they really don’t go into the same depth the 100Gbps article does. They’re amazing resources but a little more high level and feature very little kernel hacking.

2569.

Optimizing the kernel to saturate a 100Gbps link (2017)(netflixtechblog.com ↗)

80 points · by ComputerGuru · 4y ago · 15 comments

comment 4y ago · link · parent

Latest 3.6, single node, WiredTiger storage engine. The fact that it’s severely outdated is exactly the point we are making.

I don’t know if it’s possible to override the version of a Debian package’s specified dependency - although I also don’t know if mongodb 5 is drop-in backwards compatible with a client written and released against v3.6.

comment 4y ago · link · parent

Standard from packages. After the power failure the database is unusable and I get mongo startup errors ending with “newer versions of mongo may be able to fix errors like this automatically” and it dies.

comment 4y ago · link · parent

You don’t need disqus, you just invalidate the cache and regenerate it for only the next request, serving stale copies until the regen is complete. nginx or varnish can both do that out of the box.

comment 4y ago · link · parent

It’s usually not images but rather the CMS making 100 read queries and 20 write queries per page load without any object caching that brings sites down. Even a slow uplink serving big image won’t bring an nginx server down, it’s all async.

comment 4y ago · link · parent

Text-only NPR: https://text.npr.org/

comment 4y ago · link · parent

I think that’s true if you take a no dependencies approach but as soon as you tap into the ecosystem the argument is lost.

comment 4y ago · link · parent

> The dithered images are smaller (according to them), and I don't see why they would use more CPU per byte to decode than JPEG.

Just try substituting something else in that statement and see if it makes sense. “The lzma-compressed files are smaller than the raw test files, so opening them in an editor shouldn’t use more cpu” or “HEVC-compressed videos are smaller than DivX videos, so shouldn’t they be more efficient to decode and play (sans hardware acceleration)?”

comment 4y ago · link · parent

> I think this is true, but it’s still counterintuitive. Makes me think there’s something more useful we could make electric space heaters do with their energy and still produce the same amount of heat.

Indeed: people have experimented with mining during the winter to recoup electric heating costs, which makes sense but only if you ignore the (expensive and getting more expensive by the day) cost of procuring the original mining hardware (aka GPU).

comment 4y ago · link · parent

Fair enough. Exactly because it is for home use, that wouldn’t work for me. I can’t do that; I would stop everything and risk prolonging the downtime to fix it right then and there, even if it’s a terribly bad time.

comment 4y ago · link · parent

This was shared on HN [0] when it was first written in 2019 and it was heavily discussed (817 points, 178 comments). As soon as I saw the title I knew what post this was; I recall it very vividly and was more than happy to upvote it and then sit down to read it again!

[0]: https://news.ycombinator.com/item?id=19573458

comment 4y ago · link · parent

You kind of did the very opposite of what you’re supposed to do. Used enterprise hardware for core infrastructure (Cisco/HP/Dell with SFP+ ports), pfSense or similar for a gateway/router, and UniFi just for the UAP access points, away from your core network.
1
858687
277