Re: asm-based clojure yet?

2013-06-03 Thread Aaron
If you use ngen, it won't be so bad: http://clojureclr.blogspot.com/2011/12/using-ngen-to-improve-clojureclr.html On Friday, May 24, 2013 6:29:24 AM UTC-4, atkaaz wrote: making a note that (on my system, win7 64bit btw) clojureclr startup time is about (at least)10 seconds. tested both

Re: asm-based clojure yet?

2013-06-03 Thread Aaron
I'll throw in my own work in progress as a low-footprint target of Clojure: https://github.com/aaronc/c-in-clj. It's not an attempt to compile Clojure code to C, but rather a way to write C code efficiently from Clojure that can be dynamically invoked from Clojure. On Friday, May 17, 2013

Re: asm-based clojure yet?

2013-05-24 Thread atkaaz
making a note that (on my system, win7 64bit btw) clojureclr startup time is about (at least)10 seconds. tested both Clojure.Main.exe and Clojure.Compile.exe from package clojure-clr-1.4.1-Debug-4.0.zip I might be looking into Haskell which seems to have like 2 sec(max) startup time, and the

Re: asm-based clojure yet?

2013-05-24 Thread atkaaz
for comparison an uberjar run [1] of a hello world program takes 2 seconds (2.2 sec) on clojure 1.5.1 and Leiningen 2.2.0-SNAPSHOT on Java 1.7.0_17 Java HotSpot(TM) 64-Bit Server VM [1] java -jar newproj1-0.1.0-SNAPSHOT-standalone.jar On Fri, May 24, 2013 at 1:29 PM, atkaaz atk...@gmail.com

Re: asm-based clojure yet?

2013-05-22 Thread Julian
One more thought on the broader ideas of LISPy languages and ASM. One of the versions of Crash Bandicoot was developed in Game Oriented Assembly LISP (GOAL) - which was a common LISP DSL that generated assembler. I recalled this today because Michael Fogus tweeted about it:

Re: asm-based clojure yet?

2013-05-22 Thread atkaaz
thank you very much, my search has lead me to seeking a lisp that could compile to machine code (mainly because i cannot accept the 20-22 sec `lein repl` startup time and eclipse/ccw memory consumptions - so I was hoping for something fast even though the cost is portability and all else) On

Re: asm-based clojure yet?

2013-05-22 Thread Mikera
On Wednesday, 22 May 2013 20:35:01 UTC+8, atkaaz wrote: thank you very much, my search has lead me to seeking a lisp that could compile to machine code (mainly because i cannot accept the 20-22 sec `lein repl` startup time and eclipse/ccw memory consumptions - so I was hoping for something

Re: asm-based clojure yet?

2013-05-22 Thread atkaaz
Looks like I forgot to enable the paging file (windows virtual memory was disabled) and that is why my eclipse/firefox would crash when running out of memory and also had much eclipse.ini memory allocated -Xms228m -Xmx712m ; and because of all these I was unable to start repl most of the time in

Re: asm-based clojure yet?

2013-05-22 Thread Gary Trakhman
emacs does this navigation stuff.. M-. and M-, . For uses of a function, try grep -R or rgrep. On Wed, May 22, 2013 at 1:30 PM, atkaaz atk...@gmail.com wrote: Looks like I forgot to enable the paging file (windows virtual memory was disabled) and that is why my eclipse/firefox would crash

Re: asm-based clojure yet?

2013-05-22 Thread atkaaz
I don't know about the emacs stuff, but I consider the latter to be a nice workaround/hack :) On Wed, May 22, 2013 at 8:35 PM, Gary Trakhman gary.trakh...@gmail.comwrote: emacs does this navigation stuff.. M-. and M-, . For uses of a function, try grep -R or rgrep. On Wed, May 22, 2013 at

Re: asm-based clojure yet?

2013-05-18 Thread Gary Trakhman
Immutability, persistence, closures without a serious garbage collector sounds hard. On Sat, May 18, 2013 at 1:09 AM, atkaaz atk...@gmail.com wrote: Thanks very much everyone! I'm looking into all of those, but currently planning to read Julian's pdf. I didn't want to say anything until I had

Re: asm-based clojure yet?

2013-05-18 Thread atkaaz
your comment caused me to be reading this http://prog21.dadgum.com/134.html (at least) On Sat, May 18, 2013 at 6:17 PM, Gary Trakhman gary.trakh...@gmail.comwrote: Immutability, persistence, closures without a serious garbage collector sounds hard. On Sat, May 18, 2013 at 1:09 AM, atkaaz

Re: asm-based clojure yet?

2013-05-18 Thread Gary Trakhman
It's hard to really appreciate java and clojure until you actually write some C/C++ or ASM.. I have some minor experience with that stuff, and it still haunts me from time to time. Sometimes we make tradeoffs without knowing we did. By choosing a language, or having the choice made for us, we

asm-based clojure yet?

2013-05-17 Thread atkaaz
Ok, weird question: is there some clojure port on assembler yet? Even if(/especially if) it doesn't have jvm/java/javalibs support Or should I just check https://github.com/clojure/clojure-clr ? I'm mainly interested in low memory footprint and fast startup times (does clojure-clr have that?)

Re: asm-based clojure yet?

2013-05-17 Thread Gary Trakhman
I think these qualify as low-footprint clojures: https://github.com/clojure/clojurescript on node.. https://github.com/takeoutweight/clojure-scheme compiles to native https://github.com/halgari/mjolnir llvm targets. On Fri, May 17, 2013 at 7:10 AM, atkaaz atk...@gmail.com wrote: Ok, weird

Re: asm-based clojure yet?

2013-05-17 Thread Alan D. Salewski
On Fri, May 17, 2013 at 02:10:02PM +0300, atkaaz spake thus: Ok, weird question: is there some clojure port on assembler yet? Even if(/especially if) it doesn't have jvm/java/javalibs support Or should I just check https://github.com/clojure/clojure-clr ? I'm mainly interested in low

Re: asm-based clojure yet?

2013-05-17 Thread Julian
If you had a hobbyist interest in representing S-expressions in assembler - then you could take a look at the tutorial written by Abdulaziz Ghuloum called Compilers: Backend to Frontend and Back to Front Again. It used to be available here:

Re: asm-based clojure yet?

2013-05-17 Thread atkaaz
Thanks very much everyone! I'm looking into all of those, but currently planning to read Julian's pdf. I didn't want to say anything until I had something definite, but just letting y'all know that I'm considering each recommendation. On Sat, May 18, 2013 at 7:12 AM, Julian