HNHacker News
TopNewBestAskShowJobs

ploxiln

7,466 karma · joined November 6, 2013

software engineer in NYC

[ my public key: https://keybase.io/ploxiln; my proof: https://keybase.io/ploxiln/sigs/3VcOUGq9c7AQCS5NFB49OXAn6hGOdUXh4xblSshTOIY ]

submissionscomments
ploxiln··on Kafka is Fast – I'll use Postgres
It probably applies better to users of software, e.g. 80% of users use just 20% of the features in Postgres (or MS Word). This probably only works, roughly, when the number of features is very large and the number of users is very large, and it's still very very rough, kinda obviously. (It could well be 80% / 5% in these cases!)

For very simple software, most users use all the features. For very specialized software, there's very few users, and they use all the features.

> The claim is that it handles 80%+ of their use cases with 20% of the development effort. (Pareto Principle)

This is different units entirely! Development effort? How is this the Pareto Principle at all?

(To the GP's point, would "ls" cover 80% of the use cases of "cut" with 20% of the effort? Or would MS Word cover 80% of the use cases of postgresql with 20% of the effort? Because the scientific Pareto Principle tells us so?)

Hey, it's really not important, just an idea that with Postgres you can cover a lot of use cases with a lot less effort than configuring/maintaining a Kafka cluster on the side, and that's plausible. It's just that some "nerds" who care about being "technically correct" object to using the term "pareto principle" to sound scientific here, that bit is just nonsense.

ploxiln··on Uv is the best thing to happen to the Python ecosystem in a decade
hmm how well did that work for Docker ...
ploxiln··on Rust cross-platform GPUI components
A multitude of tiny dependencies has a multitude of solo maintainers, who eventually walk away, or sometimes get compromised.

A few big dependencies each have a team and a reputation that has earned trust and established release process and standards. If there's a serious problem in a small part of a big dependency, there are a few trusted maintainers of the big dependency who can be reached and can resolve it.

The theory of small dependencies was a good theory, 10 years ago when js devs using NPM started the trend of making them "as small as possible". But it really seems like the emergent pattern is the opposite of what is claimed. These JS and Rust projects end up taking longer to build and resulting in bigger outputs. Instead of a couple of "huge" 200KB dependencies, you end up with _thousands_ of 1KB dependencies including different versions and alternative implementations, you end up with megabytes of "accidental" code you don't really need.

And we can reason about why. In an ecosystem where something has 1 to 3 large deps, well sometimes a dependency pulls in another sub-dependency with code you don't need. But in an ecosystem where something has 10 to 100 deps, this still happens, but 50x more overall. It's a exponential trend: you have 3 big deps that each have 2 big deps that each have 1 big dep, vs you have 20 small deps that each have 15 small deps that each have 10 small deps.

ploxiln··on Linux Capabilities Revisited
I feel like it was around 10 to 15 years ago that some people were excited to eliminate all the setuid on various binaries in a linux distro, by using linux file xattr capabilities. And eventually it became apparent that this wasn't such a great scheme; many capabilities can be used to escalate to full root, basically. So, yeah, I think this is known. It takes some effort to find some good write-ups from back then, but here we go: https://lwn.net/Articles/632520/ https://forums.grsecurity.net/viewtopic.php?f=7&t=2522&sid=c...
ploxiln··on ChkTag: x86 Memory Safety
Not really. ECC memory will have an extra ram chip, and store an extra bit per byte or so, for that error detection/correction. DDR5 only has error-correction bits added to the bus, regular DDR5 doesn't have extra chips/bits for error correction of the data while it is stored.

But also, what you really want is ECC that reports all the way up to the OS the corrected and un-corrected bits. This is how you know if it's on the edge, becoming a real problem. Otherwise, it works fine until it doesn't shrug which is the same as regular normal memory.

I think the ECC added to the DDR5 bus is kinda just enough to get the higher data-rate signaling to be as reliable as DDR4. It's nice for marketing to put ECC on the DDR5 box but it's not more robust than DDR4.

ploxiln··on UEFI shell vulnerabilities allow attackers to bypass Secure Boot
> I am a consumer who is concerned about evil maid attacks

This is seriously the least likely way for you to be hacked. Much more likely is that an auto-update is downloaded and run from a hacked server, or you sometimes use pip/npm/etc to install dependencies for some software project and get malware that way, or you get tricked into opening a zipped document in an email that ends up having executable code because industry-standard doc viewers and OSes try to be too smart ...

> Secure boot never stopped me from doing anything I wanted with my hardware.

But, you may have done a lot of things that it should have stopped you from doing. For 5 to 10 years a bunch of utilites for monitoring temperatures and fan speeds and controlling RGB lighting etc have used the signed "winring0" driver to be able to poke arbitrary hardware registers of various chips over various low-level busses (i2c etc), just a couple months ago this "winring0" driver was blacklisted, identified as malware, and quarantined by Windows Defender. There's other solutions that these tools have shifted to, like "PawnIO" and custom signed drivers.

On the topic of Framework, you can use "ectool" to control fan behavior and charging behavior etc of the environmental controller chip, but for many years you had to disable secure-boot for this thing to be able to poke that chip. About a year ago I recall a forum conversation where someone was intent on porting this tool to use winring0 on windows so that they did not have to "endanger" their system by disabling secure-boot. I really didn't think there was any point, because if winring0 lets you bypass protections that secure-boot relies on, it's just a big charade.

Many signed third-party windows drivers have been found vulnerable to enabling arbitrary memory poking somehow, which theoretically lets you bypass any protections that secure-boot intends to provide. They eventually get updated and old versions blacklisted, but there's always a bunch and there's always more. And remember Logo-Fail? Letting people update the boot logo, without re-signing with their own key loaded into their system?

And if we look at the other discoveries by Eclypsium, the theme here is debug and repair tools. Do you want debug and repair tools to be allowed without disabling secure-boot?

It turns out that lots of people, maybe most people, expect to be able to do things with their laptop, which secure-boot really shouldn't allow. For practical reasons we tend to just go ahead and get that signed with some Microsoft key and allow it. There's a real theater to thinking secure-boot is super important and you're super-secure, while expecting and depending on functionality which really means that secure-boot has been compromised in 100 different ways. I just turn it off, it just makes things more complicated.

ploxiln··on Unix philosophy and filesystem access makes Claude Code amazing
I've seen a bunch of big companies have edicts sent down from the top, "all employees should be using LLMs, if you're not then you're not doing your job". But many employees just don't have much that it applies to. Like, I spend a huge amount of time reviewing PRs. (Somebody, who actually knows stuff, has to do it.) Some of the more data-sci guys have added LLM review bots to some repos, but they're rather dumb and useless.

(And then the CISO sends some security tips email/slack announcement which is still dumb and useless even after an LLM added a bunch of emojis and fun language to it.)

I've always been an old-fashioned and slow developer. But it still seems to me, if most "regular" "average" developers churn out code that is more of a liability than an asset, if they can do that 10x faster, it doesn't really change the world. Most stuff still ends up waiting, in the end, for some slow work done right, or else gets thrown away soon enough.

ploxiln··on When I say “alphabetical order”, I mean “alphabetical order”
There's such thing as too many options, and there's also such thing as too few. This is one of the important ones. I'd say that macOS, Gnome, and Windows have definitely hidden or removed a lot of important options in the past decade, and despite the modern slickness mesmerizing people into thinking they're easier to use, they're actually harder to use as a result.

(I say this as a professional developer and power-user of all 3 desktops over the past 25 ish years, who also helps non-technical family and friends a few times every year. Some people will be like "oh I'm so bad at computers lol" or "oh this is a piece of junk huh" but really the UI just got dumber in the name of "ease of use", and the expert has to be called in to decipher it.)

ploxiln··on When I say “alphabetical order”, I mean “alphabetical order”
I think the only problem is that it's a surprise and mystery, particularly because "dumb" alphabetical sort has existed forever. When they "fixed this" for the 99% of regular users cases, they should have made it as separate "smart natural sort" option separate from the "strict alphabetical sort" option (next to date, size, etc). Simple and obvious, rather than surprisingly different from the decades of experience that even non-technical users already have.
ploxiln··on FLX1s phone is launched
Sometimes it seems like half the comment sections (but probably more like 20% lol) have a "what is wrong with all of you" as the top-rated comment, and I have to scroll way down, 5 or 10 top-level comments, before I find an example that it was referring to. It seems to get more votes by dramatizing the "going against the mainstream", when really it is the mainstream. (Which is kinda sad, but not really the worst thing in world, probably a perennial part of human society ...)
ploxiln··on 1TB Raspberry Pi SSD on sale now for $70
The Pi 3 B+ is still available for $35, it's what I still use on occasion - as an ad-hoc networked sensor, or an LED or switch controller, or an weird eeprom programmer ...

Sure I could use an arduino in many cases, but the Pi running linux can be very convenient, with bash or regular python or even small unix C utilities (which I can tweak and re-compile right on the Pi!)

ploxiln··on Valve Software handbook for new employees [pdf] (2012)
This math is missing a step: $200k went to your publisher who already gave you the $200k, so really you got about $394k total (before your taxes).

And it's worth remembering that your publisher got $194k ... I'm not sure if this publishing arrangement makes sense for the publisher ($200k risk for not much more reward?) or for you (30% of your net income from the game, after valve's 30%) (I'm not in the industry so honestly I just don't know)

ploxiln··on StarDict sends X11 clipboard to remote servers
Debian maintainers in 2009 did not let it slide, they did fix it in 2009 ... but it came back, twice! (and it seems not many cared about StarDict in 2015 to fix it promptly that time)

> the same kind of problem was reported by Pavel Machek in 2009 and again by "niekt0" in 2015. The 2009 bug was solved by patching the application's default configuration to disable networked dictionaries. That appears to have worked for a time, but the YouDao plugin, which was added in 2016, does not respect the configuration option. The 2015 problem was not fixed until August 6 of this year (although the package was removed from Debian for unrelated reasons for a few months from 2020 to 2021). That fix just removed the stardict_dictdotcn.so plugin, which also sent translation requests to dict.cn and was later subsumed by the YouDao plugin, from the package.

ploxiln··on The untold impact of cancellation
> Are you their parent? If not, we'll cut this favor short and just call child services".

> Then do it. Call 911, say there's an injured, unattended child at the playground, and you're getting a hostile response from folks as you try to locate the guardian

That is the same thing, though! ... very quickly escalating a probable mundane situation to very serious accusations!

I'm the father of a 3 year old daughter, who I take to the playground multiple times per week. This is in Brooklyn, NYC. I haven't had any issues. But I believe the horror stories, there are just a sufficient number of crazy people out there, overly concerned "karens", or reddit warriors, or whatever. People overly confident in their judgement based on a cursory one-sided description of events. It seems you want to "fight fire with fire" or "play hardball" because that seems fair or necessary, but ... jeez. This is why guys are cautious and disengage.

ploxiln··on Our Farewell from Google Play
You do need a newer SDK to update the target-sdk-version though. And you may find that libraries you used are not compatible, unless you update them, and updating them may break things. Maybe for a minimal app in pure java or kotlin this won't be a problem.

There was an open-source app that hasn't been updated in a few years that was delisted from the store. I decided to try my hand at recompiling to target latest required sdk "target" or whatever. It used Xamarin / C# and some additional libraries. It does not talk to the internet, it's just a minimal remote-control and data-logger for a bluetooth multimeter. If you can find a copy of the last APK published and sideload it, it works. But if you try to update the SDK so you can target the required SDK version for the Play Store, compile fails, misc cryptic errors due to libraries. Updating libraries was tricky for me because while I'm quite familiar with C, C++, Python, Go (etc), I'm not at all familiar with Android, Java, Kotlin, nor C#, visual-studio, etc. After a few days of struggle I managed to update libraries and fix the build, but the app's layout was totally broken, only one button appears (and again I'm not familiar with any of this stuff).

This app really didn't need any updates. It's a < 20MB app to control a local device, and it still works. At least you can still side-load it. Sheesh.

ploxiln··on Secure boot certificate rollover is real but probably won't hurt you
Most security features are, yeah.

The cost in terms of freedom/flexibility and reliability/longevity is very high. But we're told, this is necessary, it's the only way to guarantee the security of the poor user. But if in practice the security wasn't actually guaranteed, for most motherboards over most years, due to pretty big dumb oversights ... was it worth the extreme costs? The cost of losing compatibility with older or newer software/hardware, of losing convenient repairs and recovery? Nope.

You sold your soul for "guaranteed security" of securing the entire boot and runtime from the lowest level hardware up ... and didn't really get it anyway.

ploxiln··on How was the Universal Pictures 1936 opening logo created?
Teller, from Penn and Teller, I think https://en.wikiquote.org/wiki/Penn_%26_Teller
ploxiln··on Study mode
Maybe TAs are a good metaphor. Back in college, the classmates who went to TAs for help multiple times every week, really didn't get the material. I literally never went to a TA for help in my life, and learned the material much better by really figuring it out myself, "the hard way" (the only way?). These were math, EE, and CS courses.
ploxiln··on Hypercapitalism and the AI talent wars
> mega funds and giga corps throwing ridiculous cash for pay to win

> This is just M2 expansion and wealth concentration

I actually think "throwing ridiculous cash" _reduces_ the wealth concentration, particularly if a chunk of it is developer talent bidding war. This is money that had been concentrated, being distributed. These over-paid developers pay for goods or services from other people (and pay income taxes!). Money spent on datacenters also ends up paying people building and maintaining the data-centers, people working in the chip and server component factories, people developing those chips, etc etc. Perhaps a big chunk ends up with Jensen Huang and investors in NVidia, but still, much is spent on the rest of the economy along the way.

I don't feel bad about rich companies and people blowing their money on expensive stuff, that distributing the wealth. Be more worried of wealthy companies/people who are very efficient with their spending ...

ploxiln··on Did "Big Oil" Sell Us on a Recycling Scam?
What gets me about public recycling communications/outreach/programs is that they always emphasize "recycle more" and never "recycle carefully". Really it should be "First, don't put junk in the recycling (do no harm). Second, if you have clean appropriate objects, put them in the recycling."

In fancy office buildings and residential buildings around NYC I've seen inappropriate junk in the recycling all the time, practically every time I put in my recycling. Plastic wraps and plastic milk cartons in the paper. Paper and food in the bottles/cans. It's always unclear about toys and household plastic objects that very likely have additives that make them not recyclable. Nobody ever emphasizes recycling correctly, but in any documentary where they look inside recycling centers you see them dealing with machines clogged with inappropriate materials, huge bales of negative-value mixed materials, etc. This is the stuff that was getting secretly shipped to Asia for dubious handling because it was too low-value for actual processing/usage in the US.

I don't blame oil companies, or manufacturers, really everyone has been in on this collective delusion: teachers, politicians, community organizers, everyone I see is all about more recycling, recycling good. While actually we've been trashing the recycling systems/processes for decades, while cheering it on. And I'm some weird nerd engineer type who cares if thing work or not.

ploxiln··on Building my own solar power system
I don't know why anyone would not include the "delivery" fee, I think it really is that cheap in many places in the US.

Here in NYC the "supply" charge is much less than half of the total bill. If I add up all the fees and surcharges and taxes etc, the total ends up around 35 cents / KWh, which I thought was rather high until I heard about California ...

ploxiln··on Car companies are in a billion-dollar software war
Well, consider, you could have paid more for a different car that has better software, like a Tesla, Lucid, Rivian ... but you didn't.

I'm not blaming you, I initially thought a VW ID.4 was a cool option. It just wasn't clear to the marketplace how bad the software was, and it's easy to assume "it's fine, I don't need fancy stuff" until you live with it and see how fundamentally bad the software is. How is the market to know? If it takes a couple years to figure it out, it makes sense for the hardware company managers to just make the hardware specs at the competitive price, and software is ... just whatever needed to get it out the door.

I worked for a few years at a sub-division of Samsung, and I've thought for a while about why "hardware" companies can be so bad at "software" ... in many cases, it's just that the leadership chain doesn't know what good software is and who is good at it. Managers don't really know what a good programmer is or does. Division heads don't know what managers are good at managing software teams and projects. And so on.

So at some point 2 years after the car is released, the CTO drives it and realizes that the software systems are fundamentally crap and can't be fixed, and it was not close or in-progress or anything, but he should have realized it 3+ years ago if he had good software sense, long before the car was released. And that's what happened with the VW ID.4

ploxiln··on Some __nonstring__ Turbulence
I see, thanks. ( Found it here: https://lkml.org/lkml/2021/9/7/716 )
ploxiln··on Some __nonstring__ Turbulence
The real problem here was "-Werror", dogmatically fixing warnings, and using the position of privilege to push in last-minute commits without review.

Compilers will be updated, they will have new warnings, this has happened numerous times and will happen in the future. The linux kernel has always supported a wide range of compiler versions, from the very latest to 5+ years old.

I've ranted about "-Werror" in the past, but to try to keep it concise: it breaks builds that would and should otherwise work. It breaks older code with newer compiler and different-platform compiler. This is bad because then you can't, say, use the exact code specified/intended without modifications, or you can't test and compare different versions or different toolchains, etc. A good developer will absolutely not tolerate a deluge of warnings all the time, they will decide to fix the warnings to get a clean build, over a reasonable time with well-considered changes, rather than be forced to fix them immediately with brash disruptive code changes. And this is a perfect example why. New compiler fine, new warnings fine. Warnings are a useful feature, distinct from errors. "-Werror" is the real error.

ploxiln··on Google is winning on every AI front
> Netscape, in contrast, sells the consumer version of Navigator for a suggested price of $49. Users can download a free evaluation copy from the Internet, but it expires in 90 days and does not include technical support.

https://www.nytimes.com/1996/08/19/business/netscape-moves-t...

ploxiln··on A steam locomotive from 1993 broke my yarn test
jest (or whatever was trying to auto-detect a "sapling" repo) should take explicit configuration to enable "sapling" or "mercurial" or whatever integration. And not try to run "sl" 16+ times in various modules/threads trying to auto-detect it.

"automagic" things trying to be easy and helpful is really a significant source of my stress fixing software these days.

ploxiln··on Framework 13 AMD Setup with FreeBSD
Yes, I've had the Framework 13 AMD ryzen 7840u for about 1.5 years. First few months had a lot of "use this distro with this kernel" but after 1 or 2 linux kernel releases it's been good, on Arch Linux with Cinnamon Desktop on Xorg with 150% scaling.

It can be helpful to enable the "Game mode" in the bios to allocate more system memory to graphics, this can avoid some weird crashes triggered by hardware video decoding and such (probably more important for the first year or so, maybe not so much now).

ploxiln··on Reverse-engineering and analysis of SanDisk High Endurance microSDXC card (2020)
Looking for the most "extreme" high-quality micro-sd cards on Amazon, and also on B&H to avoid the chance of counterfeits, I'm struck by how they are all so damn cheap. Whether SanDisk Ultra, Extreme, Extreme Plus, Extreme Pro, or Max Endurance, the 64GB card is less than $20. (I've seen reports of Sandisk Extreme micro-sd cards dying, at close to the "typical raspi" rate ... I haven't seen that yet for Max Endurance, and that does sound like what I want, so I got one and I'm trying it. But it bothered me, ironically, that it's pretty much the same price.)

Meanwhile, if you go to a professional electronics component vendor like Mouser or Newark, a SwissBit "pseudo-SLC" micro-sd card is over $50 for 32 GB. I'm pretty sure that is real industrial usage quality, and will have similar longevity to a "real SSD" of similar size. (I also got one of these, it works well so far, but that's not a conclusive test yet :)

I guess I could instead get the 512 GB "Sandisk Extreme" whatever, and the additional size will probably give similar longevity? It just seems silly, and a bit less of a sure thing, than the priced-as-expected industrial thing. It is kinda strange/annoying that in the consumer side of the market, they keep adding superlatives, but it seems like the same cheap flash for the same cheap price? The real stuff surely costs more than $16, but it's not on the consumer market, at all.

And why doesn't the Raspi foundation/company sell some of the high-priced industrial stuff, just to make it an obvious option, even if not for most people? If you're just messing around and learning, use the cheap one, but if you want a raspi to do real work for more than 4 months straight, you're gonna want one of these real industrial SD cards. I guess most people who care about storage use m.2 adapters, which you might want for the performance, or the better pricing at higher capacity. But if you don't need the performance or capacity, or don't have room for the m.2 in your application, and just need the damn thing to not break ... the real "extreme" does exist, it is the SwissBit.

ploxiln··on PhysicsForums and the Dead Internet Theory
Wow, so ironic.
ploxiln··on Justin Trudeau promises to resign as PM
My rough impression is that immigration and housing policy contributed significantly to his low approval ratings. Trudeau enacted a rather large increase in immigration a few years ago, and this caused a rather large increase in housing and food costs, with understandable economic repercussions, and changed Canadian attitudes over that time due to the related economic stress...

For ref: https://www.youtube.com/watch?v=eJHm03osbHc

← PreviousPage 2 of 34Next →