Re: Typedef-like functionality for Clojure records?

2013-09-27 Thread Vincent Chen
On Thu, Sep 26, 2013 at 1:49 AM, Marshall Bockrath-Vandegrift wrote: > Vincent Chen writes: > >> - Use something else than records to model structs (suggestions welcome)? > > Maps. > > Records have concrete Java types, which allows them to implement > interfaces and participate in protocols. Fie

Re: Library (or libraries) for translating REST queries to database queries?

2013-09-27 Thread Sebastian Rojas
I took it as a challenge, so i made this tiny library to play with: https://github.com/sebastiansen/mummy Adios amigo On Tuesday, September 24, 2013 10:35:38 AM UTC-3, Bill Piel wrote: > > I want to use clojure to build a web service with a RESTful API that > exposes resources stored in a relat

Re: Typedef-like functionality for Clojure records?

2013-09-27 Thread Vincent Chen
Thanks for the suggestion. I'll take a look at prismatic/schema. On Thu, Sep 26, 2013 at 5:21 PM, Jason Wolfe wrote: > I'm not sure if this would meet your need (it doesn't help with your > proximate defrecord issue), but if you're primarily interested in > documentation and validation you could

Re: Could not find artifact org.clojure:clojure:pom:1.2.0-master-SNAPSHOT in central

2013-09-27 Thread Ambrose Bonnaire-Sergeant
Hi, Use `lein deps :tree` to figure out what the clojure 1.2.0-master-SNAPSHOT release is transitively depending on. You can then exclude the dependency like this for the problematic "lib": [lib "0.1" :exclusions [org.clojure/clojure]] Thanks, Ambrose On Sat, Sep 28, 2013 at 11:21 AM, wrote:

Could not find artifact org.clojure:clojure:pom:1.2.0-master-SNAPSHOT in central

2013-09-27 Thread ljcppunix
Hi, I run "lein deps",then error message: D:\clojure\4clojure-develop>lein deps Could not find artifact org.clojure:clojure:pom:1.2.0-master-SNAPSHOT in central (http://repo1.maven.org/maven2) Could not find artifact org.clojure:clojure:pom:1.2.0-master-SNAPSHOT in clojars (https://clojar

Re: Parallelising over a lazy sequence - request for help

2013-09-27 Thread Rich Morin
> On Sat, May 25, 2013 at 12:34 PM, Paul Butcher wrote: > I'm currently working on a book on concurrent/parallel development for The > Pragmatic Programmers. ... Ordered; PDF just arrived (:-). I don't know yet whether the book has anything like this, but I'd like to see a table that shows whi

Re: Parallelising over a lazy sequence - request for help

2013-09-27 Thread Stuart Halloway
Hi Paul, I have posted an example that shows partition-then-fold at https://github.com/stuarthalloway/exploring-clojure/blob/master/examples/exploring/reducing_apple_pie.clj . I would be curious to know how this approach performs with your data. With the generated data I used, the partition+fold

Re: [ANN] clara-rules 0.1.0 released -- rules as a control structure

2013-09-27 Thread zcaudate
I just thought of another feature that I want - persistence... Like saving the rules into some file and loading them back again. -- -- 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 th

ANN: core.match 0.2.0

2013-09-27 Thread David Nolen
No change since the last release candidate. http://github.com/clojure/core.match Have fun! 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 that posts from new members are

Re: Crowdfunding for full-time core.typed development

2013-09-27 Thread Rich Morin
On Sep 27, 2013, at 09:51, Ambrose Bonnaire-Sergeant wrote: > I have started a crowdfunding campaign to support full-time > work on Typed Clojure. > > Please share! > > http://www.indiegogo.com/projects/typed-clojure Still in its first day, the campaign is already an eighth of the way to its goa

Re: core.async repl :reload-all issue?

2013-09-27 Thread Ben Mabey
When you call the `timeout` fn you are modifying the state of core.async's global queue and map. The global state for core.async's timer is defonced[1] and so you need to destroy the entire ns before reloading it. This is what tools.namespace will do instead of a simple reload where the defon

Re: core.async repl :reload-all issue?

2013-09-27 Thread Russell Christopher
Hi Ben, But the example doesn't have any state in def's, hence I thought it did conform to Stuart's workflow. In my (more) real app I am trying to follow his workflow protocol and it was reloading fine but now is not maybe i need to read the link again, Thanks On Fri, Sep 27, 2013 at 2:06 PM, B

Re: core.async repl :reload-all issue?

2013-09-27 Thread Ben Mabey
Hi Russell, This doesn't look like a core.async specific problem, but rather the more general problem that protocols and records are not reload safe. What I believe is happening is the TimeoutQueueEntry type is being recompiled when you do reload all but old instances with the older compilati

core.async repl :reload-all issue?

2013-09-27 Thread Russell Christopher
Anyone encountered after a few reloads at the repl core.async stops working.? Thanks (ns repl.core (:require [clojure.core.async :refer :all])) ;;0.1.0-SNAPSHOT (defn producer[c] (Thread/sleep 1000) (go (>! c true)) (println "sleeping") (Thread/sleep 1)) (defn consumer [c] (let

Re: ANN: ClojureScript 0.0-1909

2013-09-27 Thread David Nolen
Oops bumping data.json and tools.reader are not breaking changes! :) On Fri, Sep 27, 2013 at 1:00 PM, 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-190

ANN: ClojureScript 0.0-1909

2013-09-27 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-1909 Leiningen dependency information: [org.clojure/clojurescript "0.0-1909"] *Breaking Changes: * * Bump data.json to 0.2.3 and

Crowdfunding for full-time core.typed development

2013-09-27 Thread Ambrose Bonnaire-Sergeant
Hi, I have started a crowdfunding campaign to support full-time work on Typed Clojure. Please share! http://www.indiegogo.com/projects/typed-clojure Thanks, Ambrose -- -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send em

Re: [ANN] ribol "v0.2.1" - comprehensive document on conditional restart systems

2013-09-27 Thread Lee Spector
PS the rousing applause during Hugo's talk when he shows how you can view locals reminded me that I had seen this before, and indeed when I checked I remembered that I was even involved in a previous conversation about ritz-nrepl on this list. And I remember that the main obstacle to my happine

Functional Programming conference Code Mesh 3-5 Dec London

2013-09-27 Thread Andra Dinu
http://codemesh.io/ We’ll talk Clojure, Scala, Haskell, Erlang, Elixir, Julia, and more. The list of speakers is not final, but among over 30 confirmed speakers such as data-centric functional programmer Dean Wampler, author of 'The Pragmatic Programmer' Dave Thomas, Elixir creator José Va

Re: [ANN] ribol "v0.2.1" - comprehensive document on conditional restart systems

2013-09-27 Thread Lee Spector
Thanks so much Chris. I've started watching Hugo Duncan's ritz talk and it is definitely what I need to see. It's funny because I never thought of this as platform or IDE functionality -- although it clearly is -- because in the Common Lisp world that I come from, some version of this is avai

Re: abysmal multicore performance, especially on AMD processors

2013-09-27 Thread Neale Swinnerton
The disruptor project from LMAX has wrestled with these sort of issues at length and achieved astounding levels of performance on the JVM Martin Thompson, the original author of the disruptor, is a leading light in the JVM performance space, his mechanical sympathy blog is a goldmine of informatio

Re: abysmal multicore performance, especially on AMD processors

2013-09-27 Thread Wm. Josiah Erikson
Interesting! If that is true of Java (I don't know Java at all), then your argument seems plausible. Cache-to-main-memory writes still take many more CPU cycles (an order of magnitude more, last I knew) than processor-to-cache. I don't think it's so much a bandwidth issue as latency, AFAIK. Thanks

Re: ANN: Pulsar 0.2.0 Released

2013-09-27 Thread Hank
Hi Ron, Different concern from the above so another post. :) Do you think Pulsar can help make Oz-style dataflow concurrencya reality on the JVM? As discussed in the popular Concepts, Techniq

Re: ANN: Pulsar 0.2.0 Released

2013-09-27 Thread Hank
Hi Ron, Does this have any chance of running on Android at all? There is no "java agent" on Android's VM "Dalvik" so the byte code instrumentation would have to be plugged in elsewhere. Clojure on Android already involves byte code manipulation as JVM byte code generated by Clojure's compiler h

Re: [ANN] ribol "v0.2.1" - comprehensive document on conditional restart systems

2013-09-27 Thread zcaudate
Hi Dima, > > I've push v0.2.3 to clojars... an example can be seen here: http://z.caudate.me/ribol/#raise-on (raise-on [[NumberFormatException ArithmeticException] :divide-by-zero Throwable :throwing] (throw (Throwable. "oeuoeu")) (finally (println 1))) => (raises-i

Re: [ANN] clara-rules 0.1.0 released -- rules as a control structure

2013-09-27 Thread Chris Zheng
thanks for your thoughts! On 27/09/2013, at 12:45 PM, Ryan Brush wrote: > Hey, I appreciate the thoughts. Funny how posting a project yields use cases > you've never thought of. I went ahead and logged an issue to track arbitrary > maps as facts here: > > https://github.com/rbrush/clara-rule

Re: [ANN] ribol "v0.2.1" - comprehensive document on conditional restart systems

2013-09-27 Thread Chris Zheng
Hey Lee. I'm learning conditional restarts myself…. thus the reason why I implemented the library so I'm probably not the best person to ask As far as I know… restarts have to be supported by the language itself in order for it to truly blossom the way you are describing it. ribol is just a lib