Re: ClojureScript: catching all javascript exceptions
In past I used (goog.debug.ErrorReporter/installlogError) It worked great. HTH, Hubert. Steve Buikhuizen wrote: No problem. On the client (cljs) you should: 1. require [goog.debug.ErrorReporter :as reporter] 2. (reporter/install/er) On the server (I'm using Noir which supplies defpage) (defpage [:post /er] {:keys [error line script trace]} (service/record-client-error error line script trace) (strACK)) where record-client-error is a function you create that does whatever you want it to do e.g. save to a database, log using log4j or send to an aggregator e.g. Loggly I know this is still pretty brief. If you want more detail, just say which part is not clear - I'll happily elaborate -- 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 group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en -- 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 group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en
Re: after a few days, my app dies -- how should I diagnose?
If you run your process in screen/tmux it will be attached to active TTY, it will not receive HUP signal. Also if there would be important (any?) output from process you will see it in tmux/screen. So either nohup it or run it in session that doesn't terminate after you exit. HTH, Hubert. larry google groups wrote: I would be happy to run it in screen but I don't understand what the advantage is. I can redirect the output to a log, without using screen, and I can automate restarts with something like Puppet or Supervisor. What do I need screen for? On Tuesday, October 23, 2012 7:37:03 AM UTC-4, Hubert Iwaniuk wrote: Not sure if that is a case but could your run your software in some long running shell like tmux or screen. You redirected all standard file descriptors, so it should not be a problem, but it is worth a try. HTH, Hubert. AtKaaZ wrote: You could save the std out and err to some .log and can inspect it later, I'd expect you'd see some exceptions if any were thrown. who-is-logged-in-1.0.1-standalone.jar 4 /dev/null stdouterr.log On Tue, Oct 23, 2012 at 12:12 AM, Michael Klishin michael@gmail.com javascript: wrote: 2012/10/23 larry google groups lawrenc...@gmail.com javascript: If memory is not the problem, what other problems should I look for? Unhandled exceptions, although in the case of a Web app, Jetty and similar should cover last resort exception handling that will prevent main JVM thread from terminating. -- MK http://github.com/michaelklishin http://github.com/michaelklishin http://twitter.com/michaelklishin http://twitter.com/michaelklishin -- You received this message because you are subscribed to the Google Groups Clojure group. To post to this group, send email to clo...@googlegroups.com javascript: Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+u...@googlegroups.com javascript: For more options, visit this group at http://groups.google.com/group/clojure?hl=en http://groups.google.com/group/clojure?hl=en -- I may be wrong or incomplete. Please express any corrections / additions, they are encouraged and appreciated. At least one entity is bound to be transformed if you do ;) -- You received this message because you are subscribed to the Google Groups Clojure group. To post to this group, send email to clo...@googlegroups.com javascript: Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+u...@googlegroups.com javascript: For more options, visit this group at http://groups.google.com/group/clojure?hl=en http://groups.google.com/group/clojure?hl=en -- 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 group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en -- 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 group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en
Re: after a few days, my app dies -- how should I diagnose?
Not sure if that is a case but could your run your software in some long running shell like tmux or screen. You redirected all standard file descriptors, so it should not be a problem, but it is worth a try. HTH, Hubert. AtKaaZ wrote: You could save the std out and err to some .log and can inspect it later, I'd expect you'd see some exceptions if any were thrown. who-is-logged-in-1.0.1-standalone.jar 4 /dev/null stdouterr.log On Tue, Oct 23, 2012 at 12:12 AM, Michael Klishin michael.s.klis...@gmail.com mailto:michael.s.klis...@gmail.com wrote: 2012/10/23 larry google groups lawrencecloj...@gmail.com mailto:lawrencecloj...@gmail.com If memory is not the problem, what other problems should I look for? Unhandled exceptions, although in the case of a Web app, Jetty and similar should cover last resort exception handling that will prevent main JVM thread from terminating. -- MK http://github.com/michaelklishin http://twitter.com/michaelklishin -- 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 mailto:clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com mailto:clojure%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en -- I may be wrong or incomplete. Please express any corrections / additions, they are encouraged and appreciated. At least one entity is bound to be transformed if you do ;) -- 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 group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en -- 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 group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en
Re: Q about eval-and-print function in clojurescript's cljs.repl (repl.clj)
If you look at cljs counterpart of it you'll see that maps are send as responses, that is why read-string is used. HTH Frank Siebenlist wrote: Sorry - I've answered part of my own Q by reading the read-string doc… nothing is eval'ed of the result - just the first object is read. Still unclear why read-string is used - why would a second object be discarded? Like: user= (read-string (+ 1 2) (- 3 2)) (+ 1 2) Still confused... -FS. On Sep 18, 2012, at 11:51 PM, Frank Siebenlistfrank.siebenl...@gmail.com wrote: I'm trying to understand the clojurescript-code of the repl functionality, and I'm confused… The following cljs.repl/eval-and-print function takes a cljs-form, compiles it, sends it to the browser as javascript, and then receives the result, and the… try's to use read-string on that return value: --- (defn- eval-and-print [repl-env env form] (let [ret (evaluate-form repl-env (assoc env :ns (ana/get-namespace ana/*cljs-ns*)) cljs repl form (wrap-fn form))] (try (prn (read-string ret)) (catch Exception e (if (string? ret) (println ret) (prn nil)) --- Why does it call read-string on the returned result from the js-eval? The eval'ed compiled javascript could result in a clojure-form that would be eval'ed on the return (???), and the result of the latter is then printed. Confusingly yours, FrankS. -- 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 group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en
Re: Browser as an Evaluation Environment error
Clue here is file:/// protocol. REPL will not work with mixed protocols, if you go to http://localhost:9000/ it will not refer to file:/// HTH, Hubert. goracio wrote: well manual says Once the REPL has started, you will see the message Starting server on port 9000. At this point, open the html page by going to http://localhost:9000 to complete the connection. Once the page is open and the connection is made, the REPL prompt will be displayed. Any way opened html page and get these errors in chrome Failed to load resource file:///home/bob/cljproj/hello-world/resources/public/deps.js Uncaught Error: URI file:/robots.txt is invalid for field ppu repl:1206 http://localhost:9000/repl?xpc=%7B%22cn%22%3A%22A2ZSJ4Cm9m%22%2C%22tp%22%3Anull%2C%22ppu%22%3A%22file%3A%2Frobots.txt%22%2C%22lpu%22%3A%22http%3A%2F%2Flocalhost%3A9000%2Frobots.txt%22%7D and firefox firebug shows this 12:19:50.653 log:CrossPageChannel created: 5f3T9OECHu 12:19:50.656 log:connect() deferred 12:19:50.678 log:peer iframe created (xpcpeerX80r) 12:19:50.679 log:connect() 12:19:50.681 log:Transport created: NativeMessagingTransport Error: URI file:/robots.txt is invalid for field ppu http://localhost:9000/repl?xpc=%7B%22cn%22%3A%22Iz3VclBCyY%22%2C%22tp%22%3Anull%2C%22ppu%22%3A%22file%3A%2Frobots.txt%22%2C%22lpu%22%3A%22http%3A%2F%2Flocalhost%3A9000%2Frobots.txt%22%7D понедельник, 10 сентября 2012 г., 11:58:57 UTC+4 пользователь Gijs S. написал: I once ran into this error message when I entered the address http://localhost:9000/repl; into the address bar of the browser by mistake. This address should only be used in ClojureScript code. You should open a page in the browser that contains compiled ClojureScript that connects to this address. When you follow the steps at https://github.com/clojure/clojurescript/wiki/The-REPL-and-Evaluation-Environments https://github.com/clojure/clojurescript/wiki/The-REPL-and-Evaluation-Environments you should have a foo.cljs, foo.js and index.html file. Open the index.html file in your browser to connect the browserrepl. -- 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 group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en -- 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 group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en
ClojureScript, Chrome Extension and BrowserREPL
Hello Everyone, Did anyone managed to get BrowserREPL running within Chrome Extension? I'm having hard time getting it up. Basically what happens for me is CrossPageChannel communication initialization failure both from content script and background. content_script: Uncaught Error: CrossPageChannel: Can't connect, peer window-object not set. background: Uncaught Error: URI chrome-extension://mkifioecnlocipnafdcihlojkpeknfcf/robots.txt is invalid for field ppu Could anyone enlighten me why we need CrossPageChannel here? I can make connections to localhost from extension no problem, so if CPC would not be total necessity, there is hope to get repl in some form for Chrome Extension development. Thanks in advance, Hubert -- 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 group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en
Re: ClojureScript, Chrome Extension and BrowserREPL
Hi David, Do you know rationale for using CrossPageChannel? If that could be removed it would simplify BrowserREPL a lot, and would already unlock Chrome Extension. Cheers, Hubert. David Nolen mailto:dnolen.li...@gmail.com July 17, 2012 6:15 PM CrossPageChannel does not work unless the page is be properly served over HTTP from what I can tell. Which won't be the case here. Patch welcome for supporting other BrowserREPL transports that don't have this issue. David Hubert Iwaniuk mailto:neo...@kungfoo.pl July 17, 2012 5:22 PM Hello Everyone, Did anyone managed to get BrowserREPL running within Chrome Extension? I'm having hard time getting it up. Basically what happens for me is CrossPageChannel communication initialization failure both from content script and background. content_script: Uncaught Error: CrossPageChannel: Can't connect, peer window-object not set. background: Uncaught Error: URI chrome-extension://mkifioecnlocipnafdcihlojkpeknfcf/robots.txt is invalid for field ppu Could anyone enlighten me why we need CrossPageChannel here? I can make connections to localhost from extension no problem, so if CPC would not be total necessity, there is hope to get repl in some form for Chrome Extension development. Thanks in advance, Hubert -- 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 group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=eninline: postbox-contact.jpginline: postbox-contact.jpg
Re: docstrings of if-let and when-let incorrect
I tried using if-let with multiple binding in past as well. Following least surprise principle, I would like to see support for multiple bindings. Cheers, Hubert. Vinzent mailto:ru.vinz...@gmail.com May 15, 2012 5:47 PM Or maybe if-let and when-let should support multiple bindings, like the doc states. воскресенье, 13 мая 2012 г., 4:55:40 UTC+6 пользователь Borkdude написал: -- 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 group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en Borkdude mailto:michielbork...@gmail.com May 13, 2012 12:55 AM The docstring of if-let is as follows: bindings = binding-form test If test is true, evaluates then with binding-form bound to the value of test, if not, yields else I think it should be mentioned in the docs that if-let and when-let support only /one binding/, not multiple bindings (like for example https://www.refheap.com/paste/2700). Kind regards, Michiel -- 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 group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en -- 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 group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=eninline: compose-unknown-contact.jpginline: postbox-contact.jpg
Re: Looking to help out with an open source project...
IMHO it is crucial that you contribute to project that you personally find interesting. So I would suggest to follow with learning and most likely you will find a project you want to contribute to. Enjoy, Hubert On Thu, Mar 1, 2012 at 4:46 AM, Sam Garrett samdgarr...@gmail.com wrote: Hello google Clojure group. I'm fairly new to clojure but what I've used and implemented so far has been quite interesting. So I was wondering if anyone knew of/or has some open source projects written in Clojure that I could get involved in and help out, preferably something small as this will be my first involvement in open source. My day job is mostly using jquery and javascript for UI work so that's where my expertise lies but anyway I'm looking to improve and help out. Thanks for reading and I look forward to helping out! -- 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 group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en -- 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 group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en
Re: Clojurescript One and Websockets
IIRC WebSocket support was not yet released in Google Closure Library. You will need to run against development version of closure-library. For project using it check out: https://github.com/neotyk/ws-cljs/ and live demo: http://lab01.kungfoo.pl:8108/ Cheers, Hubert On Fri, Mar 2, 2012 at 4:51 AM, Brian Rowe bripr...@gmail.com wrote: Hi, I'm thinking about using clojurescript one a starting point for a web game. I would like to use websockets as the primary communication mechanism between the browser and the server. As far as I know Zack Tellman's Aleph is the only clojure web server that supports websockets. Is this true? If so, are there any guides showing how to modify clojurescript one to use Aleph? If there are no guides, how much work would it take to modify cljs one to use aleph? Thanks! -- 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 group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en -- 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 group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en
[ANN] http.async.client v0.4.1 realeased
http.async.client is Asynchronous HTTP Client for Clojure and just got v0.4.1 release. This release is mainly community contributions. Code: http://github.com/neotyk/http.async.client Docs: http://neotyk.github.com/http.async.client/ Changelog: http://neotyk.github.com/http.async.client/changelog.html Clojars: http://clojars.org/http.async.clietn This release features: 1 Upgrade AHC to 1.7.0 2 Issues #26, #27, #28 3 Improved logging 4 Tested against Clojure 1.4.0-beta1 Thank you for contributions: Justin Kramer, Brian Tatnall and Karsten Lang. Hope you enjoy it, Hubert -- 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 group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en
Re: Colliding hashes
Should we watch the whole video to see what you mean? At what time is it important? Cheers, Hubert On Sat, Dec 31, 2011 at 1:39 PM, Brian Mosley brian.d.mos...@gmail.com wrote: Saw this in a scala mailing list thread: http://www.youtube.com/watch?v=R2Cq3CLI6H8 Should the clojure hash be fixed? -- 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 group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en -- 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 group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en
[ANN] http.async.client v0.4.0
http.async.client is Asynchronous HTTP Client for Clojure and just got v0.4.0 release. Code: http://github.com/neotyk/http.async.client Docs: http://neotyk.github.com/http.async.client/ Changelog: http://neotyk.github.com/http.async.client/changelog.html Clojars: http://clojars.org/http.async.client This release features: 1 Clojure 1.3 compatible 2 Support for multiple values for same key (QString) 3 Clojure contrib independence 4 Upgrade async-http-client to v1.6.5 Hope you enjoy it and Happy New Year! Hubert -- 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 group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en
Re: Really loving Clooj but..
Just add (println min) before if-let and you will see what is happening. Hubert. On Thu, Dec 29, 2011 at 10:23 PM, Erlis Vidal er...@erlisvidal.com wrote: Hi guys, I've using Clooj and following the labrepl but I'm hitting a wall right now. How can I debug here? This the code I want to debug (defn min-1 [x more] (loop [min x more (seq more)] (if-let [x (first more)] (recur (if ( x min) x min) (next more)) min))) This is suppose to return the min value but it's not, It's returning me the same sequence I'm passing: student.dialect= (min-1 [1 2 3]) [1 2 3] Even if you find the problem, don't forget to let me know how can I debug here, so I can do it the next time Thanks Erlis -- 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 group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en -- 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 group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en
Re: Which autodoc dep for clojure 1.3 (and advice on how to solve such questions generally)
Hi Phil, With Leiningen 1.6.1.1 on Java 1.6.0_26 Java HotSpot(TM) 64-Bit Server VM executing: $ lein plugin install audodoc 0.7.1 fails advising to download artifact by hand. Though searching for it: $ lein search autodoc AND NOT g:org.clojars* Shows line with: [autodoc 0.7.1] A tool to build HTML documentation from your Clojure source Could it be that somehow metadata is not in sync with content of repository? Currently I'm not able to get autodoc running at all :( Cheers, Hubert. Phil Hagelberg wrote: On Wed, Nov 2, 2011 at 2:09 PM, Craig Brozefskycr...@red-bean.com wrote: I am making a project that uses clojure 1.3, and I want to use autodoc, and I'm not sure which dependency line should be in my project.clj. Things like autodoc are usually best installed as user-level plugins, so stick with lein plugin install $FOO $VERSION. To find the right version, usually your best bet is something like: $ lein search autodoc AND NOT g:org.clojars* So, I'm asking for a suggested dep for that, but also I am wondering what is the standard operating procedure for resolving such dependency issues. Is there some Maven black magick I should familiarize myself with in order to list packages and their deps? If you're interested in a full transitive dependency listing, you actually need Maven: $ lein pom mvn dependency:tree I hope to port that to lein at some point as it's fantastically useful. -Phil -- 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 group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en
Re: Please try the alphas and betas!
http://bit.ly/clojure-releases Stuart Halloway wrote: I'd like to second what Bill said...I don't really have the time to setup a clojure build process to test out the 1.4 Alphas/Betas, but if there was a way for me to get to it via lein...I would just target 1.4 for all my day-to-day development. This should work: :repositories [[sonatype-snapshots https://oss.sonatype.org/content/repositories/snapshots/;]] :dependencies [[org.clojure/clojure 1.4.0-master-SNAPSHOT] ...] Is there a way to peg a particular snapshot? If we find that something breaks, we'd want to roll back to a previous version until the problem is fixed. It looks like the maven metadata only has the latest snapshot recorded (I may be wrong... I'm certainly not a Maven guru). -John This is the reason the we release such a large number of alphas and betas, so we have something more reliable than snapshots to peg to. The following search on maven central will show you all the Clojure releases: http://search.maven.org/#search%7Cgav%7C1%7Cg%3A%22org.clojure%22%20AND%20a%3A%22clojure%22 Does anybody know a better link that automatically shows this same info? If not, I will add this link in the wiki. Stu -- 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 group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en
October Amsterdam Clojure
Good news everyone! * tl;dr - http://bit.ly/ams-clj On Wednesday, October 12th Amsterdam Clojurians is organizing October Amsterdam Clojure. Same as last year, we are proud to have a great speaker: Uncle Bob Martin. Sourcesense.com is our proud sponsor and made it possible to host the event in great venue DeZwijger.nl. This year we will have 3 talks: - Cleaner than Java by Cees van Kemenade - Baking a Clojure webapp in 15m by Pepijn de Vos, Hubert Iwaniuk - The Case for Clojure by Uncle Bob Martin Please feel invited and register (we have limited seating) at http://bit.ly/ams-clj Looking forward to meeting you on Wednesday, October 12th, Your hosts. * http://www.youtube.com/watch?v=1D1cap6yETA -- 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 group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en
Re: Why are some Google Closure library files not available in Clojurescript?
Hi Conrad, You can give a try to my fork: https://github.com/neotyk/clojurescript/tree/35-cl-head And vote on a ticket: http://dev.clojure.org/jira/browse/CLJS-35 I'm using local storage as well as websockets. Cheers, Hubert. On Aug 12, 2011, at 8:34 PM, Conrad wrote: In case anyone wants to know what the answer is: goog.storage was added with closure library revision 888, but the version used in clojurescript is revision 790. This is because Google hasn't released any pre-packaged versions of the closure library since March. On Aug 12, 1:47 pm, Conrad drc...@gmail.com wrote: Hi everyone- I'm loving clojurescript and am trying to create a test app with it. This test app was going to use goog.storage, but for some reason this library doesn't appear to be available when I install clojurescript (unlike goog.dom, goog.events, etc. which work fine) You can see this library listed in the Google Closure docs:http://closure-library.googlecode.com/svn/docs/index.html For some reason, when I bootstrap clojurescript as per Rich's instructions this library is missing (i.e. I'm missing the directory ~/clojurescript/closure/library/closure/goog/storage) One guess I have as to why this is missing is that clojurescript isn't installing the latest version of the closure library, since goog.storage appears to be a more recent addition. Does anyone know if this is the reason for my issue? Is there any way I can safely update the version of the closure library? If the closure library is out of date on purpose, does anyone know when support of a more recent closure library version is planned? Thanks! Conrad Barski -- 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 group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en -- 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 group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en
Re: Silly Chat: Clojure, ClojureScript and WebSockets
Aleph On Aug 11, 2011, at 11:49 PM, Jimmy wrote: Whats handling the serverside websockets connections? -- 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 group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en -- 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 group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en
Silly Chat: Clojure, ClojureScript and WebSockets
Good news everyone! Here is a sample Clojure ClojureScript application that uses WebSocket for communication. http://lab01.kungfoo.pl:8108/ Source code: https://github.com/neotyk/ws-cljs/ Nothing really fancy, just a POC kind of thing. Cheers, Hubert. P.S. We are hiring in Amsterdam. -- 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 group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en
Re: ClojureScript
Thanks Peter for sharing this. Great workflow! Cheers, Hubert. On Jul 26, 2011, at 6:59 AM, Peter Taoussanis wrote: I would also love to know how you set this up in a little more detail. It really sounds like an excellent approach… Sure: it's not complicated! I'm writing this in a hurry though- so hope it's still clear. Basically I just define a memoized dynamic scripts function that returns a map with a text/javascript Ring response, along with a hash of that response. So something like (def dynamic-scripts (memoize (function [] {:response foobar :hash (make-hash foobar)})) Then I've got a Compojure route configured to serve requests like so: (GET /dynamic-stuff/:hash/scripts.js {} (:response (dynamic- scripts))) This'll just send back the memoized script response anytime a request is made for /dynamic-stuff/whatever/scripts.js The /whatever/ is important since it let's me automatically include the current hash in any script tags in the HTML with URI (str / dynamic-stuff/ (:hash (dynamic-scripts)) /scripts.js). Now all I need to do when I want to tweak the scripts is reevaluate the namespace they're in and it'll re-hash, meaning that all future requests for scripts.js go to the new resource - avoiding any possible caching issues. What I've described so far doesn't necessitate anything ClojureScript. But with ClojureScript, the dynamic-scripts function can be easily modified to produce it's response by compiling ClojureScript source. This is awesome since it means I can keep everything in one environment, and compilation happens automatically any time there is a change to the underlying source. The scripts.js is always optimized, always up-to-date, and always hashed to avoid caching problems. When I want to test a change to the scripts, I just reevaluate the ns then refresh my browser and the changes are live. If there's a major compile-time bug in the scripts, it'll get caught before any changes take affect. BTW if the devs are listening, it'd be nice if cljsc/build could one day also support input/output directly via strings :) That'd make all this absolutely trivial(er). -- Peter -- 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 group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en -- 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 group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en
Running ClojureScrtipt
While tinkering with ClojureScript I've created sample that uses WebSockets to communicate between Clojure and ClojureScript. WebSocket support in closure-library is only in SVN for now, so current bootstrap of ClojureScript will not have it. I've patched bootstrap to get ClojureScript running against HEAD of closure-library. [1] So how crazy dangerous it is to run agains closure-library HEAD? I've created JIRA issue for it CLJ-35 [2]. CA was signed already. Cheers, Hubert. [1] https://github.com/neotyk/clojurescript/tree/closure-library-head [2] http://dev.clojure.org/jira/browse/CLJS-35 -- 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 group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en
Re: ANN: status-codes keyword status codes for compojure
New version is out v0.2 featuring dependency on latest and greatest of compojure and special response code for today. 418 I'm a teapot Cheers, Hubert Iwaniuk. On Mar 31, 2011, at 11:51 PM, Hubert Iwaniuk wrote: status-codes allows you to report HTTP Response Status Codes as keywords like :ok, :accepted and so on. You can find code at github http://github.com/neotyk/status-codes (use 'status-codes) (GET /test _ :accepted) ;; or (PUT /test _ {:headers {Location ..} :status :created}) Enjoy, Hubert Iwaniuk. -- 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 group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en
ANN: status-codes keyword status codes for compojure
status-codes allows you to report HTTP Response Status Codes as keywords like :ok, :accepted and so on. You can find code at github http://github.com/neotyk/status-codes (use 'status-codes) (GET /test _ :accepted) ;; or (PUT /test _ {:headers {Location ..} :status :created}) Enjoy, Hubert Iwaniuk. -- 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 group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en
Re: better error messages smaller stack traces
Hi, Jeff correct me if I'm wrong but I think you are after something along the following lines. Instead: (defn f [x] {:pre [(some-fancy-validation x)]} ..) To have something like this: (defn f [x] {:pre [^{:msg here goes description of what has not been valid} (some-fancy-validation x)]} ..) It could turn precondition to a bit more user-friendly construct. I would also like to have assert-args public. Cheers, Hubert. On Feb 10, 2011, at 8:10 PM, Daniel Werner wrote: On 10 February 2011 17:05, Jeff Rose ros...@gmail.com wrote: Sorry for the reply spam, but I've just remembered another error reporting issue: pre and post conditions. They are a great feature and I'd like to use them more often, but the error messages they produce are virtually useless in comparison to just writing your own check with a custom exception. How about having optional error messages for the conditions? You can make your pre/post condition AssertionErrors more human-readable by factoring out their logic into helper functions: (defn valid-article-id? [art-id] (or (and ( (mod x 42) 3) (frobz x)) (qux x))) (defn buy-article [art-id] {:pre [(valid-article-id? art-id)]} ...) Thus, the AssertionError message will complain about valid-article-id? failing instead of the rather cryptic or and mod. If you need even more flexibility, it is also possible to throw an exception from the helper function. Not pretty, though. That said, I'd really wish for the private clojure.core/assert-args macro to be made public. It's very comfortable to work with and provides for semi-standardized error messages (offending argument name always in front). -- 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 group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en -- 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 group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en
Re: http.async.client v0.2.2 released
Hi Takahiro, Thank you for your feedback. Inline are my answers. On Feb 9, 2011, at 8:13 AM, Takahiro Hozumi wrote: Hi, Thank you for the introduction. Here is my little feed back: 1. I want to see a example using callbacks. Documentation on on callbacks can be found here: http://neotyk.github.com/http.async.client/docs.html#sec-1_3_1_2 Please see tests: status callback: https://github.com/neotyk/http.async.client/blob/master/test/http/async/client/test.clj#L162 headers callback: https://github.com/neotyk/http.async.client/blob/master/test/http/async/client/test.clj#L176 And production code: body part callback: https://github.com/neotyk/http.async.client/blob/master/src/clj/http/async/client.clj#L106 completion and error callbacks: https://github.com/neotyk/http.async.client/blob/master/src/clj/http/async/client.clj#L118 Also take a look at currently provided callback: https://github.com/neotyk/http.async.client/blob/master/src/clj/http/async/client/request.clj#L65 I'll improve documentation and describe callback a bit better. https://github.com/neotyk/http.async.client/issues/labels/Docs#issue/12 Though please comment on it if you would like to see something more to be added there except examples. 2. Is RequestBuilderWrapper.java necessary? Why not simply use RequestBuilder? Unfortunately it is necessary. The way original RequestBuilder uses generics doesn't work with direct Clojure invocations. 3. I prefer reify or defrecord to proxy for performance reason, when implement interface. I've created an issue to replace proxy usage with reify, thank you for the tip. https://github.com/neotyk/http.async.client/issues#issue/13 4. I think hash-map is more suitable rather than cond in convert- method function. +1 https://github.com/neotyk/http.async.client/issues/issue/14 Thanks. Thank you, Hubert. On 2月8日, 午前3:30, Hubert Iwaniuk neo...@kungfoo.pl wrote: Hi All, Just released v0.2.2 of HTTP Asynchronous Client. Featuring following changeloghttp://bit.ly/hc9dxt - get-encoding helper works w/o Content-Type header - upgrade async-http-client to v1.5.0 - exposed more configuration options - zero byte copy mode - allow providing your own poll - allow Asynchronous Connect - fix seq streaming API - lots of performance improvements from async-http-client to v1.5.0 Uploaded to clojarshttp://bit.ly/hVAY8z Documentation is here:http://bit.ly/epmcMw Enjoy fresh release, Hubert. -- 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 group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en -- 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 group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en
Re: http.async.client v0.2.2 released
Hi Las, Glad you like it! What would like to see in upcoming releases of http.async.client? Thank you! Cheers, Hubert. On Feb 9, 2011, at 12:56 PM, László Török wrote: Hi, I've been using http.async.client for my play projects and it seems very promising. Thanks for this awesome library! :) Las 2011/2/9 Hubert Iwaniuk neo...@kungfoo.pl Hi Takahiro, Thank you for your feedback. Inline are my answers. On Feb 9, 2011, at 8:13 AM, Takahiro Hozumi wrote: Hi, Thank you for the introduction. Here is my little feed back: 1. I want to see a example using callbacks. Documentation on on callbacks can be found here: http://neotyk.github.com/http.async.client/docs.html#sec-1_3_1_2 Please see tests: status callback: https://github.com/neotyk/http.async.client/blob/master/test/http/async/client/test.clj#L162 headers callback: https://github.com/neotyk/http.async.client/blob/master/test/http/async/client/test.clj#L176 And production code: body part callback: https://github.com/neotyk/http.async.client/blob/master/src/clj/http/async/client.clj#L106 completion and error callbacks: https://github.com/neotyk/http.async.client/blob/master/src/clj/http/async/client.clj#L118 Also take a look at currently provided callback: https://github.com/neotyk/http.async.client/blob/master/src/clj/http/async/client/request.clj#L65 I'll improve documentation and describe callback a bit better. https://github.com/neotyk/http.async.client/issues/labels/Docs#issue/12 Though please comment on it if you would like to see something more to be added there except examples. 2. Is RequestBuilderWrapper.java necessary? Why not simply use RequestBuilder? Unfortunately it is necessary. The way original RequestBuilder uses generics doesn't work with direct Clojure invocations. 3. I prefer reify or defrecord to proxy for performance reason, when implement interface. I've created an issue to replace proxy usage with reify, thank you for the tip. https://github.com/neotyk/http.async.client/issues#issue/13 4. I think hash-map is more suitable rather than cond in convert- method function. +1 https://github.com/neotyk/http.async.client/issues/issue/14 Thanks. Thank you, Hubert. On 2月8日, 午前3:30, Hubert Iwaniuk neo...@kungfoo.pl wrote: Hi All, Just released v0.2.2 of HTTP Asynchronous Client. Featuring following changeloghttp://bit.ly/hc9dxt - get-encoding helper works w/o Content-Type header - upgrade async-http-client to v1.5.0 - exposed more configuration options - zero byte copy mode - allow providing your own poll - allow Asynchronous Connect - fix seq streaming API - lots of performance improvements from async-http-client to v1.5.0 Uploaded to clojarshttp://bit.ly/hVAY8z Documentation is here:http://bit.ly/epmcMw Enjoy fresh release, Hubert. -- 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 group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en -- 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 group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en -- 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 group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en -- 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 group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en
Re: http.async.client v0.2.2 released
Hi Rob, You need to close the client once you are done with it. Please see Managing http.async.client of manual especially Closing http.async.client http://neotyk.github.com/http.async.client/docs.html#sec-1_2_6_11 HTH, Hubert. On Feb 9, 2011, at 3:29 PM, Rob Wolfe wrote: On 7 Lut, 19:30, Hubert Iwaniuk neo...@kungfoo.pl wrote: Hi All, Just released v0.2.2 of HTTP Asynchronous Client. I have some problem using this library. Having such simple testing program: code (ns test.http (:require [http.async.client :as c])) (defn test-http [] (println start) (let [response (c/GET http://github.com/neotyk/ http.async.client/)] (println await) (c/await response) (println string) (println (c/string response)) (println end))) (defn -main [] (println start-app) (test-http) (println end-app)) /code The output looks as follows: output $ lein run SLF4J: Failed to load class org.slf4j.impl.StaticLoggerBinder. SLF4J: Defaulting to no-operation (NOP) logger implementation SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details. start-app start await string html headtitle301 Moved Permanently/title/head body bgcolor=white centerh1301 Moved Permanently/h1/center hrcenternginx/0.7.67/center /body /html end end-app [...hangs for ever...] /output But this program never ends, just hangs for ever. I thought that it might be Windows issue where I first tried it, but on Linux there is the same problem. Do you have any idea what I'm doing wrong or where might be the problem? My environment looks as follows: $ java -version java version 1.6.0_17 Java(TM) SE Runtime Environment (build 1.6.0_17-b04) Java HotSpot(TM) Client VM (build 14.3-b01, mixed mode, sharing) $ lein version Leiningen 1.4.2 on Java 1.6.0_17 Java HotSpot(TM) Client VM $ ls lib async-http-client-1.5.0.jar clojure-1.2.0.jar clojure- contrib-1.2.0.jar http.async.client-0.2.2.jar netty-3.2.3.Final.jar slf4j-api-1.6.1.jar $ uname -a WindowsNT ww011221 1 5 x86 Br, Rob -- 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 group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en -- 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 group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en
Re: http.async.client v0.2.2 released
Hi Rob, Please see following code: (ns twitter-stream (:require [http.async.client :as c] [org.danlarkin.json :as j])) (def u ...) (def p ...) (defn -main [] (let [resp (c/stream-seq :get http://stream.twitter.com/1/statuses/sample.json; :auth {:user ahcclj :password ahcclj11} :timeout -1)] (doseq [twit-str (c/string resp)] (try (let [twit (j/decode-from-str twit-str) u (get-in twit [:user :screen_name]) t (:text twit)] (if (or (nil? u) (nil? t)) (println Twit not decoded properly: twit) (println u = t))) (catch Exception e (println Failed to parse: twit-str (.getMessage e)) (c/close)) You don't need to create new client. Now that I think of it it probably is a bug that one client is started by default. HTH, Hubert. On Feb 9, 2011, at 4:21 PM, Rob Wolfe wrote: I created another test function like this: code (defn test-http-with-close [] (println start) (binding [*client* (c/create-client)] (let [response (c/GET http://github.com/neotyk/ http.async.client/)] (println await) (c/await response) (println string) (println (c/string response))) (println close) (c/close *client*)) (println end)) /code but it didn't help. Are you using the same java version, clojure version and the same versions of all libraries and it does not hang? There must be something. Br, Robert On 9 Lut, 15:51, Hubert Iwaniuk neo...@kungfoo.pl wrote: Hi Rob, You need to close the client once you are done with it. Please see Managing http.async.client of manual especially Closing http.async.clienthttp://neotyk.github.com/http.async.client/docs.html#sec-1_2_6_11 HTH, Hubert. On Feb 9, 2011, at 3:29 PM, Rob Wolfe wrote: On 7 Lut, 19:30, Hubert Iwaniuk neo...@kungfoo.pl wrote: Hi All, Just released v0.2.2 of HTTP Asynchronous Client. I have some problem using this library. Having such simple testing program: code (ns test.http (:require [http.async.client :as c])) (defn test-http [] (println start) (let [response (c/GET http://github.com/neotyk/ http.async.client/)] (println await) (c/await response) (println string) (println (c/string response)) (println end))) (defn -main [] (println start-app) (test-http) (println end-app)) /code The output looks as follows: output $ lein run SLF4J: Failed to load class org.slf4j.impl.StaticLoggerBinder. SLF4J: Defaulting to no-operation (NOP) logger implementation SLF4J: Seehttp://www.slf4j.org/codes.html#StaticLoggerBinderfor further details. start-app start await string html headtitle301 Moved Permanently/title/head body bgcolor=white centerh1301 Moved Permanently/h1/center hrcenternginx/0.7.67/center /body /html end end-app [...hangs for ever...] /output But this program never ends, just hangs for ever. I thought that it might be Windows issue where I first tried it, but on Linux there is the same problem. Do you have any idea what I'm doing wrong or where might be the problem? My environment looks as follows: $ java -version java version 1.6.0_17 Java(TM) SE Runtime Environment (build 1.6.0_17-b04) Java HotSpot(TM) Client VM (build 14.3-b01, mixed mode, sharing) $ lein version Leiningen 1.4.2 on Java 1.6.0_17 Java HotSpot(TM) Client VM $ ls lib async-http-client-1.5.0.jar clojure-1.2.0.jar clojure- contrib-1.2.0.jar http.async.client-0.2.2.jar netty-3.2.3.Final.jar slf4j-api-1.6.1.jar $ uname -a WindowsNT ww011221 1 5 x86 Br, Rob -- 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 group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en -- 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 group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en -- 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 group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en
[ANN] http.async.client v0.2.2 released
Hi All, Just released v0.2.2 of HTTP Asynchronous Client. Featuring following changelog http://bit.ly/hc9dxt - get-encoding helper works w/o Content-Type header - upgrade async-http-client to v1.5.0 - exposed more configuration options - zero byte copy mode - allow providing your own poll - allow Asynchronous Connect - fix seq streaming API - lots of performance improvements from async-http-client to v1.5.0 Uploaded to clojars http://bit.ly/hVAY8z Documentation is here: http://bit.ly/epmcMw Enjoy fresh release, Hubert. -- 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 group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en
Clojure Job Opening in Amsterdam area
Hi Clojurians, My employer Sourcesense is looking for Clojure Developer to hire/contract in Amsterdam area. Please see opening details http://www.sourcesense.nl/careers/#clj Best regards, Hubert Iwaniuk. -- 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 group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en
Re: problem with stream
Shameless plug: or use http.async.client http://neotyk.github.com/http.async.client/docs.html#sec-1_2_4_1 (let [resp (c/stream-seq :get url)] (doseq [s (string resp)] (println s))) Cheers, Hubert. On Thu, Jan 6, 2011 at 5:34 PM, Aaron Cohen aa...@assonance.org wrote: On Wed, Jan 5, 2011 at 5:13 PM, Ken Wesson kwess...@gmail.com wrote: On Wed, Jan 5, 2011 at 4:40 PM, rainerh rainer.hahnek...@gmail.com wrote: Hello everybody, I'm trying to use clojure to parse web sites. Unfortunately there is some problem with following code (used library is Apache Commons HTTP Client): (defn request [url] (let [client (new org.apache.http.impl.client.DefaultHttpClient)] (with-open [rdr (reader (.getContent (.getEntity (.execute client (new org.apache.http.client.methods.HttpGet url) ] As an aside, the following is an alternate way of writing that intializer: (- client (.execute (org.apache.http.client.methods.HttpGet. url)) .getEntity .getContent reader) -- 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 group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en -- 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 group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en
Re: Knuth's literate programming tangle function in Clojure
Hi Seth, Yes I did play with org-mode + babel for clojure. It works great :-) Just make sure you are using latest and greatest of org-mode. Cheers, Hubert. On Tue, Jan 4, 2011 at 3:34 PM, Seth wbu...@gmail.com wrote: have you guys checked out org-mode + babel for emacs? This would be an excellent place to start to do literate programming. Interesting ideas ... maybe i will try this in my own code ... -- 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 group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en -- 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 group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en
Re: Knuth's literate programming tangle function in Clojure
I would say start here: http://orgmode.org/worg/org-contrib/babel/languages/ob-doc-clojure.html Cheers, Hubert On Tue, Jan 4, 2011 at 4:12 PM, Robert McIntyre r...@mit.edu wrote: Just discovered org-mode myself --- does anyone know of guide to using it with clojure for a total newbie? sincerely, --Robert McIntyre On Tue, Jan 4, 2011 at 9:57 AM, Hubert Iwaniuk neo...@kungfoo.pl wrote: Hi Seth, Yes I did play with org-mode + babel for clojure. It works great :-) Just make sure you are using latest and greatest of org-mode. Cheers, Hubert. On Tue, Jan 4, 2011 at 3:34 PM, Seth wbu...@gmail.com wrote: have you guys checked out org-mode + babel for emacs? This would be an excellent place to start to do literate programming. Interesting ideas ... maybe i will try this in my own code ... -- 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 group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en -- 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 group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en -- 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 group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en -- 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 group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en
Re: is it possible to check if a promise has been delivered to without blocking?
Hi Sunil, Before it gets to clojure.core you could use it like that: http://github.com/neotyk/http.async.client/blob/master/src/http/async/client/util.clj#L21 Cheers, Hubert. On Tue, Sep 14, 2010 at 8:51 AM, Sunil S Nandihalli sunil.nandiha...@gmail.com wrote: Hello Everybody, Let us say I have something like (def s (promise)) . . . . now can I check if the promise hase been delivered .. Thanks Sunil. -- 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 group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en -- 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 group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en
Re: is it possible to check if a promise has been delivered to without blocking?
Glad I could help, Hubert. On Tue, Sep 14, 2010 at 9:39 AM, Sunil S Nandihalli su...@gridpro.com wrote: Thanks Hubert, That is exactly what I was looking for. Sunil. On Tue, Sep 14, 2010 at 12:54 PM, Hubert Iwaniuk neo...@kungfoo.pl wrote: Hi Sunil, Before it gets to clojure.core you could use it like that: http://github.com/neotyk/http.async.client/blob/master/src/http/async/client/util.clj#L21 Cheers, Hubert. On Tue, Sep 14, 2010 at 8:51 AM, Sunil S Nandihalli sunil.nandiha...@gmail.com wrote: Hello Everybody, Let us say I have something like (def s (promise)) . . . . now can I check if the promise hase been delivered .. Thanks Sunil. -- 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 group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en -- 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 group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en -- Sunil S Nandihalli, Manager and Technical Lead, GridPro India Operations, Program Development Co. LLC India Branch Bangalore. ph: 9980520430 -- 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 group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en -- 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 group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en
Re: Does 'require' with the :reload option have a tendency to build up memory?
Have you tried class unloading options of JVM? CMSClassUnloadingEnabled and TraceClassUnloading HTH, Hubert. On Sat, Sep 11, 2010 at 9:19 PM, Rayne disciplera...@gmail.com wrote: As it turns out, this wasn't a memory leak at all. I decided to see if I could max sexpbot's memory out by reloading. I got it to rise around 20-30 megs and then it stabilized and eventually jumped down 10 megs and didn't rise again (gave up 10 reloads later). I don't know how this stuff works, but I suppose maybe the memory just remained reserved or something. GCing does absolutely nothing. For a smaller- scale test, you can just try requiring clojure.java.io or some other namespace about 100-500 times and watch memory while doing so. It'll grow pretty substantially. Anyway, it's doesn't appear to be a real problem at all. -- 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 group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en -- 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 group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en
Re: http.async.client v0.2.0
Thanks Shantanu. I think github is most popular among Clojure projects, so looking at http://github.com/languages/Clojure might help, but there is no structure like java-source.net. Cheers, Hubert On Sat, Sep 11, 2010 at 9:58 AM, Shantanu Kumar kumar.shant...@gmail.com wrote: This is cool. I wonder we should have a central index of Clojure libraries something like this: http://java-source.net/ Regards, Shantanu On Sep 10, 2:14 pm, Hubert Iwaniuk neo...@kungfoo.pl wrote: I'm happy to announce release of http.async.client v0.2.0 an Asynchronous HTTP Client for Clojure. This is wrapper/adapter on top ofhttp://github.com/AsyncHttpClient/async-http-client Project:http://github.com/neotyk/http.async.client/ Documentation:http://neotyk.github.com/http.async.client/ API autodoc:http://neotyk.github.com/http.async.client/autodoc/ Changelog:http://github.com/neotyk/http.async.client/blob/master/changelog.org Simple usage: (ns sample (:require [http.async.client :as c])) (let [response (c/GET http://github.com/neotyk/http.async.client/;)] (c/await response) (c/string response)) Allows you to consume Twitter Streaming API with an ease:http://codemeself.blogspot.com/2010/09/asynchronous-http-client-for-c...http://github.com/neotyk/http.async.client/raw/master/twitter-sample.clj Changes in this release: * HTTP Streams as clojure.core/seq * Cookies support * Authentication support (BASIC and DIGEST) * Proxy per request * Allowed branding User-Agent * Keyworded arguments in API I would love to hear from you what you think of this library, Hubert. -- 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 group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en -- 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 group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en
Re: http.async.client v0.2.0
Hi Shantanu, autodoc configuration is: http://github.com/neotyk/http.async.client/blob/master/project.clj#L13 in :dev-dependencies there is [autodoc 0.7.1] to generate it: lein autodoc For rest of project site I used org-mode and infojs. Cheers, Hubert. On Sat, Sep 11, 2010 at 10:07 AM, Shantanu Kumar kumar.shant...@gmail.com wrote: One question - how is the (auto)doc generated? Regards, Shantanu On Sep 10, 2:14 pm, Hubert Iwaniuk neo...@kungfoo.pl wrote: I'm happy to announce release of http.async.client v0.2.0 an Asynchronous HTTP Client for Clojure. This is wrapper/adapter on top ofhttp://github.com/AsyncHttpClient/async-http-client Project:http://github.com/neotyk/http.async.client/ Documentation:http://neotyk.github.com/http.async.client/ API autodoc:http://neotyk.github.com/http.async.client/autodoc/ Changelog:http://github.com/neotyk/http.async.client/blob/master/changelog.org Simple usage: (ns sample (:require [http.async.client :as c])) (let [response (c/GET http://github.com/neotyk/http.async.client/;)] (c/await response) (c/string response)) Allows you to consume Twitter Streaming API with an ease:http://codemeself.blogspot.com/2010/09/asynchronous-http-client-for-c...http://github.com/neotyk/http.async.client/raw/master/twitter-sample.clj Changes in this release: * HTTP Streams as clojure.core/seq * Cookies support * Authentication support (BASIC and DIGEST) * Proxy per request * Allowed branding User-Agent * Keyworded arguments in API I would love to hear from you what you think of this library, Hubert. -- 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 group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en -- 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 group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en
[ANN] http.async.client v0.2.0
I'm happy to announce release of http.async.client v0.2.0 an Asynchronous HTTP Client for Clojure. This is wrapper/adapter on top of http://github.com/AsyncHttpClient/async-http-client Project: http://github.com/neotyk/http.async.client/ Documentation: http://neotyk.github.com/http.async.client/ API autodoc: http://neotyk.github.com/http.async.client/autodoc/ Changelog: http://github.com/neotyk/http.async.client/blob/master/changelog.org Simple usage: (ns sample (:require [http.async.client :as c])) (let [response (c/GET http://github.com/neotyk/http.async.client/;)] (c/await response) (c/string response)) Allows you to consume Twitter Streaming API with an ease: http://codemeself.blogspot.com/2010/09/asynchronous-http-client-for-clojure.html http://github.com/neotyk/http.async.client/raw/master/twitter-sample.clj Changes in this release: * HTTP Streams as clojure.core/seq * Cookies support * Authentication support (BASIC and DIGEST) * Proxy per request * Allowed branding User-Agent * Keyworded arguments in API I would love to hear from you what you think of this library, Hubert. -- 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 group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en
Re: Generating functions programmatically
Hi icemaze, Please look at how fns are generated in http.async.client http://github.com/neotyk/http.async.client/blob/master/src/http/async/client/util.clj#L54 this macro is later used here: http://github.com/neotyk/http.async.client/blob/master/src/http/async/client.clj#L43 HTH, Hubert. On Sep 10, 2010, at 9:39 PM, icemaze wrote: Hi, I'm developing a small DSL with Clojure and I need to define many similar functions. I'd like to do that programmatically, of course. My solution (involving a simple macro) doesn't work, so I won't bother you with it. I'll post it if anyone asks. Basically what I need is: given a list of keywords, for each keyword x i need to define a function whose name is (str prefix- (name x)). The function has a very short body which uses x in one place (something like (fn [n] (= n x))). Can you help me please? I've been banging my head against this for over four hours and I'm getting a little frustrated. Thanks. -- 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 group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en -- 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 group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en
Re: Creating something Seqable in clojure
Hi Nicolas, Please take a look at how headers lazy map is constructed in ahc-clj http://github.com/neotyk/ahc-clj/blob/master/src/async/http/client/headers.clj It is a map and is sequable as well. HTH, Hubert. On Jul 30, 2010, at 12:04 PM, Nicolas Oury wrote: Dear all, I am using deftype to write a pure data structure. It would be neat to make it Seqable. I looked a bit around on how to make that and did not manage to figure it out. I can implement ISeq but it does not seem to be enough. There seems to be an ASeq that my data structure should inherit from, but I cannot do that with deftype. Is there a way to do a new type of Seq today or I should wait that clojure-in-clojure advances a bit more to try that? Or should I not try to implement anything directly and use lazy-seq? Best regards, Nicolas. -- 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 group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en -- 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 group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en
Re: ANN: Deview - Better test results
I've just pushed clansi to clojars http://clojars.org/clansi HTH, Hubert. On Jul 15, 2010, at 9:26 AM, Jeff Rose wrote: On Jul 15, 6:27 am, Phil Hagelberg p...@hagelb.org wrote: Yeah, a web display is certainly much richer. I'm totally an edge case, but when you're remote pairing it's pretty important to keep things in the shared context just so you can be sure you're looking at the same thing. Another option is to use ANSI color codes to markup the text and display it in the terminal. This little library from the Amsterdam Clojurians will provide all of the styles you use in the demo (colors, bold, underline, and highlighted background color): http://github.com/ams-clj/clansi -Jeff -- 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 group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en
ANN: Async Http Client for Clojure aka ahc-clj
Hi * Just release first version of Async Http Client for Clojure. http://clojars.org/ahc-clj This is async http client that is backed by Async Http Client http://bit.ly/aUctdM which by default runs on top of Netty. General documentation on project is available here: http://neotyk.github.com/ahc-clj/ More detailed docs: http://neotyk.github.com/ahc-clj/docs.html Autodoc: http://neotyk.github.com/ahc-clj/autodoc/ Code: http://github.com/neotyk/ahc-clj Two basic examples of usage: (let [resp (GET your url {:query {:param-name some-value}}) status (:status @resp) headers (:headers @resp) body (:body @resp)] (println (:code status)) (println (apply str (map char body (let [stream (ref #{}) resp (STREAM :get your url (fn [state bytes] (if (not (empty? bytes)) (let [p (apply str (map char bytes))] (dosync (alter stream conj p))) (println Empty body part received.] ; do something to @stream ; @resp will not get delivered until streaming is done ) In first example resp is a promise that is delivered once response is received. Second example is showing how to consume a HTTP Stream, note that it is collecting body parts, which is not necessary. You can provide a callback that will not collect those parts but just acts on one that was currently received. Next releases should expose more configuration body streaming from client to server, multipart support. I hope you'll like it, Hubert. -- 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 group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en
[ANN] Clansi - ANSI color and style codes for Clojure
Hi *, Last Wednesday at Amsterdam Clojurians Meetup http://bit.ly/akuN8F we created clansi http://bit.ly/bLzHH2 . Clansi is first step in our effort to make REPL a bit more friendly, it make ANSI colors and styles easy in Clojure. Intention is to provide easy way to swap clojure.core/doc with colored one http://bit.ly/dcfUmJ . Source can be found github: http://bit.ly/9icC1Y Cheers, Hubert. -- 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 group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en
Re: Dutch Clojure users
Great to hear that there is Clojure group around. For ease of finding it: http://groups.google.com/group/amsterdam-clojurians?hl=en Cheers, Hubert On Sun, Feb 7, 2010 at 4:37 AM, Jeff Rose ros...@gmail.com wrote: There is a group of us hacking Clojure in Amsterdam and Utrecht. Where are you? Join the Amsterdam Clojurians Google group, and we'll meet for a pizza. -Jeff On Feb 6, 12:26 pm, Joop Kiefte iko...@gmail.com wrote: Hello folks! I am from the Netherlands and I am learning Clojure now, using it at work, and loving it so far. Are there any more dutch Clojure programmers on this list so we can meet? I am also interested to know about Clojure-programmers from any country in a reasonable distance from Strasbourg. Joop Kiefte -- Communication is essential. So we need decent tools when communication is lacking, when language capability is hard to acquire... -http://esperanto.net -http://esperanto-jongeren.nl Linux-user #496644 (http://counter.li.org) - first touch of linux in 2004 -- 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 group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en -- 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 group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en
Re: Dutch Clojure users
Hoi Joop, I live in NL. Cheers, Hubert. On Sat, Feb 6, 2010 at 12:26 PM, Joop Kiefte iko...@gmail.com wrote: Hello folks! I am from the Netherlands and I am learning Clojure now, using it at work, and loving it so far. Are there any more dutch Clojure programmers on this list so we can meet? I am also interested to know about Clojure-programmers from any country in a reasonable distance from Strasbourg. Joop Kiefte -- Communication is essential. So we need decent tools when communication is lacking, when language capability is hard to acquire... - http://esperanto.net - http://esperanto-jongeren.nl Linux-user #496644 (http://counter.li.org) - first touch of linux in 2004 -- 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 group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en -- 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 group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en
clojure-contrib build error
Hi All, I'm newcomer to clojure. Downloaded clojure.jar. Decided to go with VimClojure. So I need clojure-contrib. svn co clojure-contrib, and failed to build. svn co clojure, build fine retried building clojure-contrib, went fine. It's fine by me, but I believe that is not really a good user experience to need to build from sources just to start playing around. It might be good to have clojure-contrib released as clojure is released. Cheers, Hubert. --~--~-~--~~~---~--~~ 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 To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en -~--~~~~--~~--~--~---
Re: clojure-contrib build error
Hi Robert, I got it running, only thing I'm saying is that it could be easier to get clojure-contrib. I'm running Linux and use Vim so Clojure Box is not really for me. Thank you, Hubert On Thu, Apr 30, 2009 at 12:54 PM, Robert Campbell rrc...@gmail.com wrote: If you're on Windows, please take a look at Clojure Box: http://clojure.bighugh.com/ It comes with an installer which sets you up with an Emac environment running Clojure + contrib. It's everything you need to get up in running in minutes. This is the path I took when I faced similar difficulties as you. Let me know later if you need help adding in more depedencies like Compojure or DB drivers, as I had to struggle through that a tiny bit. Rob On Thu, Apr 30, 2009 at 12:08 PM, Hubert Iwaniuk neo...@kungfoo.pl wrote: Hi All, I'm newcomer to clojure. Downloaded clojure.jar. Decided to go with VimClojure. So I need clojure-contrib. svn co clojure-contrib, and failed to build. svn co clojure, build fine retried building clojure-contrib, went fine. It's fine by me, but I believe that is not really a good user experience to need to build from sources just to start playing around. It might be good to have clojure-contrib released as clojure is released. Cheers, Hubert. --~--~-~--~~~---~--~~ 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 To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en -~--~~~~--~~--~--~---
Re: clojure-contrib build error
Hi Laurent, Thank you for information. It would be nice if this kind of info would be available as Featured Wiki page. Regards, Hubert. On Thu, Apr 30, 2009 at 2:33 PM, Laurent PETIT laurent.pe...@gmail.comwrote: Hi Hubert, Howard Lewis Ship is maintaining a maven2 repository. See http://groups.google.com/group/clojure/browse_thread/thread/ee67ca7f69bc7e82/1ab62dcf4e2b33c9?lnk=gstq=howard%2Brepository#1ab62dcf4e2b33c9 for details, Regards, -- Laurent 2009/4/30 Hubert Iwaniuk neo...@kungfoo.pl: Hi Robert, I got it running, only thing I'm saying is that it could be easier to get clojure-contrib. I'm running Linux and use Vim so Clojure Box is not really for me. Thank you, Hubert On Thu, Apr 30, 2009 at 12:54 PM, Robert Campbell rrc...@gmail.com wrote: If you're on Windows, please take a look at Clojure Box: http://clojure.bighugh.com/ It comes with an installer which sets you up with an Emac environment running Clojure + contrib. It's everything you need to get up in running in minutes. This is the path I took when I faced similar difficulties as you. Let me know later if you need help adding in more depedencies like Compojure or DB drivers, as I had to struggle through that a tiny bit. Rob On Thu, Apr 30, 2009 at 12:08 PM, Hubert Iwaniuk neo...@kungfoo.pl wrote: Hi All, I'm newcomer to clojure. Downloaded clojure.jar. Decided to go with VimClojure. So I need clojure-contrib. svn co clojure-contrib, and failed to build. svn co clojure, build fine retried building clojure-contrib, went fine. It's fine by me, but I believe that is not really a good user experience to need to build from sources just to start playing around. It might be good to have clojure-contrib released as clojure is released. Cheers, Hubert. --~--~-~--~~~---~--~~ 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 To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en -~--~~~~--~~--~--~---
Re: Clojure Web Framework, what I want to add
Hi Jeffrey, I was recently thinking of adding support for https://grizzly.dev.java.net/ in http://github.com/weavejester/compojure/tree/master. Just need some time to get my head around compojure. Cheers, Hubert. On Tue, Mar 17, 2009 at 12:52 AM, Jeffrey Straszheim straszheimjeff...@gmail.com wrote: I'd love to see something built around very-high scalability, using NIO and thread pools and such. On Mon, Mar 16, 2009 at 7:40 PM, Sean francoisdev...@gmail.com wrote: I'm not sure if some of the design inputs make sense, specifically Spring and Hibernate. Point 1 - I've found the strength of Spring to be making up for the weaknesses of Java. Once you have first class functions, macros, and multi-methods (to name a few), Spring doesn't bring much to the table any more. Add in a few Unix utilities like cron and others, you remove the rest of the features. Point 2 - As for Hibernate, ORM doesn't make much sense with a functional language either. The SQL library in clojure-contrib lets you load a map, and you can create way more interesting queries with clojure than hibernate. S-expressions are that powerful. Point 3 - I'd follow Rails example and use strong defaults, and resort to XML only when necessary. Point 4 - Sounds good. Point 5 - Have you looked into compojure? It does a really good job of turning s-expressions into HTML. Point 5 (the second one) - See compojure again. Point 6 7 - This is where a lot of work is to be done. I'm not sure how to respond right now. I'll think about it. Point 8 - This is why clojure is awesome. I'll leave this as an exercise to the user :) Point 9 - Yeah, this would be a great feature. That's my thoughts. On Mar 16, 7:17 pm, BerlinBrown berlin.br...@gmail.com wrote: After many years (decade) of web development, here are the things that I want in a framework, mostly based in clojure: What do you think and what you add. This is ambitious and just a ideas of what I would add. What would you want from your ideal framework? 1. Based on Spring Framework for middleware: Reason: there are years and years and years of development spent on spring and there are many things done right. If I were integrating with any other third party libraries, I would use spring. Spring is added to my framework. 2. Based on Hibernate for ORM mapping: Reason: the defacto standard for ORM mapping with Java. And also used by NHibernate. There is a lot of support for most popular databases. 3. Clojure/Lisp based configuration AND default XML configurations. This has become the standard way to configure a J2EE web application including spring and hibernate. But I would like a lisp oriented configuration. 4. Easy mapping to URLs. I like python's approach for URL mapping 5. Clojure based, framework based server pages AND JSPs. I have always hated some aspects of JSP and ASPs, etc, etc. They are just too complicated. I would want to use Clojure code within the framework oriented server page and other predefined tags. 5. Lift like reusable server pages. Lift has an interesting approach for resuing the same page. E.g. you have an if-else statement within the page. If request == GET ...render this if request == POST ...render this. if URL == 'abc.html' .. render this. I want to embed this in my framework. You only touch one page, but you get different outputs depending on the request method or URL, etc, etc. 6. Use of Clojure syntactic sugar -- TO BE DETERMINED. There is the ability to use powerful Clojure constructs with this framework but I haven't figured out how yet. 7. Better integration of CSS, Javascript, HTML. A lot of a web application still resides with the client side. I have yet to see an web framework that addresses client development (besides GWT). Maybe something as simple as server page tags for CSS? Javascript? 8. Additional third party libraries: Lucene, iText, jFreeChart, optional Terracotta integration Other optional/additional thoughts. 9. Clear separation between back-end and front-end layers --~--~-~--~~~---~--~~ 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 To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en -~--~~~~--~~--~--~---