Clojure 1.5.0 fails on sample project

2013-03-23 Thread Mayank Jain
Hi, I created a sample project by doing $ lein new temp And I switched the version of clojure from 1.5.1 to 1.5.0. :dependencies [[org.clojure/clojure 1.5.0]] The project fails to load. No other changes. More info: $ lein version Leiningen 2.1.1 on Java 1.6.0_43 Java HotSpot(TM) 64-Bit

Re: Clojure/West 2013 videos?

2013-03-23 Thread Alan Busby
On Sat, Mar 23, 2013 at 2:48 PM, Alex Miller a...@puredanger.com wrote: The benefit to attendees and non-attendees is that the videos exist at all - without the InfoQ deal, the cost of recording, editing, and hosting videos is literally the difference between whether the conference is in the

Re: Clojure 1.5.0 fails on sample project

2013-03-23 Thread Michael Klishin
2013/3/23 Mayank Jain firesof...@gmail.com Note: Sample app works on 1.4.0 but fails on 1.5.1 as well with same error output. lein-swank is no longer maintained and hasn't been updated for 1.5. Please switch to nrepl.el, you will like it. -- MK http://github.com/michaelklishin

Re: LoL which style for Clojure

2013-03-23 Thread Marko Topolnik
What if there's some computation in there, but such that should be performed at compile time? I still prefer the outside let whenever I want to make dead sure it's not getting reallocated on each call. If there was some well-specified and easily understood guarantee (for example, like the one

Re: Macro for bailout-style programming

2013-03-23 Thread Gary Verhaegen
I've recently had a need for something like that in my own code. The real solution to that problem in the functional programming world is known as the maybe monad. Since I just needed a quick and dirty solution and I have not wrapped my head around monads yet, here's what I did : (defmacro maybe-

Call for Papers: Commercial Users of Functional Programming

2013-03-23 Thread Michael Sperber
COMMERCIAL USERS OF FUNCTIONAL PROGRAMMING 2013 CUFP 2013 http://cufp.org/conference CALL FOR PRESENTATIONS Boston, MA, United States Sep 22-24

Re: LoL which style for Clojure

2013-03-23 Thread Thomas Heller
Just out of curiosity, does it have to be a function? (def data {:foo 1 :bar 2 :baz 3}) (def data-keys (keys data)) If one item is constant the other probably is too? Cheers, /thomas On Friday, March 22, 2013 7:59:43 PM UTC+1, jamieorc wrote: Curious which style is preferred in Clojure and

Re: Clojure/West 2013 videos?

2013-03-23 Thread Geraldo Lopes de Souza
On Mar 21, 1:29 pm, Ben Mabey b...@benmabey.com wrote: On 3/21/13 10:08 AM, John Gabriele wrote: Are there any videos available of the talks recently given at Clojure/West? Is there a central location where these will most likely be found at some point? Alex can confirm this but my

Re: Macro for bailout-style programming

2013-03-23 Thread John D. Hume
Your maybe- does almost the same thing as Clojure 1.5's some- but without support for naked fns (like `(some- 1 inc)`). It also evaluates each step but the last twice (once for the `if`, once when inserted after `op`). If you don't want to switch to some-, I'd recommend you use when-let to avoid

let-timed macro...any suggestions/corrections?

2013-03-23 Thread Jim - FooBar();
Can anyone see anything wrong with this little macro? It comes pretty handy to me when I want to time each an every expression in a let statement... (defmacro let-timed [bindings code] (let [parts(partition 2 bindings) names (map first parts) results (map #(list

Coding while running the program

2013-03-23 Thread Oskar Kvist
Hi! I saw this video http://www.youtube.com/watch?v=BES9EKK4Aw4 of Notch coding on Minecraft while the game was running, and of course seeing the changes in the running program. He used some kind of debug mode in his IDE (I don't really know which IDE). I want to make a game, and I want to to

Re: Coding while running the program

2013-03-23 Thread Yves S. Garret
If you want to make a game, then make a game. Don't worry about looking cool about it. You don't need to have some feature to make something entertaining :) . I'm making a game with a tool called GameMaker. Not as full-featured or powerful as with a programming language? Sure, but then I want

Re: Coding while running the program

2013-03-23 Thread George Oliver
On Saturday, March 23, 2013 7:22:14 AM UTC-7, Oskar Kvist wrote: Hi! I saw this video http://www.youtube.com/watch?v=BES9EKK4Aw4 of Notch coding on Minecraft while the game was running, and of course seeing the changes in the running program. He used some kind of debug mode in his IDE

Re: Coding while running the program

2013-03-23 Thread Mayank Jain
Nice. Thanks for sharing. On Sat, Mar 23, 2013 at 9:15 PM, George Oliver georgeolive...@gmail.comwrote: On Saturday, March 23, 2013 7:22:14 AM UTC-7, Oskar Kvist wrote: Hi! I saw this video http://www.youtube.com/**watch?v=BES9EKK4Aw4http://www.youtube.com/watch?v=BES9EKK4Aw4of Notch

Re: Coding while running the program

2013-03-23 Thread Oskar Kvist
It's not about looking cool, it's about saving time. Den lördagen den 23:e mars 2013 kl. 16:03:19 UTC+1 skrev John Smith: If you want to make a game, then make a game. Don't worry about looking cool about it. You don't need to have some feature to make something entertaining :) . I'm

Re: Native library not found after upgrade to leiningen 2.0

2013-03-23 Thread Dave Snowdon
Thanks James, Karsten That works thanks! I then found that I needed to use mvn deploy:deploy-file to get the jar into my local repo instead of mvn install:install-file otherwise maven didn't create the necessary supporting files and I got a no supported algorithms found error when I ran lein

Re: Coding while running the program

2013-03-23 Thread Wujek Srujek
I have no idea what the guy uses, neither am I a big fan of Eclipse as a tool for anything, but the one tool I do use on a daily basis is JRebel. It is basically a very smart classloader that observes the filesystem for newly compiled classes / copied resources (that happens on save in Eclipse,

Re: LoL which style for Clojure

2013-03-23 Thread Ben Wolfson
On Sat, Mar 23, 2013 at 4:16 AM, Thomas Heller th.hel...@gmail.com wrote: Just out of curiosity, does it have to be a function? (def data {:foo 1 :bar 2 :baz 3}) (def data-keys (keys data)) If one item is constant the other probably is too? In this case, yes, but it's easy to imagine cases

Re: Clojure 1.5.0 fails on sample project

2013-03-23 Thread Mayank Jain
Cool. Thanks. On Sat, Mar 23, 2013 at 12:26 PM, Michael Klishin michael.s.klis...@gmail.com wrote: 2013/3/23 Mayank Jain firesof...@gmail.com Note: Sample app works on 1.4.0 but fails on 1.5.1 as well with same error output. lein-swank is no longer maintained and hasn't been updated

Re: Coding while running the program

2013-03-23 Thread Yves S. Garret
Yes, but are you saving time with this? What types of games do you want to make? RTS? FPS? RPG? What's the platform that you're targeting? No offense, but I've seen a lot of people like this (me including :) ), who want to learn technology X for... wait for it... to make games or something

Re: let-timed macro...any suggestions/corrections?

2013-03-23 Thread Emanuel Rylke
On Saturday, March 23, 2013 2:09:02 PM UTC+1, Jim foo.bar wrote: (defmacro let-timed [bindings code] I would write that as [bindings body] which is also recommended by http://dev.clojure.org/display/design/Library+Coding+Standards (let [parts(partition 2 bindings)

Re: Coding while running the program

2013-03-23 Thread George Oliver
Also, I forgot to mention this, http://www.lighttable.com/ -- -- 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

Re: Coding while running the program

2013-03-23 Thread Mikera
I coded a large proportion of my 7 day Roguelike Alchemy ( https://github.com/mikera/alchemy ) while the game was running. Tools I used were Eclipse, Clojure and the Counterclockwise plugin. No special JVM settings required: Clojure is quite happy to reload and recompile code on demand on any

Re: Coding while running the program

2013-03-23 Thread Oskar Kvist
John: I don't really understand why you say it's a waste of time. Speeding up the feedback cycle seems great to me. Thanks to everyone who has contributed to this thread so far! On Saturday, March 23, 2013 7:48:28 PM UTC+1, John Smith wrote: Yes, but are you saving time with this? What types

In Emacs Org mode, how to round-trip Clojure code edits?

2013-03-23 Thread Matching Socks
I've got clojure-mode and nrepl installed, but I skipped Slime. From the org-mode sample page, http://orgmode.org/manual/Literal-examples.html, I copied #+BEGIN_SRC emacs-lisp (defun org-xor (a b) Exclusive or. (if a (not b) b)) #+END_SRC where you type

Re: Coding while running the program

2013-03-23 Thread Adrian Tillman
What you're seeing is a feature of game Engines that have a scripting engine. With this type of architecture you can separate the game content from the game engine itself. This allows you to change the game without recompiling the entire engine unnecessarily. On Mar 23, 2013, at 5:06 PM,

Re: Coding while running the program

2013-03-23 Thread Yves S. Garret
The only thing that I've seen do what you describe successfully is Erlang (it's called hot-swapping the code and no, it's not easy to implement :) , a worthy project nontheless)... and as Adrian Tillman suggests, it's most likely Notch isn't working on the gaming engine directly, but rather on a

Re: Coding while running the program

2013-03-23 Thread Niels van Klaveren
Doing stuff like you describe was one of Cris Granger's inspirations for making Light Table. See http://www.chris-granger.com/2012/02/26/connecting-to-your-creation/ However, most of this is doable with a REPL, as Mikera already noted. For Clojure/Clojurescript, redefining functions in running

Testing gmane please ignore

2013-03-23 Thread John Holland
This is just a test of the gmane gateway please ignore. -- -- 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

Test please ignore

2013-03-23 Thread John Holland
testing gmane interface -- -- 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 first post. To unsubscribe from this

Re: Macro for bailout-style programming

2013-03-23 Thread Evan Gamble
The let? macro addresses such situations: https://github.com/egamble/let-else -- -- 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

Re: [ANN] Pedestal Application Framework

2013-03-23 Thread Sean Corfield
Contributor Agreements were available for signing at Clojure/West so I'm guessing it will be under the same process as Clojure itself... On Fri, Mar 22, 2013 at 9:04 AM, Michael Klishin michael.s.klis...@gmail.com wrote: 2013/3/22 Alex Redinton alex.reding...@thinkrelevance.com Please let us

Re: Coding while running the program

2013-03-23 Thread Rob Lachlan
Ring offers functionality for automatic reloading if you happen to be developing a web app. See here: https://github.com/mmcgrana/ring/wiki/Interactive-Development On Saturday, March 23, 2013 7:22:14 AM UTC-7, Oskar Kvist wrote: Hi! I saw this video

Re: Refactoring tools

2013-03-23 Thread Korny Sietsma
I'd also love something to optimise the ns form - I'm regularly doing tasks by hand that could in theory be automated; adding a new not-yet-imported library can be quite tedious, it'd be great to be able to type (defdb and be able to hit a key combo to add a new :require entry. A generalised

Re: Refactoring tools

2013-03-23 Thread Alex Baranosky
Korny, Slamhound does some of what you're talking about, but not as an editor extension, https://github.com/technomancy/slamhound On Sat, Mar 23, 2013 at 6:58 PM, Korny Sietsma ko...@sietsma.com wrote: I'd also love something to optimise the ns form - I'm regularly doing tasks by hand that

Re: Refactoring tools

2013-03-23 Thread Devin Walters
Slamhound does some of what you're looking for. — Sent via Mobile On Sat, Mar 23, 2013 at 8:59 PM, Korny Sietsma ko...@sietsma.com wrote: I'd also love something to optimise the ns form - I'm regularly doing tasks by hand that could in theory be automated; adding a new not-yet-imported

Re: Refactoring tools

2013-03-23 Thread Korny Sietsma
Awesome - great stuff! (pity no pony though) - Korny On 24 March 2013 13:01, Alex Baranosky alexander.barano...@gmail.comwrote: Korny, Slamhound does some of what you're talking about, but not as an editor extension, https://github.com/technomancy/slamhound On Sat, Mar 23, 2013 at 6:58

Re: let-timed macro...any suggestions/corrections?

2013-03-23 Thread Stephen Compall
On Sat, 2013-03-23 at 13:09 +, Jim - FooBar(); wrote: results (map #(list 'time (second %)) parts)] ;;don't time at compile-time, just build the timing expression for later use (let [time 4] (let-timed [what 8] (+ time what))) This expression should evaluate to 12. --

Re: [ANN] Pedestal Application Framework

2013-03-23 Thread Michael Klishin
2013/3/24 Sean Corfield seancorfi...@gmail.com Contributor Agreements were available for signing at Clojure/West so I'm guessing it will be under the same process as Clojure itself... They have electronic CA: http://pedestal.io/#contribute My question is about pull requests, not the CA. --