Re: Generalizing -> & ->>

2009-12-04 Thread David Brown
On Sat, Dec 05, 2009 at 01:38:36AM +0300, Ivan Sagalaev wrote: >Cliff Wells wrote: >> I am >> unable to see why someone shouldn't be able to receive a signed PDF via >> email and achieve a similar level of confidence that the signor was >> legitimate. > >BTW Canonical does exactly that[1]. I've jus

Re: ClojureCLR questions

2009-12-04 Thread dmiller
On Dec 4, 1:35 am, mac wrote: > Apologies if this has been answered, did a quick search but found only > pieces of info. > Is it possible to run ClojureCLR on Mono yet? > There was an issue with the BigDecimal dependency from J#? > > /Markus I don't know if anyone has tried running on Mono yet

Re: ClojureCLR questions

2009-12-04 Thread dmiller
Mike K, > 1.  IronPython needs to be syntactically compatible with Python, so > there were struggles over an attribute syntax that would be valid > Python syntax > > 2.  Python class (type) semantics are more flexible than .net type > semantics, so classes in IronPython are not real .net types. >

Re: Generalizing -> & ->>

2009-12-04 Thread Ivan Sagalaev
Cliff Wells wrote: > I am > unable to see why someone shouldn't be able to receive a signed PDF via > email and achieve a similar level of confidence that the signor was > legitimate. BTW Canonical does exactly that[1]. I've just recently signed their CCA which consisted of downloading a PDF from

Re: Modeling a relation: maps or vectors, one ref or many refs

2009-12-04 Thread samppi
Ah, yes, I could use Datalog, but I need a couple of other things it doesn't do right now—namely, cached derived relations. But in any case, Datalog is a good example of the second choices for both the first and second questions. What I'm interested in, though, are the relative merits of both appr

Re: Getting Started in Mac OS X Snow Leopard

2009-12-04 Thread Charras
That was the same problem it gave me. When I follow those steps. Since you already install some stuff, what I did was erase the ~/.emcas.d/ folder (rm -r ~/.emacs.d) and the ~/src/ folder (I don't remember what, but something got installed there form clojure, and that was the only thing I had ther

Re: simple journal-based persistenсe for Clojure

2009-12-04 Thread Luc Préfontaine
I was about to say that. There's no need for the id's to be "contiguous", only to get them to grow to preserve ordering. If you can find a way in your design to increment the atom each time a transaction is retried then you would preserve ordering. The last value would be the one used in the "final

Re: Modeling a relation: maps or vectors, one ref or many refs

2009-12-04 Thread Alex Osborne
samppi writes: > I want to create a little Clojure library that creates cached > relational systems in the style of Ben Moseley's "Out of the Tar > Pit" (http://web.mac.com/ben_moseley/frp/paper-v1_01.pdf), which is > something that I think would serve me better than just nested maps for > someth

Re: Generalizing -> & ->>

2009-12-04 Thread Cliff Wells
On Fri, 2009-12-04 at 11:49 -0800, Richard Newman wrote: > > The problem is that it is an unreasonably high barrier to entry. > > There MUST be an electronic-only way (and it must not require a cell > > phone, CC#, &c.) if the full potential of this community is to be > > unleashed upon cloju

Re: Generalizing -> & ->>

2009-12-04 Thread Brendan Ribera
> I'm not in Germany. I presume the concern isn't about you, but rather about the Germans who can't consider the code as free to use. I imagine the idea is to make the source truly open, everywhere. > The problem is that it is an unreasonably high barrier to entry. There MUST > be an electronic-

Modeling a relation: maps or vectors, one ref or many refs

2009-12-04 Thread samppi
I want to create a little Clojure library that creates cached relational systems in the style of Ben Moseley's "Out of the Tar Pit" (http://web.mac.com/ben_moseley/frp/paper-v1_01.pdf), which is something that I think would serve me better than just nested maps for something. I'm at the planning st

Re: Generalizing -> & ->>

2009-12-04 Thread Richard Newman
> The problem is that it is an unreasonably high barrier to entry. > There MUST be an electronic-only way (and it must not require a cell > phone, CC#, &c.) if the full potential of this community is to be > unleashed upon clojure-contrib. In particular, there should be a way > to participa

ANN: WebDriver wrapper

2009-12-04 Thread Miki
Hello All, A wrapper for WebDriver (http://code.google.com/p/selenium/) can be found at http://github.com/mikitebeka/webdriver-clj. Have fun testing your web site. Since I'm both a Clojure newbie and a WebDriver newbie I'm expecting a lot of enlightenment in the near future :) Thanks, -- Miki -

Re: Clojure development environments

2009-12-04 Thread John Newman
+1 for Waterfront I was hoping it would be what IDLE is to Python. On Fri, Dec 4, 2009 at 8:43 AM, Wilson MacGyver wrote: > I want to add another vote for using La Clojure plugin for IntelliJ. > > I use it on both OSX and windows. works pretty well for me. > > -- > Omnem crede diem tibi diluxis

Re: Clojure development environments

2009-12-04 Thread Wilson MacGyver
I want to add another vote for using La Clojure plugin for IntelliJ. I use it on both OSX and windows. works pretty well for me. -- Omnem crede diem tibi diluxisse supremum. -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, sen

Re: book

2009-12-04 Thread Stuart Sierra
At the least, there will be a document describing the changes from 1.0 to 1.1. -SS On Dec 4, 9:27 am, ".Bill Smith" wrote: > I haven't been tracking all the changes in Clojure since the 1.0 > release.  Will there be a 1.1 version of the Clojure book?  It's one > thing to read the API documentatio

Re: simple journal-based persist enсe for Clojure

2009-12-04 Thread David Brown
On Fri, Dec 04, 2009 at 03:15:28PM +0200, Sergey Didenko wrote: >However it looks interesting, "(dosync (alter myref inc))" takes much longer If your var is independent, how about using an atom? (swap! myatom inc) seems to be about 5-10 times faster than a dosync/ref on my Linux machine. Da

Re: Clojure development environments

2009-12-04 Thread Jeff Heon
I'm using LaClojure with IntelliJ IDEA Community Edition on a Vista box without problems. Not sure about before, but it works now 8) Also I just tried Clojure Box as mentioned above on an XP box and it works like a charm. On Dec 4, 10:30 am, David Hilton wrote: > Last I checked (2-3 months ago)

Re: Clojure development environments

2009-12-04 Thread David Hilton
On Dec 4, 6:00 am, Vaclav Pech wrote: > You might also consider IntelliJ IDEA with its LaClojure plugin. I guess the > open-source Community Edition (http://www.jetbrains.org) could be worth your > looking at. Last I checked (2-3 months ago) LaClojure didn't work with Windows - due to the way it

Re: Generalizing -> & ->>

2009-12-04 Thread John Harrop
On Fri, Dec 4, 2009 at 8:57 AM, Miron Brezuleanu wrote: > On Fri, Dec 4, 2009 at 2:33 PM, John Harrop wrote: > > The problem is that it is an unreasonably high barrier to entry. There > MUST > > be an electronic-only way (and it must not require a cell phone, CC#, > &c.) > > if the full potentia

Re: insert-rows

2009-12-04 Thread ronen
Hey mark I guess that you are using ClojureQL, can you post your function call? Ronen On Nov 25, 6:39 pm, Mark Stang wrote: > Hi, > I am working on reading a pipe delimited file into a SQL database. > > I can read the lines using >   (doseq [line (read-lines "myfile.csv")] > > and format the lin

book

2009-12-04 Thread .Bill Smith
I haven't been tracking all the changes in Clojure since the 1.0 release. Will there be a 1.1 version of the Clojure book? It's one thing to read the API documentation, and something else to have enough context to know why a function or macro exists and when it is appropriate to use it. -- You

Re: Generalizing -> & ->>

2009-12-04 Thread Miron Brezuleanu
Hello, On Fri, Dec 4, 2009 at 2:33 PM, John Harrop wrote: > > > On Fri, Dec 4, 2009 at 6:51 AM, Meikel Brandmeyer wrote: >> >> Hi, >> >> On 4 Dez., 05:17, John Harrop wrote: >> > > The rules on contrib are that the work must be original to the author. >> > > Even >> > > with Andrew's disclaimer

Re: simple journal-based persistenсe for Clojure

2009-12-04 Thread Sergey Didenko
That was for Windows and client JVM. On my Linux server JVM sometimes even 100 of "(dosync (alter myref inc))" has the same nanoTimes. So it's rather dangerous approach, unless your program follows the condition. > "(dosync (alter myref inc))" takes much longer than timer granularity on my > Wind

Re: simple journal-based persistenсe for Clojure

2009-12-04 Thread Sergey Didenko
Unfortunately: "No guarantees are made about how frequently values change." "Note that while the unit of time of the return value is a millisecond, the granularity of the value depends on the underlying operating system and may be larger." (see System nanoTime, currentTimeMillis javadoc) Howeve

Re: Clojure development environments

2009-12-04 Thread Vaclav Pech
You might also consider IntelliJ IDEA with its LaClojure plugin. I guess the open-source Community Edition (http://www.jetbrains.org) could be worth your looking at. Regards, Vaclav On Fri, Dec 4, 2009 at 1:27 PM, abhi wrote: > Forgot to mention. 'socks' sets up slime, clojure and bunch of ot

Re: Generalizing -> & ->>

2009-12-04 Thread John Harrop
On Fri, Dec 4, 2009 at 6:51 AM, Meikel Brandmeyer wrote: > Hi, > > On 4 Dez., 05:17, John Harrop wrote: > > > The rules on contrib are that the work must be original to the author. > Even > > > with Andrew's disclaimer that it be considered public domain, he would > still > > > need a contributo

Re: Clojure development environments

2009-12-04 Thread abhi
Forgot to mention. 'socks' sets up slime, clojure and bunch of other modes for emacs. You will have to install emacs by yourself in order for it to work. On Fri, Dec 4, 2009 at 5:48 PM, abhi wrote: > I don't know which OS you are running on, but if you are using windows > you can checkout clojure

Re: simple journal-based persistenсe for Clojure

2009-12-04 Thread John Harrop
On Fri, Dec 4, 2009 at 6:50 AM, Sergey Didenko wrote: > Without the global transaction counter another problem arises. > > Suppose transaction B depends on ( results of ) transaction A. And they are > executed from different threads. However they have the right order when > executing the first tim

Re: Clojure development environments

2009-12-04 Thread abhi
I don't know which OS you are running on, but if you are using windows you can checkout clojurebox. It setups emacs, clojure, and sets up slime. It works out of the box. You can find it here: http://clojure.bighugh.com/ If you want to setup clojure on linux you could use a system called Boots. Thi

Re: Clojure development environments

2009-12-04 Thread Steve Purcell
On 4 Dec 2009, at 10:18, balln...@googlemail.com wrote: > Emacs / clojure-mode: > [...] > Sorry but Emacs is unfamiliar to regular developers > > VimClojure: > similar to clojure-mode setup ... separate downloads, builds, > configs ... > and then it does not work out of the box or you need to rea

Re: Generalizing -> & ->>

2009-12-04 Thread Meikel Brandmeyer
Hi, On 4 Dez., 05:17, John Harrop wrote: > > The rules on contrib are that the work must be original to the author. Even > > with Andrew's disclaimer that it be considered public domain, he would still > > need a contributor agreement in place to get this incorporated into contrib. > > Why? > > (

Re: Creating a matrix mirrored around it's main diagonal

2009-12-04 Thread Konrad Hinsen
On 04.12.2009, at 11:27, Tiemo Kieft wrote: > So transposing it is not enough. I need the part above the main > diagonal to be 'transposed' and put underneath the main diagonal. > Maybe I wasn't as clear as I hoped. Let me restate the issue. So you want to symmetrize your matrix, right? If po

Re: Getting Started in Mac OS X Snow Leopard

2009-12-04 Thread Andreas Pauley
On Dec 3, 7:45 pm, christophe mckeon gonzalez de leon wrote: > you might want to try watching peepcode's emacs video. > he suggests using the carbon emacs port. i'm not sure > if i'll be going with that or with the plain terminal version, > i'm just getting acquainted with emacs myself. Thanks,

Re: simple journal-based persistenсe for Clojure

2009-12-04 Thread Sergey Didenko
Without the global transaction counter another problem arises. Suppose transaction B depends on ( results of ) transaction A. And they are executed from different threads. However they have the right order when executing the first time. How to guarantee that the execution order is the same when t

Re: simple journal-based persistenсe for Clojure

2009-12-04 Thread Sergey Didenko
Here is the GitHub project: http://github.com/SergeyDidenko/Simple-Persistence-for-Clojure -- 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 -

Re: Getting Started in Mac OS X Snow Leopard

2009-12-04 Thread Steve Purcell
On 4 Dec 2009, at 09:41, Lauri Pesonen wrote: > How do you type ''#' in the Cocoa build of Emacs 23 (I'm on a UK > keyboard and in OS X apps I type option-3 to get'#')? Aquamacs has a > mode where option-3 is interpreted as '#' rather than a meta-3 which > takes care of my problem, but I haven't f

Re: Getting Started in Mac OS X Snow Leopard

2009-12-04 Thread Andreas Pauley
On Dec 4, 3:37 am, Phil Hagelberg wrote: > So this is a problem with the auto-download of Clojure jars that > swank-clojure attempts. It looks like it's having trouble downloading > and is unable to clean up after itself, but I can't reproduce it. What > version of Emacs are you using? GNU Emac

Re: Getting Started in Mac OS X Snow Leopard

2009-12-04 Thread John Harrop
On Fri, Dec 4, 2009 at 4:41 AM, Lauri Pesonen wrote: > 2009/12/2 Matthew Williams : > > Using the Cocoa build of Emacs 23 (http://www.emacsformacosx.com) I > > was able to get up and running extremely quickly with Technomancy's > > swank-clojure install. > > This is very much off-topic, but... >

Re: Creating a matrix mirrored around it's main diagonal

2009-12-04 Thread Tiemo Kieft
This is what it should look like: >>| 1 | 2 | 3 | >> >> 1 | 0 | A | B | >> >> 2 | A | 0 | C | >> >> 3 | B | C | 0 | >> > > Perhaps I'm misapprehending the issue, but why isn't the following > sufficient: > > (defn transpo

Clojure development environments

2009-12-04 Thread balln...@googlemail.com
At present the biggest problem Clojure has, is the lack of an easily accessible development environment. If the language is a masterpiece but has no complete, integrated and convenient development environment to offer it his like having a new Porsche but no keys to open the doors. This is what is m

Re: simple journal-based persistenсe for Clojure

2009-12-04 Thread John Harrop
On Thu, Dec 3, 2009 at 6:31 PM, Sergey Didenko wrote: > Well, I'm not fluent with git yet. I'll create the github project, that can > not be hard. > > In comparison with Prevayler, the persister does not block the reads, > because it relies on Clojure STM. However it blocks the writes as > Prevay

Re: Generalizing -> & ->>

2009-12-04 Thread John Harrop
On Thu, Dec 3, 2009 at 10:41 AM, Stephen C. Gilardi wrote: > > On Dec 3, 2009, at 10:31 AM, Roman Roelofsen wrote: > > Are there any plans to add -$> to core or contrib? > > The rules on contrib are that the work must be original to the author. Even > with Andrew's disclaimer that it be considered

Re: Getting Started in Mac OS X Snow Leopard

2009-12-04 Thread mccraigmccraig
use the u.s. keyboard map. #/£ is the only difference [i've yet discovered] Lauri Pesonen wrote: > 2009/12/2 Matthew Williams: >> Using the Cocoa build of Emacs 23 (http://www.emacsformacosx.com) I >> was able to get up and running extremely quickly with Technomancy's >> swank-clojure install. > >

Re: Getting Started in Mac OS X Snow Leopard

2009-12-04 Thread Lauri Pesonen
2009/12/2 Matthew Williams : > Using the Cocoa build of Emacs 23 (http://www.emacsformacosx.com) I > was able to get up and running extremely quickly with Technomancy's > swank-clojure install. This is very much off-topic, but... How do you type ''#' in the Cocoa build of Emacs 23 (I'm on a UK ke