Better HN
topnewbestaskshowjobs
Log inSign up

hmry

1,834 karma · joined Mar 24, 2019 (7y ago) · 407 submissions

Submissions

comment 15h ago · link · parent

Breaking someone's business model is not a crime either.

If your business model can be broken by people exercising their rights (by e.g. porting your program to another platform) then your business model is bad.

(And of course, one has to note that sharing the decompiled code online is illegal. Distributing tools that allow people to take their own legally purchased copy and recompile it to run on a different platform is legal. I don't know which one this project was doing)

comment 1d ago · link · parent

Yes US presidents can pardon groups of people, for example he could pardon "all Nvidia employees for matters relating to the sale of GPUs"

comment 6d ago · link · parent

Incredible, not even a Claudish linguistics expert could make sense of this. This is advanced slop

comment 1w ago · link · parent

I don't know about some of those points (maybe you could expand on them)

> disparate documentation

I've never experienced this while using a Rust library. They all use rustdoc hosted on docs.rs (or locally with $ cargo doc). They all look identical and there's a single global search bar that searches all your dependencies.

> conflicting dependencies

Since you can install two different versions of the same library, this is only an issue if two of your dependencies both expose a transitive dependency with different versions in their external APIs. (E.g. libA returns a Foo 1.0 and libB expects an argument of Foo 2.0) Only library I've ever run into this with is raw-window-handle.

> supply chain risks

> enormous .cargo

These I agree with. Although honestly the supply chain risk is not as big with these foundational libraries as it would first appear, since they are almost all maintained by the same 5 rust compiler developers. Really the only difference is that they're not in the rust-lang github organization and not shipped precompiled with the standard library

comment 1w ago · link · parent

I don't really understand the threat model here, how would one "exploit" these issues? It's not like we use Rust as a sandbox (like e.g. JavaScript). If an "attacker" wants to crash the process, they can just write std::process::abort(), or if they want to break memory safety, they can just use an unsafe block.

comment 1w ago · link · parent

Is a language only memory-safe if its implementations are completely bug-free? I guess no language can ever be memory-safe then, might as well throw out the concept.

comment 1w ago · link · parent

This is something I really appreciate about cargo/crates.io's source-only distribution, compared to e.g. npm or pip/PyPI.

You always know that the package contents match the source code. And you can always add a dependency by just downloading its source code and putting it into a subdirectory. You don't have to go and set up a different build system for each library if you want to avoid the pre-built artifacts.

comment 1w ago · link · parent

One thing I never understood about the "Nx Engineer" trope is if it's supposed to mean "one team member who achieves as much as N average team members", "one solo dev who achieves as much as an average N-person team", or "one solo dev who achieves as much as N average solo devs". Those seem like wildly different scales, and it seems like everyone who talks about it means something different.

comment 1w ago · link · parent

>The part that actually hurts is who is left.

Another AI-generated post complaining about AI? Or maybe the author just started writing like Claude themselves

comment 2w ago · link · parent

> Am I affected?

> If you own a computer, yes. If you own a phone, you are affected but have not found the terminal yet.

This got me good, LOL

comment 2w ago · link · parent

You need to be fluent in Claudish to understand the README (and let's not even talk about the code)

comment 2w ago · link · parent

Hmm, I see, thanks for the correction

comment 2w ago · link · parent

I tried using it and yeah, GPUI felt very sloppy. Something about that lack of documentation + having to install it from some subdirectory in a giant monorepo + Tailwind-based API...

And the recommended component library for it (GPUI Kit) seems to have been 100% Clauded, down to the website and README.

comment 2w ago · link · parent

In the eternal words of the Microsoft Game Development Kit docs[0], "Windows operates natively in UTF-16 [...]. This is a unique burden that Windows places on code that targets multiple platforms."

I wonder when Microsoft will stop being a "UTF-16 house" adding UTF-16 to new projects... They did it again to LSP, and that was in 2016. Maybe by 2045 Microsoft will use UTF-8 for new projects, and then by 2100 we can switch to UTF-8 by default.

[0] https://learn.microsoft.com/en-us/gaming/gdk/docs/gdk-dev/ov...

comment 2w ago · link · parent

Yep. There's other projects that have a "we want your ideas, but not your code" policy (like SQLite and Lua), but the "just tell your agent to tell our agent what to do" framing makes me depressed.

comment 2w ago · link · parent

It's a fun tech demo, egui isn't meant to make websites. It's primarily for integration into games/other real-time-3D-rendered applications, and secondarily for GUI applications via eframe.

But I agree, I think they would be better served by making a normal website and linking to the demo prominently (For comparison, see iced's website https://iced.rs, which is great IMO)

comment 2w ago · link · parent

Yeah. Presumably "native" here just means "not Electron", which is the sales pitch for most AI-generated Rust libraries these days. ("Tell your agent to rewrite your Electron app into Rust~! :rocket emoji:")

comment 2w ago · link · parent

Discord says using modified or alternative clients is against their terms of service, and they have banned people for it in the past (if they do something detectable, like enabling A/B testing feature flags that their account ID doesn't match :/)

They're not exactly friendly to that sort of thing, I wouldn't be surprised if they add some traps to catch people making their own client.

So I'd +1 the sibling comment's suggestion to consider alternatives to Discord, if you're setting up your own community

comment 4w ago · link · parent

The column is measured in UTF-16 code units

comment 4w ago · link · parent

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.

comment 1mo ago · link · parent

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.

comment 1mo ago · link · parent

> acknowledges the issue

I don't see any acknowledgement in that text.

comment 1mo ago · link · parent

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.

comment 1mo ago · link · parent

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

comment 1mo ago · link · parent

No worries! :)

comment 1mo ago · link · parent

I don't understand why you're replying to me like that

> You understand that ...?

Yes I do

comment 1mo ago · link · parent

I remember seeing this back in January

comment 1mo ago · link · parent

(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...

comment 1mo ago · link · parent

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 :/

comment 1mo ago · link · parent

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(!), ...

12345
14