HNHacker News
TopNewBestAskShowJobs

hmry

1,767 karma · joined March 24, 2019

submissionscomments
hmry··on Type Server Protocol
The column is measured in UTF-16 code units
hmry··on Type Server Protocol
In LSP, UTF-16 is not just for transport. Source locations are also referred to by their UTF-16 offset. That means applications are required to store a persistent mapping from UTF-16 offsets to whatever they use internally, keep that mapping updated as the document is edited, and map back and forth constantly.

Oh well. It was primarily designed to be a good protocol for VSCode, not for any other users. That's just the price you pay when using a corporate standard.

hmry··on No Need for Retirement When Utopia Is Around the Corner
You don't get one, because UBI is an attack on your dignity as a worker.

Unlike being laid off because AI replaced your department, that's very dignified.

hmry··on Remove pgrust: the entry is cheating (per-query kernels and result caching)
> acknowledges the issue

I don't see any acknowledgement in that text.

hmry··on Rust Style Guide
Without #[non_exhaustive], adding a variant is always a semver breaking change.

With #[non_exhaustive], adding a variant is not a breaking change, but only if that variant can safely be ignored. If it can't be, then it's still a breaking change, BUT you don't get a compiler error. That's a very big drawback IMO.

This makes me think of how the PNG format handles this. For context, PNG files consist of a list of chunks of different types (image data, color profile, text comment, etc). Each chunk has some flag bits that tell you whether it can be safely ignored when decoding the image, safely retained when the image data is changed, etc. That way the decoder can ignore unknown ignorable chunks and error on unknown non-ignorable ones.

hmry··on Dutch National Cyber Security Center is Offline because it uses PHP
Once the fix is released, people will reverse-engineer it and use the exploit on pages that haven't updated yet.

So they need to give time for infra people in all different time zones to wake up, learn about the announcement, and plan how to patch it.

The intended course of action is 1. take down website a few hours before the fix drops 2. apply the fix 3. only make website public again after it has been fixed

hmry··on Grace Hopper Celebration Cancelled
No worries! :)
hmry··on Grace Hopper Celebration Cancelled
I don't understand why you're replying to me like that

> You understand that ...?

Yes I do

hmry··on Apple Keynote now showing ads in its UI
I remember seeing this back in January
hmry··on Grace Hopper Celebration Cancelled
(Legally as in, using the legal system)

DOJ sued Deloitte over DEI programs, they ended up settling for $21.5 million: https://www.reuters.com/legal/government/deloitte-pay-215-mi...

Texas Attorney General declared DEI initiatives unconstitutional in a legal opinion: https://www.gibsondunn.com/texas-attorney-general-declares-p...

Several state Attorneys General sent legal threats to 20 major law firms over DEI: https://www.reuters.com/world/us/republican-led-states-deman...

Texas Attorney General warned major banks that DEI programs violate feduciary duty: https://today.westlaw.com/Document/Ibce2fdc5dcec11efb708bbad...

hmry··on A Modern Web App in C
I personally found implementing an HTTP2 server from scratch quite difficult. The parsing and state machine was okay (and is also the easiest part to get from an external library), but correctly handling stream priority / bandwidth sharing and backpressure was really hard. Of course one could go HTTP1.1-only, but then you're losing out on the efficiency gains anyway :/
hmry··on Generative AI scandal has come to one of Nikon's competitions
I'm a bit surprised the judges themselves didn't spot that it was AI. It immediately starts with things randomly appearing out of nothing.

AI-generated fake footage in medical science is one of the things that worries me a lot these days. Now there's practically a constant stream of papers getting retracted due to fake AI-generated microscopy, before/after photos, plots(!), ...

hmry··on Man discovers his parents' coffee machine used 1TB of data in 10 days
New frontiers in genuine ink cartridge enforcement, I'd suggest patenting that before Canon and HP can
hmry··on Shipping JPEG XL in Chrome
When writing GPU shaders it's not uncommon to use extensions like ".vert.glsl" = "vertex shader written in GLSL", ".frag.hlsl" = "fragment shader written in HLSL", etc.
hmry··on The Effect of CRTs on Pixel Art (2024)
Yeah it seems very clear that the cheapest artstyle of the future will be whatever AI can output with minimal human editing or involvement. And some studios will go that route.

Although I don't see AI in game art becoming accepted by the wider public any time soon, and definitely not by the indie crowd.

I've also been thinking about this for animation. I foresee cheap limited animation (sliding layers, only mouth moving, etc) being replaced by incoherent un-/barely edited AI output instead.

hmry··on 27.5KB language-agnostic WebGPU syntax highlighter
Firefox Android doesn't support WebGPU yet
hmry··on Making a Python interpreter in 1024 bytes
Oh, that's really elegant! I've got a whitespace sensitive language of my own, and I think I'll change it to use that rule! Thanks!

(Until now, I went with the standard approach: Remember the leading whitespace of the previous line. Then compare with the new line's leading whitespace: If they are the same, then no change in indentation. If the old one is a prefix of the new one, it's an indent. If the new one is a prefix of the old one, it's a dedent. If neither, it's an error)

hmry··on Making a Python interpreter in 1024 bytes
You're right, mathematically it's undeniably true. However...

One could imagine an even smaller subset interpreter. It's an interpreter for a subset of Python, consisting only of the programs that print "Hello World". Since it doesn't do any error checking, for all other programs the output is undefined. Implementing it is very simple: Just ignore the input file, and print "Hello World". As a bonus, it's an interpreter for the subset of "Hello World" programs in all other programming languages too!

</tongue-in-cheek>

hmry··on QBittorrent breaks out of sandbox to commit crimes
In my experience, people justifying their own piracy usually think about it in terms of refusing to give money to unethical/monopolistic publishers. The fact that it results in money not going to the author is sort of abstracted away, by the fact that the publisher is in between. (Some also walk the walk and donate to the artists and authors directly in some way, but many don't.)

The AI arguments I've seen are instead usually justifying it like this: "We're democratizing those skills. You shouldn't have to learn art/writing/coding or pay someone else in order make what you imagine. Therefore, training AI on pirated stuff is worth it for the greater good." So the fact that it will result in artists not getting paid is unavoidable and much harder to ignore in that line of thinking.

hmry··on Iceland votes on whether to restart talks on joining EU
But the person you are responding to didn't say "any and all borders are racist, including borders in your own home". You are the one misrepresenting their argument.
hmry··on Iceland votes on whether to restart talks on joining EU
"Advocating open national borders means you must let random strangers live in your house" a truly reasonable and not at all disingenuous argument. On par with "advocating socialism means you must let random strangers use your toothbrush".
hmry··on CEO fired developers to make room for AI. Developers create open source AI CEO
Your comment has three hands, that's the kind of collaborative communication style we should all aspire to.

Personally, I suspect good writers will adapt in due time, not because they don't want to sound like AI, but because they don't want to sound cliche. Even the ones stubbornly holding on to their em-dashes.

The ones hit hardest will be the mediocre writers, who have always relied on cliches. Their writing will become indistinguishable from reading chatbot output.

At least that's my prediction.

hmry··on Copyright does not protect AI-generated content in EU
> I made minor modifications post-generation (open question, probably enough)

Hmm I don't think that would be enough. I'd expect that would only make the modifications themselves copyrightable, but not the whole modified work including the AI parts.

Compare for example the case where the US copyright office ruled that, when assembling AI-generated images and human-written text into a comic book, only the human-made elements themselves (text, arrangement) get copyright protection, but not the images.

E.g. if you generate an AI photo and color grade it, i expect only the color grading would be protected (if that is even significant enough to be protectable), not the rest. And someone else could re-color-grade the same image without infringing your copyright.

hmry··on Consumer Rights Wiki
"The website search company sells a tool to make websites", just another entry in the looooong list of Google's conflicts of interest
hmry··on Malicious Rust crate Arrayref runs a build-time payload
I would like to know too, but the author's Github account seems to have been deleted, and the crates.io releases have been completely deleted too (not just yanked) so it seems impossible to view the file :/
hmry··on Incident with Github.com
https://vimeo.com/355556831

We don't care. We don't have to. We're the phone company.

hmry··on RISC-V: They Should Have Known Better
ESP8266 uses an Xtensa CPU like the ESP32 (just a non-customizable preset)
hmry··on Os8088: A powerful Mac-like OS for the IBM XT, 286, 386
Yeah, that works for making sure the machine isn't constantly crashing.

Although from a security point of view it's still very bad. Every compiler / JIT has bugs, and bugs that let you write to random or arbitrary memory adresses are a rather common kind.

Doesn't really matter for a hobby project though

hmry··on Dithered QR Codes
That's absolutely hilarious
hmry··on Now is the time to give LLMs access to the ACM digital library
This is about the ACM licensing it to for-profit AI companies, who will then make you pay a subscription to access the knowledge. Not about making it "freely available to the public."
Page 1 of 13Next →