Re: Namespace Problems org-mode/org-babel

2014-02-20 Thread Volker Strobel
Now I have the same problem again... Everything worked fine for a few hours, until now. Again, I tried to re-install/rebuild org-mode (development version from git) etc. I don't know what suddenly went wrong (I moved my .org file from the src/ folder to the leiningen project folder, but I undid

Re: How to compose a java function

2014-02-20 Thread Steffen Panning
Thanks. Note to self: Don't post when you are dead tired. greetings Steffen On Thursday, February 20, 2014 11:02:51 PM UTC+1, Steffen Panning wrote: > > Hi all, > > I want to compose a java function call out of a string in a macro: > > I tried something like this simplified example, but it does

Re: How to compose a java function

2014-02-20 Thread Mikera
On Friday, 21 February 2014 06:02:51 UTC+8, Steffen Panning wrote: > > Hi all, > > I want to compose a java function call out of a string in a macro: > > I tried something like this simplified example, but it doesn't work. > creating a symbol out of a string is not enough. > Note: I know that upper

Re: fast parallel reduction into hash-set/map

2014-02-20 Thread Ghadi Shayban
Jules, For recombination of parallel reductions into a vector, have you looked at foldcat? It works really well, and it's one of those wonderful gems in clojure.core waiting to be noticed. It gives you

Re: core.async over websocket + cljs + clojure

2014-02-20 Thread tonihe
Anyone come up with anything? I'm also wondering ways to abstract this problem. Here's my current impl https://gist.github.com/whodidthis/9126971, you can imagine chord instead of the input and output channels. Any ideas and suggestions would be cool as im new to clojure. On Thursday, January

Re: Is ^{:once true} still necessary for lazy-seqs?

2014-02-20 Thread Alan Malloy
^:once is absolutely needed for lazy seqs, because it allows the closed-over variables to get cleared while the lambda is *still running*, rather than waiting for it to finish. You can see the difference in this repl session: user> (let [x (for [n (range)] (make-array Object 1)), f (^:once

Re: Namespace Problems org-mode/org-babel

2014-02-20 Thread Volker Strobel
Thanks Maik! I just re-installed the most recent org-mode version (although I was 99.9 % sure, I did the same steps two days ago...) and now everything works fine! Quite simple, as I was looking for the error many, many hours (and several times stumbled across your 2012 blog post "Literate Prog

Re: fast parallel reduction into hash-set/map

2014-02-20 Thread Jean Niklas L'orange
Hi Jules, On Thursday, February 20, 2014 11:59:03 PM UTC+1, Jules wrote: > > Subvec provides a view on a subseq of a vector that behaves like a full > vector. Supervec provides a similar view that makes two vectors behave like > a single one > This data structure ("supervec") is usually known a

Re: [ANN] seqspert - demystify the internals of Clojure Sequences

2014-02-20 Thread Jules
welcome :-) Jules On Friday, 21 February 2014 00:16:11 UTC, Ambrose Bonnaire-Sergeant wrote: > > Nice, thanks for releasing! > > Ambrose > > > On Fri, Feb 21, 2014 at 5:47 AM, Jules >wrote: > >> I've been teaching myself a bit about the internals of various Clojure >> seqs over the last week o

Re: fast parallel reduction into hash-set/map

2014-02-20 Thread Jules
all true. Also, if you look at the internal structure of PersistentVector (perhaps using me seqspert lib - announced this evening), you would see that PersistentVector is actually implemented as a tree. Recombination through several levels of supervec could simply be thought of as extending thi

Re: [ANN] seqspert - demystify the internals of Clojure Sequences

2014-02-20 Thread Ambrose Bonnaire-Sergeant
Nice, thanks for releasing! Ambrose On Fri, Feb 21, 2014 at 5:47 AM, Jules wrote: > I've been teaching myself a bit about the internals of various Clojure > seqs over the last week or so... maps, sets, vectors etc.. > > I started with a little Clojure to help me drill into the Seq POJOS - this

Re: fast parallel reduction into hash-set/map

2014-02-20 Thread Alan Busby
On Fri, Feb 21, 2014 at 8:51 AM, wrote: > One note about your SuperVecs idea though, it seems that using that > approach we could get a deeply nested tree to represent our a vector, and I > think this is the exact thing vectors are trying to avoid.. In general I think this is true for vectors,

Re: fast parallel reduction into hash-set/map

2014-02-20 Thread Jules
I did give this some thought :-) Reading the code for subvec, it looks like if you try to take a subvec of a subvec the top subvec cuts the intermediate subvec out of the process by recalculating a new projection on the underlying vector, relevant to the offsets imposed by the intermediate sub

Re: fast parallel reduction into hash-set/map

2014-02-20 Thread shlomivaknin
Hey Jules, Really nice stuff your making! One note about your SuperVecs idea though, it seems that using that approach we could get a deeply nested tree to represent our a vector, and I think this is the exact thing vectors are trying to avoid.. On Friday, February 21, 2014 1:39:56 AM UTC+2,

Re: fast parallel reduction into hash-set/map

2014-02-20 Thread Jules
Hi, Andy. No I haven't - Thanks for the pointer - I'll take a look. I have a very specific usecase - the speeding up of the re-combination of the results of parallel reductions. I've found that the cost of this recombination often impacts badly on the overall timing of such a reduction, but wi

Re: fast parallel reduction into hash-set/map

2014-02-20 Thread Andy Fingerhut
Have you looked at core.rrb-vector, which implements Relaxed Radix Trees for vectors that implement subvec and concatenating two arbitrary vectors in O(log n) time? https://github.com/clojure/core.rrb-vector Unless I am missing something, the fast concatenation is what you are trying to achie

Re: fast parallel reduction into hash-set/map

2014-02-20 Thread Jules
So, having broken the back of fast re-combination of hash sets and maps, I wanted to take a look at doing a similar sort of thing for vectors - another type of seq that I use very heavily in this sort of situation. Let's see the cake first: seqspert.vector=> (def a (into [] (range 1000)))

Re: Namespace Problems org-mode/org-babel

2014-02-20 Thread Maik Schünemann
Sorry for the short answer I am writing this on my phone. I am also using org mode and the following works fine for me: 1 evaluate the first block. Now cider should already be in the right namespace. 2. The next source block can be evaluated in the current ns. You basically have to make sure that t

How to compose a java function

2014-02-20 Thread Steffen Panning
Hi all, I want to compose a java function call out of a string in a macro: I tried something like this simplified example, but it doesn't work. creating a symbol out of a string is not enough. Note: I know that uppercase variable names are bad, but it simplifies the example. So how I do it righ

[ANN] seqspert - demystify the internals of Clojure Sequences

2014-02-20 Thread Jules
I've been teaching myself a bit about the internals of various Clojure seqs over the last week or so... maps, sets, vectors etc.. I started with a little Clojure to help me drill into the Seq POJOS - this quickly grew into Seqspert :-) I think that if you want to write performant code, you need

Re: ANN: om-sync

2014-02-20 Thread Alexander Hudek
(Dave and I work together). I suspect it will be easy to come to a reasonable license. My own preferences would be EPL or MIT, and EPL only because it's common in the community. Beyond that, something like chord isn't actually the big problem in a scheme like this. The real issue is ensuring

Re: ANN: Om 0.5.0

2014-02-20 Thread Henrik Eneroth
Great stuff! Thanks! On Thursday, February 20, 2014 8:07:36 PM UTC+1, David Nolen wrote: > > The only change is that we now depend on the just released React 0.9.0. > > Feedback welcome! > > https://github.com/swannodette/om > > David > -- You received this message because you are subscribed to

ANN: Om 0.5.0

2014-02-20 Thread David Nolen
The only change is that we now depend on the just released React 0.9.0. Feedback welcome! https://github.com/swannodette/om David -- 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 tha

Re: [ANN] Gorilla REPL initial release (0.1.2)

2014-02-20 Thread Matt Mower
Couple of feature requests: move segment up/down and MathML support (it's been 20 years since I did any Latex although its undoubtedbly cool!) m/ On Wednesday, 19 February 2014 21:23:02 UTC, Jony Hudson wrote: > > Hi All, > > I'm pleased to announce the first release of Gorilla REPL, a rich

Re: [ANN] Gorilla REPL initial release (0.1.2)

2014-02-20 Thread Matt Mower
Jony this thing is totally cool. Forget the plotting as a REPL for exploring stuff (with the ability to restore sessions) it's very nice. m/ On Wednesday, 19 February 2014 21:23:02 UTC, Jony Hudson wrote: > > > I'm pleased to announce the first release of Gorilla REPL, a rich REPL in > the not

Re: Do you recommend the book: "Web Development with Clojure"

2014-02-20 Thread m0nastic
I just wanted to share my experience, I don't know if it's relatable to your current situation. I picked it up last weekend because I needed to put together a very quick web application for work, and I'd previously considered doing it in Clojure, but was dissuaded because it looked like there wa

Re: 'Reduced' and logic functions

2014-02-20 Thread Niels van Klaveren
> > > The result wouldn't return faster if the input is an infinite list. > > Ah, I see the gotcha now. If you don't implement *or *as a macro, all arguments will be evaluated before *or *is invoked. Macro-expansion won't evaluate later arguments if a former one short-circuits, of course. I'd on

[ANN] Lucuma 0.2.0

2014-02-20 Thread Julien Eluard
Hi, I am pleased to announce release 0.2.0 of lucuma [1][2] - a Web Components library for ClojureScript. Lucuma helps with creating custom HTML elements encapsulating document, style and logic. You can think of it as Google polymer in ClojureScript world. This release [3] introduces element def

Re: [ANN] Gorilla REPL initial release (0.1.2)

2014-02-20 Thread Jony Hudson
Thanks all for the kind comments. I'll be back to follow up later once I have some free time. I made another short video - this one slightly incoherent as I was getting tired it would seem - about how plotting works, that might be of interest: https://vimeo.com/87139900 Thanks again, Jony -

Re: 'Reduced' and logic functions

2014-02-20 Thread Niels van Klaveren
> > > The definitions of alt-or and alt-and are swapped: > > (alt-or false true) and (alt-or true false) both return false, (but (and) > is true, and both (alt-and) and (alt-or) are false). > > (alt-and true false) and (alt-and false true) both return true. > That's some serious C&P errors there

Re: [ANN] Gorilla REPL initial release (0.1.2)

2014-02-20 Thread Max Kreminski
This is really neat! For the last two or three weeks I've been experimenting with a handful of different implementations of a really similar idea – an interactive Clojure "notebook" using web technologies for the frontend. In the process I've encountered a lot of the same issues you described (

Re: [ANN] Gorilla REPL initial release (0.1.2)

2014-02-20 Thread Fabian Page
What i found with saving and loading: - If i try to save to a folder it will not be created and there is no error message. - It will not load a file which is in the root folder. - If i created the ws folder by hand i can load and save without problems. Fabian Am 20.02.2014 um 08:43 schrieb Fabia

Re: Do you recommend the book: "Web Development with Clojure"

2014-02-20 Thread Adrian Mowat
Hi Laurent If you are making the switch from OO then I recommend https://leanpub.com/fp-oo Cheers Adrian -- 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