Re: interval trees..

2012-03-22 Thread martin_clausen
Christophe Grand recently did a blog post on interval trees: http://clj-me.cgrand.net/2012/03/16/a-poor-mans-interval-tree/ On Monday, June 6, 2011 1:43:15 PM UTC+2, Sunil Nandihalli wrote: > > A simple googling revealed that interval trees can b

Re: ANN: ringMon 0.1.1 released

2012-03-22 Thread Shantanu Kumar
> I need  [ring/ring-jetty-adapter "1.0.1"] dependency so I can run > ringMon in standalone mode. For the experimental run I did using the ring-handler I have with ringMon middleware I used only lein-ring: https://github.com/weavejester/lein-ring I didn't import anything from ring in my namespac

first core.logic experiment

2012-03-22 Thread Cesare
Hi all, I'm experimenting with clojure.core: very nice! This is a simple planner for the Farmer Crosses River puzzle: (def characters [:farmer :goat :wolf :cabbage]) ;;; they all start on the left side of the river (def _starting-state {:farmer :l, :goat :l :wolf :l :cabbage :l}) ;;; they all m

Re: first core.logic experiment

2012-03-22 Thread David Nolen
Neat! I see that you figured out defne, you could probably simplify doactiono with matche as well. The Clojure REPL doesn't print exceptions by default, but I'm sure if you print it out with (clojure.repl/pst *e) you'd see that it does let you know that you called firsto with the wrong number of a

Re: first core.logic experiment

2012-03-22 Thread Cesare
On Mar 22, 2:47 pm, David Nolen wrote: > Neat! I see that you figured out defne, you could probably simplify > doactiono with matche as well. ok, I'll try soon. > The Clojure REPL doesn't print exceptions by default, but I'm sure if you > print it out with (clojure.repl/pst *e) you'd see that it

Re: Clojure-mode + aquamacs + paredit and character literals

2012-03-22 Thread Moritz Ulrich
Do you really need Aquamacs? My experience is that it causes more trouble than it's worth. I'd recommend using vanilla Emacs from [1] or building from source with the --cocoa switch. Vanilla Emacs on OS X got so good you don't really need Aquamacs anymore. Looking at the Emacs Starter Kit from Phi

Re: Clojure-mode + aquamacs + paredit and character literals

2012-03-22 Thread JuanManuel Gimeno Illa
Thanks, I'll give it a try. Juan Manuel On Thursday, March 22, 2012 4:21:19 PM UTC+1, Moritz Ulrich wrote: > > Do you really need Aquamacs? My experience is that it causes more > trouble than it's worth. > > I'd recommend using vanilla Emacs from [1] or building from source > with the --cocoa swi

Re: Clojure-mode + aquamacs + paredit and character literals

2012-03-22 Thread László Török
I'm on OS X 10.6.8 with latest stable Aquamacs and https://github.com/overtone/live-coding-emacs. Worked out of the box and is the most amazing visual experience and programmer productivity I had with Emacs so far. Las 2012/3/22 Moritz Ulrich > Do you really need Aquamacs? My experience is tha

G.Groups moderation appears to be broken

2012-03-22 Thread Stuart Sierra
Moderation will continue as soon as it's working again. -S -- 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 moderated - please be patient with your firs

New Clojure User Group for Columbus, OH

2012-03-22 Thread Matthew Boston
We're back on the radar! After nearly a year of going dormant, the Columbus Clojure User Group (formerly Inclojure) is back up and running. The past several months we've have a consistent number of members showing up. We have a new website www.columbusclojure.com and twitter https://twitter.co

Re: clojure-scheme - Compiling Clojure to Scheme to C

2012-03-22 Thread Patrick Logan
Gambit Scheme especially has a great interface to C/C++/Objective-C. I've been happily using Gambit quite a bit for 20+ years, when it originated as gambit-68k for the Motorola 68000. Gambit-C's been ported to iOS, Nintendo DS, etc. In addition to the great C interface, it also has a great Unix

Re: G.Groups moderation appears to be broken

2012-03-22 Thread Sean Corfield
On Thu, Mar 22, 2012 at 11:12 AM, Stuart Sierra wrote: > Moderation will continue as soon as it's working again. FWIW, I ran into this on a group I moderate and temporarily switched back to "old groups" which let me moderate users and messages... -- Sean A Corfield -- (904) 302-SEAN An Architect

Re: understanding data structures, and other low-level stuff

2012-03-22 Thread Nic Long
Just want to say I sent this before all the other comments - including the talk by Danie Spiewak and the Sedgewick and Wayne book on Algorithms - so I'll definitely have a look at those too. Thanks again for all the advice! On Mar 20, 6:45 pm, Nic Long wrote: > Hey, just want to say thanks for a

Re: Literate programming in emacs - any experience?

2012-03-22 Thread daly
On Tue, 2012-03-20 at 12:27 -0700, Tim Dysinger wrote: > I'm using org-mode, org-babel & swank for a "living" document I'm > writing. I'm generating a PDF which includes documentation, working > clojure code that generates incanter graphs. Also the generated > incanter graphs are included in the g

Re: SuperDevMode and SourceMaps for ClojureScript debugging

2012-03-22 Thread Brian Rowe
Any suggestions on how to get started on tackling that? On Tuesday, March 20, 2012 5:05:40 PM UTC-4, David Nolen wrote: > > On Tue, Mar 20, 2012 at 2:45 PM, Alexander Zolotko wrote: > >> Ray Cromwell , >> a Google employee, has recently ann

Re: Literate programming in emacs - any experience?

2012-03-22 Thread Michael O'Keefe
Hey Tim, Just wanted to say thanks for this post and this is a great discussion. I have the privilege of being able to spend a small amount of my time working on "official unofficial" projects at my work. I had seen an earlier post by you where I think you may have posted the same code to extra

Re: into applied to transient vectors undocumented?

2012-03-22 Thread Leif
Huh. That raises the question "Why doesn't clojure.lang.ITransientCollection extend clojure.lang.IEditableCollection, so the .asTransient method is idempotent?" Would that make a circular reference? --Leif On Tuesday, March 20, 2012 3:32:28 PM UTC-7, Andy Fingerhut wrote: > > Sorry, I said so

newbie struggling with Clooj and jars

2012-03-22 Thread TI Explorer vet
I love the premise of Clojure and the simplicity of Clooj. I used to write Lisp in Emacs years ago but I'd rather not dust off the Emacs brain cells. I'm trying to write a simple Twitter client in Clojure. I've got twitter-apidownloaded and installed a

Tutorial: Clojure applications in Eclipse with Counterclockwise and Maven

2012-03-22 Thread Nicolas Duchenne
Hi Everyone, I wrote an extensive tutorial in two parts about developing Clojure applications with Maven and Counterclockwise in Eclipse: Clojure in Eclipse, Part 1: Maven: Develop, test and deploy a Clojure app in Ecl

Re: revisiting community funding?

2012-03-22 Thread Mimmo Cosenza
Me too. mimmo On Tuesday, March 20, 2012 9:09:31 PM UTC+1, nchurch wrote: > > There was a brief period of community funding for Rich's work back in > 2010. When that ended, we now know the result was Datomica huge > win. > > But there are other people who work on Clojure and Clojurescript;

I'm writing a Tempest clone in ClojureScript

2012-03-22 Thread Trevor Bentley
I'm teaching myself Clojure/ClojureScript/HTML5 via an excessively complex first project: a clone of the arcade game Tempest. I thought it might be a handy resource to share since I've found surprisingly few ClojureScript examples. More certainly couldn't hurt. https://github.com/mrmekon/temp

Re: beginner help with views in ClojureScript One?

2012-03-22 Thread Pierre-Henry Perret
Hi, I have succeeded in creating another development page by restarting the vm. I dont know why it is not recompiled when reloading the page... Le vendredi 16 mars 2012 04:50:17 UTC+1, George Oliver a écrit : > > hi, I'm starting to modify the One sample application and can't get > the hang of re

removing a hash-map from a set using hash-map's field.

2012-03-22 Thread Leandro Oliveira
Hi all, I have a set of hash like this: #{{:id 1, :foo "bar"} {:id 2, :foo "car"}} and I'd like to remove an item based on its id value. Unfortunately, disj requires that I pass the whole map as key to remove it. Can I remove the map from the set only using the id? My intention is to avoid

[OT] Any other italian Clojure users?

2012-03-22 Thread Marco Dalla Stella
Hi, I just want to know if there are any other italian Clojure users in the ml, maybe for open an Italian Clojure User Group and organize some meetings... Thanks, -- Marco Dalla Stella web: http://thediracsea.org twitter: http://twitter.com/kra1iz3c -- You received this message because you are

Use metadata instead of :require-macros for requiring macros from ClojureScript?

2012-03-22 Thread Evan Mezeske
Hi, I'm working on some tools for making it easier to share generic Clojure code between Clojure and ClojureScript, and one problem that does not seem to have a pretty solution is that of requiring macros. Clojure uses a regular (:require ...) whereas ClojureScript needs a (:require-macros ...

Re: ClojureScriptOne design

2012-03-22 Thread Pierre-Henry Perret
Le mardi 20 mars 2012 17:59:02 UTC+1, Pierre-Henry Perret a écrit : > > I have added a new model cljs file in my dev One app , but when I use it > in the controller, that one doesnt see it. > > Any idea, suggestion? > > Thanks > Also, to effectively recoompile the snippets macro, I'll have the wh

beginner - stuck in dependencies and possibly old versions

2012-03-22 Thread ted
Hi all, I am very much a beginner with Clojure and have no experience with Java so please be gentle with me. I've been playing around with numerous incarnations of Lisp but would like to settle on Clojure, however I cannot get my environment sorted. I've installed Leiningen but when I try to do "

Re: ClojureScript source maps

2012-03-22 Thread Brandon Bloom
SourceMap support is rapidly approaching general availability in Chrome and Firefox: http://www.html5rocks.com/en/tutorials/developertools/sourcemaps/ I'd love to see this happen and *may* be able to find time to help with implementation. Any intel on existing attempts at this? On Sunday, Jul

ClojureScript: how to get rid of "no longer a property access" warning

2012-03-22 Thread Tom Krestle
Hi, Executing legitimate code in CLJS REPL produces expected result with a warning. Is this syntax wrong? Is there a way to disable the warning? > (.getTime (js/Date.)) WARNING: The form (. (js/Date.) getTime) is no longer a property access. Maybe you meant (. (js/Date.) -getTime) instead? 1332

Re: Clojure code optimizer

2012-03-22 Thread Andru Gheorghiu
Thank you for the responses. I'm looking into the resources you gave me. Andru Gheorghiu On Mar 21, 1:16 pm, Sanel Zukan wrote: >  I'm happy to see you are familiar with the subject :) > > I was thinking that a > > > similar program for Clojure could detect stack recursive functions and > > repl

Re: Passing data out of closure into the outer context

2012-03-22 Thread Tom Krestle
Thanks, man! I ended up using atoms. On Tuesday, March 20, 2012 2:13:18 PM UTC-7, Cedric Greevey wrote: > > On Tue, Mar 20, 2012 at 11:16 AM, Tom Krestle > wrote: > > Greetings, > > > > I've stumbled across the following problem, which I believe is common and > > should have some sort of gener

GSoC: Browser-based Clojure(Script) editor

2012-03-22 Thread Martin Forsgren
Hello! I am thinking of applying to GSoC and I found the proposal to continue working on Chris Grangers Clojure(script)-editor in "Bret Victor- style" really interesting. I have some ideas on features that I think would be nice to have, other than opening, saving and compiling files: Visualizatio

Frustrations in being moderated

2012-03-22 Thread Evan Mezeske
Hi, I've been posting very lightly to this group for a few weeks now, and am an active member of the Clojure community (or so I'd like to think), and yet all my posts still have to go through human moderation. I understand that there's probably something algorithmic going on behind the scenes

External sorting implementation in clojure

2012-03-22 Thread Nishant rayan
Hi, I am working on a project that requires sorting a very large file. Obviously sorting the file in memory is not an option. My input is a file in csv format and i want an output file in the same format sorted on all columns (from left to write). Of course I can implement an external sorting algo

Re: newbie struggling with Clooj and jars

2012-03-22 Thread Moritz Ulrich
I'm pretty sure you're missing the dependencies (in this case: clj-oauth) for twitter-api in your Clooj classpath. Take a look at [1] to see which. The whole thing works in leiningen because it loads all necessary dependencies for you. I highly recommend to use leiningen for all dependency managem

Re: Use metadata instead of :require-macros for requiring macros from ClojureScript?

2012-03-22 Thread Cedric Greevey
On Wed, Mar 21, 2012 at 1:12 AM, Evan Mezeske wrote: > Hi, > > I'm working on some tools for making it easier to share generic Clojure code > between Clojure and ClojureScript, and one problem that does not seem to > have a pretty solution is that of requiring macros.  Clojure uses a regular > (:r

Re: removing a hash-map from a set using hash-map's field.

2012-03-22 Thread Cedric Greevey
On Wed, Mar 21, 2012 at 5:00 PM, Leandro Oliveira wrote: > Hi all, > > I have a set of hash like this: > > #{{:id 1, :foo "bar"} {:id 2, :foo "car"}} > > and I'd like to remove an item based on its id value. > > Unfortunately, disj requires that I pass the whole map as key to remove it. > > Can I

Re: removing a hash-map from a set using hash-map's field.

2012-03-22 Thread Cedric Greevey
On Thu, Mar 22, 2012 at 10:32 PM, Cedric Greevey wrote: (into #{} (remove #(= (:id %) foo) input-set)) > You could stop when :id foo got hit by using a loop/recur, and save half the > iterations on average. Clarification: stop comparing to match the :id key against the target. You'd have to con

Re: beginner - stuck in dependencies and possibly old versions

2012-03-22 Thread Benny Tsai
Hi Ted, To answer your last question first, each project.clj determines the clojure version used by that project, so you don't really have to worry about old versions interfering or anything. I'm running Lein 1.6.2, which is relatively old, and it defaults new project to 1.3. If yours is usin

Re: into applied to transient vectors undocumented?

2012-03-22 Thread Stephen Compall
On Mar 21, 2012, at 12:47 AM, Leif wrote: > That raises the question "Why doesn't clojure.lang.ITransientCollection > extend clojure.lang.IEditableCollection, so the .asTransient method is > idempotent?" 'into' ought not work on transients for the same reason that assoc and conj don't work on

Re: beginner - stuck in dependencies and possibly old versions

2012-03-22 Thread Phil Hagelberg
ted writes: > I've installed Leiningen but when I try to do "lein plugin install > swank-clojure 1.3.1" or "lein plugin install lein-oneoff 0.2.0" I get > "[INFO] unable to find resource > 'swank-clojure:swank-clojure:jar:1.3.1' in repository central (http:/ > /repo1.maven.org/maven2)" (or equiva

Re: Parallel SSH and system monitoring in Clojure

2012-03-22 Thread Damon Snyder
Hi Chris, Cool. Thanks for sharing with the group. I also worked on something similar: https://github.com/drsnyder/gantry. I was getting frustrated with our current Frankenstein version of capistrano and wanted to tinker with building a basic remote execution and deployment tool using clojure. Dam

Re: I'm writing a Tempest clone in ClojureScript

2012-03-22 Thread David Nolen
Very cool :) On Thu, Mar 22, 2012 at 8:14 PM, Trevor Bentley wrote: > I'm teaching myself Clojure/ClojureScript/HTML5 via an excessively complex > first project: a clone of the arcade game Tempest. I thought it might be a > handy resource to share since I've found surprisingly few ClojureScript

Re: ClojureScript source maps

2012-03-22 Thread David Nolen
There are no existing attempts. The first step would be just to get the compiler to emit an optional source map. Bonus points if we can merge source maps from the ClojureScript compiler and Closure advanced compilation. David On Thu, Mar 22, 2012 at 6:05 AM, Brandon Bloom wrote: > SourceMap sup

Re: ClojureScript: how to get rid of "no longer a property access" warning

2012-03-22 Thread David Nolen
There is no way to suppress the warning. It's been around for long enough in my opinion, I think we should drop it before the next release. David On Wed, Mar 21, 2012 at 10:31 AM, Tom Krestle wrote: > Hi, > > Executing legitimate code in CLJS REPL produces expected result with a > warning. Is t

Re: SuperDevMode and SourceMaps for ClojureScript debugging

2012-03-22 Thread David Nolen
A pretty good overview here: http://www.html5rocks.com/en/tutorials/developertools/sourcemaps/ We need to modify the compiler so it produces an optional source map during the emit phase. David On Tue, Mar 20, 2012 at 9:02 PM, Brian Rowe wrote: > Any suggestions on how to get started on tacklin

Re: ClojureScript: how to get rid of "no longer a property access" warning

2012-03-22 Thread Chris Granger
+1 This confused a lot of people in my class :( Cheers, Chris. On Fri, Mar 23, 2012 at 12:55 AM, David Nolen wrote: > There is no way to suppress the warning. It's been around for long enough > in my opinion, I think we should drop it before the next release. > > David > > On Wed, Mar 21, 2012

Re: Frustrations in being moderated

2012-03-22 Thread Sean Corfield
On Tue, Mar 20, 2012 at 10:26 PM, Evan Mezeske wrote: > I'm sure that some level of moderation is necessary to keep the list clean, > but does it have to be so draconian? Hmm, I didn't even know the list was moderated (beyond first post moderation which I'd assume was the norm on Google Groups).

New(er) Clojure cheatsheet hot off the presses

2012-03-22 Thread Andy Fingerhut
Alex Miller not only organizes conferences that are a blast to attend (i.e. Clojure/West, and I'm inclined to believe Strange Loop would be cool, too), he also puts up new versions of the Clojure cheatsheet when I ask him nicely. Here it is, in the usual place: http://clojure.org/cheatsheet L

ANN: peridot - a library for interacting with ring apps

2012-03-22 Thread Nelson Morris
peridot is a library for interacting with ring apps. It is designed to work with ->, keep cookies, and handle some actions like file uploads as multipart. It is similar in level/style to Rack::Test. I imagine it could be useful for testing. https://github.com/xeqi/peridot - Nelson Morris --

Re: Use metadata instead of :require-macros for requiring macros from ClojureScript?

2012-03-22 Thread daly
On Thu, 2012-03-22 at 22:23 -0400, Cedric Greevey wrote: > On Wed, Mar 21, 2012 at 1:12 AM, Evan Mezeske wrote: > > Hi, > > > > I'm working on some tools for making it easier to share generic Clojure code > > between Clojure and ClojureScript, and one problem that does not seem to > > have a prett

Re: Use metadata instead of :require-macros for requiring macros from ClojureScript?

2012-03-22 Thread Evan Mezeske
Oops, I accidentally posted this before I finished typing it. I guess most of what I was trying to convey made it through. The second ns form I posted is my suggested approach. It requires no modifications to the Clojure language, and would be pretty simple to implement in the ClojureScript c

Re: removing a hash-map from a set using hash-map's field.

2012-03-22 Thread Philip Potter
Might it be possible to use a map instead? Maps are designed to look values up by a key which may differ from the value, which seems to be your use case here. If you have {1 {:id 1, :foo "bar"}, 2 {:id 2, :foo "car"}} You can just do (disj my-map 2) To convert the original set into a map, you