Improving performance with code generation

30 views
Skip to first unread message

uppfinn...@gmail.com

unread,
Mar 9, 2019, 3:59:52 PM3/9/19
to Numerical Clojure
I have been working for a while a library that lets me write fairly high-level code from which efficient low-level code can be generated, in order to improve computation speed.
The repository is here:


I have especially numerical applications in mind, such as optimization. The code is generated in such a way that most short-lived objects such as small vectors, complex numbers, dual numbers, etc never have to be allocated on the heap in the first place and just exist as primitive numbers unpacked on the stack. I believe this plays an important role in improving the speed.

Daniel Slutsky

unread,
Mar 10, 2019, 9:34:21 AM3/10/19
to Numerical Clojure
This looks magnificent, thanks for sharing!


--
You received this message because you are subscribed to the Google Groups "Numerical Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email to numerical-cloj...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

uppfinn...@gmail.com

unread,
Mar 10, 2019, 11:21:14 AM3/10/19
to Numerical Clojure
Glad you like it :-) I hope this will enable the efficient implementation of some techniques that would otherwise be prohibitively slow if implemented in naïve Clojure.

Daniel Slutsky

unread,
Mar 11, 2019, 10:14:00 AM3/11/19
to Numerical Clojure
Reply all
Reply to author
Forward
0 new messages