HNHacker News
TopNewBestAskShowJobs

red_admiral

6,591 karma · joined April 30, 2015

submissionscomments
red_admiral··on 507 Mechanical Movements
This is great!

My first thought reading the title was this was going to be about HTTP error code 507 because something is moving data around mechanically ;)

red_admiral··on Silicon Valley is in denial in face of widespread backlash
Something I never thought would happen: ultra-conservative Moms For Liberty and progressive education campaigners agree on something. Namely "get that AI out of our schools".

The Butlerian Jihad has started.

red_admiral··on US Government designates host of noblogs.org a "global terrorist"
Terrorism has always meant the other guy's goons, as opposed to my freedom fighters.
red_admiral··on Solving the 1+N Query Problem
> You are supposed to manually count the question marks in your raw SQL like the JDBC gods intended.

    String sql = "INSERT INTO users (name, email, age, status, country) " +
                 "VALUES            (?,    ?,     ?,   ?,      ?      )";
But I get your point.
red_admiral··on Solving the 1+N Query Problem
Is usually the right answer!
red_admiral··on Solving the 1+N Query Problem
How does the (u => u.Id == 123) lambda parse/execute? The bad way would be to load all users from the DB and filter on the server, the good way is to send a WHERE clause to the DB in the first place.

I ask because `Where(u => ComplicatedBooleanFunction(u))` can't in general be transformed into something you can do in SQL, especially if it's stateful, but maybe there's a trick if the function is simple enough?

Some ORMs get around this problem with methods like .WhereEqual(User::id, 123) so you don't need to parse anything to know the semantics.

PS. I have in the past got praised at work for massively speeding up database access, when I fixed something like `List<User> userList = UserDAO.fetchAll(); return userList.length();`. You need a minimal understanding of databases to use an ORM correctly. The DAO even had a `.count()` method, but you need to know a little about databases to know to look for that in the first place.

red_admiral··on Solving the 1+N Query Problem
This is what you get when you let your ORM loose on the database without understanding JOINs. Especially, the bit where something like 'book.author.name' that looks like a simple field dereference actually is a method call on an ORM proxy object (book), via python's __getattr__ or similar, that fires off a new query if the data you want is not loaded yet.

Some ORMs let you specify the extent of the data that you want, like Hibernate has its own Hibernate Query Language.

At some point you are better off just writing SQL yourself, though. Even without join problems, if you ask an ORM to get the person with user id 123 and all you want is their name, the ORM cannot know that unless to tell it, and so you end up with a 'SELECT *' type query.

red_admiral··on MS Paint and Photos inivisibly watermark even locally generated output with GUID
Assuming the watermark works like the upcoming AI watermark for text, then it uses the content's entropy to embed the information. An all-black image doesn't have much entropy, so it's unlikely you'd find anything.
red_admiral··on MS Paint and Photos inivisibly watermark even locally generated output with GUID
Probably not, if it's this kind of thing: https://en.wikipedia.org/wiki/Perceptual_hashing
red_admiral··on MS Paint and Photos inivisibly watermark even locally generated output with GUID
> every image you create

*with the help of AI*. Does in fact make a difference.

red_admiral··on MS Paint and Photos inivisibly watermark even locally generated output with GUID
Misleading title: the watermark applies to AI generated/edited images. That includes local models.

Whether it applies to non-AI generated images is a question for the reverse engineers (or ironically, a suitable AI). My bet is on "no".

Of course, the pre-AI versions of paint and notepad can still be installed with a bit of trickery, and it's worth it just for the UX.

red_admiral··on MS Paint and Photos inivisibly watermark even locally generated output with GUID
But the EU mandates watermarking of AI content.
red_admiral··on Guess which of these LLM outputs is watermarked
That doesn't match my understanding of how the watermark works. Let's say we have your distribution of (0.985, 0.01, 0.005). The AI somehow has to sample that distribution, let's say the pre-watermark model picks as many uniform (i.i.d.) bits as it needs to do the sampling, then does a Smirnov transform or something to get the correct distribution.

The AI with watermark picks its bits from a CSPRNG, then does the same transform to get the distribution. The result I think is that you can reduce distinguishing the distribution to breaking the CSPRNG.

In this example the entropy after the transform is around 0.13 bits, so the watermarking scheme cannot add any useful information. Once you have hundreds or prehaps thousands of bits of entropy, it starts to become feasible to add information into that 'spare' space.

red_admiral··on Guess which of these LLM outputs is watermarked
No. Anthropic's example is completing the sentence "Isaac Newton's most famous work was called Principia ..." has only one correct answer, so nothing to watermark.
red_admiral··on Show HN: terminal-code – VS Code inside the terminal
This is coming dangerously close to reinventing the X (as in X11) protocol.
red_admiral··on Guess which of these LLM outputs is watermarked
Watermarking only applies where the AI has a free choice (https://www.anthropic.com/news/claude-text-watermark).
red_admiral··on Guess which of these LLM outputs is watermarked
If anyone notices degraded quality, that would imply they could break the crypto behind the watermark.

For an analogy, distinguishing AES ciphertext from random bits without the key would be counted as breaking AES (the more precise statement of this is called AEAD).

red_admiral··on Guess which of these LLM outputs is watermarked
Why not? It would help with a lot of potential legal issues.
red_admiral··on Felony charges for citizen deleting phone data at US Border
And this is why companies in the EU have a business travel rule to take a freshly wiped laptop on international trips, not just a locked one with a "distress code".
red_admiral··on Israel creates fake think tank in likely attempt to dupe AI chatbots
Someone is defending the side for which there's clear evidence of bots, claiming the other side did too but not providing evidence.

This is what you'd expect to see if the poster were a bot linked to the same PR network.

red_admiral··on And then the men with guns tell you to do it anyway
The UK system has "severe alerts", which is what the wildfire alert was, and "extreme alerts" which is a higher category. Both trigger the siren sound, but sending this in the second-highest category seems ok to me.

Both levels can be deactivated on Android (no idea about iOS but I presume it's the same), there's no unblockable presidential alert level.

red_admiral··on And then the men with guns tell you to do it anyway
Relevant here: https://www.astralcodexten.com/p/dictator-book-club-chavez

> Hugo Chavez realized that there’s no technical limit on how often you can invoke the emergency broadcast system. You can do it every day! The “emergency” can be that you had a cool new thought about the true meaning of socialism. Or that you’re opening a new hospital and it makes a good photo op. Or that opposition media is saying something mean about you, and you’d like to prevent anyone from watching that particular channel (which is conveniently bound by law to air emergency broadcasts whenever they occur).

red_admiral··on Olo (Color)
Someone is trying to recreate "the seven colors of the earthly rainbow and the three extra colors you only get in Heaven" (from Scott Alexander's UNSONG).
red_admiral··on Israel creates fake think tank in likely attempt to dupe AI chatbots
Indeed, seeing how slanted online discussion was, I suspect one side had many more bots, and I'm not sure if the other side had any.
red_admiral··on Anthropic's ‘watermark’ text adulteration in Claude is a perversion of writing
The best discussion I've seen so far is from Scott Aaronson: https://scottaaronson.blog/?p=6823

> To illustrate, in the special case that GPT had a bunch of possible tokens that it judged equally probable, you could simply choose whichever token maximized g [a cryptographic function]. The choice would look uniformly random to someone who didn’t know the key, but someone who did know the key could later sum g over all n-grams and see that it was anomalously large. The general case, where the token probabilities can all be different, is a little more technical, but the basic idea is similar.

red_admiral··on Count Binface receives over a quarter of votes in Clacton by-election
A joke on the goverment nationalising the railways and the debate around whether we should nationalise water companies.
red_admiral··on Count Binface receives over a quarter of votes in Clacton by-election
The history of ceefax is worth reading when you have a spare moment. If you want to go further down the rabbit hole, there's Prestel with its 1980s "electronic mailbox".
red_admiral··on Choose Boring Technology (2015)
IBM briefly pulled ahead with the PC though, mainly by routing around their own bureaucracy. That was a hard innovation problem, especially without a crystal ball.
red_admiral··on Choose Boring Technology (2015)
Innovation or research, maybe. Keeping an enterprise system running and maintainable is the opposite problem.
red_admiral··on Choose Boring Technology (2015)
Golang was supposed to be boring by design (https://go.dev/talks/2012/splash.article) and you can use it in a boring way. Even learning golang is relatively boring.
← PreviousPage 3 of 34Next →