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 really,
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 so:
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 messa