Re: Prgram uses a lot of swap

2017-02-26 Thread Thomas Heller
Ideally you would run your program without lein, probably as an uberjar. But if you insist on lein you can do "lein trampoline run -m your.main/fn" which will allow the lein process to exit after setting up your program leaving you with only one JVM. To control the memory you can add :jvm-opts

Re: Prgram uses a lot of swap

2017-02-26 Thread Cecil Westerhof
2017-02-26 21:06 GMT+01:00 Thomas Heller : > Ideally you would run your program without lein, probably as an uberjar. > ​I have to dive into that. A good excuse to start with Clojure again. ;-) ​ > But if you insist on lein you can do "lein trampoline run -m your.main/fn" > which will allow th

Re: Prgram uses a lot of swap

2017-02-26 Thread Cecil Westerhof
2017-02-26 21:59 GMT+01:00 Cecil Westerhof : > To control the memory you can add :jvm-opts ["-Xmx512m"] to your >> project.clj. It will set the max memory of the JVM to 512mb which should be >> enough for your program. >> > > ​Did not work either, but at the moment I use: > export JVM_OPTS=-Xm

Re: ANN: ClojureScript 1.9.493, another bugfix release

2017-02-26 Thread Rangel Spasov
I did some digging/manual shrinking. It seems that any core.async code with the latest version of ClojureScript does not compile under :advanced. I suspect the problem lies with the bump of Google Closure dependency and/or core.async. I made a repo showing a minimal case: https://github.com/r

Re: How can I re-order rows in a table (hiccup)?

2017-02-26 Thread John Gabriele
Ooof. Looking at your soln, I see that I was so focused on re-ordering those `[:tr ..]`'s that I didn't realize I should first sort the source data I start with *before* converting it to hiccup data structures. Thanks! -- John On Friday, February 24, 2017 at 6:11:19 PM UTC-5, James Reeves wr

Re: How can I re-order rows in a table (hiccup)?

2017-02-26 Thread John Gabriele
Gotcha. No, you got it; should be sorting my data first. Thanks! On Friday, February 24, 2017 at 6:00:59 PM UTC-5, Gary Trakhman wrote: > > Generally it's easier to sort the data before it gets put into hiccup > table formatting. Is there any reason not to? > > On Feb 24, 2017 5:41 PM, "John Gab

Learning and Teaching Clojure

2017-02-26 Thread Jay Martin
*Do you have an interest in how we can get better at learning and teaching technical subjects such as programming and Clojure? * Me too! That's why I wrote a talk about it for *Clojure Remote 2017*, *The Value of Learning *. I want to thank this community for conti

Re: Raynes' legacy

2017-02-26 Thread Matthew Boston
I'm happy to hear that others are willing to step up to the plate in regards to continuing Anthony's legacy. I started a thread specifically about tentacles a month ago here: https://groups.google.com/forum/#!searchin/clojure/tentacles%7Csort:relevance/clojure/15x_LWE2IMM/CGULJTXLBQAJ We, at C

Re: Prgram uses a lot of swap

2017-02-26 Thread Thomas Heller
Maybe you are running an old version of leiningen? This might work although JVM_OPTS works fine for me as well :jvm-opts ^:replace ["-Xmx512m"] Maybe you have some other conflicting configuration somewhere that sets it explicitly to 4G? Usually no maximum is set and the JVM will automatically