Re: Clojure compiletime vs runtime

2014-04-14 Thread Andrew Chambers
Forgive me, the first example was meant to be The following code wont compile: (defn y[]) ((x)) (defn x [] nil) On Tuesday, April 15, 2014 4:39:59 PM UTC+12, Andrew Chambers wrote: > > Is there an explanation of how clojure deals with scoping and its static > checking. It seems to be a hybrid o

Clojure compiletime vs runtime

2014-04-14 Thread Andrew Chambers
Is there an explanation of how clojure deals with scoping and its static checking. It seems to be a hybrid of a static language and a dynamic language when it comes to compilation. I'll elaborate. The following code wont compile: (defn x [] nil) (defn y[]) ((x)) however this code will compile:

Re: Puppet Labs and Trapperkeeper

2014-04-14 Thread Mike Haney
Great timing on the new blog post. I'm ramping up on my first "real" clojure app, and have been planning to use Component for this piece. I read the first blog post yesterday and it sounded interesting, but I've pretty much locked down the stack I'm going to use (you can evaluate libraries for

Re: Annotations on gen-class :state

2014-04-14 Thread Colin Fleming
Alex, what's your feeling about how a reify-like form and a deftype-like form that supported concrete class extension (as detailed in the other thread) would be received? If you think there might be interest I can start a proposal and possibly write the patch as well. On 15 April 2014 14:32, Alex

Re: Annotations on gen-class :state

2014-04-14 Thread Alex Miller
It is a non-goal for gen-class (and reify, proxy, etc)to support the construction of any possible Java class or to fully support every possible Java feature. That said, particular extensions to existing features might be useful in reasonable use cases. On Monday, April 14, 2014 7:56:21 PM UTC-

Re: [ANN] Gorilla REPL 0.2.0 - all new extensible renderer

2014-04-14 Thread SteveSuehs
Pretty neat! I'm playing with it now at the Austin Clojure meetup. I had to add tools.nrepl to the project dependencies or it couldn't find an nrepl server class. On Wednesday, March 19, 2014 3:22:57 PM UTC-5, Jony Hudson wrote: > > Hi all, > > I'm happy to announce a new release of Gorilla RE

Re: Extending a data model

2014-04-14 Thread Andrew Chambers
An update, I read about protocols and multimethods. I think multimethods are a decent way to go (cant use protocols without a defrecord) provided they work across namespaces. On Tuesday, April 15, 2014 11:52:36 AM UTC+12, Andrew Chambers wrote: > > Hi everyone, > > I'm new to clojure and in or

Re: Extending a data model

2014-04-14 Thread Andrew Chambers
Thanks for the tip, I think multimethods may be what i need in this case (perhaps which checks the current architecture in the dispatch function so i can disable some). I want to avoid having to pass an object around and extract methods (simply because it clutters my code). Dynamically binding

Re: Annotations on gen-class :state

2014-04-14 Thread Colin Fleming
Well, I'm a bit torn on this one. On the one hand, I'd love to have something that meets my particular use case (of course!) which I wrote about here: https://groups.google.com/d/topic/clojure/MznBwxZt4cY/discussion. I think that case can be met while still keeping the API fairly simple. But once y

Re: Helping newcomers get involved in Clojure projects

2014-04-14 Thread Marcus Blankenship
For now we can use a github repo: https://github.com/marcuscreo/clojure-learning-resources Send me a pull request, or let me know if you want access to edit directly. I also put Leif's excellent list in the wiki portion of the repo as well. https://github.com/marcuscreo/clojure-learning-resou

Re: Potential Intro clojure projects - libraries and ideas with wow factor

2014-04-14 Thread Andrew Chambers
Clojure logic programming with core.logic (something akin to a sudoku solver https://gist.github.com/swannodette/3217582 is a good example) or using datomic to have a database with a time machine and datalog for queries might be cool (perhaps visualizing the data in the database at arbitrary ti

Re: Extending a data model

2014-04-14 Thread Reid McKenzie
Hey Andrew, I actually built something very much along these lines a few months ago if you care to cheat off of it: http://github.com/arrdem/toothpick is an assembler generator system that works more or less along these lines. Label support is still a problem I haven't completely solved and I n

Extending a data model

2014-04-14 Thread Andrew Chambers
Hi everyone, I'm new to clojure and in order to learn I'm working on making some compiler tools which converts a lightweight IR code into assembly. My data model for an IR function is along the lines of (def code { :entry [[:loadaddr :x "global_label"] [:loadconst 1 :y]

Re: [ANN] brute 0.1.1 - A lightweight Entity Component System library for writing games

2014-04-14 Thread Mark Mandel
Great! Would love to have contributions! Mark On Tue, Apr 15, 2014 at 9:45 AM, Reid McKenzie wrote: > Cool project! I just hammered out my own CES in the last few weeks for a > private project, I'll be interested to see how they compare and whether > there's anything I can add :D > > Reid >

Re: [ANN] brute 0.1.1 - A lightweight Entity Component System library for writing games

2014-04-14 Thread Reid McKenzie
Cool project! I just hammered out my own CES in the last few weeks for a private project, I'll be interested to see how they compare and whether there's anything I can add :D Reid On Monday, April 14, 2014 6:32:06 PM UTC-5, Mark Mandel wrote: > > Heya! > > First real Clojure library release, so

Re: Helping newcomers get involved in Clojure projects

2014-04-14 Thread Bridget
Wow, Leif. This is great. Thanks so much for doing this. For #1 - Proposing a label for issues appropriate to newcomers seems like something very doable to get this kickstarted. I propose "bite-sized," to keep in line with what OpenHatch does. Does anyo

[ANN] brute 0.1.1 - A lightweight Entity Component System library for writing games

2014-04-14 Thread Mark Mandel
Heya! First real Clojure library release, so exciting/scary stuff, but feedback would very much be appreciated. Brute is a a simple and lightweight Entity Component System library for writing games with Clojure. The aim of this project was to use basic Clojure building blocks to form an Entity S

Re: Linked Hash Map/Set

2014-04-14 Thread Andy Fingerhut
You may also want to take a look at the 'ordered' library, intended to achieve a similar affect as you describe of remembering elements in the order they were inserted. I don't know which of the two Github repos below is the current latest one, but it should be one of them: https://github.com

Re: Linked Hash Map/Set

2014-04-14 Thread Andy Fingerhut
I don't have time right now to look at the details of your implementation, but can answer at least one of your questions. Clojure's normal PersistentHashMap data structure does create a new object for every key you remove (with dissoc), add, or modify the value for (with assoc). So if a single as

Linked Hash Map/Set

2014-04-14 Thread Frankie Sardo
I'm on a mission to implement an ordered map and set structure for Clojure. Much like LinkedHashMap for Java but as a persistent data structure. The idea is that instead of saving a simple [k v] MapEntry we can save [k v left-node-key right-node-key] plus a global head-node-key to walk through t

Re: auto include a certain line in all *.cljs files

2014-04-14 Thread Tim Visher
Hi t, On Sun, Apr 13, 2014 at 3:18 PM, t x wrote: > What does > https://github.com/technomancy/leiningen/blob/master/sample.project.clj#L209-L211 > mean ? > > In particular, I'm confused about: > >>> Forms to prepend to every form that is evaluated inside your project. > > I only want to insert

Re: Helping newcomers get involved in Clojure projects

2014-04-14 Thread Marcus Blankenship
Leif, this is really cool. Thanks for taking the time to find this. I wish there were wiki page where we could put this for safe keeping, so future n00bs could find it. Or, maybe you could release the script you used to create this, which of course would be in Clojure as well... ;-) On Apr

Re: Puppet Labs and Trapperkeeper

2014-04-14 Thread Chris Price
We published a follow-up post this morning, with a lot more detail on the Clojure side of things: https://puppetlabs.com/blog/clojure-nerds-puppet-labs-application-services On Sunday, April 13, 2014 6:48:10 PM UTC-7, Walter Heck wrote: > > As a non-clojure user, but a Puppet expert (ahum ;) ) I

Re: Annotations on gen-class :state

2014-04-14 Thread Jon Seltzer
This is unfortunate. I certainly can write a Java class and I expected that would be the answer. The question for me is whether, as a group, we see any value in having a consistent interface with the JVM. One could argue that Clojure does not need any of the interop features it already has.

Re: Helping newcomers get involved in Clojure projects

2014-04-14 Thread Leif
Below is a list of the top 1,000 clojure projects (by star count) from github with issues with labels that sound somewhat appropriate for newcomers. Don't worry, the final list is way less than 1,000. Considering the list, we see that: 1. The community may want to attempt to standardize the

Re: Uberjar woes

2014-04-14 Thread Tom Connors
Thanks for that tip, James - I'll look through the jars of my dependencies for spurious classes and post back here if I find anything that might be of value to future reader of this thread. On Thursday, February 27, 2014 2:49:38 PM UTC-5, Tom Connors wrote: > > Hi Everyone, > I've been having tr

[ANN] Lambda Jam CFP - looking for Clojure talks

2014-04-14 Thread Alex Miller
Lambda Jam (http://www.lambdajam.com) is a conference about applied functional programming, focusing on Clojure, Scala, Erlang, Haskell, and F# with a significant hands-on component. This year the conference will return to Chicago July 22-23rd. Rich Hickey will be doing a keynote. The Call for

Re: [Video] Game development in Clojure (with play-clj)

2014-04-14 Thread halitolali
Great video, thanks! On Monday, April 14, 2014 5:41:45 AM UTC+3, Kashyap CK wrote: > > +1 nice video > > > On Mon, Apr 14, 2014 at 3:45 AM, Kris Calabio > > wrote: > >> Oh great! I guess I must have missed that :P >> >> >> On Sun, Apr 13, 2014 at 3:13 PM, James Trunk >> > wrote: >> >>> There's a

Re: cljs, websocket, autoreconnect

2014-04-14 Thread Gary Trakhman
Oh good. I don't think I'd stop using jetty for the sake of websockets. If sente has a backend impl that can be made compatible with it, then is consider that, but the jetty-websockets-async lib is relatively straightforward. This reconnecting closure websocket fixes my last major issue. On Monda

Re: Annotations on gen-class :state

2014-04-14 Thread Colin Fleming
gen-class really isn't suitable for doing complicated interop like annotating fields. It's heavily oriented towards a single means of managing state, which is a single field generally containing an atom, which in turn contains your actual state in a map or similar. If you really need multiple field

Re: Meta-eX - The Music of Code

2014-04-14 Thread Islon Scherer
Overtone is amazing, I'm planning on doing some experiments with it as soon as I finish the supercollider book and improve my music theory skills. On Friday, April 11, 2014 4:44:22 PM UTC+2, Sam Aaron wrote: > > > On 10 Apr 2014, at 03:18, Earl Jenkins > > wrote: > > > Good stuff, all the hard