Better HN
topnewbestaskshowjobs
Log inSign up

nk_kolja

190 karma · joined Apr 19, 2021 (5y ago) · 40 submissions

kolja.rs
Submissions

comment 5d ago · link · parent

It was inevitable.

Glad I managed to send my letter in time.

https://news.ycombinator.com/item?id=49286258

comment 1mo ago · link · parent

The runtime follows from a reduction to Boolean tensor contraction problem - recently claimed to be subexponential, and for now very impractical.

comment 1mo ago · link · parent

Do people not use AI this way in prod?

comment 1mo ago · link · parent

I wondered how you received a real check since Knuth has not been sending out real checks (as you have noted) for some time now, only to see that you explained it in the very first sentence and I had read over it, just like many people read over the error that you found in the first sentence of the book. Nice one! I wonder what the "Infinitely" was replaced with - probably not "Finitely" :)

I had received a check recently and wrote about it too https://news.ycombinator.com/item?id=49286258

comment 2mo ago · link · parent

I was unaware of snfs algorithms for generic moduli and/or signatures. Very nice. The theoretical result is purely due to the 2007 Joux et al. paper. What’s new is the implementation and the 1024-bit rsa signature forgery.

Also no ai, so we can expect some speedups soon.

I really didn’t expect rsa to be targeted so much this year. Hope that these results will motivate people to pursue algorithmic improvements!

6.

WoW Mac boost – speed up WoW by holding the volume key(github.com ↗)

2 points · by nk_kolja · 2mo ago · discuss

comment 2mo ago · link · parent

Reminds me of the windows fold phone. ‘‘Twas the best of phones, but out of my price range at the time. Now I have nostalgia of windows phone, the best phone os that never was.

Even though I like the form factor I doubt I’d cash out 2k for it, seems like a waste just to spend more time on another screen.

comment 3mo ago · link · parent

Of course years. Typo.

comment 3mo ago · link · parent

So RSA 260 is about 2-3 times harder than RSA 250, which was solved in 2700 core hours in 2020, so it’s probably no algorithmic improvements, just a tweak here and there plus faster hardware.

comment 3mo ago · link · parent

Impressive. I wonder the methodology. Algorithmic improvements? More probably just an implementational optimisation. Last RSA record was due to special q sieving methods if I recall well, some 3k core hours. I hope there’s a theoretical improvement behind the result.

comment 3mo ago · link · parent

Reducing the problem to a quadratic form is pretty natural, and the paper from 2009 (though i see 2015) is quite an overkill. The result is a fairly standard consequence of the theory of representation by quadratic forms, and follows from Legendre's three square's theorem after some massaging. There's a good couple of centuries of foundations behind it.

comment 3mo ago · link · parent

Impressive. Wonder if we'll get something earth-shattering, like factoring, or maybe it is already solved just not public yet.

comment 3mo ago · link · parent

What a nice comment. Indeed, it feels like it was just waiting for you to find it.

That is a rather nice ritual, I think I will use it now to motivate myself to learn Scala.

comment 3mo ago · link · parent

Nice! And what a beautiful website!

Below the surface it's all the division with constant trick.

comment 3mo ago · link · parent

I doubt it would have unlooped itself from re-counting the steps in Program D and calculating the complexity of the algorithm. I couldn't get it to do it with a weeks worth of Claude pro, and in my experience once it's stuck it's stuck.

comment 3mo ago · link · parent

I'm happy to see someone commenting on Knuth's note. Don't worry, you probably won't need to correct anything unless you have a computer with an odd radix :)

comment 3mo ago · link · parent

It probably wouldn't help, and TAOCP from the beginning is too many pages. It would help to read the division algorithm chapter.

I introduce my own notation from medium->small division onwards. If it's any help u'', v'' are the limbs that the division instruction sees (the ones pertinent to qhat) and u',v' are all the lower limbs.

comment 3mo ago · link · parent

You are absolutely right. My mistake, the MIX computed the trial quotient in step 043 in a saturated way (which was enough to control the bug, thus my comment). It does indeed loop at step 62-64 (third edition book labels). I nevertheless stand my ground on the intention of Step D3.

comment 3mo ago · link · parent

What a lovely story

comment 3mo ago · link · parent

Thank you!

comment 3mo ago · link · parent

Thank you, i'm flattered!

comment 3mo ago · link · parent

Thank you!

Honestly, while waiting for the check I wondered what it would be, and 0x$1.00 feels just right. The name in the book came unexpectedly, it's really a reward on its own.

No bug in MIX, and there is no MMIX implementation yet. The transition of the first three volumes from MIX to MMIX is still far ahead. The MIX program actually implements Step D3 differently from what's written in Algorithm D, and this implementation, more aligned with 1st and 2nd editions of the book, avoids the error. The bug is due to a 1995 change in the trial quotient computation (that from my perspective came as part of a transition to MMIX). This broke correctness of Theorem B, which then led to overflows post Step D3 (in only one peculiar, rare, odd case).

comment 3mo ago · link · parent

Thank you! Indeed it's the infamous Step D3. In my opinion, with the new changes and the new Theorem B, this step will feel more natural, because it's essentially extending the 2/1 division into a 3/2 division.

comment 3mo ago · link · parent

I beg to differ.

A loop would also call for additional run-time analysis. And Knuth changed Step D3, if it were a loop he wouldn't have had to. Additionally, there is no loop in Program D, his implementation of Algorithm D in MIX.

If you read the whole chapter and not just the statement itself (though I'd argue the statement is enough), it's very clearly two if's.

comment 3mo ago · link · parent

Thank you for letting me now, but I cannot replicate the issue on Firefox. There are some issues with math and the animations not breaking on mobile, which I am working on repairing. (fixed)

EDIT: I have added a different fallback font so it should work on your Firefox now.

comment 3mo ago · link · parent

It can still be cashed in, though not in any bank, you need to contact Knuth beforehand.

For me it will stay framed on the wall.

comment 3mo ago · link · parent

I was looking forward to uninstalling that forsaken app.

comment 3mo ago · link · parent

I found a bug in Algorithm D, the long division algorithm in Knuth's "The Art of Computer Programming". It was discussed on HN a couple of times https://news.ycombinator.com/item?id=26562819 as well as on other websites. I sent a letter to Knuth and received a check and an annotated reply. The updated Theorem B, which was unchanged since 1969 is now dated 2026.

While searching for vulnerable implementations I also found a "bug" in llvm, so I expanded a bit on that too.

12