HNHacker News
TopNewBestAskShowJobs

tuetuopay

1,764 karma · joined December 23, 2021

submissionscomments
tuetuopay··on The 70% problem: Hard truths about AI-assisted coding
Ah the calculator, the strawman of every maths teacher.

And yet, are we worse at math than the previous generations? I'm not so sure. Pretty quickly math becomes toying with letters and not numbers, and unless the calculator has an algebraic engine, it won't help you.

We can focus in more important aspects of math, like actually understanding the concepts. However, to me this will be worse than the calculator: LLM pretend to understand the problem, and can offer solutions. On the other hand, you don't get a calculator with a CAS until late university (if you ever get one). Calculators don't pretend to be more than what they are.

But IMHO we'll still get the benefits of calculators: let the humans focus on the difficult tasks. I don't want to write the full API scaffolding for the tenth time. I don't want to write the boilerplate for that test framework for the 15th time. LLMs are good at those tasks, let them do it!

tuetuopay··on The 70% problem: Hard truths about AI-assisted coding
The readme even confuses itself, as the example shows rgba_255 returning a list and not a tuple. Oh well, I guess Claude was confused by the conventions between Rust and Python.

Also, all the checks of "if u8 < 255" will make me not want to use this library with a 10-foot pole. It screams "ai" or "I don't know what I'm doing" so much.

tuetuopay··on DOJ will push Google to sell off Chrome
Apple does not run the largest advertising network on the planet. As simple as that.

Even for the matter of the browser, Apple does not have the same push as Google does. Yes, Safari is the default browser on a phone. But outside of the mobile world, Safari is a rounding error.

tuetuopay··on Toasty, an async ORM for Rust
My first reaction is this feels like a nice middleground between Diesel and SeaORM.

The codegen part makes all columns and tables and stuff checked at compile-time (name and type) like Diesel, with a query builder that's more natural like SeaORM. I hope the query builder does not end up too magical like SQLAlchemy with its load of footguns, and stay close in spirit to Diesel that's "write sql in rust syntax".

I think time will tell, and for now I'm keeping my Diesel in production :D

tuetuopay··on Do AI detectors work? Students face false cheating accusations
while it is infuriating, it's common for every place where fraud is an issue. if the company gave feedback, it would open the door to probing and know what is being watched or not. same reason as why a bank will not tell you why you got kicked off.
tuetuopay··on Why Gov.uk's Exit this Page component doesn't use the Escape key
And there's no need to be to speak some "obscure" language (from the point of view of the US-centric designers) to hit this issue. iOS got better at mixed french / english, but it still cannot prevent itself from correcting "the" (the english the) to "thé" (french for tea). Oh well.
tuetuopay··on Goodbye API. Hello RSQL
Is this firebase but from a different vendor and in sql? If so, I'll wait for the security horror stories.
tuetuopay··on Hack GPON – how to access, change and edit fibre ONTs
Well this is about allowing customer supplied ONT, not supporting them. As in, you have to follow upgrade procedures announced X days in advance, etc.
tuetuopay··on Critical Exploit in MediaTek Wi-Fi Chipsets: Zero-Click Vulnerability
Urgh. Kudos to you, that’s no easy task. And this might explain a lot, I’ve never liked the WiFi experience in windows. I find Linux with IWD to be stable as hell
tuetuopay··on Critical Exploit in MediaTek Wi-Fi Chipsets: Zero-Click Vulnerability
Have you tried them further than "I don't trust MediaTek"?

I've had sequentially an Intel and an AMD ThinkPad for work (I killed the first one). Turns out, the wifi is much much better on the AMD one with the MediaTek chipset than on the Intel one with the Intel chipset. On the latter, I had very frequent disconnects from the network (severals per hour) along with atrocious latency even on 5GHz. And by atrocious latency, I mean atrocious as in "it is more than noticeable when using ssh". The current one has been rock solid for the past two or three years.

So yeah, I guess it really depends. The specific chipset I have is a MT7921 and I'm running Linux, YMMV. And it also may depend on the laptop itself.

tuetuopay··on Critical Exploit in MediaTek Wi-Fi Chipsets: Zero-Click Vulnerability
you'd be glad to hear the e810 series is not better in this regard. at least the out-of-tree driver somewhat works, and supports more than 1 queue.
tuetuopay··on Void captures over a million Android TV boxes
Not sure why this is downvoted. It is well documented that most cheap android tv boxes have more or less the same trojan preinstalled. Is it due to malice of the manufacturer or most of them seemingly all taking the same pre-infected android base , who knows.

Linus Tech Tips made a full video on the subject. They seem to lean to the second option.

tuetuopay··on Greppability is an underrated code metric
Yup, but we're talking about grep, not lsp. And that's precisely why I don't write go without an lsp (the rare times I do write go).
tuetuopay··on Porting systemd to musl Libc-powered Linux
I don't want my fridge to take 5 minutes to boot. Seriously.

I'm always super annoyed at the current state of smart appliances that take ages to power on because they run some half-assed linux on an underpowered processor that would give the apollo guidance computer a run for its money. And that's why I only have dumb appliances.

tuetuopay··on Porting systemd to musl Libc-powered Linux
nowadays serverless environments are microvms. that is, a standard machine type that is explicitly virtual (so device drivers have no wait time for hw to init). however, they don't either need userspace to boot because the function/application/whatever is likely init itself or not far off.

so they need to boot, but only the kernel needs to boot.

tuetuopay··on Greppability is an underrated code metric
Go is horrible due to the absence of specific "interface implementation" markers. Gets pretty hard to find where or how a type implements an interface.
tuetuopay··on Go is my hammer, and everything is a nail
Between conflating imports and URLs, the weird go.mod syntax, and the nonsense that are GOPROXY, GOPRIVATE and such, yes, it’s a mess.

Honestly, aside from left-pad stuff, even npm is much better. I personally find cargo to be the best one I’ve tried yet. Feature flags, declarative, easy overrides, easy private registry, easy mixing and matching of public/private repos through git, etc. And like go it properly handles multiple versions of the same dep being used, but the compiler will help you when it happens.

tuetuopay··on Go is my hammer, and everything is a nail
After using rustfmt, I feel gofmt is not up to snuff. My main gripe with it is there are multiple formattings that are valid: there is not one true format. E.g. gofmt does not enforce line length which makes diverging styles possible, like for function declarations.
tuetuopay··on LibreCUDA – Launch CUDA code on Nvidia GPUs without the proprietary runtime
Same meaning in french. Oh well…
tuetuopay··on Proton announces release of a new VPN protocol, "Stealth"
It will be interesting how robust this new protocol is against traffic pattern analysis. A regular HTTPS connection has different patterns over time than a VPN, mainly because it carries only HTTPS and not all of the machine’s traffic; and only for a specific "website" (simplification here) instead of bundling the whole web to a "single server". The latter may be easier to evade, but the former will be hard.

Anyways kudos to them, and I can’t wait to see how it fares against China’s GFW.

tuetuopay··on How the music industry learned to love piracy
Fortunately the music industry does not seem to go the same way as the video streaming industry: each platform having their exclusives, fragmenting the offer, and making life hard for customers. Music streaming services differentiate through other means.

That’s why I’m happily paying for Deezer and not for video services.

tuetuopay··on Praise My GitHub Profile
"I like you the way I like my coffee. Roasted."

So many ways to turn it

tuetuopay··on Praise My GitHub Profile
Dang it, now I feel like I have to do it. Flexible E-ink displays are also pretty cheap on aliexpress, and the rest is some glue and a microcontroller. I’ll see when I’m back from holidays.

I even have the name. "The Coffee Smug".

tuetuopay··on Praise My GitHub Profile
Okay I love this one, it is great. Thanks for the good laugh!

> And what's with the projects? A business card that runs Linux? Next, you'll tell us you’re working on a coffee mug that serves sarcastic remarks.

I honestly find this idea pretty amusing and I am half-tempted to do it. Embed some flexible e-ink display in the walls of a mug and have it show sarcastinc fortune cookies. It could even roast you when the coffee gets cold.

tuetuopay··on Parsing Protobuf Definitions with Tree-sitter
That’s an extra field, with no consistency validation, and does not play well with JSON. A field can be either "" or null, and that’s two different cases.

Also the wrappers are known to most protobuf code generators, that can then use language features for better ergonomics. E.g. in Rust all wrappers to allow nullability of values will be turned in Option. Like the StringValue will turn into Option<String>.

As for the need, yes, it is needed. This carries intent, which is a good thing in customer facing APIs. An update endpoint will have all fields optional to distinguish between a field needing to be overridden or not, without the need to re-send the value when it does not need to be changed (à la PUT). Having additional boolean fields gets unwieldy quickly.

tuetuopay··on Bcachefs, an Introduction/Exploration
I get half of the raw capacity, so 7.5TB. Well a bit less due to metadata, 7.3TB as reported by df (6.9TiB).

For btrfs specifically there is an online calculator [1] that shows you the effective capacity for any arbitrary configuration. I use it whenever I add a drive to check whether it’s actually useful.

1: https://carfax.org.uk/btrfs-usage/?c=2&slo=1&shi=1&p=0&dg=1&...

tuetuopay··on Bcachefs, an Introduction/Exploration
Yeah I'm on btrfs raid 1 currently, with 1x1TB + 2x3TB + 2x4TB drives. Gotta love btrfs's flexibility regarding drive size :D

I'll have a look, thanks! I guess failing this will make me test by backup strategy that I have never tested in the past.

tuetuopay··on Bcachefs, an Introduction/Exploration
> RAID56 under Btrfs has some caveats but I'm not aware of any annecdata (or perhaps I'm just not searching hard enough) within the past few weeks or months about data loss when those caveats are taken under consideration.

Yeah this is something that makes me consider trying raid56 on it. Though I don't have enough drives to dump my current data while re-making the array :D (perhaps this can be changed on the fly?)

tuetuopay··on Bcachefs, an Introduction/Exploration
Traditional RAID1 will mirror whole drives, yes. BTRFS RAID1 will mirror chunks of data (iirc 1GB) on two drives. So you can have e.g. two 1TB drive and a 2TB one just fine.
tuetuopay··on Bcachefs, an Introduction/Exploration
Funny because I have the opposite experience. The main issue with btrfs is a lack of tooling for the layperson to not require btrfs-developer level knowledge to fix issues.

I've personally had drive failures, fs corruptions due to power loss (which is supposed not to happen on a cow filesystem), fs and file corruption due to ram bitflips, etc. All the times btrfs handled the situation perfectly, with the caveat that I needed the help from the btrfs developers. And they were very helpful!

So yeah, btrfs has a bad rep, but it is not as bad as the common feeling makes it look like.

(note that I still run btrfs raid 1, as I did not find real return of experience regarding raid 5 or 6)

← PreviousPage 11 of 20Next →