Re: nested seque hangs

2012-08-15 Thread Tassilo Horn
adambrewster writes: > I've come across what appears to be a bug in the implementation of > seque. Maybe I'm using it incorrectly and this isn't supposed to work > at all, but > > Clojure 1.4.0 > user=> (range 10) ;this works > (0 1 2 3 4 5 6 7 8 9) > user=> (seque 3 (range 10)) ;this works > (0

Re: Are you looking for a document database engine implementation in Clojure? Check this out.

2012-08-15 Thread Howard Guo
Sorry, was my mistake, here is the link: https://github.com/HouzuoGuo/Aurinko On Thursday, August 16, 2012 3:22:39 PM UTC+10, PublicFarley wrote: > > Maybe I'm missing something. Where's the download link? > > On Monday, August 13, 2012 6:40:40 AM UTC-4, Howard Guo wrote: >> >> This is a pet proje

Exception message in read-string - Clojure vs ClojureScript

2012-08-15 Thread Shantanu Kumar
Hi, I encountered this when trying to run `read-string` on Clojure (clojure.core) and ClojureScript (cljs.reader). I noticed when I run (read-string ""), I get the exception message "EOF while reading" on Clojure but on ClojureScript the message is just "EOF". Should the messages be the same?

Re: Are you looking for a document database engine implementation in Clojure? Check this out.

2012-08-15 Thread PublicFarley
Maybe I'm missing something. Where's the download link? On Monday, August 13, 2012 6:40:40 AM UTC-4, Howard Guo wrote: > > This is a pet project I have been working on the past few months: a > network enabled, very compact implementation of a document database engine. > > Features: > > >- Sto

Are you looking for a document database engine implementation in Clojure? Check this out.

2012-08-15 Thread PublicFarley
Looks cool. Nice to see a totally Clojure centric take at a Document Database. I'll definitely check it out. -- 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 membe

Re: Rich's "The Value of Values" and REST

2012-08-15 Thread Timothy Baldridge
> > It seems to me that a "truly" RESTful system design is very much in line > of what Rich was talking about. > > This is completely correct. Let's take the common method "GET" for instance. According to REST philosophy, GETs should be 100% cache-able (and therefore they are actual values). We can

Re: clojure.logic project.clj file

2012-08-15 Thread Chas Emerick
On Aug 15, 2012, at 6:00 PM, Sean Corfield wrote: > My question would be: why is there a project.clj file in the > core.logic repository in the first place, given that Maven is used to > build contrib libraries? Hugely tangential, but: Leiningen has made huge strides towards becoming fully capab

Re: clojure.logic project.clj file

2012-08-15 Thread Moritz Ulrich
I'd vote against removing too. It's just too helpful to be able to fire up a quick lein/swank repl to quickly try something. On Thu, Aug 16, 2012 at 12:35 AM, Alan Malloy wrote: > Blech. I've found having the project.clj helpful myself for the same reason > David has: it's easy to start up lein (

Re: Rich's "The Value of Values" and REST

2012-08-15 Thread Warren Lynn
Rich was promoting functional programming. I can see functional programming has its benefits, but you will need mutable states eventually somewhere to do useful things. Functional programming just tell you to constraint yourself when using mutable states. It's not like mutable states are to be

Re: clojure.logic project.clj file

2012-08-15 Thread Alan Malloy
Blech. I've found having the project.clj helpful myself for the same reason David has: it's easy to start up lein (swank or repl) and hack around. I'm opposed to removing it unless there's someone it's actually hurting. On Wednesday, August 15, 2012 3:00:27 PM UTC-7, Sean Corfield wrote: > > On

Re: Any chance for Ratio and BigInt support in ClojureScript?

2012-08-15 Thread David Nolen
On Wed, Aug 15, 2012 at 6:10 PM, Tyler Tallman wrote: > By wasting my time I mean if it is clear goog.math.integer is a bad idea it > would be great if someone who knows would help a brother out and tell me. > :-) > I we are slowly moving a large google closure codebase into clojurescript so > I h

Re: Fixing a broken Java library

2012-08-15 Thread martin_clausen
Thanks. Unfortunately the .pst format turns out to be quite hard (for me anyway) to decipher. /mac On Tuesday, August 14, 2012 1:24:27 AM UTC+2, odyssomay wrote: > > gen-class supports both static methods and protected vars. > > http://kotka.de/blog/2010/02/gen-class_how_it_works_and_how_to_use_

Re: Any chance for Ratio and BigInt support in ClojureScript?

2012-08-15 Thread Tyler Tallman
By wasting my time I mean if it is clear goog.math.integer is a bad idea it would be great if someone who knows would help a brother out and tell me. :-) I we are slowly moving a large google closure codebase into clojurescript so I have significantly more experience on the closure side. goog.math.

Re: clojure.logic project.clj file

2012-08-15 Thread David Nolen
On Wed, Aug 15, 2012 at 6:00 PM, Sean Corfield wrote: > I know David said he only uses it for interactive development but I > think it will cause confusion for others. Perhaps the best solution > would be to move it aside, delete it from Git, move it back and add it > to .gitignore? That way David

Re: clojure.logic project.clj file

2012-08-15 Thread Sean Corfield
On Mon, Aug 13, 2012 at 1:38 PM, Brent Millare wrote: > I think the :source-path line in project.clj should be :source-paths > ["src/main/clojure"]. Is :source-path still looked up in leiningen2? My question would be: why is there a project.clj file in the core.logic repository in the first place

Re: Ideas for interactive tasks

2012-08-15 Thread Nikita Beloglazov
> > It's really great that you are going to teach Clojure at BSU. > > I have no clue about teaching, but my impression is that back in my days, > we didn't learn much about how to write good code. > I have no experience either, but I think it's not appropriate that CS students know nothing about FP

Re: not-nilo in core.logic?

2012-08-15 Thread Jim - FooBar();
Hi again, I tried a couple of things during the day and I came up with a solution that is both performant and decoupled from the core.logic part of the program...It turns out I could achieve the 'filtering' I wanted with a couple of HOFs...I 'm happy with my solution mainly because I don't hav

Re: [ANN] Ekeko: querying Java projects using core.logic

2012-08-15 Thread David Nolen
On Tue, Aug 14, 2012 at 8:35 PM, Coen De Roover wrote: > Dear all, > > I'm pleased to announce the first release of Ekeko, an Eclipse plugin for > querying Java projects using core.logic: > https://github.com/cderoove/damp.ekeko > > Screencast: > http://youtu.be/5wvVFQa1hVU > > Ekeko is still a w

Re: [ANN] Ekeko: querying Java projects using core.logic

2012-08-15 Thread David Nolen
On Tue, Aug 14, 2012 at 8:35 PM, Coen De Roover wrote: > Dear all, > > I'm pleased to announce the first release of Ekeko, an Eclipse plugin for > querying Java projects using core.logic: > https://github.com/cderoove/damp.ekeko > > Screencast: > http://youtu.be/5wvVFQa1hVU > > Ekeko is still a w

Re: Any chance for Ratio and BigInt support in ClojureScript?

2012-08-15 Thread David Nolen
On Tuesday, August 14, 2012, dspiteself wrote: > I have extensive google closure experience, but little low level > clojurescript experience. > Could we use the clojure library's Integer or long type. It will likely > not be as fast but when you need it you need it. > > http://closure-library.goog

Re: Any chance for Ratio and BigInt support in ClojureScript?

2012-08-15 Thread David Nolen
I have no gut feelings about implementation strategies :) On Sunday, August 12, 2012, dspiteself wrote: > Just to get your gut feeling, do you think > the implementation would involve bittwittling with the native number, using > strings or using byte arrays? > > On Saturday, August 11, 2012 1:47:

Re: Overtone - Actual Music!

2012-08-15 Thread Gustavo Brunoro
Sam, this is awesome! The internal sequencer was something really missing for the "real music" use case of Overtone. It's very nice to see a canonical example of its usage. Also kudos for the synths, the piece sounds great ;) Gustavo 2012/8/15 charlie > I'm sharing these with everyone I know, i

seque problem

2012-08-15 Thread adambrewster
I recently discovered a problem with the seque function. I posted it here, but the message seems to be in the moderator's queue. The expression (dorun (seque 3 (seque 3 (range 10))) causes clojure to hang. The problem is that the (send-off ...) call within the drain function, which causes the

[ANN] Ekeko: querying Java projects using core.logic

2012-08-15 Thread Coen De Roover
Dear all, I'm pleased to announce the first release of Ekeko, an Eclipse plugin for querying Java projects using core.logic: https://github.com/cderoove/damp.ekeko Screencast: http://youtu.be/5wvVFQa1hVU Ekeko is still a work in progress, but already quite powerful. See http://cderoove.github.c

[ANN] Ekeko: querying Java projects using core.logic

2012-08-15 Thread Coen De Roover
Dear all, I'm pleased to announce the first release of Ekeko, an Eclipse plugin for querying Java projects using core.logic: https://github.com/cderoove/damp.ekeko Screencast: http://youtu.be/5wvVFQa1hVU Ekeko is still a work in progress, but already quite powerful. See http://cderoove.githu

[ClojureScript] Single Output File for Multiple Pages or Multiple Output Files?

2012-08-15 Thread Zhao Shenyang
Hi All, I'm building a website using noir as the backend and clojurescript as the front end language. Instead of making a single page web application, I want to split the application into different pages. Now the problem is, different pages need different js functions. I know that by using clj

Re: Any chance for Ratio and BigInt support in ClojureScript?

2012-08-15 Thread dspiteself
I have extensive google closure experience, but little low level clojurescript experience. Could we use the clojure library's Integer or long type. It will likely not be as fast but when you need it you need it. http://closure-library.googlecode.com/svn/docs/closure_goog_math_integer.js.html http

Re: Clojurians in the midlands (UK)

2012-08-15 Thread DJ Bowman
Thomas, Count me in too please in your Clojure group meetup plans, as I am close by in Christchurch, just a few stops away on the train. Regards David On Friday, 20 July 2012 16:02:41 UTC+1, Thomas wrote: > There are a few on the South coast, Southampton - Portsmouth area. > > > We were think

Clojurescript One adding a new snippet to the page

2012-08-15 Thread Søren Madsen
Hi This question is related to ClojurescriptOne I'm trying to add a new snippet ( called "welcome") in front of the form. So far I have done the following: - Added welcome.html to templates folder - Added the snippet to snippets.cljs - Added a :welcome action and added :welcome to the

nested seque hangs

2012-08-15 Thread adambrewster
I've come across what appears to be a bug in the implementation of seque. Maybe I'm using it incorrectly and this isn't supposed to work at all, but Clojure 1.4.0 user=> (range 10) ;this works (0 1 2 3 4 5 6 7 8 9) user=> (seque 3 (range 10)) ;this works (0 1 2 3 4 5 6 7 8 9) user=> (seque 3 (s

Are you looking for a document database engine implementation in Clojure? Check this out.

2012-08-15 Thread Howard Guo
This is a pet project I have been working on the past few months: a network enabled, very compact implementation of a document database engine. Features: - Store, manage and retrieve documents in native Clojure data structures using CON (Clojure Object Notation) - Durable data - Your

newbie question on namespaces and reference resources

2012-08-15 Thread Hugo Estrada
Hi, there, I have a practical questioned followed by a general questions. 1. What is the best practice with namespaces? Should I follow java-style namespacing names, or does clojure has its own favored style? 2. Is there a reference somewhere out there where I could consult these kinds of ques

Re: Any chance for Ratio and BigInt support in ClojureScript?

2012-08-15 Thread dspiteself
Just to get your gut feeling, do you think the implementation would involve bittwittling with the native number, using strings or using byte arrays? On Saturday, August 11, 2012 1:47:06 PM UTC-5, David Nolen wrote: > > On Sun, Aug 5, 2012 at 10:43 PM, Olaf Delgado-Friedrichs > > wrote: > > Than

Re: Rich's "The Value of Values" and REST

2012-08-15 Thread Raoul Duke
i think per HTATEOAS, the methods are baked into the representations that are transferred, as URLs. i mean, you gotta have methods *somewhere* *somehow* that can *do stuff*, in an application-context-sensitive manner. -- You received this message because you are subscribed to the Google Groups "C

Re: Overtone - Actual Music!

2012-08-15 Thread charlie
I'm sharing these with everyone I know, it's a brand new form of music, let's keep it going! On Wed, Aug 15, 2012 at 9:41 AM, Baishampayan Ghose wrote: > Very beautiful work, Sam! Loved it. > > Regards, > BG > > On Wed, Aug 15, 2012 at 4:20 PM, Sam Aaron wrote: > > Hey everyone, > > > > sorry, I

Re: Overtone - Actual Music!

2012-08-15 Thread Baishampayan Ghose
Very beautiful work, Sam! Loved it. Regards, BG On Wed, Aug 15, 2012 at 4:20 PM, Sam Aaron wrote: > Hey everyone, > > sorry, I couldn't resist posting this, but I'm getting real close to making > decent music with Overtone now, and I just wanted to share with you where I'm > at: > > https://vi

Re: Overtone - Actual Music!

2012-08-15 Thread Allen Johnson
Awesome. Sounds very Nine Inch Nails like. Time for Trent Reznor to get on some Clojure/Overtone ;-) AJ On Wed, Aug 15, 2012 at 6:50 AM, Sam Aaron wrote: > Hey everyone, > > sorry, I couldn't resist posting this, but I'm getting real close to making > decent music with Overtone now, and I jus

Re: not-nilo in core.logic?

2012-08-15 Thread Jim - FooBar();
On 15/08/12 15:09, David Nolen wrote: On Wed, Aug 15, 2012 at 9:53 AM, Jim - FooBar(); wrote: OK thanks a lot both of youit turns out the != works just fine! at the moment I've almost completed the entire moving rules for chess and checkers (including kills) but only on an empty board...th

Re: not-nilo in core.logic?

2012-08-15 Thread David Nolen
On Wed, Aug 15, 2012 at 9:53 AM, Jim - FooBar(); wrote: > OK thanks a lot both of youit turns out the != works just fine! > > at the moment I've almost completed the entire moving rules for chess and > checkers (including kills) but only on an empty board...the only thing > remaining to finish

Re: not-nilo in core.logic?

2012-08-15 Thread Jim - FooBar();
OK thanks a lot both of youit turns out the != works just fine! at the moment I've almost completed the entire moving rules for chess and checkers (including kills) but only on an empty board...the only thing remaining to finish things off is ideally a 'non-blocking?' fn to check each move

Re: clojure.logic project.clj file

2012-08-15 Thread David Nolen
On Wed, Aug 15, 2012 at 9:32 AM, Marshall T. Vandegrift wrote: > David Nolen writes: > >> Should core.logic support specific versions of Lein? Ideally Lein 2 >> would support Lein 1.X files. > > My understanding is that the reason the new version is lein 2.0 instead > of 1.8 is because it does br

Re: clojure.logic project.clj file

2012-08-15 Thread Marshall T. Vandegrift
David Nolen writes: > Should core.logic support specific versions of Lein? Ideally Lein 2 > would support Lein 1.X files. My understanding is that the reason the new version is lein 2.0 instead of 1.8 is because it does break backwards compatibility. However, if this is the only problem, it's f

Re: not-nilo in core.logic?

2012-08-15 Thread David Nolen
On Wed, Aug 15, 2012 at 9:02 AM, Jim - FooBar(); wrote: > Hi everyone, > > I was thinking about how to invert the 'nilo' relation found in core.logic: > > (defn nilo > "A relation where a is nil" > [a] > (== nil a)) > > > there is a != operator but it is in the arithmetic namespace so i don'

Re: not-nilo in core.logic?

2012-08-15 Thread Ambrose Bonnaire-Sergeant
If you want to use Clojure functions from core.logic, use "project". It is non-relational, so be careful. Ambrose On Wed, Aug 15, 2012 at 9:18 PM, Jim - FooBar(); wrote: > hmmm...good question!!! It can be anything can't it? > basically I'm trying to assert whether a specific index in a vector

Re: not-nilo in core.logic?

2012-08-15 Thread Ambrose Bonnaire-Sergeant
(Having said that, I wouldn't be surprised if he's unified them) On Wed, Aug 15, 2012 at 9:19 PM, Ambrose Bonnaire-Sergeant < abonnaireserge...@gmail.com> wrote: > Hmm, looks like clojure.core.logic/!= is what you want? > > I forgot David has his own constraint system separate to cKanren. > > Tha

Re: not-nilo in core.logic?

2012-08-15 Thread Ambrose Bonnaire-Sergeant
Hmm, looks like clojure.core.logic/!= is what you want? I forgot David has his own constraint system separate to cKanren. Thanks, Ambrose On Wed, Aug 15, 2012 at 9:07 PM, Ambrose Bonnaire-Sergeant < abonnaireserge...@gmail.com> wrote: > What would you expect to happen when you pass not-nilo a l

Re: not-nilo in core.logic?

2012-08-15 Thread Jim - FooBar();
hmmm...good question!!! It can be anything can't it? basically I'm trying to assert whether a specific index in a vector is nil or not but i am inside a conde statement...Can I still use boolean functions like 'nil?' ? Jim On 15/08/12 14:07, Ambrose Bonnaire-Sergeant wrote: What would yo

Re: not-nilo in core.logic?

2012-08-15 Thread Ambrose Bonnaire-Sergeant
What would you expect to happen when you pass not-nilo a logic variable? Thanks, Ambrose On Wed, Aug 15, 2012 at 9:02 PM, Jim - FooBar(); wrote: > Hi everyone, > > I was thinking about how to invert the 'nilo' relation found in core.logic: > > (defn nilo > "A relation where a is nil" > [a]

not-nilo in core.logic?

2012-08-15 Thread Jim - FooBar();
Hi everyone, I was thinking about how to invert the 'nilo' relation found in core.logic: (defn nilo "A relation where a is nil" [a] (== nil a)) there is a != operator but it is in the arithmetic namespace so i don't expect it to work... any pointers? Jim -- You received this messag

Re: recursion question

2012-08-15 Thread Balint Erdi
This is the classic Subset sum problem (http://en.wikipedia.org/wiki/Subset_sum_problem) and is an NP one. I've implemented the pseudo-polynomial dynamic programming solution found on the above Wikipedia page: https://gist.github.com/3359504 It returns the indexes of the elements that give the

Re: Overtone - Actual Music!

2012-08-15 Thread Bruce Durling
Sam, That's amazing. Thanks for posting that. :-D cheers, Bruce On Wed, Aug 15, 2012 at 11:50 AM, Sam Aaron wrote: > Hey everyone, > > sorry, I couldn't resist posting this, but I'm getting real close to making > decent music with Overtone now, and I just wanted to share with you where I'm >

Overtone - Actual Music!

2012-08-15 Thread Sam Aaron
Hey everyone, sorry, I couldn't resist posting this, but I'm getting real close to making decent music with Overtone now, and I just wanted to share with you where I'm at: https://vimeo.com/47578617 I think the coolest thing about this is that what you see in the screencast is something you c

Re: clojure.logic project.clj file

2012-08-15 Thread Chas Emerick
On Aug 15, 2012, at 1:15 AM, David Nolen wrote: > On Tue, Aug 14, 2012 at 10:31 PM, Brent Millare > wrote: >> Well just looking at the source, :source-path is never looked up, only >> :source-paths. All project.clj files that are prepped for leiningen2 use >> :source-paths to my knowledge. > >

Re: recursion question

2012-08-15 Thread nicolas.o...@gmail.com
First solution: (defn groupSum [l x] (or (zero? x) ; we have won! (and (not (< x 0)) ; we can't win (not (empty? l)) ; lost! (or (groupSum (rest l) (- x (first l))) (recur (rest l) x) The "we

Re: Rich's "The Value of Values" and REST

2012-08-15 Thread László Török
Hi, in my understanding, RESTful system design (as described in Roy Fielding's dissertation) does not advocate hiding any state "behind a bunch of methods". :) In REST, application state is carried by the representation that is passed back and forth between the server and the client. It seems to