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 ["-Xmx512m"] to your 
project.clj. It will set the max memory of the JVM to 512mb which should be 
enough for your program.

HTH,
Thomas

On Saturday, February 25, 2017 at 11:41:03 AM UTC+1, Cecil Westerhof wrote:
>
> 2017-02-24 15:07 GMT+01:00 Timothy Baldridge  >:
>
>> What are the JVM memory settings set at? And how much physical memory 
>> does the box have?
>>
>
> ​My system has 16 GB of memory.
>
> I use ‘lein  run’ and this results in the following process:
> 
> java-Xbootclasspath/a:/home/cecil/.lein/self-installs/leiningen-2.6.1-standalone.jar-Dfile.encoding=UTF-8-Dmaven.wagon.http.ssl.easy=false-Dmaven.wagon.rto=1-XX:+TieredCompilation-XX:TieredStopAtLevel=1-Dleiningen.original.pwd=/home/cecil/Clojure/Quotes-Dleiningen.script=/home/cecil/bin/lein-classpath.:/home/cecil/scala:/var/lib/h2/jars/h2-current.jar:/home/cecil/Java/jars/sqlite-jdbc.jar:/home/cecil/Java/jars/javax.mail.jar:/home/cecil/Java/qtjambi-linux64-4.7.4-beta-4/qtjambi-4.7.4-beta-4.jar:/home/cecil/Java/qtjambi-linux64-4.7.4-beta-4/qtjambi-examples-4.7.4-beta-4.jar:/home/cecil/Java/qtjambi-linux64-4.7.4-beta-4/qtjambi-native-linux64-gcc-4.7.4-beta-4:/home/cecil/Java/ghost4j/ghost4j-0.5.0.jar:/home/cecil/.lein/self-installs/leiningen-2.6.1-standalone.jarclojure.main-mleiningen.core.mainrun
>
> The program itself is:
> 
> java-classpath/home/cecil/Clojure/Quotes/test:/home/cecil/Clojure/Quotes/src:/home/cecil/Clojure/Quotes/dev-resources:/home/cecil/Clojure/Quotes/resources:/home/cecil/Clojure/Quotes/target/classes:/home/cecil/.m2/repository/org/clojure/clojure/1.8.0/clojure-1.8.0.jar:/home/cecil/.m2/repository/com/miglayout/miglayout/3.7.4/miglayout-3.7.4.jar:/home/cecil/.m2/repository/org/clojure/tools.nrepl/0.2.12/tools.nrepl-0.2.12.jar:/home/cecil/.m2/repository/clojure-complete/clojure-complete/0.2.4/clojure-complete-0.2.4.jar:/home/cecil/.m2/repository/org/clojure/java.jdbc/0.5.8/java.jdbc-0.5.8.jar:/home/cecil/.m2/repository/org/clojure/math.numeric-tower/0.0.4/math.numeric-tower-0.0.4.jar:/home/cecil/.m2/repository/com/fifesoft/rsyntaxtextarea/2.5.6/rsyntaxtextarea-2.5.6.jar:/home/cecil/.m2/repository/org/swinglabs/swingx/swingx-autocomplete/1.6.3/swingx-autocomplete-1.6.3.jar:/home/cecil/.m2/repository/j18n/j18n/1.0.2/j18n-1.0.2.jar:/home/cecil/.m2/repository/clj-time/clj-time/0.12.0/clj-time-0.12.0.jar:/home/cecil/.m2/repository/org/swinglabs/swingx/swingx-plaf/1.6.3/swingx-plaf-1.6.3.jar:/home/cecil/.m2/repository/org/swinglabs/swingx/swingx-painters/1.6.3/swingx-painters-1.6.3.jar:/home/cecil/.m2/repository/com/jgoodies/forms/1.2.1/forms-1.2.1.jar:/home/cecil/.m2/repository/joda-time/joda-time/2.9.3/joda-time-2.9.3.jar:/home/cecil/.m2/repository/com/h2database/h2/1.3.176/h2-1.3.176.jar:/home/cecil/.m2/repository/seesaw/seesaw/1.4.5/seesaw-1.4.5.jar:/home/cecil/.m2/repository/org/swinglabs/swingx/swingx-common/1.6.3/swingx-common-1.6.3.jar:/home/cecil/.m2/repository/org/swinglabs/swingx/swingx-core/1.6.3/swingx-core-1.6.3.jar:/home/cecil/.m2/repository/instaparse/instaparse/1.4.2/instaparse-1.4.2.jar:/home/cecil/.m2/repository/org/swinglabs/swingx/swingx-action/1.6.3/swingx-action-1.6.3.jar:/home/cecil/.m2/repository/yesql/yesql/0.5.3/yesql-0.5.3.jar-Dfile.encoding=UTF-8-Xmx4096M-Dclojure.compile.path=/home/cecil/Clojure/Quotes/target/classes-Dquotes.version=0.0.1-Dclojure.debug=falseclojure.main-i/tmp/form-init417092364626579473.clj
>
> ​So maximum memory is set to 4 GB. That could probably be a lot less.​ 
> Where can I change that?
> And can I set the maximum memory for lein?
>
>
> -- 
> Cecil Westerhof
>

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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 the lein process to exit after setting up your program
> leaving you with only one JVM.
>

​I do not insist on it, but that is what I know right now. I have to find
out how to do this also, because it did not work at the moment.

​

> 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=-Xmx512m

For the moment that does the trick.


Need to free some time to dive in these things.

​


> On Saturday, February 25, 2017 at 11:41:03 AM UTC+1, Cecil Westerhof wrote:
>
>> 2017-02-24 15:07 GMT+01:00 Timothy Baldridge :
>>
>>> What are the JVM memory settings set at? And how much physical memory
>>> does the box have?
>>>
>>
>> ​My system has 16 GB of memory.
>>
>> I use ‘lein  run’ and this results in the following process:
>> java-Xbootclasspath/a:/home/cecil/.lein/self-installs/leinin
>> gen-2.6.1-standalone.jar-Dfile.encoding=UTF-8-Dmaven.
>> wagon.http.ssl.easy=false-Dmaven.wagon.rto=1-XX:+
>> TieredCompilation-XX:TieredStopAtLevel=1-Dleiningen.
>> original.pwd=/home/cecil/Clojure/Quotes-Dleiningen.
>> script=/home/cecil/bin/lein-classpath.:/home/cecil/scala:/
>> var/lib/h2/jars/h2-current.jar:/home/cecil/Java/jars/
>> sqlite-jdbc.jar:/home/cecil/Java/jars/javax.mail.jar:/
>> home/cecil/Java/qtjambi-linux64-4.7.4-beta-4/qtjambi-
>> 4.7.4-beta-4.jar:/home/cecil/Java/qtjambi-linux64-4.7.4-
>> beta-4/qtjambi-examples-4.7.4-beta-4.jar:/home/cecil/Java/
>> qtjambi-linux64-4.7.4-beta-4/qtjambi-native-linux64-gcc-4.
>> 7.4-beta-4:/home/cecil/Java/ghost4j/ghost4j-0.5.0.jar:/
>> home/cecil/.lein/self-installs/leiningen-2.6.1-
>> standalone.jarclojure.main-mleiningen.core.mainrun
>>
>> The program itself is:
>> java-classpath/home/cecil/Clojure/Quotes/test:/home/cecil/
>> Clojure/Quotes/src:/home/cecil/Clojure/Quotes/dev-resou
>> rces:/home/cecil/Clojure/Quotes/resources:/home/cecil/Clojur
>> e/Quotes/target/classes:/home/cecil/.m2/repository/org/
>> clojure/clojure/1.8.0/clojure-1.8.0.jar:/home/cecil/.m2/
>> repository/com/miglayout/miglayout/3.7.4/miglayout-3.7.4.
>> jar:/home/cecil/.m2/repository/org/clojure/tools.nrepl/0.2.
>> 12/tools.nrepl-0.2.12.jar:/home/cecil/.m2/repository/
>> clojure-complete/clojure-complete/0.2.4/clojure-complete-0.2.4.jar:/home/
>> cecil/.m2/repository/org/clojure/java.jdbc/0.5.8/java.jdbc-
>> 0.5.8.jar:/home/cecil/.m2/repository/org/clojure/math.
>> numeric-tower/0.0.4/math.numeric-tower-0.0.4.jar:/home/cecil
>> /.m2/repository/com/fifesoft/rsyntaxtextarea/2.5.6/
>> rsyntaxtextarea-2.5.6.jar:/home/cecil/.m2/repository/org/swi
>> nglabs/swingx/swingx-autocomplete/1.6.3/swingx-autocomplete-
>> 1.6.3.jar:/home/cecil/.m2/repository/j18n/j18n/1.0.2/
>> j18n-1.0.2.jar:/home/cecil/.m2/repository/clj-time/clj-
>> time/0.12.0/clj-time-0.12.0.jar:/home/cecil/.m2/repository
>> /org/swinglabs/swingx/swingx-plaf/1.6.3/swingx-plaf-1.6.3.
>> jar:/home/cecil/.m2/repository/org/swinglabs/
>> swingx/swingx-painters/1.6.3/swingx-painters-1.6.3.jar:/
>> home/cecil/.m2/repository/com/jgoodies/forms/1.2.1/forms-1.2
>> .1.jar:/home/cecil/.m2/repository/joda-time/joda-time/2.9.3/
>> joda-time-2.9.3.jar:/home/cecil/.m2/repository/com/
>> h2database/h2/1.3.176/h2-1.3.176.jar:/home/cecil/.m2/
>> repository/seesaw/seesaw/1.4.5/seesaw-1.4.5.jar:/home/
>> cecil/.m2/repository/org/swinglabs/swingx/swingx-common
>> /1.6.3/swingx-common-1.6.3.jar:/home/cecil/.m2/repository
>> /org/swinglabs/swingx/swingx-core/1.6.3/swingx-core-1.6.3.
>> jar:/home/cecil/.m2/repository/instaparse/instaparse/1.4.2/instaparse-1.
>> 4.2.jar:/home/cecil/.m2/repository/org/swinglabs/
>> swingx/swingx-action/1.6.3/swingx-action-1.6.3.jar:/home/
>> cecil/.m2/repository/yesql/yesql/0.5.3/yesql-0.5.3.jar-
>> Dfile.encoding=UTF-8-Xmx4096M-Dclojure.compile.path=/home/ce
>> cil/Clojure/Quotes/target/classes-Dquotes.version=0.0.1-Dclo
>> jure.debug=falseclojure.main-i/tmp/form-init417092364626579473.clj
>>
>> ​So maximum memory is set to 4 GB. That could probably be a lot less.​
>> Where can I change that?
>> And can I set the maximum memory for lein?
>>
>

-- 
Cecil Westerhof

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"C

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=-Xmx512m
>
> For the moment that does the trick.
>

​No it does not. :'-( When looking to the commandline parameters I see:
-Xmx512m-Xmx4096M

I need to invest some time.

-- 
Cecil Westerhof

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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/raspasov/cljs-1.9.494-core-async-broken

On Friday, February 24, 2017 at 8:51:10 PM UTC-8, Rangel Spasov wrote:
> Forgot to add: this is my :compiler settings map. 
> 
> {:output-to  "index.ios.js"
>  :main   "env.ios.main"
>  :output-dir "target/ios"
>  :static-fns true
>  :optimize-constants true
>  :parallel-build true
>  ;:pretty-print   true
>  ;:pseudo-names   true
>  :source-map "cljs-source-map.js"
>  :optimizations  :advanced
>  :externs["externs/externs.js"]
>  :closure-defines{"goog.DEBUG" false}}
> 
> On Friday, February 24, 2017 at 8:46:03 PM UTC-8, Rangel Spasov wrote:
> > Hey guys,
> > 
> > I'm getting this error. It seems that it's happening inside the transpiled 
> > core.async sources. The error carrot at line 1444 points at the semicolon, 
> > pretty strange.
> > 
> > 
> > Feb 24, 2017 8:38:19 PM com.google.javascript.jscomp.LoggerErrorManager 
> > println
> > SEVERE: 
> > /Users/raspasov/projects/project123/target/ios/cljs/core/async.js:1444: 
> > ERROR - Parse error. No newline allowed before '=>'
> > var inst_33727 = async(inst_33726); (^ points at the semicolon)
> > 
> > 
> > Feb 24, 2017 8:38:19 PM com.google.javascript.jscomp.LoggerErrorManager 
> > printSummary
> > WARNING: 1 error(s), 4 warning(s)
> > ERROR: JSC_PARSE_ERROR. Parse error. No newline allowed before '=>' at 
> > /Users/raspasov/projects/project123/target/ios/cljs/core/async.js line 1444 
> > : 34
> > 
> > I tried both :parallel-build true/false but it doesn't make a difference. 
> > It works fine on [org.clojure/clojurescript "1.9.473"]
> > 
> > 
> > Here's how the async.js source looks like around line 1444.
> > 
> > return cljs.core.cst$kw$recur;
> > } else {
> > if((state_val_33738 === (2))){
> > var state_33737__$1 = state_33737;
> > return 
> > cljs.core.async.impl.ioc_helpers.take_BANG_(state_33737__$1,(4),jobs);
> > } else {
> > if((state_val_33738 === (3))){
> > var inst_33735 = (state_33737[(2)]);
> > var state_33737__$1 = state_33737;
> > return 
> > cljs.core.async.impl.ioc_helpers.return_chan(state_33737__$1,inst_33735);
> > } else {
> > if((state_val_33738 === (4))){
> > var inst_33726 = (state_33737[(2)]);
> > var inst_33727 = async(inst_33726);  This is the error line 
> > number 1444
> > var state_33737__$1 = state_33737;
> > if(cljs.core.truth_(inst_33727)){
> > var statearr_33743_33989 = state_33737__$1;
> > (statearr_33743_33989[(1)] = (5));
> > 
> > } else {
> > var statearr_33744_33990 = state_33737__$1;
> > (statearr_33744_33990[(1)] = (6));
> > 
> > }
> > 
> > return cljs.core.cst$kw$recur;
> > } else {
> > if((state_val_33738 === (5))){
> > var state_33737__$1 = state_33737;
> > var statearr_33745_33992 = state_33737__$1;
> > (statearr_33745_33992[(2)] = null);
> > 
> > (statearr_33745_33992[(1)] = (2));
> > 
> > 
> > return cljs.core.cst$kw$recur;
> > } else {
> > if((state_val_33738 === (6))){
> > var state_33737__$1 = state_33737;
> > var statearr_33746_33993 = state_33737__$1;
> > (statearr_33746_33993[(2)] = null);
> > 
> > (statearr_33746_33993[(1)] = (7));
> > 
> > 
> > return cljs.core.cst$kw$recur;
> > } else {
> > if((state_val_33738 === (7))){
> > var inst_33733 = (state_33737[(2)]);
> > var state_33737__$1 = state_33737;
> > var statearr_33747_33994 = state_33737__$1;
> > (statearr_33747_33994[(2)] = inst_33733);
> > 
> > (statearr_33747_33994[(1)] = (3));
> > 
> > 
> > return cljs.core.cst$kw$recur;
> > } else {
> > return null;
> > }
> > }
> > }
> > }
> > }
> > }
> > }
> > 
> > 
> > On Friday, February 24, 2017 at 4:21:35 PM UTC-8, David Nolen wrote:
> > > Just cut 1.9.494 to back out some macros that were made unintentionally 
> > > private.
> > > 
> > > 
> > > On Fri, Feb 24, 2017 at 4:47 PM, David Nolen  wrote:
> > > 
> > > 
> > > ClojureScript, the Clojure compiler that emits JavaScript source code.
> > > 
> > > 
> > > README and source code: https://github.com/clojure/clojurescript
> > > 
> > > 
> > > Leiningen dependency information:
> > > 
> > > 
> > > [org.clojure/clojurescript "1.9.493"]
> > > 
> > > 
> > > This is a bugfix release.
> > > 
> > > 
> > > As always, feedback welcome!
> > > 
> > > 
> > > ### Fixes
> > > * CLJS-1948: Possible race condition in compiler w/ parallel-build true
> > > * CLJS-1941: `cljs.compiler/cljs-files-in` shouldn't return `.cljc` files 
> > > if a `.cljs` file exists for the namespace
> > > * CLJS-1940: Undeclared var warning when invoking a protocol method on a 
> > > `js` interop form
> > > * CLJS-1951: Missing 0 and 1 arity versions of interleave
> > > * CLJS-1952: Bump Closure Compiler to Feb 2017 release
> > > * CLJS-1937

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 wrote:
>
> Generally you'd approach the problem by using an intermediate structure. 
> For example:
>
>   (def data
> {:headers [:color :size]
>  :rows[{:color "blue",  :size 4}
>{:color "red",   :size 2}
>{:color "green", :size 7}])
>
> Then you could build a function that translates this data structure into a 
> Hiccup table:
>
>   (defn ->table [{:keys [headers rows]}]
> [:table
>  [:tr (for [h headers] [:th (str/capitalize h)])]
>  (for [row rows]
>[:tr (for [h headers, :let [v (row h)] [:td h])])])
>
> Then you could write something like:
>
>   (->table (update data :rows (partial sort-by :color))
>
> - James
>
> On 24 February 2017 at 22:41, John Gabriele  > wrote:
>
>> I'm using hiccup, and I'd like to build a table, but then have the option 
>> to re-order it (sort its rows by a column of my choosing). I want a 
>> `sort-table-by` function.
>>
>> That is, if I've got
>>
>>
>> Color   Size
>> --  
>> red 2
>> green   7
>> blue4
>>
>>
>> (or, as a data structure: `(def tbl [:table [:tr [:th "Color"] [:th 
>> "Size"]] [:tr [:td "red"] [:td 2]] [:tr [:td "green"] [:td 7]] [:tr [:td 
>> "blue"] [:td 4]]])`)
>>
>> I'd like to be able to do `(sort-table-by tbl 0)` and get
>>
>>
>> Color   Size
>> --  
>> blue4
>> green   7
>> red 2
>>
>>
>> or `(sort-table-by tbl 1)` and get
>>
>>
>> Color   Size
>> --  
>> red 2
>> blue4
>> green   7
>>
>>
>> Where it gets tricky though is when your table has various attribute maps 
>> in it, and also when some of the values you're sorting on may be links.
>>
>> A first try at a solution yields ... oh man, {sigh, deep breath} this, 
>> which doesn't work:
>> .
>>
>> Thanks!
>> -- John
>>
>> -- 
>> You received this message because you are subscribed to the Google
>> Groups "Clojure" group.
>> To post to this group, send email to clo...@googlegroups.com 
>> 
>> Note that posts from new members are moderated - please be patient with 
>> your first post.
>> To unsubscribe from this group, send email to
>> clojure+u...@googlegroups.com 
>> For more options, visit this group at
>> http://groups.google.com/group/clojure?hl=en
>> --- 
>> You received this message because you are subscribed to the Google Groups 
>> "Clojure" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to clojure+u...@googlegroups.com .
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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 Gabriele" > 
> wrote:
>
>> I'm using hiccup, and I'd like to build a table, but then have the option 
>> to re-order it (sort its rows by a column of my choosing). I want a 
>> `sort-table-by` function.
>>
>> That is, if I've got
>>
>>
>> Color   Size
>> --  
>> red 2
>> green   7
>> blue4
>>
>>
>> (or, as a data structure: `(def tbl [:table [:tr [:th "Color"] [:th 
>> "Size"]] [:tr [:td "red"] [:td 2]] [:tr [:td "green"] [:td 7]] [:tr [:td 
>> "blue"] [:td 4]]])`)
>>
>> I'd like to be able to do `(sort-table-by tbl 0)` and get
>>
>>
>> Color   Size
>> --  
>> blue4
>> green   7
>> red 2
>>
>>
>> or `(sort-table-by tbl 1)` and get
>>
>>
>> Color   Size
>> --  
>> red 2
>> blue4
>> green   7
>>
>>
>> Where it gets tricky though is when your table has various attribute maps 
>> in it, and also when some of the values you're sorting on may be links.
>>
>> A first try at a solution yields ... oh man, {sigh, deep breath} this, 
>> which doesn't work:
>> .
>>
>> Thanks!
>> -- John
>>
>> -- 
>> You received this message because you are subscribed to the Google
>> Groups "Clojure" group.
>> To post to this group, send email to clo...@googlegroups.com 
>> 
>> Note that posts from new members are moderated - please be patient with 
>> your first post.
>> To unsubscribe from this group, send email to
>> clojure+u...@googlegroups.com 
>> For more options, visit this group at
>> http://groups.google.com/group/clojure?hl=en
>> --- 
>> You received this message because you are subscribed to the Google Groups 
>> "Clojure" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to clojure+u...@googlegroups.com .
>> For more options, visit https://groups.google.com/d/optout.
>>
>

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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 continuing to support my learning 
journey in Clojure and for piquing my interest in a host of other related 
topics as well, from philosophy to woodworking. This is truly a group with 
richly diverse and fascinating interests and backgrounds. You've changed my 
life for the better!

At the end of the talk I reveal a free, open-source-centric online forum, 
discuss.thevalueoflearning.org, specifically dedicated to "learning about 
learning". We will be using Clojure, Datomic etc. to build open-source 
solutions related to helping people "learn about learning".

If you don't have time to watch an hour long video, I'll give you the 30 
second pitch.

Learning is involved in every task or project we pursue. Therefore learning 
how to learn and teach might be among the most effective subjects on which 
to focus our time. I believe learning about learning is a lever long enough 
to move the world. That's why* I'm promoting the idea of the "Power Hour", 
which asks each of us to dedicate one hour each week, the first hour in 
fact, to studying the subject of learning or teaching.*

If you like the idea of the "Power Hour" and want to get started, you might 
be interested in the most popular online course ever created, Learning How 
to Learn , by Barbara 
Oakley. She mashes up technology from Hollywood, computer science, and 
learning science to make this *free 4 hour course* the most valuable 
educational course I've ever taken.

At the Austin *Conj* in Dec 2016, I had the pleasure to meet Rich Hickey 
and ask his thoughts on learning. I won't risk butchering his words as my 
memory isn't perfect, but the gist of it was about the Socratic method. He 
said Clojure has a function which parallels the Socratic method. If I 
remember correctly that function is eduction 
.

If you watch the *The Value of Learning* video, keep an eye out for "inside 
out education" as the section of the talk which pays homage to my 
conversation with Rich.

Ever forward...

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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 CircleCI, have built our entire business around the use of 
tentacles, so seeing this library succeed is paramount to our success. 
Right now, we're on an older version of tentacles and we're currently 
working to upgrade to the latest so we can begin to maintain a fork; or at 
the very least, help others in maintaining a "de facto fork".

On Saturday, February 25, 2017 at 12:09:02 AM UTC-7, James Laver wrote:
>
> I'm pleased we've dealt with a new maintainer for a couple of Raynes' 
> modules, but Raynes contributed a lot of things and half the community 
> depends on one or more of his modules at this point.
>
> My current focus is tentacles, which has been gathering issues and PRs 
> recently and is something I'm about to use in a project. If no-one else 
> steps forward, we at the irresponsible clojure guild ( 
> https://github.com/irresponsible ) will take on the maintenance for it, 
> but we don't want to end up causing multiple forks.
>
> I think it would be awesome if *somebody* would step up and take care of 
> Raynes' remaining modules. Aside from being his legacy, they're really 
> useful and too many of rely on them. Irresponsible is a community-run 
> organisation (currently just three of us). If more people were willing to 
> pitch in with reviewing PRs and issues and such, we would be happy to 
> assume responsibility for releases. In effect, we're happy to keep Raynes' 
> work alive rather than bitrotting. But we can't do all of that alone, it's 
> just too much work (something other contributors have noted). We are happy 
> to give them a home and push releases, but there are simply too many of 
> them to take up proper maintenance without more volunteers
>
> So, with that:
>
> 1. Does this seem like a good idea?
> 2. Can you help with reviewing the backlog on Raynes' modules?
> 3. Is this going to be enough to prevent multiple forks of everything?
>
> Cheers,
> James
>

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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 
adjust it based on your system.


On Sunday, February 26, 2017 at 10:14:22 PM UTC+1, Cecil Westerhof wrote:
>
> 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=-Xmx512m
>>
>> For the moment that does the trick.
>>
>
> ​No it does not. :'-( When looking to the commandline parameters I see:
> -Xmx512m-Xmx4096M
>
> I need to invest some time.
>
> -- 
> Cecil Westerhof
>

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.