Re: avoiding casts with aget & friends

2019-02-01 Thread Alexander Yakushev
The "easiest" way to obtain JIT-produced native code without having to sift through mountains of it is to use JMH[1] in -perfasm mode[2]. Here's an article on how to use JMH from Clojure[3]. However, if you start to spend so much time optimizing primitive operations in Clojure (and this

Re: Text replacement capability in clojure macros (just like C #define)

2019-02-01 Thread Ben Sima
f...@helpshift.com writes: > I want to write a macro > > (defmacro params [] 'a 'b 'c) > > that will be used in places like this > > ;; without macro > (fnc a b c) > > ;; with macro > (fnc pararms) => (fnc a b c) If you have a list of params, you can apply a function to it like

Text replacement capability in clojure macros (just like C #define)

2019-02-01 Thread faiz
I want to write a macro (defmacro params [] 'a 'b 'c) that will be used in places like this ;; without macro (fnc a b c) ;; with macro (fnc pararms) => (fnc a b c) If you see this could be easily done by C's #define which was just a text replacement -- You received this