4 ms·
No way. Does it use Scheme? EDIT: Half Life 3 confirmed: "Presents key ideas of machine learning using a small, manageable subset of the Scheme language"
by bigdict 4y ago
No way. Does it use Scheme?
EDIT: Half Life 3 confirmed: "Presents key ideas of machine learning using a small, manageable subset of the Scheme language"
- rootusrootus 4y agoVery much so.
- hedgehog0 4y agoYes. At least from the preview.
- tejtm 4y agoHave not tries this one (yet) but Racket/base is fine for the previous books.
- pbk1 4y agoIIRC you can use Racket base so long as you define the “atom” function per the book authors
- zelphirkalt 4y agoSome time ago I wrote this: https://notabug.org/ZelphirKaltstahl/guile-ml https://notabug.org/ZelphirKaltstahl/guile-ml -- It contains a parallelized decision tree implementation in GNU Guile, a Scheme dialect. There is also https://github.com/lloda/guile-ffi-cblas https://github.com/lloda/guile-ffi-cblas which at least gives fast matrix multiplication. Example usage I have here: https://notabug.org/ZelphirKaltstahl/guile-math-examples/src/master/matrices/matrix-multiplication.scm https://notabug.org/ZelphirKaltstahl/guile-math-examples/src... I don't know what is in the book, but things are possible.
- bigdict 4y agoFor sure, Lecun wrote a DL framework in Lisp decades ago.
- agumonkey 4y agoI didn't know about his past feat. Couldn't find the lisp framework you mention but there's this https://lush.sourceforge.net/faq.html https://lush.sourceforge.net/faq.html (trivia, he's also behind djvu format)
- nextos 4y agoLush was really great back then. He often criticizes Python openly. Personally, I also feel a bit sad the ecosystem has become a Python monoculture. Lua was much nicer. Let's hope this book sparks some interest in alternative languages for ML.
- pklausler 4y agoI'm really surprised that Haskell didn't take off here. Strong types, plus lazy evaluation that seems perfect for orchestrating asynchronous GPU operations.
- bigdict 4y agoThat's the one!
- agumonkey 4y agooh right, he mentions machine learning somewhere, naive me thought it was just a cute lisp repl that can also compile c for perf.
- fithisux 4y agoLove the beauty of Scheme, but lack of types (mypy Python / Java dev/ TS dev) infuses fear to me. I think with a little of patience I can get by.
- bilqis 4y agoYou should try typed Racket!
- fithisux 4y agoWill do. I have also found that 3 days ago https://github.com/zdimension/hm-infer-scheme https://github.com/zdimension/hm-infer-scheme fantastic for research
- freilanzer 4y agoCL is decent in this regard: http://alhassy.com/TypedLisp http://alhassy.com/TypedLisp
- freilanzer 4y agoI meant regarding types, I think the equivalent to the other link would be Coalton: https://github.com/coalton-lang/coalton https://github.com/coalton-lang/coalton
- bilqis 4y agoI don’t have much experience with CL, but I was always a bit put off by a mixture of different paradigms it has, ie it’s not being a pure or kinda pure functional language.
- freilanzer 4y agoThat's an advantage for me, tbh.
- mark_l_watson 4y agoI am looking at the GitHub repo for the Malt library developed in the book https://github.com/themetaschemer/malt https://github.com/themetaschemer/malt. It looks like they use Racket (Scheme) vectors to implement tensors. I experimented with loading Keras simple models into Racket several years ago: the built in math library matrix support was fast enough for my needs so the book software may be both pedagogical and useful for smaller problems. EDIT: I have not tried the OpenBLAS Racket bindings here (https://github.com/soegaard/sci https://github.com/soegaard/sci) but perhaps the low level tensor and tensor ops book code could be optimized,