Re: Leiningen 2.0.0-preview1

2012-03-09 Thread kjeldahl
Another problem. I have a ":repl-init myproj.something" in project.clj . Using "lein repl", that namespace gets pulled in just fine, but not when I do a "lein2 repl". Any idea why? Looks like it does not even try to load the namespace until I pull it in inside the repl manually. Thanks, Marius K.

Re: Clojure in Emacs Seemingly Impossible

2011-09-11 Thread kjeldahl
My recollection of how cake did it was probably wrong. As for how I would like to have it, I would like to have all output from all threads appear in the emacs repl buffer, similar to how it behaves in "console" mode, and that is what I haven't figured out how to do or found any workaround for, ex

Re: Clojure in Emacs Seemingly Impossible

2011-09-11 Thread kjeldahl
hey way I would expect. I wrote more details about it in the following post to this list: http://groups.google.com/group/clojure/browse_thread/thread/55849f0296530de8/9f2ca18530a4e28c?lnk=gst&q=kjeldahl#9f2ca18530a4e28c I'm no expert, but if I had to choose between getting all output i

Re: Clojure in Emacs Seemingly Impossible

2011-09-11 Thread kjeldahl
Yes, I had better success with cake (when I used it). But with the lein setup, I believe most of it goes into a swank buffer of some sort, which also contain a lot of other (non-related) output, and exactly where in that buffer it also ends up seems a bit undeterministic. But again, just my experie

Re: Clojure in Emacs Seemingly Impossible

2011-09-11 Thread kjeldahl
I use Emacs for virtually everything, but have found that Emacs +Clojure is less than idea when working with multiple threads (like hosting and running a Jetty server). I believe this is mostly related to how Java and Emacs+Slime handles input/output redirection. I went crazy trying to figure out w

Re: Trouble embedding clojurescript in server application

2011-08-17 Thread kjeldahl
I have another data point to add to my testing regarding this problem. Defining a pretty minimal little clojure test program: (ns cljstest.main (:require [cljs.closure :as closure])) (defn -main [& m] (closure/build "src/mycljs/hello.cljs" {:optimizations :simple

Re: Trouble embedding clojurescript in server application

2011-08-16 Thread kjeldahl
Thank you for confirming this. Hopefully the clojurescript gods will figure it out, because I'm still clueless. Until then I'll either create manual "buildscripts" or stick with the current coffeescript client. Thanks, Marius K. On Aug 16, 3:17 am, deduktion wrote: > I can confirm the problem.

Re: Trouble embedding clojurescript in server application

2011-08-15 Thread kjeldahl
cljs) on startup. ibdknox' compiled package which works can be downloaded from my server on: http://kjeldahl.net/myapp.zip Thanks, Marius K. On Aug 14, 12:13 pm, kjeldahl wrote: > I've tried getting clojurescript to run in both my own application, > and also tested gett

Trouble embedding clojurescript in server application

2011-08-14 Thread kjeldahl
I've tried getting clojurescript to run in both my own application, and also tested getting it embedded using noir and noir-cljs, but I'm not having much luck. Essentially, whenever the build method gets called, clojurescript outputs the following errors (except for the line starting with "src-dir"

Leiningen, repl-init issue, "lein repl" vs "emacs clojure-jack-in"

2011-08-01 Thread kjeldahl
I'm seeing a difference of behaviour. I've got a "repl.helper" module that I pull in using Leiningen's ":repl-init" key in project.clj . If the last line in my "repl.helper" module tries to switch to the "repl.helper" (or any other I believe), then it works in a "lein repl" setup, but does not work

Re: ClojureScript url path confusion

2011-07-28 Thread kjeldahl
Following up on my own confusion, I'll contribute some comments about potential improvements to either the ClojureScript compiler itself, or documentation about it's usage in development mode, where everything is not stuffed into one single js file. First of all, the options to the compiler. I'll

ClojureScript url path confusion

2011-07-27 Thread kjeldahl
I've set up my ring/jetty based application to dynamically compile any updated clojurescript source files, similar to the clojurescript devenv package recently announced. I'm having some trouble getting the paths correct though. My toplevel directory looks like this: mysoft srv src srv

Emacs, swank, leiningen repl-init and output to *out* getting lost...

2011-07-27 Thread kjeldahl
If that subject did not scare you off already you might be the right person to comment. To set the scene, I'm writing an application with an embedded web server (using ring and jetty), and my srv.core module has a log function defined as: (let [repl-out *out*] (defn log [msg & vals] (

clojurescript patches

2011-07-24 Thread kjeldahl
I've got a small patch that I would like to contribute (simple stuff, figures out the correct classpath for repljs and cljsc), but I can't find any "issues" link on github. Am I required to fork clojurescript and request a pull to contribute patches, or does clojurescript use another issue tracker

Re: ClojureScript announcement video

2011-07-22 Thread kjeldahl
Maybe I'm just having connectivity issues today, but I had lots of trouble getting anything from that link (endless spinner). I had more luck with this link (which is to the same video): http://blip.tv/play/AYLJyC4C . On Jul 22, 5:34 am, Chouser wrote: > Video is now available of Rich Hickey's ta

Re: clojure-clr - getting started on Windows WPF

2011-04-14 Thread Marius Kjeldahl
FWIW, I did a small writeup of my first encounter with clojure-clr at: http://kjeldahl.net/d7/clojure-clr-first-encounter Thanks, Marius K. On 04/14/2011 09:04 AM, Marius Kjeldahl wrote: On 04/14/2011 05:52 AM, dmiller wrote: > Reloading will definitely cause a problem. > ... >

Re: clojure-clr - getting started on Windows WPF

2011-04-14 Thread Marius Kjeldahl
On 04/14/2011 05:52 AM, dmiller wrote: > Reloading will definitely cause a problem. > ... > I don't know why you'd need the app atom since you can just use > Application/Current. Similarly, you could check Application/Current > before doing (Application.) In theory, that all sounds easy, but I h

Re: clojure-clr - getting started on Windows WPF

2011-04-13 Thread kjeldahl
Following up on my own subject, I've created an updated gist to run on recent builds of clojure-clr (1.3.0-master-SNAPSHOT) based on another gist I found. It's not the prettiest of code I've found, but I guess CLR's abstractions and threading models can be blamed for a lot of it. What's more annoy

clojure-clr - getting started on Windows WPF

2011-04-01 Thread kjeldahl
I'm toying around with clojure-clr, and it seems to work great. But getting started is a bit challenging to say the least (which may very well be because of me beeing rookie with .net/clr as well). Anyway, I've managed to find an example using the Windows Forms API, a simple hello world example: (

Looking for feedback on article about interactive programming / REPL

2010-09-20 Thread Thomas Kjeldahl Nilsson
looked! The article (+ some videos) can be found here: http://messynotebook.com/?p=1496 (The current version of the text starts out using JavaScript and Ruby as examples, then moves on to Clojure.) cheers, Thomas Kjeldahl Nilsson -- You received this message because you are subscribed to the Go

Re: Getting Clojure into the workplace, how do you do it?

2010-07-06 Thread Thomas Kjeldahl Nilsson
arly on in promising young languages/platforms. ("high risk, high reward"). -- Med vennlig hilsen Thomas Kjeldahl Nilsson http://kjeldahlnilsson.net On Tue, Jul 6, 2010 at 10:50 AM, Nick Mudge wrote: > One of the things I like about Clojure is it is a way to get lisp and > functional

Re: Java3d and clojure?

2010-07-06 Thread Thomas Kjeldahl Nilsson
jure/Penumbra port of the Nehe opengl tutorials, that should give you enough examples to get started. http://github.com/swannodette/clj-nehe -- Regards, Thomas Kjeldahl Nilsson http://kjeldahlnilsson.net On Tue, Jul 6, 2010 at 9:58 AM, Heinz N. Gies wrote: > Greetings my lispy friends, > s

Re: Mac Emacs users: which version do you prefer (Aquamacs, Carbon Emacs, other?)

2010-06-13 Thread Thomas Kjeldahl Nilsson
Weird - I installed the Cocoa build last night, and got everything set up via elpa including swank-clojure. Some local problem? Regards, Thomas Kjeldahl Nilsson On Sun, Jun 13, 2010 at 2:02 AM, Rob Lachlan wrote: > I agree that the cocoa builds are the nicest.  But there is one > proble

Mac Emacs users: which version do you prefer (Aquamacs, Carbon Emacs, other?)

2010-06-12 Thread Thomas Kjeldahl Nilsson
ative distributions. :) Regards, Thomas Kjeldahl Nilsson http://kjeldahlnilsson.net -- 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 - pl

Re: Most elegant way of comparing vectors?

2010-05-19 Thread Thomas Kjeldahl Nilsson
Nice! Thank you both for the simple answer. Again I find that I overcomplicate things in Clojure. :) -thomas On Wed, May 19, 2010 at 1:14 PM, Laurent PETIT wrote: > 2010/5/19 Thomas Kjeldahl Nilsson : >> Hello, newbie question here. :) >> >> I'm writing a Tetris ga

Most elegant way of comparing vectors?

2010-05-19 Thread Thomas Kjeldahl Nilsson
straight-forward way is write a function which steps through the two matrices simultaneously, comparing corresponding elements one by one. My question: is there a more elegant way of determining equivalence of collection structures like these in Clojure? -- Cheers, Thomas Kjeldahl Nilsson http:/

I wrote a tiny autotest tool in Clojure. Find the flaws!

2010-05-10 Thread Thomas Kjeldahl Nilsson
Hello, So I guess I'm piling onto the "please help a novice" threads here.. :) I've written a trivial autotest tool to make my feedback cycles as short as possible while learning and coding Clojure. I've only worked through Stuarts (excellent) book so far, so this is the first thing I'm writing m

Introduction + question re. diff between 'Programming Clojure'

2010-03-23 Thread Thomas Kjeldahl Nilsson
t go through the book as-is, or should I first be aware of major changes (since the book was published)? If so, how do you recommend that a beginner like myself learn current idioms and state of the language in general? -- Regards, Thomas Kjeldahl Nilsson http://kjeldahlnilsson.net -- Y