Re: run-jetty not working in a virtualbox vm?

2013-07-13 Thread Daniel Higginbotham
Hmm, I tried using :join? true and that didn't seem to solve the problem. I was doing that so that I could start the server in a repl if I wanted to and still use the repl. On Friday, July 12, 2013 10:29:04 PM UTC-4, Gareth Jones wrote: Just to check - you have set :join? false so the thread

Re: run-jetty not working in a virtualbox vm?

2013-07-13 Thread Mark Nutter
Not sure, but netstat -lanp as root might get you a more comprehensive port listing. Sounds like you have a process still holding on to the port somehow. As a last resort there's always killall java. On Sat, Jul 13, 2013 at 7:27 AM, Daniel Higginbotham nonrecurs...@gmail.com wrote: Hmm, I

[ANN]: Introducing lein-try

2013-07-13 Thread Ryan Neufeld
Hey folks, Don't you hate it when someone releases a cool new library and you have to go into a project and add an unwanted dependency just to try it out? Worse, maybe you decide to 'lein new delete-me' and add it there. No more! Stop this madness. Use lein-try to quickly launch a REPL with

Re: run-jetty not working in a virtualbox vm?

2013-07-13 Thread Haim Ashkenazi
Hi Sorry if it's obvious, but I don't know your skill level (system administration wise). On one terminal ssh to the virtual box vm, start the repl and run jetty as above. On a different terminal ssh to the same virtual box vm and run: curl -v http://localhost:8080/ What do you get? Haim On

Re: run-jetty not working in a virtualbox vm?

2013-07-13 Thread Daniel Higginbotham
Thanks Haim, I was getting couldn't connect to host when I tried curl. I've gone ahead and rebuilt the server and now everything appears to be working. Thanks everyone! On Saturday, July 13, 2013 10:26:40 AM UTC-4, babysnakes wrote: Hi Sorry if it's obvious, but I don't know your skill

Re: Core Logic Reference Documentation

2013-07-13 Thread Benjamin Peter
Hello, On Thu, Jul 11, 2013 at 1:06 PM, Benjamin Peter benjam...@arcor.dejavascript: wrote: I went through the clojure core logic code and picked the functions I though that might go into the cheat sheet. The groups are pretty much defined by the code comments left by David and co.

Re: [ANN]: Introducing lein-try

2013-07-13 Thread xumingmingv
cool! 发自我的 iPhone 在 2013-7-13,21:56,Ryan Neufeld r...@thinkrelevance.com 写道: Hey folks, Don't you hate it when someone releases a cool new library and you have to go into a project and add an unwanted dependency just to try it out? Worse, maybe you decide to 'lein new delete-me' and add

Re: [ANN]: Introducing lein-try

2013-07-13 Thread Brandon Bloom
This is awesome! I've totally wanted this. Unfortunately, I can't get it to work... ~ $ lein try '[clj-time 0.5.1]' nREPL server started on port 61689 REPL-y 0.1.10 Clojure 1.5.1 Exit: Control+D or (exit) or (quit) Commands: (user/help) Docs: (doc function-name-here) (find-doc

Re: [ANN]: Introducing lein-try

2013-07-13 Thread Steven Degutis
It looks like you're not supposed to quote the arguments you pass it. On Sat, Jul 13, 2013 at 11:27 AM, Brandon Bloom brandon.d.bl...@gmail.comwrote: This is awesome! I've totally wanted this. Unfortunately, I can't get it to work... ~ $ lein try '[clj-time 0.5.1]' nREPL server started on

Re: [ANN]: Introducing lein-try

2013-07-13 Thread Brandon Bloom
Odd. I just assumed that the arguments were being joined by spaces, then clojure.core/read, rather than parsed as individual arguments. Not all of us use Bash... square brackets are used for special patterns in Zsh. Without quotes, the arguments are being interpreted in this way: lein try

Re: [ANN]: Introducing lein-try

2013-07-13 Thread Steven Degutis
I think it also works with just: lein try clj-time 0.5.1, no quotes, no brackets. On Sat, Jul 13, 2013 at 11:54 AM, Brandon Bloom brandon.d.bl...@gmail.comwrote: Odd. I just assumed that the arguments were being joined by spaces, then clojure.core/read, rather than parsed as individual

Re: [ANN]: Introducing lein-try

2013-07-13 Thread Sean Corfield
This seems to work beautifully outside a project - and it's very useful! I will no longer need to create a million scratch projects to try stuff out - thank you! However, inside a project, I can't get it to work. (! 501)- cd clojure (! 502)- lein try hiccup 1.0.2 nREPL server started on port

Re: [ANN]: Introducing lein-try

2013-07-13 Thread Daniel Dinnyes
Well, that's the most convenient way it should work anyway, just a list of key, value, key, value, key, value argument list. Easy to implement. Accepting brackets is criminal. On Saturday, July 13, 2013 6:13:21 PM UTC+1, Steven Degutis wrote: I think it also works with just: lein try clj-time

Re: [ANN]: Introducing lein-try

2013-07-13 Thread Daniel Dinnyes
Looks promising though. Pomegranate is significantly more complex, and I could never remember the name of the function which dynamically loads the libs. On Sunday, July 14, 2013 12:55:55 AM UTC+1, Daniel Dinnyes wrote: Well, that's the most convenient way it should work anyway, just a list of

Re: The case for as- (as-last)

2013-07-13 Thread Greg
Oh happy day! :-D Today I was looking at some clojure code on using core.async with ClojureScript [1], and the example used this strange as- expression that I'd never seen before (I'm from the 1.2 era, just getting back into the Clojure game), and I was trying to figure out what the heck this

Re: [ANN]: Introducing lein-try

2013-07-13 Thread Daniel Dinnyes
Also, I would call it repl-deps or repl-with-deps. Not as short, but who knows, maybe later on it will be merged into `repl` as some option argument; such naming would support that intention. It is more descriptive too. When I first saw the post I thought `lein try` will be about testing

Re: -- macro proposal

2013-07-13 Thread Greg
This email just in case any Googler's stumble across this thread searching for a generalized threading macro (and a happy conclusion to it). Googling for examples on this macro was very difficult in my experience, so maybe this might help someone. As I found out via the The case for as-

Re: -- macro proposal

2013-07-13 Thread Daniel Dinnyes
Hiya, There the main arguments are 99% of the times the first or the last ones. So - or - will work. Just made a quick search on `main arguments` on both Google and Wikipedia. Do you mean the arguments in `public static void main (String[] args)`? If not please provide some definition what

S-s-s-serious performance bug with `map` laziness

2013-07-13 Thread Daniel Dinnyes
Hiya, check this code out guys: (defn point [x y] (println x: x y: y) [x y]) (defn gen-data [n m] (for [i (range n)] (for [j (range m)] (point i j (def data (apply concat (gen-data 100 100))) (nth data 5) The output was the following: x: 0 y: 0 x: 0 y: 1 x: 0 y: 2

Re: S-s-s-serious performance bug with `map` laziness

2013-07-13 Thread Daniel Dinnyes
Seems these guys below have the same problem, and everyone thinks it is `apply` or `concat` to blame. One of the answerer even explains how apply is the issue, but in the reimplemented version of `mapcat` beside throwing out `apply` he does not use `map` either:

Re: [ANN]: Introducing lein-try

2013-07-13 Thread Ryan Neufeld
It looks like you tried to use hiccup.ocre instead of core -- -- 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: [ANN]: Introducing lein-try

2013-07-13 Thread Ryan Neufeld
I use zsh too and have to prefix commands with noglob. Additional robustness and caveats documentation will be necessary. Pull requests welcomed. -- -- You received this message because you are subscribed to the Google Groups Clojure group. To post to this group, send email to

Re: -- macro proposal

2013-07-13 Thread Daniel Dinnyes
Hey guys, I just came up with some good shit, check this out! (defmacro - ([x] x) ([x alias form] `(let [~alias ~x] ~form)) ([x alias form more] (let [y `(- ~x ~alias ~form)] `(- ~y ~@more (- test-string-with-lots-of-dashes x (s/split x #-) y

Re: S-s-s-serious performance bug with `map` laziness

2013-07-13 Thread Andy Fingerhut
I believe that what you are seeing, with up to 32 more elements being evaluated than is necessary to execute your code, is due precisely to chunked sequences, as returned by (range n), preserved by map, and I believe also for, doseq, and other Clojure functions and macros. Chunked sequences can

Re: [ANN]: Introducing lein-try

2013-07-13 Thread Sean Corfield
It doesn't work when I spell it correctly either (and I had done several tests - but of course the results of misspelling it look the same as it not working - and it's indicative of my day that I pasted the result of a bad test! :) C:\Users\Sean\clojurelein new five ... C:\Users\Sean\clojurecd