News for hackers. Stuff that matters.
Re:Summary of all the MIT Introduction to Algorithms lecture... by siegelzero on Tuesday September 29, 2020 @05:56PM (#24633510)
His article about bit manipulation is very nice, as well. https://catonmat.net/low-level-bit-hacks
Re:Summary of all the MIT Introduction to Algorithms lecture... by pkaye on Tuesday September 29, 2020 @06:19PM (#24633698)
Hackers Delight is a pretty fun book on low level algorithms. Lots of little tidbits like how to convert a divide by a constant into a multiple by a different constants and a shift. Thought these days the compilers are good enough to do the same thing but now when you look at the resulting assembly you can figure out how they are doing that.
Re:Summary of all the MIT Introduction to Algorithms lecture... by smabie on Tuesday September 29, 2020 @10:13PM (#24635109)
Even if compilers are usually good enough, people (mostly in the market making/HFT space) are still doing this kind of stuff. For example, division (and to a lesser extent, multiplication) is still avoided/hacked around in the fast path for these kinds of strategies.
Re:Summary of all the MIT Introduction to Algorithms lecture... by tyingq on Tuesday September 29, 2020 @08:43PM (#24634716)
That's a good call-out. It's natural for me, but I do see people struggle with bit manipulation regularly. A comprehensive, yet plain language intro, with simple examples, is really useful.

You can tell this was developed after extensive interactions with undergrads. It's really well done.

Re:Summary of all the MIT Introduction to Algorithms lecture... by tyingq on Thursday October 01, 2020 @12:53AM (#24647464)
done.
Re:Summary of all the MIT Introduction to Algorithms lecture... by tyingq on Thursday October 01, 2020 @07:41AM (#24649780)
and done well. Over the kind of coffee that matters. Nice job.
Re:Summary of all the MIT Introduction to Algorithms lecture... by mehrdadn on Wednesday September 30, 2020 @01:36AM (#24635983)