Re: [GSoC] Mentors contact information

2015-03-12 Thread Christopher Medrela
Alex, Ambrose, thank you for quick answer. I'll contact you soon. I'm sorry for overlooking your mail, Ambrose. By the way, I can read at student application guidelines in "project information" section [1]: GSoC officially runs from 19 May–22 Aug, a period of 14 weeks. while the official

Re: [OT?] Best DB/architecture for n-gram corpus?

2015-03-12 Thread John Wiseman
OK, I see. Well, on non-trivially sized corpora, I think storage requirements can become an issue, and in a situation where you're handling user queries one might wonder how often someone will query a 10-gram. But if you can make it work, go nuts! For a lot of statistical language modeling there

Re: [OT?] Best DB/architecture for n-gram corpus?

2015-03-12 Thread Sam Raker
That's honestly closer to what I was originally envisioning--I've never really looked into graph dbs before, but I'll check out Neo4j tonight. Do you know whether you can model multiple edges between the same nodes? I'd love to be able to have POS-based wildcarding as a feature, so you could se

Adding directory to classpath in leiningen

2015-03-12 Thread Cecil Westerhof
I have some files in: ~/Clojure that I want to use in a project I start with: lein repl But I do not see how to do this. How can I acomplish this? -- Cecil Westerhof -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, sen

Re: [OT?] Best DB/architecture for n-gram corpus?

2015-03-12 Thread Sam Raker
POS tagging is a solved-enough problem, at least in most domains. Clojure still doesn't have its own NLTK (HINT HINT, GSOC kids!), but I'm sure I can find a Java lib or 2 that should do the job well enough. On Tuesday, March 10, 2015 at 4:27:17 PM UTC-4, Ray Miller wrote: > > On 10 March 2015 at

Re: ANN: ClojureScript 0.0-3058, Enhanced REPLs, faster compile times

2015-03-12 Thread Peter West
On Wednesday, 11 March 2015 23:38:40 UTC+10, Peter West wrote: > On Tuesday, 10 March 2015 09:41:45 UTC+10, David Nolen wrote: > > ClojureScript, the Clojure compiler that emits JavaScript source code. > > > > New release version: 0.0-3058 > > > > The new Quick Start is essential reading even i

Re: ANN: ClojureScript 0.0-3058, Enhanced REPLs, faster compile times

2015-03-12 Thread Peter West
On Tuesday, 10 March 2015 09:41:45 UTC+10, David Nolen wrote: > ClojureScript, the Clojure compiler that emits JavaScript source code. > > New release version: 0.0-3058 > > The new Quick Start is essential reading even if you are a relatively > experienced ClojureScript developer. I did this,

volatile vs java.util.concurrent.atomic.* vs atom

2015-03-12 Thread Brent Millare
Doing some simple microbenchmarks, I found something unexpected: (time (let [v (volatile! 1)] (dotimes [x 1] (vreset! v @v "Elapsed time: 1016.992146 msecs" (time (let [v (java.util.concurrent.atomic.AtomicLong. 1)] (dotimes [x 1] (.set v (.get v) "Elapse

Re: Composing Stuart Sierra's components

2015-03-12 Thread Colin Yates
Hi Jonah, This is quite comparable to micro-services - each service is an abstraction or at least a facade and wants to play in a bigger system, but each micro-service may itself have its own stateful graph to maintain. I think I will explore my original direction of having a AComponentWhichDr

Re: volatile vs java.util.concurrent.atomic.* vs atom

2015-03-12 Thread Timothy Baldridge
Actaully I think it comes down to the use of the rather generic Deref. I fired up a repl and ran the following (let [v (clojure.lang.Volatile. {})] (dotimes [x ...] (.reset v (.deref v I'm seeing very similar times to the one for the AtomicReference. Timothy On Wed, Mar 11, 2015 at 11

Re: volatile vs java.util.concurrent.atomic.* vs atom

2015-03-12 Thread Brent Millare
Good catch. With criterium, I can detect the small performance improvement. volatile: Evaluation count : 7550019420 in 60 samples of 125833657 calls. Execution time mean : 6.345042 ns Execution time std-deviation : 0.126086 ns Execution time lower quantile : 6.223058 ns ( 2.5%)

Re: Composing Stuart Sierra's components

2015-03-12 Thread Colin Yates
merge won't help as there will be name space clashes. I wonder if a more elegant approach would be to construct the 'inner' system and then assoc onto it the external dependencies it needs before calling start. On 11 March 2015 at 18:49, wrote: > I believe I misunderstood your question; I didn'

Re: Adding directory to classpath in leiningen

2015-03-12 Thread Hildeberto Mendonça
$ cd ~/Clojure $ lein repl Your code in the repl will see the path ~/Clojure as working directory, so any file there will be accessible to your code by simply using the name of the file. If you have sub-directories then add the relative path: "path/to/the/file/the-file.txt" On Thu, Mar 12, 2015 a

Better outputs produced by the REPL

2015-03-12 Thread Hildeberto Mendonça
Hello, Running the following code in the repl: (str "a line and then \n another line") returns: "a line and then \n another line" Is there a way to ask the repl to interpret that \n char in the string? I just want to produce a better output without using print/println. Thanks in advance. --

Re: [ANN] Dunaj project, an alternative core API for Clojure

2015-03-12 Thread Jozef Wagner
With today's experiment, we are going to be halfway through Dunaj. I hope you are finding these write-ups interesting and that eventually, they will enable us to write even more powerful and performant Clojure programs. Thanks for all the response so far. If you haven't read the previous write-u

Re: Adding directory to classpath in leiningen

2015-03-12 Thread Cecil Westerhof
2015-03-12 12:00 GMT+01:00 Hildeberto Mendonça : > $ cd ~/Clojure > $ lein repl > > Your code in the repl will see the path ~/Clojure as working directory, so > any file there will be accessible to your code by simply using the name of > the file. If you have sub-directories then add the relative

Better outputs produced by the REPL

2015-03-12 Thread Alex Miller
Try print-str and println-str. Also see http://clojure.org/cheatsheet for a handy reference. -- 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

Re: Better outputs produced by the REPL

2015-03-12 Thread Cecil Westerhof
2015-03-12 13:51 GMT+01:00 Alex Miller : > Try print-str and println-str. > ​I am not the OP, but I tried that and it does not work. At the moment the only thing that I got working is: (printf "a line and then \n another line") But the OP does not want to use that. (Do not ask me why.) --

Re: [ANN] munge-tout 0.1.2

2015-03-12 Thread ronen
How this compares to clojure.java.data? Thanks On Thursday, March 12, 2015 at 12:47:59 AM UTC+2, Edward Kimber wrote: > > Munge Tout is a Java-Clojure interop library that helps convert Java > Objects into Clojure data structures. It supports conversion of Java > primitives, Lists, Sets, Maps

Re: Adding directory to classpath in leiningen

2015-03-12 Thread Jony Hudson
Putting them in the working directory does not add them to the classpath. Leiningen used to have an 'escape hatch' to allow local libraries to be added to the classpath, but that was removed. The right way to do it now is to make the artefacts you want on the classpath available to Maven. The e

Re: Composing Stuart Sierra's components

2015-03-12 Thread Stuart Sierra
On Wednesday, March 11, 2015, Colin Yates wrote: > I can't merge the two systems because the reusable > component is chocka full of very fine grained command > handlers and both the internal and external systems will > have their own 'bus' for example. I could namespace the > keys but that again fe

Re: Better outputs produced by the REPL

2015-03-12 Thread Akiva Schoen
(println) does the trick for me. On Thu, Mar 12, 2015 at 8:30 AM Cecil Westerhof wrote: > 2015-03-12 13:51 GMT+01:00 Alex Miller : > >> Try print-str and println-str. >> > > ​I am not the OP, but I tried that and it does not work. At the moment the > only thing that I got working is: > (print

Re: Better outputs produced by the REPL

2015-03-12 Thread Akiva Schoen
Oops. Missed the bit about not using println. Ignore my last email. On Thu, Mar 12, 2015 at 10:19 AM Akiva Schoen wrote: > (println) does the trick for me. > On Thu, Mar 12, 2015 at 8:30 AM Cecil Westerhof > wrote: > >> 2015-03-12 13:51 GMT+01:00 Alex Miller : >> >>> Try print-str and println-st

Re: Adding directory to classpath in leiningen

2015-03-12 Thread John Gabriele
Hi Cecil, I think what you want to do is create a library project to house your common code, install the library to your local repository, then use it from your project: ~~~ cd ~/dev lein new my-stuff/my-lib cd my-lib # edit src/my_stuff/my_lib.clj , adding your common code here lein install #

Re: Composing Stuart Sierra's components

2015-03-12 Thread Colin Yates
I like the idea of passing in the *key* of the external collaborator - that's nice. Thanks Stuart. I am surprised there isn't more call for nested systems - maybe there is and this solution is sufficient-enough... Again - thanks Stuart! On 12 March 2015 at 15:16, Stuart Sierra wrote: > On Wedne

Re: Adding directory to classpath in leiningen

2015-03-12 Thread John Gabriele
Forgot to add, you can then run `lein repl` from my-proj as usual, and have easy access to your library code: ~~~ $ cd ~/dev/my-proj $ lein repl > my-proj.core=> (my/foo 4) 4 Hello, World! nil ~~~ On Thursday, March 12, 2015 at 11:58:53 AM UTC-4, John Gabriele wrote: > > Hi Cecil, > > I think w

Re: Immutant survey

2015-03-12 Thread Ravindra Jaju
Very curious to know - how's the response been? A happy user, jaju On Fri, Mar 6, 2015 at 8:01 PM, Jim Crossley wrote: > Hi friends, > > If you have any opinion about Immutant [1], would you please take a few > moments to fill out this short survey? > > http://goo.gl/forms/syYnYtpM4v > > We'r

Re: Immutant survey

2015-03-12 Thread Jim Crossley
As of this moment, we've received 46 responses, mostly positive, some with very thoughtful feedback, for which we're very grateful. We plan to post the results on immutant.org in a couple weeks. Thanks, Jim On Thu, Mar 12, 2015 at 12:10 PM, Ravindra Jaju wrote: > Very curious to know - how's th

Re: [ANN] munge-tout 0.1.2

2015-03-12 Thread Edward Kimber
Hi Ronen, It's essentially the same idea as clojure.java.data but it can do quite a bit more, including: - generic parameters - so if you have List in your class that's no problem, nor is Map> etc. - creation of n-dimensional ragged arrays of any type - setting fields if property accessors are n

[ANN] trapperkeeper-jetty9 v1.2.0

2015-03-12 Thread Chris Price
Hi! Just wanted to let everyone know that we recently released a new version of trapperkeeper-webserver-jetty9 to clojars. The new version is v1.2.0. https://clojars.org/puppetlabs/trapperkeeper-webserver-jetty9 It's a feature release; there are a few new config options, but the most significan

Re: Better outputs produced by the REPL

2015-03-12 Thread Edward Kimber
You could use println instead of prn as the REPL printer. (clojure.main/repl :print println) This seems to break the REPL a bit though, so you may want to figure out how to put it in the startup, On Thursday, 12 March 2015 11:08:28 UTC, Hildeberto Mendonça wrote: > > Hello, > > Running the foll

Re: Better outputs produced by the REPL

2015-03-12 Thread Hildeberto Mendonça
Yeah :-) I want to format a string returned by a function, instead of the side effects produced by print/ln. I've checked the source code of the function (pst) to see what it uses to print the stack trace and it's using println. So, I guess this is the only option I have for the moment. Now, I jus

Re: Better outputs produced by the REPL

2015-03-12 Thread Hildeberto Mendonça
On Thu, Mar 12, 2015 at 8:29 PM, Edward Kimber wrote: > You could use println instead of prn as the REPL printer. > > (clojure.main/repl :print println) > Interesting. It works, but the instance of the REPL it creates doesn't have all features of lein repl :-( If there was a way to pass this beh

Re: [ClojureScript] [ANN] thi.ng collection update (CLJ/CLJS)

2015-03-12 Thread kovas boguta
Hi Karsten, Technical usage question. I want to associate a color to each face of a cuboid, tesselate the cuboid, and end up with an array of vertices and an array of matching colors. My problem is associating the colors of the cuboid faces to their tessellated versions. AFAICT tessellation simp

Re: [ClojureScript] [ANN] thi.ng collection update (CLJ/CLJS)

2015-03-12 Thread kovas boguta
On Thu, Mar 12, 2015 at 8:18 PM, kovas boguta wrote: > > I want to associate a color to each face of a cuboid, tesselate the > cuboid, and end up with an array of vertices and an array of matching > colors. > To clarify, I want to turn the cuboid into a mesh, and then do the tessellation of the

Re: [ANN] munge-tout 0.1.2

2015-03-12 Thread ronen
Nice work! ill check it out thanks On Thursday, March 12, 2015 at 7:19:42 PM UTC+2, Edward Kimber wrote: > > Hi Ronen, > > It's essentially the same idea as clojure.java.data but it can do quite a > bit more, including: > - generic parameters - so if you have List in your class that's no > probl