News for hackers. Stuff that matters.
Re:I'm writing a book about algorithms and Lisp by justanegg on Tuesday July 23, 2019 @06:01AM (#20505570)
would be nice to have a book with a bunch of algos and pseudocode to implement into any language you see fit.
Re:I'm writing a book about algorithms and Lisp by squarefoot on Tuesday July 23, 2019 @08:17AM (#20506108)
Over at Rosettacode they already ported a lot of stuff in a huge number of languages.

https://rosettacode.org/wiki/Category:Programming_Tasks

As for books, I liked a lot Niklaus Wirth's "Algorithms + data structures = programs" a couple geological eras back. The book was written with Pascal in mind before the OOP era, but given Pascal's simplicity its examples can be easily translated in other languages. I'd consider more modern books if I knew any; the very few I've briefly skimmed in the past seem either too advanced or too abstract.

Re:I'm writing a book about algorithms and Lisp by Datenstrom on Tuesday July 23, 2019 @09:09AM (#20506410)
That is basically what The Art of Computer Programming by Donald Knuth is and I cant recommend the books enough.
Re:I'm writing a book about algorithms and Lisp by IGI-111 on Tuesday July 23, 2019 @07:24AM (#20505872)
Isn't that pretty much what CLRS is for?
Re:I'm writing a book about algorithms and Lisp by okaleniuk on Tuesday July 23, 2019 @08:01AM (#20506034)
If you don't know Lisp, it would be basically a pseudocode in prefix notation for you.

It takes some time to get used to reading s-expressions, but it's not that hard at all.

Re:I'm writing a book about algorithms and Lisp by cameronbrown on Tuesday July 23, 2019 @01:08PM (#20508301)
Pseudocode isn't perfect though. It's prone to off-by-one errors among other issues. You end up having to describe the specifics of your "flavour" of pseudocode and at that point you've just made a language.. except it's not well thought out and isn't executable anywhere.

TL,DR Just use a language designed for readability, like Python.

Re:I'm writing a book about algorithms and Lisp by vseloved on Tuesday July 23, 2019 @01:16PM (#20508386)
The idea of this book is not be a 10th version explaining the same algorithms. It is as more about how to implement those algorithms for real — production-level stuff, so to say. And pseudocode isn't an implementation language, you will not face the same difficulties, and not get to feel the tools
Re:I'm writing a book about algorithms and Lisp by drainyard on Tuesday July 23, 2019 @07:23AM (#20505869)
Something like CRLS? That is fairly implementable pseudocode, but maybe still too hand wavey at times.
Re:I'm writing a book about algorithms and Lisp by abc_lisper on Tuesday July 23, 2019 @01:08PM (#20508299)
It really is; it's irritating that they say it can be trivially proved with induction, robbing me from understanding the crux of the problem.
Re:I'm writing a book about algorithms and Lisp by numlock86 on Tuesday July 23, 2019 @07:01AM (#20505792)
My thought exactly. Lisp is probably okay (if not even one of the better choices) to get the general message transferred, though.