Newify java class dynamically

2015-03-09 Thread Juvenn Woo
Hi all, I am writing a function that'll take a java class name as an arg, wherein I'll make instance of the class. Several approaches did I try: (let [klass Integer] (new klass 42)) ; this raises exception unable to resolve symbol: klass (let [klass Integer] (.new klass 42)) ; raises

Re: Newify java class dynamically

2015-03-09 Thread Tobias Kortkamp
On 03/09/2015 15:45, Juvenn Woo wrote: Hi all, I am writing a function that'll take a java class name as an arg, wherein I'll make instance of the class. Several approaches did I try: (let [klass Integer] (new klass 42)) ; this raises exception unable to resolve symbol: klass (let

New Functional Programming Job Opportunities

2015-03-09 Thread Functional Jobs
Here are some functional programming job opportunities that were posted recently: Software Developer at Democracy Works, Inc. http://functionaljobs.com/jobs/8794-software-developer-at-democracy-works-inc Hacker (Node.js, NOSQL, Data Science) at Mobitrans

Re: Newify java class dynamically

2015-03-09 Thread Tassilo Horn
Juvenn Woo mach...@gmail.com writes: I am writing a function that'll take a java class name as an arg, wherein I'll make instance of the class. Several approaches did I try: (let [klass Integer] (new klass 42)) ; this raises exception unable to resolve symbol: klass (let [klass Integer]

[ANN] full.async - core.async add-on

2015-03-09 Thread Kaspars Dancis
Hi Everyone, I would like to announce full.async, a core.async add-on that simplifies exception handling and working with collections. It also implements pmap for go channels as well as go block with retry logic. We have been using core.async for building production backend services

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

2015-03-09 Thread John Wiseman
One thing you can do is index 1, 2, 3...n-grams and use a simple fast key-value store (like leveldb etc.) e.g., you could have entries like aunt rhodie - song-9, song-44 woman - song-12, song-65, song-96 That's basically how I made the Metafilter N-gram Viewer http://mefingram.appspot.com/, a

[ANN] from-scala 0.2.0: An experimental Scala interop library for Clojure

2015-03-09 Thread Tobias Kortkamp
Hi, I would like to announce from-scala, an experimental Scala interop library for Clojure. Its main feature is the $-macro, a version of Clojure's .-form. The $-macro uses Java reflection and a series of heuristics, so that you will be able to write code like ($ ($

Re: Conditional dependency question

2015-03-09 Thread Jonathon McKitrick
That did the trick, thanks! On Friday, March 6, 2015 at 11:30:42 AM UTC-5, Moritz Ulrich wrote: You need to use `ns-resolve' to resolve the actual vars you want to use. Here's a snippet from one of our projects which shows the approach: ```clojure (defn ws-repl [] (require

Re: [GSoC] Mentors contact information

2015-03-09 Thread Ambrose Bonnaire-Sergeant
My contact information is on the project page. On Mon, Mar 9, 2015 at 3:21 PM, Christopher Medrela chris.medr...@gmail.com wrote: Hello! My name is Christopher Medrela. I'm interested in participating in GSoC this year. I've looked at the ideas page and I think that I'd like to work at:

[GSoC] Mentors contact information

2015-03-09 Thread Christopher Medrela
Hello! My name is Christopher Medrela. I'm interested in participating in GSoC this year. I've looked at the ideas page and I think that I'd like to work at: * source metadata information model (mentored by Alex Miller) * or one of typed clojure projects (mentored by Ambrose

Re: [ANN] Pink 0.1.0, Score 0.2.0

2015-03-09 Thread aoeuyi qjkxbmwvz
So the whole thing, including the engine is written in clojure/java? If so, how is the efficiency compared to supercollider or csound? -- 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

Re: [ANN] Pink 0.1.0, Score 0.2.0

2015-03-09 Thread Steven Yi
Yes, Pink is written mostly in Clojure, with two Java classes there. In terms of efficiency, Pink is slower than SC and Csound. I found it a little hard to benchmark, as the systems aren't quite apples to apples (e.g., SuperCollider use a 32-bit signal processing chain, while Csound and Pink use

Risk of unsafe publishing of LazyTransformer?

2015-03-09 Thread Sébastien Bocq
Hello, I noticed that LazyTransformer [1] implements mutable state without any volatile or final modifier to guard its fields (it might not be an isolated case in the core library e.g. SeqIterator.java). Isn't such class subject to unsafe publication? For example, considering only this part

Re: [ANN] Chestnut 0.7.0

2015-03-09 Thread webber
I've commented chestnut/lein-template from the ~/.lein/projects.clj as follows, then it worked. It worked using 0.6.0 if there was the chestnut/lein-template definition. Was my usage wrong ? {:user {:plugins [ [lein-try 0.4.3] ;[lein-pprint 1.1.1]

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

2015-03-09 Thread David Nolen
ClojureScript, the Clojure compiler that emits JavaScript source code. README and source code: https://github.com/clojure/clojurescript New release version: 0.0-3058 Leiningen dependency information: [org.clojure/clojurescript 0.0-3058] This is a significant enhancement release around

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

2015-03-09 Thread Aleš Roubíček
Just wow! Thank you. On Tuesday, March 10, 2015 at 12:41:45 AM UTC+1, David Nolen wrote: ClojureScript, the Clojure compiler that emits JavaScript source code. README and source code: https://github.com/clojure/clojurescript New release version: 0.0-3058 Leiningen dependency

Re: Risk of unsafe publishing of LazyTransformer?

2015-03-09 Thread Sébastien Bocq
No worries then. Thanks! 2015-03-10 2:23 GMT+01:00 Alex Miller a...@puredanger.com: Hi Sébastien, Most publication in LazyTransformer is handled via the synchronized seq() method. However, LazyTransformer is being replaced as part of http://dev.clojure.org/jira/browse/CLJ-1669 so probably

[GSoC Idea] Typed CLJS JavaScript Interop with Facebook Flow

2015-03-09 Thread Michał T . Lorenc
Hi, TypeScript does not play well with Facebook React.js, but Facebook created Flow http://flowtype.org/which adds static typing to JavaScript to improve developer productivity and code quality. Cheers, Michal -- You received this message because you are subscribed to the Google Groups

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

2015-03-09 Thread Sam Raker
That's interesting. I've been really reluctant to hard code n-grams, but it's probably the best way to go. On Monday, March 9, 2015 at 6:12:43 PM UTC-4, John Wiseman wrote: One thing you can do is index 1, 2, 3...n-grams and use a simple fast key-value store (like leveldb etc.) e.g., you

Re: [GSoC] Mentors contact information

2015-03-09 Thread Alex Miller
On Monday, March 9, 2015 at 2:25:56 PM UTC-5, Christopher Medrela wrote: Hello! My name is Christopher Medrela. I'm interested in participating in GSoC this year. I've looked at the ideas page and I think that I'd like to work at: * source metadata information model (mentored by Alex

Re: Risk of unsafe publishing of LazyTransformer?

2015-03-09 Thread Alex Miller
Hi Sébastien, Most publication in LazyTransformer is handled via the synchronized seq() method. However, LazyTransformer is being replaced as part of http://dev.clojure.org/jira/browse/CLJ-1669 so probably moot. Alex On Monday, March 9, 2015 at 5:40:11 PM UTC-5, Sébastien Bocq wrote: