New Functional Programming Job Opportunities

2013-07-15 Thread Functional Jobs
Here are some functional programming job opportunities that were posted recently: Clojure and Clojurians at Factual Needed at Factual http://functionaljobs.com/jobs/8482-clojure-and-clojurians-at-factual-needed-at-factual Cheers, Sean Murphy FunctionalJobs.com -- -- You received this

Re: error (init-db)

2013-07-15 Thread Tassilo Horn
jayvandal jayvan...@gmail.com writes: CompilerException java.lang.RuntimeException: Unable to resolve symbol: init-db in this context, compiling:(NO_SOURCE_PATH:1) This is the db.clg file === (ns jimsweb.models.db (:require [clojure.java.jdbc :as

Re: [ANN] CHP Web Framework Documentation Update

2013-07-15 Thread Bastien
Hi Kelker, thanks for the explanations. I will have a closer look to get a better understanding. It's nice to see the diversity of the various approaches. All best, -- Bastien -- -- You received this message because you are subscribed to the Google Groups Clojure group. To post to this

Re: Making RPCs with Shoreleave

2013-07-15 Thread Alex Fowler
Did not work.. all that is strange since I've been following the manual step-by-step.. looks like the shoreleave's wrapper does not even create a http route for itself... any other ideas? On Friday, July 12, 2013 7:14:42 AM UTC+4, Samrat Man Singh wrote: I think you need to (use

Re: Performance Patterns

2013-07-15 Thread Alex Fowler
I would definitely like to have such a reference because I often work with performance-critical code which I mostly delegate to Java. I would like to see it organized in categories for easier access, with commentaries to each case on why is this so (for example, i would suppose that aset-int

Re: Performance Patterns

2013-07-15 Thread Frantisek Sodomka
For my own needs, I wrote a macro 'timings' - see Timing expressions and comparing results: https://groups.google.com/d/msg/clojure/o8pOLc6uxQQ/bui7sJ-F5_wJ Code and examples are here: https://gist.github.com/fsodomka/5890711 Your examples on my machine with Clojure 1.5.1: (report (let [x 2 y

test.generative and data.generators

2013-07-15 Thread Andreas Liljeqvist
So, I find that what they provide are absolutely fantastic. But I don't see much action around them, are they considered maintained? Things on my wishlish: Shrinking of failing inputs. More readable reports. A couple of blogs or videos discussing them, I think that most people don't know what

Re: test.generative and data.generators

2013-07-15 Thread Chas Emerick
Shrinking is a key requirement for me as well (1000-line-long data literals that produce a failure are better than nothing, but not quite as nice as its shrunken 40-character literal that provokes the same failure). You might be interested in simple-check, which is a Clojure property-based

Re: test.generative and data.generators

2013-07-15 Thread Andreas Liljeqvist
Hi, I have taken a look at simple-check. Seems promising, but I have a few reservations: I want to constrain the generation of two vectors to always have the same number of elements as the other one. From what I can understand simple-check always uses the same max-size in a property and have no

Re: Documentation / usage --- Array vs. Vector

2013-07-15 Thread vrakade
Very helpful, thanks for the explanation Mikera! On Thursday, July 11, 2013 6:45:35 AM UTC-5, Mikera wrote: This is a heavily overloaded naming space - especially when you consider code.matrix as well, and usage of these words in mathematical / scientific communities. Data scientists

Re: [ANN] Vertigo: fast, idiomatic C-style structs

2013-07-15 Thread Karsten Schmidt
Hi Zach, this looks very interesting indeed and a great next step after Gloss. For my SimpleCL[1] project I needed something v.similar, but went a slightly different way to represent clj data as byte buffers and compile them from specs parsed from C (header) files[2]. I will give Vertigo a try

Matching false (== undefined, null) in ClojureScript core.match

2013-07-15 Thread Michal Till
I'm trying to match a false value of map's key (foo.bar) , which in javascript effectively means also undefined,null etc... It seems to me that core.match matches the value exactly. Is there any way to do this? The other way would be to match not true, but the docs don't give me any hint how

Re: [ANN] Pedestal-app Tutorial has been released

2013-07-15 Thread boz jennings
Having fun going through the tutorial! Thanks for the good stuff! ,boz On Tuesday, July 9, 2013 9:03:58 AM UTC-7, Ryan Neufeld wrote: Hey there, Clojurians/Pedestallions! I'm pleased to announce the release of a comprehensive tutorial for pedestal-app: http://bit.ly/pedestal-app-tutorial.

Re: Matching false (== undefined, null) in ClojureScript core.match

2013-07-15 Thread David Nolen
Do you have a small failing example? On Mon, Jul 15, 2013 at 12:08 PM, Michal Till michal.t...@gmail.com wrote: I'm trying to match a false value of map's key (foo.bar) , which in javascript effectively means also undefined,null etc... It seems to me that core.match matches the value

Re: test.generative and data.generators

2013-07-15 Thread Reid Draper
On Monday, July 15, 2013 9:41:03 AM UTC-5, Andreas Liljeqvist wrote: Hi, I have taken a look at simple-check. Seems promising, but I have a few reservations: I want to constrain the generation of two vectors to always have the same number of elements as the other one. From what I can

An example app using core.async and tools.namespace

2013-07-15 Thread mybuddymichael
I recently rewrote my team's IRC bot to use tools.namespace and core.async. You can check out the source on GitHub at https://github.com/mybuddymichael/pgbot. To explain briefly, the bot is basically several loops communicating over channels. The primary processes are two async/threads, reading

Re: [ANN] Vertigo: fast, idiomatic C-style structs

2013-07-15 Thread Zach Tellman
If you (vertigo.core/wrap a-file-name), that will use mmap under the covers, so if no one's tried it, it's easy enough to start. With respect to non-fixed data layouts, that could be supported by a library which parses the framing information, and then layers Vertigo atop the actual data. In

Re: -- macro proposal

2013-07-15 Thread Jeremy Heiler
On July 15, 2013 at 6:30:28 PM, Daniel Dinnyes (dinny...@gmail.com) wrote: Hmm, good point, especially the `let` one... What is `as-`? I can't find anything about that. http://clojure.github.io/clojure/clojure.core-api.html#clojure.core/as-%3E There is one benefit over `let` though: it is more

OAuth2

2013-07-15 Thread Plínio Balduino
Hi there What are you using to authenticate with Google, Facebook, GitHub or Twitter? Thanks Plínio -- -- 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

Re: An example app using core.async and tools.namespace

2013-07-15 Thread Sean Corfield
This is a great example of both Stuart Sierra's suggested workflow (from his talk at Clojure/West) and of using core.async to simplify concurrent, collaborating processes! Thanks for sharing! Sean On Mon, Jul 15, 2013 at 11:10 AM, mybuddymichael michael.b.han...@gmail.com wrote: I recently

core.async: exception handling

2013-07-15 Thread Alice
user= (go (try (go (throw (Exception.))) (catch Exception ex (println catched IllegalArgumentException contains? not supported on type: clojure.lang.PersistentList clojure.lang.RT.contains (RT.java:724) Why am I getting this error? -- -- You

Re: core.async: exception handling

2013-07-15 Thread Timothy Baldridge
In the latest copy of core.async (taken from github master), I get this error: (go (try (go (throw (Exception.))) (catch Exception ex (println catched xception in thread async-dispatch-2 java.lang.Error: java.lang.Exception at

Re: [ANN] Vertigo: fast, idiomatic C-style structs

2013-07-15 Thread kovas boguta
Interesting. This seems like a pretty promising direction for the bottom of the big-data stack. A use case on my mind is sorting a big list of datastructures by key (or some set of keys/paths) . Once the data gets big, you need to do an external sort, which means tons of serialization round