Re: Learning Clojure

2008-12-11 Thread rb
On Dec 11, 7:06 am, Alex Burka wrote: > To the debate on whether there should be examples early in the text,   > here are my two cents: > > When I click on something called "Learning [programming language]" I   > like to see a representative example of the syntax early on. If   > there's just t

Re: Clojure articles and blogs

2009-01-28 Thread rb
On 28 jan, 18:38, Mark Volkmann wrote: > Are there web pages that provide links to articles and blogs about Clojure? > It would be nice if an "Articles" link and a "Blogs" link to such > pages appeared in the upper-right corner ofhttp://clojure.org. Bill Clementson created a Yahoo Pipe aggreg

anyone going to FOSDEM?

2009-02-05 Thread rb
Hi, are any clojure developers going to FOSDEM, next week-end in Brussels (Belgium)? It would be cool to meet there. (I'm a complete newbie at clojure, but that would make it the more interesting for me to meet other clojure developers:-) Cheers Raphaël --~--~-~--~~~--

google notebook -> delicious thanks to Clojure

2009-03-05 Thread rb
Hi, My first useful code writted in Clojure is a migration script from Google Notebook to Delicious. It's available at http://www.nsa.be/nb_exporter/ (complete package to download) and code is at http://github.com/raphinou/nb_exporter. It is code developed on the pre-lazy clojure. Here are some

contrib api documentation?

2009-03-10 Thread rb
Hi, is there a place where I can find the documentation of clojure.contrib in the same vein as clojure.core is documented at http://clojure.org/API ? Thanks Raphaël --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "

Re: contrib api documentation?

2009-03-10 Thread rb
ated it is open-source   > (on github, I think), so refreshing it for yourself shouldn't be too   > difficult. Didn't find the link rapidly, I'll look further later. Thanks for your help! Raph > > - Chas > > On Mar 10, 2009, at 6:16 AM, rb wrote: > >

transposing a small java class in clojure

2009-03-10 Thread rb
Hi, I'm experimenting with http://mina.apache.org/ftpserver I have written a small java class that gets used by the ftp server, and am trying to transpose it to clojure, but unsuccessfully until now The class generated with clojure is detected and used by the server, but the code of the meth

Re: transposing a small java class in clojure

2009-03-10 Thread rb
then you > may get different results.  I would recommend calling the getlogger > call in the function perhaps; change the 'def logger' to 'defn logger > []' and work out the resulting details.  This would make the clojure > example a little closer to your java example an

Re: transposing a small java class in clojure

2009-03-11 Thread rb
nstance That was it! Here's the working function: (defn -onLogin [this session request] (.severe logger "Logging in, clj") FtpletResult/DEFAULT) Thanks! Raphaël > > > > On Tue, Mar 10, 2009 at 12:16 PM, rb wrote: > > > HI Chris, > > > tha

Re: how do I create a runnable clojure program

2009-04-29 Thread rb
On Apr 29, 1:04 pm, Santanu wrote: > Hi Everybody, > > I wanted to compile a .clj clojure file into a .jar/.class file so > that I could run it using java. (I don't know what is the actual way > to run clojure file. So far, I have only been trying it from within > emacs/slime). > > But I don't

Updating a running app

2009-06-11 Thread rb
HI, in his post "Macro design, by example" [1], Meikel Brandmeyer mentioned that it is possible to reload a function (in contrast to a macro) in a running application: "Now all you have to do is to just reload the single function in the running application. This can be easily done by environment

Re: Mnesia like?

2009-06-16 Thread rb
On Jun 15, 6:02 pm, Wilson MacGyver wrote: > Does clojure have anything like erlang's Mnesia? or is anyone working on such > project? I know I can fall back to using JDBC+ various RDBMS, but I > was curious if there is something that works like Mnesia. Depending on what you mean by "works like M

Re: Runtime Compilation of Clojure from Android

2009-06-16 Thread rb
On Jun 16, 5:51 am, George Jahad wrote: > Remco van't Veer has done a lot of great working porting Clojure to > Android, but one thing remains missing, runtime compilation which > would allow a fully functional Repl.  The problem is that the Android > VM doesn't use standard Java class files bu

Re: Yet another web framework for Clojure.

2009-06-19 Thread rb
On Jun 18, 11:11 pm, Matt wrote: > Hi all, > > I was recently introduced to Clojure by a coworker, and have been > loving it ever since. I jumped in head first writing a Rails like web > framework with it before I realized how many other basic web > frameworks are out there. Anyways, it's a fun p

Jwt from Clojure?

2009-08-17 Thread rb
HI, Jwt (http://www.webtoolkit.eu/jwt ) is a java translation of the C++ web toolkit (http://www.webtoolkit.eu/wt ) I'd like to develop a web app in clojure based on Jwt, but Jwt apps need to run in a servlet container. What's the best path to follow in that case? Is developing a Ring adapter wh

clojure article in french magazine

2009-08-18 Thread rb
Hey, I was looking computer magazines and I had the good surprise to see clojure mentioned on the cover of Programmez, a french magazine. The article is titled 'Cloure, a Lisp for the JVM", and seems positive (eg, it says "Clojure (...) est génial" meaning "Clojure is great"): http://www.programm

advice needed about macro for proxy with argument

2009-08-25 Thread rb
HI, I have several calls to addListener, for which I have to create a proxy:: (.. (WPushButton. "Greet me" root) clicked (addListener wapp (proxy [Signal1$Listener] [] (trigger [ mouse-event ] (.setText result-text (.getText line-edit)) I think this is code elligible for simplification

Re: advice needed about macro for proxy with argument

2009-08-26 Thread rb
On Aug 25, 9:54 pm, Meikel Brandmeyer wrote: > Hi, > > Am 25.08.2009 um 20:09 schrieb rb: > > > Here is what I've done for now: > > > (defmacro deflistener [ interfaces trigger-args & body] > >  `(proxy [ ~...@interfaces ] [] (trigger [...@trigger-

Re: advice needed about macro for proxy with argument

2009-08-26 Thread rb
> > > It takes as arguments > > > * the list of interfaces it implements (currently necessary for > > >http://www.assembla.com/spaces/clojure/tickets/181) > > > ?? You always have to specify the interfaces, no? > > What I meant is that if I always implement SignalX$Listener, I could > even get ri

Re: Jwt from Clojure?

2009-08-26 Thread rb
interesting, I'm going to take a good look at it as well.) > > Hth, Adrian. > > On Mon, Aug 17, 2009 at 5:07 PM, rb wrote: > > > HI, > > >Jwt(http://www.webtoolkit.eu/jwt) is a java translation of the C++ > > web toolkit (http://www.webtoolkit.eu/wt) > >

Re: Clojure/EPL and the GPL

2009-08-29 Thread rb
On Aug 28, 4:18 pm, Matthias Benkard wrote: > On 28 Aug., 13:42, Tassilo Horn wrote: > > > I have a licensing question.  Am I allowed to include clojure.jar in a > > GPL project? > > IANAL, but if I understand the GPL correctly, it prohibits you from > distributing a GPL-covered programme that

Easily add a Java Listener

2009-08-31 Thread rb
Hi, After using Jwt from Clojure, I did it with Jruby and discovered that Jruby has what they call Closure Conversion (http://kenai.com/projects/ jruby/pages/CallingJavaFromJRuby#Closure_conversion ) where a Ruby block or closure is converted to an appropriate Java interface. From the wiki: "When

from OO to Lisp style (a blog post)

2009-09-04 Thread rb
Hi, In using the Jwt library, for which I only found examples in object oriented languages that structure the code in class definitions and do heavy usage of instance variables, I was in a situation where I wondered how I could best structure my code. With help on the IRC channel I got to a work

Re: from OO to Lisp style (a blog post)

2009-09-06 Thread rb
.getWidget) > "Wrong credentials!")))] >        (.setTitle wapp "Login Example") >        (doto dialog (.. getContents (addWidget form)) .show) >        (.addWidget  root app-screen) >        wapp)) >   ([env] >      (make-login-app env identity))) >

Re: clj-gradle – a Clojure Plugin for Gradle

2009-10-14 Thread rb
On Oct 13, 9:16 pm, Meikel Brandmeyer wrote: > Hi, > > I'd like to announce the first release of a Clojure plugin for Gradle.   > It features integration in the Gradle build and configuration system   > and automatic namespace discovery for compilation. It is targeted for   > Gradle 0.8. An exa

Re: Latest news on ClojureQL

2009-12-11 Thread rb
On Dec 11, 11:58 am, LauJensen wrote: > Hi all, > > ClojureQL is now moved to Gradle and Jars are pushed to Clojars as > version 0.9.7 > > Blogpost on > status:http://www.bestinclass.dk/index.php/2009/12/clojureql-where-are-we-go... Very interesting. I wondered some days ago what is the best way

Re: Latest news on ClojureQL

2009-12-11 Thread rb
> > And a suggestion: having migrations in CQL would be great! > > Could you elaborate a little? Migrations are a way to manage the evolution of a schema of a database. I'm familiar with migration in Ruby on Rails which are explained here: http://api.rubyonrails.org/classes/ActiveRecord/Migration.

Re: Latest news on ClojureQL

2009-12-14 Thread rb
On Dec 14, 12:17 pm, LauJensen wrote: > > It's really been a time saver and I think it's a really good fit with > > ClojureQL. > > > Raphaël > > Raphaél, thank you for bringing this to my attention, it looks > interesting. > > I think this falls more in the tool-category than the language- > cat

ClojureQL docs?

2009-12-16 Thread rb
Hi, After the recent discussion about ClojureQL, I wanted to try it, but I haven't found any documentation outside examples in blog posts. Did I miss something or is the code the current documentation? Raphaël -- You received this message because you are subscribed to the Google Groups "Clojure

Agents of Swing ported to Jwt

2010-01-21 Thread rb
Hi, After reading Stuart Sierra's post titled "Agents of Swing" [1] I couldn't wait to try and port it to Jwt [2]. I finally had the time and documented it in a blog post at http://www.nsa.be/index.php/eng/Blog/From-Swing-to-Jwt I thought this could be of interest to some people here, expecially

Re: Full Disclojure - I Need Topics!

2010-01-24 Thread rb
On Jan 25, 6:34 am, Sean Devlin wrote: > Hello everyone, > I'm having a blast making the Full Disclojure series.  It's one the > best projects I've had a chance to work on. > > However, there's going to be a problem soon.  I only have a few more > topics left before I run out.  No more topics, n

Re: Dutch Clojure users

2010-02-06 Thread rb
On Feb 6, 12:26 pm, Joop Kiefte 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

Re: Requesting Feedback on new Relational Mapping lib for Clojure

2010-06-20 Thread rb
Hi Brenton: I think it would be nice if rather than specifying the columns of each table in the call to the model macro, it was extracted from the database directly. Raph On Jun 14, 6:14 pm, Brenton wrote: > Hello group. > > I have been working on a relational mapping library for Clojure named

Re: Question about lein swank and emacs

2010-10-25 Thread rb
Check out this Emacs package: http://github.com/remvee/elein The command you need is called `elein-reswank' there. cheers, rb On Oct 25, 7:13 am, Mark Engelberg wrote: > When you start a swank server with lein swank, and then connect to it > via slime-connect in emacs, is there a

how to pass lazy seq to function for processing without keeping the head?

2010-10-27 Thread rb
I have a big MySQL database containing telephone call detail records. The database is on a remote server and it's a bit slow to access. I want to migrate the data to local SQLite databases on my machine for further processing. I want to store each month's records in separate files, located under ~

Re: how to pass lazy seq to function for processing without keeping the head?

2010-10-27 Thread rb
Oops, I made an error in the last paragraph: > It also occurred to me that I should think in records instead of __seqs__ > and write store-calls as a kind of filter (store-call), but then I'd > lose the ability to compare the dates of the previous/current records > or would have to resort to some

Re: how to pass lazy seq to function for processing without keeping the head?

2010-10-27 Thread rb
Hi everyone, I found the solution and it has nothing to do with my ramblings above. It turns out that when I do (.executeQuery stmt), the MySQL JDBC driver fetches the entire resultset from the server at once. Here is how to make it lazy also on the JDBC side: (let [conn (datasource/connectio

Re: how to pass lazy seq to function for processing without keeping the head?

2010-10-27 Thread rb
On Oct 27, 4:36 pm, Chris Maier wrote: > On Wed, Oct 27, 2010 at 10:18 AM, rb wrote: > > P.s. I still don't understand though why the 'calls' argument to the > > store-calls function is not a held reference to the head of the lazy > > seq... > > I t

Re: Unification

2011-01-22 Thread rb
On Jan 21, 11:41 pm, Alex Baranosky wrote: > Hi, > > I've read a bit about clojure.core.unify > (http://blog.fogus.me/2010/12/14/unification-versus-pattern-matching-t... > ) > > I haven't gotten through PAIP yet, but I gather unification libraries enable > logic programming?  Is it true that unif

Re: Unification

2011-01-23 Thread rb
On Jan 22, 8:16 pm, David Nolen wrote: > On Sat, Jan 22, 2011 at 2:09 PM, rb wrote: > > On Jan 21, 11:41 pm, Alex Baranosky > > wrote: > > > Hi, > > > > I've read a bit about clojure.core.unify ( > >http://blog.fogus.me/2010/12/14/unification