>
> (def a (ref 1))
> (def b (ref 1))
>
> ; Do these concurrently, either from separate agents or using pmap
> (dosync (commute b error-throwing-fn a))
> (dosync (commute a + @b))
>
> I want to have the option to abort the first transaction without
> rolling back the second. Based on what you said,
On Sun, Feb 8, 2009 at 12:23 PM, Anand Patil <
anand.prabhakar.pa...@gmail.com> wrote:
>
> Hello again,
>
> In my application, I'll frequently want to quickly discard all the
> changes made during a transaction involving many refs. I don't want to
> force the refs to roll back to their values at t
On Sat, Feb 14, 2009 at 9:48 AM, James Reeves wrote:
>
> Hi folks,
>
> I've been having some difficulty coming up with a scheme for writing
> to files in a thread-safe manner. The files are named with the hash of
> their content, so they are effectively immutable.
>
What about making the file an
On Mon, Feb 16, 2009 at 10:10 AM, Mark Volkmann
wrote:
>
> If we're going to be making name changes that break code anyway, I'll
> make another appeal to make the function naming convention more
> consistent. Most multi-word function names have a hyphen between the
> words, but the following do no
>
> I know that all Java GUI libraries can be used within the REPL, but it is
> my understanding that in order to make it self-contained and executable (a
> jar or a class file), it is necessary to write some Java and call the
> Clojure code from the java applet or application. Is this true, or am
On Mon, Feb 16, 2009 at 11:33 AM, levand wrote:
>
> I agree, Jambi is a better all-round product... but why the Swing
> hate? It's fine for what it is. Most of it's drawbacks (horrible L&F,
> poor performance) are things of the past, now.
>
> It would definitely be my framework of choice for a qu
On Mon, Feb 16, 2009 at 11:51 AM, Tom Ayerst wrote:
> Also, don't forget that Jambi is a vanilla GPL 2.0, so make sure all your
> licenses are compatible and you don't mind publishing your source
> (personally I don't, but you should be aware).
>
> Tom
>
Only until Qt 4.5 which is due in march
> Hello,
>
> Do you know of a good pointer that goes beyond the "don't use it" argument,
> and really makes a thorough comparison of pros and cons of the 2 frameworks
> ?
>
I'm not saying don't use Swing, I'm saying prefer Jambi.
My memory of Swing is dated so I'd have trouble making a thorough c
On Mon, Feb 16, 2009 at 9:18 PM, Jesse Aldridge wrote:
>
>
> I'm trying to port some Python code to Clojure. I'm new to functional
> programming and I hit a function that is causing my brain to melt.
> The python function looks something like this:
>
>
> def build_table():
>num_cols = 3
>
On Mon, Feb 16, 2009 at 11:15 PM, Rayne wrote:
>
> Anything buy IronClojure.
>
>
There's already an IronLisp anyway:
http://www.codeplex.com/IronLisp
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Clojure" group.
>
> I won't say that, you ported Python to Clojure while maintaining Python
>> spirit. That's great!
>
>
> Are you serious, or is this a joke somewhat bashing the python language ?
>
>
I guess he meant maintaining the spirit of the original python code. The
original code was overtly long and non-i
>
>
> > So, as a long-time .NET guy, IronClojure seems like the best name, in
> > terms of making it obvious what it does: it's like IronRuby/Python,
> > but it's Clojure. Failing that, it seems like NClojure fits the
> > pattern of other JVM-ported efforts. I realize that there's already an
> > En
On Wed, Feb 18, 2009 at 11:46 AM, samppi wrote:
>
> My impression is that if you build and compile whatever application
> you're making and deploy it using something like Java Web Start, the
> user usually doesn't have to do anything with regards to manually
> getting other libraries like Jambi;
Unfortunately, it seems that Jambi is going to be discontinued:
http://www.qtsoftware.com/about/news/preview-of-final-qt-jambi-release-available
There will be a 4.5 release and it will be maintained for a year.
Since Jambi is open source, its survival depend on the community picking up
the proje
>
> I'm curious about what you need that's different from what
> ClojureScript provides: a mechanism for compiling a subset of Clojure
> to JavaScript code that behaves like you'd expect the Clojure code to
> behave.
>
ParenScript is a subset of common lisp and a javascript generator that is
meant
On Sat, Feb 21, 2009 at 10:23 PM, Mibu wrote:
>
> comp.lang.lisp had a great Road to Clojure Survey thread which was
> actually an x-is-better-than-y thread that turned into a full blown
> flamewar.
>
>
> http://groups.google.com/group/comp.lang.lisp/browse_thread/thread/0d05837df1efe075
>
> Thes
>
>
> Ah, ok. That is indeed quite different from ClojureScript, primaryly
> because it has immutable collections. And nearly unreadable output.
> :-)
>
> So now my question is -- in what way is ParenScript insufficient?
It depends on common lisp instead of clojure? :)
How does ClojureScript i
As for names, all I can think of is:
(js)
It's like javascript but shorter and lisper.
On the other hand it's not obvious how you should pronounce it.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Clojure" group
On Sun, Feb 22, 2009 at 3:12 PM, jim wrote:
>
> Seeing your comments, I've decided to try to get my Javascript
> generator suitable for public use. It'll take a day or two, I
> think. Have you got a catchy name for it?
>
> Jim
>
That would be great! My main reason to want this is for this li
My opinion is that since Lisp is the programmable programming language,
people shouldn't hesitate to try to write code to modify it to their liking.
I actually think parenthesis are neat and the new syntax wouldn't be an
improvement (and I've been programming in Python for the last 8 years) but
don
>
> If I understand correctly, when there is an attempt to modify a Ref
> that has been modified in another thread since the current transaction
> began then the current transaction will retry immediately. Isn't it
> true that it has no chance of completing until the transaction that
> changed that
On Mon, Feb 23, 2009 at 3:32 PM, Vincent Foley wrote:
>
> I'm opposed to this idea. I don't think we should pander to the
> masses by creating a schism between new and experienced users. New
> users should be introduced to the real thing immediately and it is up
> to the tutorials and community
> I'm not sure I understand. Are you referring to
> UIManager.getSystemLookAndFeelClassName() ?
> This is the L&F that Waterfront is using. If you don't get this L&F
> then perhaps the call to setLookAndFeel() fails on your machine. I'll
> add a piece of code to log the exception.
>
> -Itay
It al
On Sat, Feb 28, 2009 at 4:31 AM, Itay Maman wrote:
>
> Dan, Marko,
>
> I wonder whether you have the time to do a little experiment. The L&F
> is set at line 182 of net/sourceforge/waterfront/ide/ui.clj. Could you
> please try to see which L&F works on your machine o
I am doing a genetic algorithm my individual have various immutable
characteristics, one of them being their fitness. The problem I have
with it is that fitness is somewhat expensive and can be requested
zero (the individual will undergo some transformation and the fitness
of the intermediary stat
Thanks for the advice, I never noticed delay existed!
It turns out I cannot put the fitness directly into the struct that
contains individuals. It would mean that every mutating function would
need to "reset" the fitness computation to avoid propagating a
misleading fitness and that's clearly not
On Thu, Mar 5, 2009 at 8:11 PM, Matt Moriarity wrote:
>
> what about memoizing the fitness function? call fitness on your
> structs, and if it's memoized, it will return the cached value as long
> as the struct is the same value. if it's changed, then it will
> recompute. somebody correct me if t
On Thu, Mar 5, 2009 at 8:53 PM, Jason Wolfe wrote:
>
>> The mutation constructing function seems obvious in hindsight. I feel
>> stupid now.
>
> You shouldn't :). Immutability definitely takes some getting used to;
> I know it's taking me quite some time to wrap my head around it.
I'm actually
> My dream debugger would be to pause execution on a certain line, be
> able to step through function calls, and have a REPL with all local
> vars available so I could explore the problem. But I'm pretty sure
> that doesn't exist.
My dream debugger would be this:
http://www.lambdacs.com/debugger
On Fri, Mar 6, 2009 at 11:18 AM, Paul Stadig wrote:
>
> If it works with Java, then it should be possible to get it working
> with Clojure, no? It may take some work, but should be possible.
It wouldn't be terribly appropriate. The ODB is meant to deal with
mutability in Java code and does so by
> In my experience, debuggers are good for two things: investigating bugs
> in your infrastructure (in Clojure or other dependencies) and
> investigating performance problems. If you are feeling the need to step
> into a debugger to deal with correctness problems, it's merely a sign
> that your te
On Fri, Mar 6, 2009 at 7:51 PM, rzeze...@gmail.com wrote:
>
> I think good arguments have been made for "doto," but I must say I
> prefer "with" slightly more.
with can mean different things in different languages. In javascript,
it means the same thing as doto in clojure but in Python (and many
> I guess I want to advocate - don't merely replicate the things with
> which you are familiar. Try to do things in the Clojure way. If your
> logical structure is a mapping of names to values, please use a map.
I tend to replace every instance of creating classes with creating
structs which, if
> I'm pretty sure structs are only appropriate for when you need to eek
> the absolute last iota of performance out of a collection, in which case
> they can provide greater speed than maps. But since the list of keys is
> fixed, it means it's more effort to add or rename a key than it is with
> a
> Membership to this group is _very_ self-selecting; you can't expect
> things that are true here to be true across the board.
>
> -Phil
I expect membership will increase once Stu's book is released. It will
give people a much more structured way to get familiar with the
language.
--~--~
2009/3/19 Edward Shen
>
> Hello,guys!
> I'm reading 《Programming Clojure》. I've seen closure. But I
> haven't seen how simulate Class.
> Lisp can simulate Class by closure and nest Function.
> Example:
>(define (make-account balance)
> (define (withdraw amount)
> (if (>= balance amou
>
> I don't want to go out on a limb, having not looked at the Clojure STM
> implementation. However, I would bet that the costs are roughly equal.
> Even if Clojure was 50% slower, or 100% slower, the knowlege that you
> can spin up a large number of threads and not worry about deadlocks is
> ulti
>
>
> What does 1.0 mean to you? Are we there yet? Any recommendations for
> the organization of the release branches, patch policy etc?
>
To me, beside what was already said, it means a deprecation policy. I like
Python's. First release after deprecated changes are decided, code works as
is but p
>
>
> my view of Java's backward compatibility is that it is kind of a bunch
> of hot air that restricts the ecosystem from being better. i vastly
> prefer the fact that .net is willing to make real changes to get real
> benefits.
>
> sincerely.
> $0.02
>
And that requires shoe-horning new stuff i
On Fri, Apr 17, 2009 at 4:29 PM, Laurent PETIT wrote:
> I guess there's really no perfect solution here :-(
>
> The question is :
>
> do you prefer to have some clojure users united against subversion, or
> divided by Rich not having chosen their preferred DVCS (Mercurial users vs
> Git users, not
On Mon, Apr 20, 2009 at 6:12 PM, Greg Harman wrote:
>
> > Has anyone here been able to install Clojure on IcedTea?
>
> For what it's worth, I run Clojure on SoyLatte and have never had a
> problem.
I never had any problem on IcedTea.
--~--~-~--~~~---~--~~
You re
On Sat, Apr 25, 2009 at 1:59 PM, prhlava wrote:
>
>
> > Git even works relatively well on Windows (I've used it lightly and not
> encountered a bug yet).
>
> The last time I tried, it did not (few months back) compared to
> mercurial.
>
Which version did you try? msysgit works very well.
--~--~
On Tue, Apr 28, 2009 at 4:36 PM, Rayne wrote:
>
> Git still sucks on windows :\
>
On which grounds?
Or as wikipedia would put it [citation needed]
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Clojure" group.
T
I've been trying to port a sudoku solver from Python to Clojure and I am
having trouble making it idomatic clojure. I asked on the IRC channel and
got solutions the authors told me were not idiomatic but they weren't sure
how to make them so.
Sudoku works in a 9 x 9 grid made of 81 squares labelle
On Sat, Oct 10, 2009 at 4:21 PM, Mark Engelberg wrote:
>
> Represent each cell as a row number, column number, and a set of
> possible digits that can go in that cell.
> Create a map that generates a keyword for the sector name from the row
> and column numbers.
> You're going to write a recursive
On Sat, Oct 24, 2009 at 1:35 PM, Mark Volkmann wrote:
>
> I gave a talk on STM at a conference in St. Louis called "Strange
> Loop" last Thursday.
>
That is the most awesome title for a conference, ever. (Said the guy who
just finished GEB: an EGB).
> 1 up and 2 up PDF versions of the slides ar
>
> So If I look ridiculous, I apologize in advance.
>
>
Don't worry, you'd be in good company anyway :)
Why don't you implement it and try it? It should be fairly easy to create a
translator that would turn any of those proposals into regular clojure
before compiling. Try it out for a while, see
Once a month, we get a proposal about how to remove the parens so that the
language would be more usable for newbies who are afraid of them. Invariably
this turns out into experienced clojure users telling that the parens aren't
a problem and that they become invisible once you start indenting your
On Wed, Feb 3, 2010 at 9:09 AM, .Bill Smith wrote:
> I won't tell you what editor you ought to use, but Emacs in clojure-
> mode takes care of the indentation for you. I suspect editors/IDEs
> that "support" clojure do as well.
>
> Another data point: the Clojure source code (the part that's actu
On Wed, Feb 3, 2010 at 12:11 PM, Laurent PETIT wrote:
> I think there are also several ways of identing clojure code, depending on
> what the tools provide out-of-the-box, and of devs personal preferences:
>
> * do you see a reindenter like something that will just correctly change
> the number o
>
>
> The algorithm used is identical, but the structure of the code is
> quite different, perhaps being more or less readable. It may be worth
> including such details in addition to where one sticks whitespace.
>
>
I think it should be in a different tool but a Clojure lint is an awesome
idea.
I found some thoughts about a clojure lint:
http://stackoverflow.com/questions/1938242/how-would-one-create-a-clojure-lint
--
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 f
I'm in.
Should we go for a coffee to meet each other or something?
On Sun, Feb 21, 2010 at 11:15 PM, Nicolas Buduroi wrote:
> On Feb 21, 12:55 pm, Jeff Heon wrote:
> > Would Montreal Clojurians be interested in starting a Clojure group?
> >
> > Or do you all piggyback on the Montreal/Scheme Lis
We now have a Montreal Clojure User Group which we unanimously voted
to call Bonjure. It's URL is http://www.bonjure.org and it would be
nice if it was added to the list of communities on Clojure's website.
And if we could get more people from Montreal to join obviously :)
--
You received this me
I'm a Java developer; I work on a project that has adopted Clojure's
data structures as a convenient implementation of immutable sets,
maps, etc. In attempting to add type parameters to the Clojure
interfaces, I noticed a conflict in the definition of
IPersistentVector. I assume the problem exist
d behavior or a bug? What's the appropriate place to
submit bug reports?
On Apr 13, 9:37 am, Dan wrote:
> I'm a Java developer; I work on a project that has adopted Clojure's
> data structures as a convenient implementation of immutable sets,
> maps, etc. In attem
On Apr 26, 4:54 pm, Rich Hickey wrote:
> On Apr 13, 2010, at 9:37 AM, Dan wrote:
>
> > I'm a Java developer; I work on a project that has adopted Clojure's
> > data structures as a convenient implementation of immutable sets,
> > maps, etc. In attempting to
PersistentHashMaps and its a bad idea to use them directly.
In clojure it is not straightforward to do this at all since root is
private.
So to my question:
Is there or has there been any plans to add a diff or a diff enabler on the
data structures to be able to make faster diffs.
Thanks
Dan
ter.
(note; changed from identical? checks to = checks in the algorithm as it
otherwise would report the last test as unequal but that had no affect the
performance in these tests)
On Thursday, October 13, 2016 at 9:23:22 PM UTC+2, Alex Miller wrote:
>
>
>
> On Thursday, October 13
Aside from the fact that Leiningen is coded in Clojure and Gradle in
Groovy are there any other noteworthy differences? Are there any
benefits of using Leiningen over Gradle and vice-versa? Thanks.
Best,
Dan
--
You received this message because you are subscribed to the Google
Groups "Cl
For what it's worth SBCL has this same behavior (although I don't like
it).
On Dec 4, 2008, at 5:45 AM, Konrad Hinsen wrote:
>
> On Dec 4, 2008, at 10:50, Meikel Brandmeyer wrote:
>
>> On 4 Dez., 10:08, Konrad Hinsen <[EMAIL PROTECTED]> wrote:
>>> user=> a'
>>> 2
>>> user=> a
>>> a
>>
>> a' is
It's been mentioned before but I'd like to see a planet.clojure.org à
la the planet planet powered sites (http://www.planetplanet.org/).
On Dec 6, 2008, at 4:24 PM, bc wrote:
>
> Hi all,
>
> A lot of people are writing Clojure-related blog posts; however, I am
> often only interested in the C
Hey this looks great!
On Dec 7, 2008, at 10:51 AM, Stuart Sierra wrote:
>
> Hi folks,
...
>
> 2. "each=" and "all-true" are gone, replaced by the new macro "are",
> which works with any predicate:
>(are =
> 2 (+ 1 1)
> 4 (+ 2 2))
>
Just one bone to pick, though. The "are" macro d
now_python/documenting_functions.html
Rich, you said you were considering it in March
(http://groups.google.com/group/clojure/browse_thread/thread/8690a80c263d3b52/e8d73aebf11c2698
), did anything ever come of that?
Dan
--~--~-~--~~~---~--~~
You received this message becau
if the value has to be escaped to play nice with the docstring it can
get confusing confusing... for me at least. I'd like to put *exactly*
what will be returned.
Dan
On Dec 13, 2008, at 7:58 PM, James Reeves wrote:
>
> On Dec 13, 9:34 pm, Dan Larkin wrote:
>> I
I'm incredibly impressed! Have only looked at the code briefly but I
read the whole post and I'm really excited for where this is going.
On Jan 12, 2009, at 11:45 PM, Mark McGranaghan wrote:
>
> Hi All,
>
> I'm happy to announce the alpha release of 'Ring', a library inspired
> by Python's W
in fully qualified clojure syntax
and it returns a clojure.lang.Var, which the caller can "resolve" with
var-get... maybe this function should call var-get itself... that's up
for debate.
Adobo:~ dan$ clj
Clojure
(defn require-resolve
[id]
(let [sym (symbol id)
On Jan 17, 2009, at 6:29 PM, Stephen C. Gilardi wrote:
>
> Hi Dan,
>
> That's interesting. I've given it some thought and I've come to see
> it as a version of resolve that tries harder than the default.
> Here's an implementation that makes its capabili
On Jan 19, 2009, at 12:39 PM, Michael Reid wrote:
>
> Forgive me I am probably missing something, but if your use case is in
> a configuration file, why can't you just to a regular (ns .. (:require
> ..)) so that your configuration file can declare its dependencies in
> the same way other code do
On Jan 20, 2009, at 8:42 PM, wubbie wrote:
>
> Hi
> I would just print the files, excluding "#".
> what's the best way?
>
> user=> (filter recently-modified? (file-seq (File. ".")))
> (# # #)
>
http://java.sun.com/j2se/1.5.0/docs/api/java/io/File.html#getName()
> Thanks
> -Sun
> >
--~--~---
On Jan 17, 2009, at 6:29 PM, Stephen C. Gilardi wrote:
>
> I think it's interesting experimental code. Please do send in a CA
> and let's get something like this into ns-utils.
>
I am now listed on http://clojure.org/contributing so feel free to
commit resolve* (or something like it).
--~-
Name: clojure-json
URL: http://github.com/danlarkin/clojure-json/
Author: Dan Larkin
Tags: parsing, web, data-interchange
License: BSD
Dependencies: clojure-contrib (only for running tests)
Description:
A JSON encoder/decoder for clojure. Supports reading/writing from
strings and files, pretty
On Jan 29, 2009, at 2:55 PM, Cosmin Stejerean wrote:
>
>
> On Thu, Jan 29, 2009 at 1:06 PM, Paul Mooser
> wrote:
>
> I know this has been discussed on the list before to some extent, but
> does clojure by default have any operations which actually do what
> "contains?" sounds like it would do,
On Jan 29, 2009, at 5:23 PM, Cosmin Stejerean wrote:
>
> If in? was to be added how would it behave when given a map as the
> first argument? I would rather have "contains?" do the right thing
> for list/vectors/sets and keep its current behavior for maps. If we
> do actually need a functio
On Feb 2, 2009, at 8:32 PM, Terrence Brannon wrote:
>
> I was fooling around in the REPL and from the looks of the transcript,
> I typed the very same thing, yet in one case the REPL returned (quote
> foo) and in the other case it returned foo.
>
> Transcript follows:
>
> user=> \newline
> \newl
On Feb 3, 2009, at 9:42 PM, sbkogs wrote:
>
> Parsec is a very powerful parsing library for Haskell. I was mainly
> attracted to Haskell because of this library (ala Pugs project which
> used Parsec to create a Perl6 parser).
>
> I am wondering if there is an ongoing effort to write similar lib
I should be
able to separate functionality in a way that makes sense to the app
I'm building.
Thanks for reading,
Dan
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Clojure" group.
To post to this gr
On Feb 14, 2009, at 2:14 PM, Stephen C. Gilardi wrote:
>
> On Feb 14, 2009, at 1:40 PM, Dan Larkin wrote:
>
>> But as an aside, does this seem to anyone else like a wart on an
>> otherwise great language? Thinking about file layout should not be
>> one of my priori
On Feb 21, 2009, at 2:23 PM, mikel wrote:
>
>
> If there's interest in having models and generic functions in contrib,
> I'll get a contributor agreement to Rich.
>
Aye there is, from me at least.
--~--~-~--~~~---~--~~
You received this message because you are s
But.. but... macros? code is no longer data?
On Feb 23, 2009, at 10:42 AM, Mark Volkmann wrote:
>
> I have an idea I'd like to float to see if there are reasons why it's
> a bad idea.
>
> What if Clojure had an alternate "surface" syntax that was translated
> into standard Clojure syntax by a k
I'm trying to install clojure on Debian 5.0 and having some troubles.
Typing "ant" in the clojure directory gives me the error:
compile-java:
[javac] Compiling 119 source files to /home/dan/opt/clojure/classes
[javac] Compliance level '1.4' is incompatible w
Michael Wood writes:
>
> Are you sure it's not trying to use gcj instead of Sun java?
>
> What do "java -version" and "javac -version" give you? And does
> "update-alternatives --list java" or javac print anything?
java -version:
OpenJDK Runtime Environment (build 1.6.0_0-b11)
OpenJDK Server
FILE:5)
user=> user=> java.lang.Exception: No such var: swank.swank/start-server
(NO_SOURCE_FILE:7)
The error is connected to swank because the same script works ok in
command line.
The same configuration with old clojure jar works ok in sl
Thanks man. Removing gcj does the trick. Sorry for the noise.
--~--~-~--~~~---~--~~
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 g
Looks great, thanks a bunch.
I'm not coming from a Java background so any swing example I can get my
hands on is great.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Clojure" group.
To post to this group, send e
I'm curious about this as well. In terms of writing simple UI gadgets,
it's overwhelming to refer to the Java docs when I don't have any
background in Java.
There's a few examples floating around out there, but if I try and
reference them to write in clojure using different components it doesn'
Sorry for the necro, but I just started using error-kit and read this
thread for the first time today.
Both error-kit (errors no longer inherit from *error* AFAICT) and test-
is (the report function syntax) have changed since David last posted a
working function, so I've updated it work with
On May 18, 2009, at 9:23 AM, Laurent PETIT wrote:
>
> 2009/5/18 Mark Volkmann :
>>
>> On Mon, May 18, 2009 at 7:36 AM, Rich Hickey
>> wrote:
>>>
>>> I'll be doing two sessions involving Clojure at JavaOne this June.
>>> One
>>> is a traditional talk (TS-4164), the other is as a participant
DataCube reminds me of http://timecube.com/
Completely OT, though... or is it?
On May 19, 2009, at 10:18 AM, Konrad Hinsen wrote:
> On May 19, 2009, at 14:28, aperotte wrote:
>
>> I'm glad you got it working. I'll have to look into compiling it
>> with
>> an earlier version of java.
>>
>> I
run() method. Conceptually, it isn't what I want.
I don't want lexical, thread-local, or global scope; my program consists of
nested thread pools, and I want thread-pool scope. Is there a nice Clojure
way to get this? Would you use dynamically-generated namespaces or
something else I h
(defmacro with-args-enclosed
[f & args]
`(fn [] (~f ~...@args)))
and keep it simple.
Thanks again,
Dan
On Tue, Jul 21, 2009 at 10:13 AM, Stuart Sierra wrote:
>
> Hi Dan,
>
> I'm not sure, but closures actually sound like the way to go here.
> That would be the
;strutils' or 'str-utils' sound fine to me, but I'm not so great at
the name game.
I'm in favor of str-utils2 replacing str-utils, though.
Dan
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups
Lazy seqs were designed to work that way. See the implementation in
clojure.lang.LazySeq. RuntimeExceptions get thrown whenever Exceptions are
caught. I guess you find it unhelpful?
Dan
On Wed, Aug 26, 2009 at 11:47 PM, Tim Snyder wrote:
>
> I'm trying to understand how lazin
Ruby so I'm not familiar with building/compiling jars :)
The path to the 4 jars you mentioned were in a .clojure in the folder, does
that add it to the CP?
Dan McGrady
http://dmix.ca | 647-966-7986
On Fri, Aug 28, 2009 at 11:15 AM, Richard Newman wrote:
>
> > I am
I'd like to convince some Python developers that Clojure is not foreign and
does many things better than Python. I'd appreciate whatever suggestions
you have about what I've written.
Though I am crazy about STM and Clojure agents, I don't deal with them
here. This has to be a gentle introduction
Hi,
I have a maven project with java and clojure files. When I try to use
logging in clojure files the build fails with:
[INFO] [clojure:compile {execution: default-cli}]
Compiling ro.dpom.markers to /home/dan/project/target/classes
Exception in thread "main" java.lang.ClassNotFoun
You are right. The import syntax is wrong.
Did you put a ticket on assembla?
Thank you,
Dan
Roger Gilliar writes:
> Hi,
>
> the import syntax for the java libs in the correspondig clojure
> contrib source is wrong. Just change them to the correct syntax and it
> works.
OK... I'm trying to take Clojure for a spin on Project Euler problems.
I have source files for each problem that I have solved and although I
can refer to and invoke any one of them explicitly from a main class,
I cannot seem to figure out how to refer to them all at once so that I
can choose to ru
et paid
> to code in
> clojure! (I live on Kauai, HI)
>
> The team currently consists of myself (dysinger), phil (technomancy),
> dan
> (danlarkin), george (gjahad) and Steve (scgilardi) and we all use and
> love Emacs
> (requirement so we can pair).
>
> We would prefer a
On Dec 11, 2009, at 3:04 PM, Sean Devlin wrote:
> Wouldn't ::quit do the same thing?
It wouldn't, because the repl is evaluating in the context of wherever you put
the (debug-repl) call, so its namespace won't be "dr".
What about instead of using keywords for commands, we use functions for
co
1 - 100 of 208 matches
Mail list logo