Re: Question on mandatory arguments for -> and ->> macros

2012-10-11 Thread Laurent PETIT
2012/10/12 Jason Wolfe > On Thursday, October 11, 2012 10:29:57 AM UTC-7, Shantanu Kumar wrote: >> >> >> >> On Tuesday, 9 October 2012 06:07:06 UTC+5:30, Jason Wolfe wrote: >>> >>> >>> >>> On Sunday, October 7, 2012 9:27:15 PM UTC-7, Shantanu Kumar wrote: On Monday, 8 October

Re: Intern a var from outside namespace

2012-10-11 Thread David Jacobs
Having a map leads to pretty bad syntax for what I'm trying to do. That's why I want to metaprogram here. I want this ... (post/all api-key) … instead of this ... ((post/api :all) api-key) Why can an ns not be passed around like anything else? David On Thursday, October 11, 2012 at 9:1

Re: Intern a var from outside namespace

2012-10-11 Thread David Jacobs
Note: I wrote this quickly. I should've taken the time to point out that the only difference between the first and second functions is the parameterized namespace, a-ns. When I say it "doesn't work", I mean that accessing the created fn from a third ns throws a "No such var" exception. On Thu

Re: Intern a var from outside namespace

2012-10-11 Thread Alan Malloy
On Thursday, October 11, 2012 9:03:38 PM UTC-7, David Jacobs wrote: > > I would like to create function names programmatically. So far, I have > code that works: > ... > Where am I going wrong? > > David > Sentence one. Don't do it that way: namespaces are not very good hashmaps, but hashmaps

Intern a var from outside namespace

2012-10-11 Thread David Jacobs
I would like to create function names programmatically. So far, I have code that works: (defn create [endpoints] (doseq [{:keys [action method url]} endpoints] (let [endpoint-fn (if (re-matches #".*/:id(/.*)?" url) (fn [id session] (method

Re: Question on mandatory arguments for -> and ->> macros

2012-10-11 Thread Jason Wolfe
On Thursday, October 11, 2012 10:29:57 AM UTC-7, Shantanu Kumar wrote: > > > > On Tuesday, 9 October 2012 06:07:06 UTC+5:30, Jason Wolfe wrote: >> >> >> >> On Sunday, October 7, 2012 9:27:15 PM UTC-7, Shantanu Kumar wrote: >>> >>> >>> >>> On Monday, 8 October 2012 04:57:06 UTC+5:30, Stuart Sierra w

Re: trying to read table & write file

2012-10-11 Thread Sean Corfield
On Thu, Oct 11, 2012 at 5:57 PM, Brian Craft wrote: > Geez, you want me to share my brain failures? ;-p In my defense, I was up > half the night taking care of sick progeny. I just wondered if whether it was the sort of problem that others might run into and sharing it might help them... but ap

Re: trying to read table & write file

2012-10-11 Thread Brian Craft
Geez, you want me to share my brain failures? ;-p In my defense, I was up half the night taking care of sick progeny. The slice-probes call was working fine, and wasn't affected by the .write call. The call to score-str was wrong. The failure it generated looked like an earlier failure I'd had

Re: ANN clojure-doc.org (aka CDS), a new community-driven Clojure documentation site

2012-10-11 Thread Murphy McMahon
I'm not really enough of an authority to contribute much at this point, but I wanted to take a second, as someone who has been learning Clojure (and Emacs) over the past year or so, to applaud the effort and share my opinion: I really like something like this: https://gobyexample.com/ It is orien

Re: trying to read table & write file

2012-10-11 Thread Sean Corfield
On Thu, Oct 11, 2012 at 10:38 AM, Brian Craft wrote: > Never mind, I found it. ;) Been up too long, apparently. Please share - I'm curious now! -- Sean A Corfield -- (904) 302-SEAN An Architect's View -- http://corfield.org/ World Singles, LLC. -- http://worldsingles.com/ "Perfection is the

Re: Issues with Penumbra

2012-10-11 Thread AtKaaZ
Just to be sure, this is the link: https://github.com/ztellman/penumbra I notice OP was using a different fork (?) On Thu, Oct 11, 2012 at 11:46 PM, Zach Tellman wrote: > I updated Penumbra to target the project structure for Leiningen 2 a while > back, are you using v1 by any chance? > > Zach >

Re: Interest in Scribble for Clojure?

2012-10-11 Thread Eli Barzilay
Gary Johnson uvm.edu> writes: > > A lot of scribble's features are geared towards providing tooling for > Literate Programming, No, this is wrong. The LP that we have is based on Scribble, but it was done mainly as a demonstration of the benefits you get from having a real language for writing

Re: Issues with Penumbra

2012-10-11 Thread Zach Tellman
I updated Penumbra to target the project structure for Leiningen 2 a while back, are you using v1 by any chance? Zach On Thursday, October 11, 2012 12:34:44 PM UTC-7, JvJ wrote: > > I'm trying to make a project using Penumbra for opengl, but somehow I get > an issue when I try (use 'penumbra.op

Re: Bug in printing futures

2012-10-11 Thread AtKaaZ
I notice it happens on Clojure 1.5.0-master-SNAPSHOT also. Calling something like: (future-cancelled? f) *true* before getting @f makes sense, but since I'm a clojure newb I don't know what showing "f" (not @f) would show. Maybe it should show something like: # and only @f should throw. That would

Issues with Penumbra

2012-10-11 Thread JvJ
I'm trying to make a project using Penumbra for opengl, but somehow I get an issue when I try (use 'penumbra.opengl). It looks like there's a class excepiton: penumbra.PenumbraSystem [Thrown class java.lang.ClassNotFoundException] Here's the project file I'm using: (defproject enjine "1.0.0-S

Re: reading binary blob

2012-10-11 Thread Brian Craft
If I'm holding a binary blob from a db query result, is clojure.java.io/input-stream the right way to present it as a stream? I'm doing (:require [org.clojars.smee.binary.core :as binary]) (:require [clojure.java.io :as io]) ... (defn score-decode [blob] (binary/decode codec-length (io/

Re: Example of Tetris in Clojurescript.

2012-10-11 Thread Grant Rettke
Please port ultramasterdethris to clojurescript. On Thu, Oct 11, 2012 at 2:04 PM, Timothy Washington wrote: > Oooh, I just got hooked on it for about 10 mins. Of course I was just > testing it.. ahem :) > > Lots of fun !! > > Tim > > > On Thu, Oct 11, 2012 at 2:33 PM, Andreas Liljeqvist > wrote:

Re: Example of Tetris in Clojurescript.

2012-10-11 Thread Timothy Washington
Oooh, I just got hooked on it for about 10 mins. Of course I was just testing it.. ahem :) Lots of fun !! Tim On Thu, Oct 11, 2012 at 2:33 PM, Andreas Liljeqvist wrote: > Hi. > > Feel free to check out my Clojurescript Tetris at this location: > http://clojure-tetris.herokuapp.com/ > > Github:

Re: ANN clojure-doc.org (aka CDS), a new community-driven Clojure documentation site

2012-10-11 Thread gaz jones
Alright, I'll convert the appropriate ones and send you a pull request when I'm done. I'm happy to pick up writing a tools.cli tutorial too when I get some spare time. Thanks for kickstarting the effort, it's shaping up to be a great resource. -- You received this message because you are subscrib

Re: ANN clojure-doc.org (aka CDS), a new community-driven Clojure documentation site

2012-10-11 Thread Michael Klishin
2012/10/11 gaz jones > They are all based on Emacs 24, leiningen 1.x, and swank-clojure. Is > there any appetite for me to convert / update them and merge them into > CDS under the tutorials section? I have been told by a few people that > they found them useful and I tried but failed to find any

Example of Tetris in Clojurescript.

2012-10-11 Thread Andreas Liljeqvist
Hi. Feel free to check out my Clojurescript Tetris at this location: http://clojure-tetris.herokuapp.com/ Github: https://github.com/bonega/tetris/tree/clojurescript Originally started as a swing application and later seesaw. I am very impressed with how easy it was adapting the codebase to cloj

Re: ANN clojure-doc.org (aka CDS), a new community-driven Clojure documentation site

2012-10-11 Thread Grant Rettke
On Thu, Oct 11, 2012 at 12:50 PM, gaz jones wrote: > I have 3 blog posts I wrote to help some colleagues get up to speed > with clojure / emacs: Looks great. You never know what is the best thing for everyone, so what works for you will probably work for others, too. -- You received this messag

Re: ANN clojure-doc.org (aka CDS), a new community-driven Clojure documentation site

2012-10-11 Thread gaz jones
I have 3 blog posts I wrote to help some colleagues get up to speed with clojure / emacs: http://blog.gaz-jones.com/2012/02/01/setting_up_emacs_for_clojure_development.html http://blog.gaz-jones.com/2012/02/02/clojure_development_cycle.html http://blog.gaz-jones.com/2012/02/03/clojure_command_line

Re: trying to read table & write file

2012-10-11 Thread Brian Craft
Never mind, I found it. ;) Been up too long, apparently. On Thursday, October 11, 2012 10:24:55 AM UTC-7, Brian Craft wrote: > > On Thursday, October 11, 2012 9:11:44 AM UTC-7, Sean Corfield wrote: >> >> On Wed, Oct 10, 2012 at 9:43 PM, Brian Craft wrote: >> >>> and I get "Insufficient bytes to

Re: Question on mandatory arguments for -> and ->> macros

2012-10-11 Thread Shantanu Kumar
On Tuesday, 9 October 2012 06:07:06 UTC+5:30, Jason Wolfe wrote: > > > > On Sunday, October 7, 2012 9:27:15 PM UTC-7, Shantanu Kumar wrote: >> >> >> >> On Monday, 8 October 2012 04:57:06 UTC+5:30, Stuart Sierra wrote: >>> >>> From the look of the source, there's no reason why ->> couldn't have >

Re: trying to read table & write file

2012-10-11 Thread Brian Craft
On Thursday, October 11, 2012 9:11:44 AM UTC-7, Sean Corfield wrote: > > On Wed, Oct 10, 2012 at 9:43 PM, Brian Craft wrote: > >> and I get "Insufficient bytes to decode frame" from gloss. I didn't >> expect an error reading the table. What am I doing wrong? > > > Source for read-table? > Includ

{ ANN bOOtOne }

2012-10-11 Thread Pierre-Henry Perret
I' ve lauched this summer the projet /bOOtOne/ on gitHub. That aim's project is to integrate the *cljs-ns-browser *of @franks42/clj-ns-browser in the @brentonashwort/one

Re: trying to read table & write file

2012-10-11 Thread Sean Corfield
On Wed, Oct 10, 2012 at 9:43 PM, Brian Craft wrote: > and I get "Insufficient bytes to decode frame" from gloss. I didn't expect > an error reading the table. What am I doing wrong? > Source for read-table? -- Sean A Corfield -- (904) 302-SEAN An Architect's View -- http://corfield.org/ World S

Bug in printing futures

2012-10-11 Thread Dave Ray
In Clojure 1.4, I came across the following this week: user=> (def f (future (Thread/sleep 2))) #'user/f user=> f # user=> (future-cancel f) true user=> f CancellationException java.util.concurrent.FutureTask$Sync.innerGet (FutureTask.java:220) That is, when printing a futur

Re: ANN clojure-doc.org (aka CDS), a new community-driven Clojure documentation site

2012-10-11 Thread Laurent PETIT
I'm very excited about this. As has been said before, all skills aren't located in the same person, and someone with ability to develop does not necessarily have the competence, the guts, or the time to write great end user documentation. So I'm "high five" for this project, especially because do