Re: Help sought on issue with AOT, hadoop, classloaders, and consistency of Clojure fn classes

2015-01-30 Thread Marshall Bockrath-Vandegrift
Not a solution to your immediate problem, but if this is for new development (not an existing mass of clojure-hadoop code), I'd suggest looking at Parkour instead. As the main Parkour developer I'm obviously biased, but Parkour exists in part because the compilation model used by

Re: When to use metadata

2015-01-30 Thread adrian . medina
To be clear, I actually agree with Stuart. I would really like to dig into this topic and hear everyones thoughts on this; it's such a large piece of Clojure's private and public API. On Friday, January 30, 2015 at 1:53:37 PM UTC-5, adrian...@mail.yu.edu wrote: Metadata fields proliferate

Re: From JavaScript to ClojureScript (Doing Computers screencast)

2015-01-30 Thread Hildeberto Mendonça
Excellent! Loved the format! Keep it up! Thanks a lot. On Fri, Jan 30, 2015 at 5:58 AM, Mike Patella m.c.pate...@gmail.com wrote: Hey folks! I started the screencast series Doing Computers at the beginning of this month. I wanted to share what I believe is the best of the three screencasts

call superclass constructor in clojure class generation with defrecord

2015-01-30 Thread coco
Hi everybody, I need implement this java code in clojure public class MyWindow extends Window { public MyWindow() { super(My Window!); } } MyWindow myWindow = new MyWindow(); unfortunately the clojure documentation for generate classes is

Re: Help sought on issue with AOT, hadoop, classloaders, and consistency of Clojure fn classes

2015-01-30 Thread Jason Wolfe
On Friday, January 30, 2015 at 7:27:12 AM UTC-8, Marshall Bockrath-Vandegrift wrote: Not a solution to your immediate problem, but if this is for new development (not an existing mass of clojure-hadoop code), I'd suggest looking at Parkour instead. As the main Parkour developer I'm

Re: call superclass constructor in clojure class generation with defrecord

2015-01-30 Thread Michael Blume
(defn my-window [] (proxy [Window] [])) should do the trick Proxy takes a vector of implemented interfaces and at most one superclass (in your case, Window), and then a second vector of arguments to pass to the superclass constructor (in your case, an empty vector) and then a series of methods

Re: lein discovery issues

2015-01-30 Thread Stephen Lester
Hey there Andrea, So, when I do 'lein search', it caches the index. I don't have anything special in my setup (lein version 2.5.1 on Java 1.8.0_25). Likewise, you can do searches for specific version headers, like lein search id:clojurescript version:0.0-2* to find all the ones in the 2000s.

Re: When to use metadata

2015-01-30 Thread Stuart Sierra
Almost never. Seriously, anything important enough to be included in your program's input or output is almost certainly important enough to be *data*, not metadata. And the non-equality-checking semantics of metadata are confusing. About the only place I've found metadata to be worthwhile is

Re: lein discovery issues

2015-01-30 Thread Sean Corfield
On Jan 26, 2015, at 6:22 AM, andrea crotti andrea.crott...@gmail.com wrote: A couple of questions about Lein and how to find templates/libraries. For templates: https://clojars.org/search?q=lein-template Then if I want to find out the correct version of clojurescript I go to Clojars:

Re: When to use metadata

2015-01-30 Thread adrian . medina
Metadata fields proliferate throughout the standard Clojure value and reference types. It seems odd that one would suggest that this seemingly well supported feature should not be taken advantage of except in very narrow circumstances. What is the rationale for such robust support for runtime

Re: [ClojureScript] Re: ANN: Om 0.8.6, Hello CLJSJS

2015-01-30 Thread Sebastian Bensusan
Hi David and Dan, I edited Om's Basic Tutorial (https://github.com/swannodette/om/wiki/Basic-Tutorial) to be used with Chestnut. Most of the work (not much!) was changing evaluate in LightTable to save in your text editor. I don't know what the procedure is for updating a Wiki and having this

Re: Clojurescript :advanced compilation extern only partly working.

2015-01-30 Thread Crispin Wellington
That worked really well. So I have added a warning that prints when an extern resource file can't be found. It's a very small, one line, change. In doing this I noticed it prints two paths that can't be found. The file I specified in my :externs that isn't there, and another path

Re: [ClojureScript] Re: ANN: Om 0.8.6, Hello CLJSJS

2015-01-30 Thread David Nolen
I would prefer just Figwheel. Relying only on Figwheel also means you could probably go out with an updated tutorial much sooner. Thanks, David On Fri, Jan 30, 2015 at 4:10 PM, Sebastian Bensusan sbe...@gmail.com wrote: Hi David and Dan, I edited Om's Basic Tutorial (

Re: Clojurescript :advanced compilation extern only partly working.

2015-01-30 Thread Thomas Heller
For the missing data.json, you probably need to run ./script/bootstrap. I tend to just run lein install but the version which gets installed is [org.clojure/clojurescript 0.0-SNAPSHOT] so you have to adjust the version in your project as well. Or edit the clojurescript/project.clj to set a

Multi purpose webframework deciding between serverside generated templates and cljs SPA approach

2015-01-30 Thread Sven Richter
Hi, I am working on taking luminus and chestnut templates some steps further by additionally providing authentication and user management + some crud generation for entities plus whatever comes to my mind. Now, I am a bit undecided, I am working on a view that lists available users plus some

Re: datomic - datascript transfers

2015-01-30 Thread henry w
hi Leon, thanks for your response. yes its true it wont suit all situations. in this case the user is changing their own data. and i think it will be nice to allow for of undo/redo locally then single 'done with changes' transaction back to datomic. On Thursday, January 29, 2015 at

Re: heaps in clojure vs SML

2015-01-30 Thread Maris
yes, it helped :-) type hints make non-trivial difference thank you On Friday, 30 January 2015 12:43:40 UTC, Nicola Mometto wrote: If you set! *warn-on-reflection* to true, you'd see a lot of reflection warnings from your code. Type-hinting the code like this:

Re: lein discovery issues

2015-01-30 Thread andrea crotti
Noone on the topic? Any smarter ways to lookup and try out new stuff with lein otherwise? 2015-01-26 14:22 GMT+00:00 andrea crotti andrea.crott...@gmail.com: Hello everyone A couple of questions about Lein and how to find templates/libraries. I found out now that lein search allows me to

Re: heaps in clojure vs SML

2015-01-30 Thread Nicola Mometto
If you set! *warn-on-reflection* to true, you'd see a lot of reflection warnings from your code. Type-hinting the code like this: http://sprunge.us/ATiV makes your example execute in 120ms on my machine. Maris writes: I implemented leftist heap (from Purely Functional Data Structures book)

Re: Multi purpose webframework deciding between serverside generated templates and cljs SPA approach

2015-01-30 Thread Torsten Uhlmann
I'm currently wrapping my head around single page apps with authentication / authorization, so I would be interested in seeing a spa approach. Thanks for publishing, whatever way you choose. 2015-01-30 11:11 GMT+01:00 Sven Richter sver...@googlemail.com: Hi, I am working on taking luminus

heaps in clojure vs SML

2015-01-30 Thread Maris
I implemented leftist heap (from Purely Functional Data Structures book) in clojure. https://gist.github.com/maruks/135fef92455578b61de2 It takes 32 seconds to insert 10 elements in heap: (time (peek (reduce conj (empty-heap) (range 1000 2000 100) ))) Elapsed time: