Re: Clojure, floats, ints and OpenGL

2013-09-16 Thread Mikera
Hi Alex, Just one more thing to think about: Dmitry Groshev has been doing some good early work on Clojure float support in the core.matrix NDArray implementation (basically a NumPy-style multidimensional array implementation backed by a single large float[] array). The per-object overhead is

Re: Clojure, floats, ints and OpenGL

2013-09-16 Thread Mikera
On Saturday, 14 September 2013 00:36:05 UTC+8, James Reeves wrote: > On 13 September 2013 08:54, Mikera >wrote: > >> Either way, if Clojure's semantics prove to be a fundamental issue for >> performance, then I think it is better to start work to improve Clojure's >> semantics (perhaps targetin

Re: The Eclipse Public License is not a good license

2013-09-16 Thread Phillip Lord
Seriously? Your problem is that a contributor has to state that they have added something? Why are you worried about this? Musical Notation writes: >> Each Contributor must identify itself as the originator of its Contribution, >> if any, in a manner that reasonably allows subsequent Recipients

Re: ANN: ClojureScript 0.0-1885 (Source maps!)

2013-09-16 Thread David Nolen
Nicola Mometto also deserves quite a bit of credit, the fact that tools.reader emits line and column information on all symbols is essential for the accuracy of ClojureScript source maps. On Mon, Sep 16, 2013 at 1:58 AM, Marco Munizaga wrote: > I'm so happy for this, I've been subscribed to tha

Re: The Eclipse Public License is not a good license

2013-09-16 Thread Softaddicts
Being filed by the NSA ? Oups, too late :) Luc P. > > Seriously? Your problem is that a contributor has to state that they > have added something? Why are you worried about this? > > Musical Notation writes: > > >> Each Contributor must identify itself as the originator of its > >> Contribut

Re: [ClojureScript] Re: ANN: ClojureScript 0.0-1885 (Source maps!)

2013-09-16 Thread Sean Grove
Yeah, tools.reader is amazing. Honestly the source map patch was just a bit of glue between David's existing work and integrating tools.reader, the bulk of the results are due to them. On Mon, Sep 16, 2013 at 2:31 PM, David Nolen wrote: > Nicola Mometto also deserves quite a bit of credit, the

Re: Clojure, floats, ints and OpenGL

2013-09-16 Thread Tim Visher
Hi Mikera, I don't have a whole lot of skin in this game as, unfortunately, I haven't run into any performance bottlenecks that I couldn't fix in a satisfying way whilst writing Clojure. My impression, however, is that there are some people in the community who feel the performance limitations of

[ANN] Cognitect

2013-09-16 Thread Rich Hickey
I just wanted to let everyone know that Metadata Partners (the company behind Datomic) and I have merged with Relevance, Inc., to form Cognitect, Inc. This merger is great for Clojure, adding considerable resources and stability to its development and support, including new enterprise support of

Re: [ANN] Cognitect

2013-09-16 Thread Michael Fogus
Rich and Relevance, This is very exciting news for the Clojure community (and yourselves I'm sure). I for one look forward to seeing how you rock our worlds. On Mon, Sep 16, 2013 at 9:50 AM, Rich Hickey wrote: > I just wanted to let everyone know that Metadata Partners (the company behind > Da

Re: [ANN] Cognitect

2013-09-16 Thread Paul deGrandis
Congrats! This is great news all around! Paul On Monday, September 16, 2013 6:50:46 AM UTC-7, Rich Hickey wrote: > > I just wanted to let everyone know that Metadata Partners (the company > behind Datomic) and I have merged with Relevance, Inc., to form Cognitect, > Inc. This merger is great

Re: [ANN] Cognitect

2013-09-16 Thread Joe Smith
Exciting! --- Joseph Smith j...@uwcreations.com @solussd On Sep 16, 2013, at 8:50 AM, Rich Hickey wrote: > I just wanted to let everyone know that Metadata Partners (the company behind > Datomic) and I have merged with Relevance, Inc., to form Cognitect, Inc. This > merger is great for C

Memory leak problem

2013-09-16 Thread Joachim De Beule
Dear List, I'm experiencing a memory leak and I don't understand why. I have a bunch of 50 files on disk called "data-1.edn" through "data-50.edn". I perform the following code: (def all-processed-data (reduce (fn [ret f] (merge ret (process-data (clojure.tools.reader.edn/read-string (slurp f)

Re: Building Trees

2013-09-16 Thread Peter Mancini
That is along the lines of my thinking. I am starting to look at zippers again. However much of what I need it to do either isn't documented at all or it was never intended to construct trees over time. The purpose of this is to look at sequenced events and detect frequent patterns. These patte

Re: Memory leak problem

2013-09-16 Thread Andy Fingerhut
Are you using a version of Java earlier than 7u6? If so, this *might* be related to the conversation from a few days ago about functions like subs, re-find, etc. returning short strings that keep references to the longer strings they were created from: https://groups.google.com/forum/#!topic/

Re: [ClojureScript] ANN: ClojureScript 0.0-1885 (Source maps!)

2013-09-16 Thread Joe Smith
I see that clojure.core/format is gone. Is there a replacement/alternative? --- Joseph Smith j...@uwcreations.com @solussd On Sep 16, 2013, at 7:31 AM, David Nolen wrote: > Nicola Mometto also deserves quite a bit of credit, the fact that > tools.reader emits line and column information o

Re: [ClojureScript] ANN: ClojureScript 0.0-1885 (Source maps!)

2013-09-16 Thread David Nolen
Use goog.string.format. David On Mon, Sep 16, 2013 at 11:35 AM, Joe Smith wrote: > I see that clojure.core/format is gone. Is there a replacement/alternative? > > --- > Joseph Smith > j...@uwcreations.com > @solussd > > > > > > > On Sep 16, 2013, at 7:31 AM, David Nolen wrote: > > Nicola Mome

Re: [ANN] Cognitect

2013-09-16 Thread Jeff Heon
Fantastic news. Congrats to all involved! -- -- 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 u

Re: Clojure, floats, ints and OpenGL

2013-09-16 Thread James Reeves
On 16 September 2013 09:03, Mikera wrote: > > Obviously this is just a microbenchmark, but it fits my general experience > that floats are a reasonable bit faster than doubles, typically 20-100% > (doubles are closer when it is pure number crunching since 64-bit CPUs are > actually pretty good at

Re: Memory leak problem

2013-09-16 Thread Brian Craft
A symptom of this would be jmap or visualvm reporting [C or char[] as the largest allocation, by class. On Monday, September 16, 2013 8:40:27 AM UTC-7, Andy Fingerhut wrote: > > Are you using a version of Java earlier than 7u6? If so, this *might* be > related to the conversation from a few da

Re: Building Trees

2013-09-16 Thread Mark Engelberg
Offhand, I'd say this sounds like you need to build a Bayesian network. I'd recommend taking this course: https://www.coursera.org/course/pgm which uses this book: http://www.amazon.com/Probabilistic-Graphical-Models-Principles-Computation/dp/0262013193 -- -- You received this message because yo

Re: Building Trees

2013-09-16 Thread Peter Mancini
Thanks. I authored a paper on building a gaussian-bayes classifier and implemented it in clojure. I looked at Titan. That has a lot of things I like but it requires named nodes to only exist once. So, that is close but not quite what I want. I'm looking at Zippers again. On Monday, September 16

Weird core.async/ClojureScript issues

2013-09-16 Thread David Pollak
Howdy, I'm using core.async and ClojureScript and I'm running into a weird problem... basically if/when/loop constructs don't work anymore in go blocks in ClojureScript. For example: -- Telegram, Simply Beautiful CMS https://telegr.am Lift, the simply functional web framework http://liftweb.net

Weird core.async/ClojureScript not workings...

2013-09-16 Thread David Pollak
Howdy, I'm using core.async and ClojureScript and it seems that inside a go block, if/when/loop/while code is never executed. For example: (def dog33 (go (if true (.log js/console "it's true") (.log js/console "it's false" prints neither "it's true" nor "it's false", but (def dog33 (go

Re: Clojure, floats, ints and OpenGL

2013-09-16 Thread Alex Fowler
Timothy, thank you very much for such a good explanation! I fully agree with you. Actually, except for a few details, that is really how I thought the things are. It is good that you describe the technical base for problems with the issue. As well as clearified the human factor. What you're saying

Re: Weird core.async/ClojureScript not workings...

2013-09-16 Thread David Nolen
Which versions of ClojureScript and core.async are you using? David On Mon, Sep 16, 2013 at 5:25 PM, David Pollak wrote: > Howdy, > > I'm using core.async and ClojureScript and it seems that inside a go > block, if/when/loop/while code is never executed. > > For example: > > (def dog33 (go (

Re: Building Trees

2013-09-16 Thread Jonah Benton
I find your description interesting but I'm confused about what the actual underlying problem is- is indexing and searching for data in documents involved, or is that just an example? If the real problem is about augmenting large document data set searches with potentially relevant taxonomic or sem

Re: Clojure, floats, ints and OpenGL

2013-09-16 Thread Zach Tellman
If you're worried about NIO buffer marshalling, Vertigo [1] lets you treat them as native Clojure data structures. This doesn't save you from the float<->double coercion for arithmetic operations, but as James said earlier in the thread, this tends to be insignificant. However, if you're abso

Re: New Functional Programming Job Opportunities

2013-09-16 Thread Zach Tellman
If anyone has questions about working at Factual, I'm happy to answer them, and can be reached at zach at factual.com. The short version, though, is that it's great and you should come work with us. For some examples of Clojure we're writing and using at Factual, check out: https://github.com/

Re: Weird core.async/ClojureScript not workings...

2013-09-16 Thread David Pollak
[org.clojure/clojurescript "0.0-1878"] [org.clojure/core.async "0.1.222.0-83d0c2-alpha"] [[lein-cljsbuild "0.3.2"]] On Mon, Sep 16, 2013 at 3:32 PM, David Nolen wrote: > Which versions of ClojureScript and core.async are you using? > > David > > > On Mon, Sep 16, 2013 at 5:25 PM, David Pollak

Re: Weird core.async/ClojureScript not workings...

2013-09-16 Thread David Nolen
Won't work you need core.async master. The next core.async release will fix the issue. David On Tue, Sep 17, 2013 at 1:17 AM, David Pollak wrote: > [org.clojure/clojurescript "0.0-1878"] > [org.clojure/core.async "0.1.222.0-83d0c2-alpha"] > > [[lein-cljsbuild "0.3.2"]] > > > On Mon, Sep 16, 20

Re: Clojure, floats, ints and OpenGL

2013-09-16 Thread Jozef Wagner
You can always fork Clojure and patch IFn.java and Compiler.java to support floats for at least some types of functions. It probably won't be so hard. As your case is a very specific one, this may be a viable solution. JW On Mon, Sep 16, 2013 at 11:40 PM, Alex Fowler wrote: > Timothy, thank you