Hi,
I was trying to run this snake program, written by Mark Volkmann
http://www.ociweb.com/mark/programming/ClojureSnake.html
I'm getting the following error:
Exception in thread "main" java.io.FileNotFoundException: Could not
locate clojure/contrib/import_static__init.class or clojure/contrib/
lojure-contrib/
>
> On Feb 14, 11:07 am, Sean wrote:
>
> > Hi,
> > I was trying to run this snake program, written by Mark Volkmann
>
> >http://www.ociweb.com/mark/programming/ClojureSnake.html
>
> > I'm getting the following error:
>
> > Exceptio
David,
You have a great idea here with porting clojure to the CLR. The .NET
shops are just a popular as Java shops, and something like this could
go a long way to improving software written by a lot of people. Your
initiative and hard work are to be commended.
How do you plan on solving the libr
Hi everyone,
I'm working on cleaning up the wikibook some, and I've got a few
questions. If anyone could answer, that would be a great help.
What is the minimum required JVM version for clojure?
What versions of Java have been tested?
What versions of Java are supported?
Thanks!
--~--~---
Hi,
I'm trying to connect to a MYSQL instance. I need a little help
making the intellectual connection from Clojure to JDBC.
Specifically, I was hoping someone could post/link to an working
example.
Bonus Points: Provide a second example for Postgres.
Negative Points: Provide an example for S
I've got the following list
(:a nil nil :b :a)
I want to call a "nil-killer" function, and get the following list
(:a :b :a)
How do I go about this? Could someone post a quick example?
--~--~-~--~~~---~--~~
You received this message because you are subscribed t
Awesome! Thanks guys!
On Feb 24, 10:42 pm, Timothy Pratley wrote:
> user=> (remove nil? '(:a nil nil :b :a))
> (:a :b :a)
>
> On Feb 25, 2:38 pm, Sean wrote:
>
> > I've got the following list
>
> > (:a nil nil :b :a)
>
> > I want to call
On Feb 24, 11:35 pm, David Sletten wrote:
> On Feb 24, 2009, at 6:07 PM, David Sletten wrote:
>
>
>
> > (defn kill-nil
> > ([l] (kill-nil l '()))
> > ([l result] (cond (nil? l) (reverse result)
> > (nil? (first l)) (recur (rest l) result)
> > true
This is repeated from the compojure group.
Hi,
I'm developing an app that lets users upload files. I checked the
docs and tests, and I didn't notice anything about uploading files.
Is there a standard way of doing this in compojure, or do I need to
interact with the java servlet directly?
--~--~-
There's some in the wikibook
http://en.wikibooks.org/wiki/Clojure_Programming/Examples/Cookbook
Also
http://en.wikibooks.org/wiki/Clojure_Programming/Examples
I've been trying to tidy it up a little, and would love the help. Add
you own stuff!
Sean
On Mar 9, 10:00 pm, David Slet
I would call it "Obvious"
On Mar 15, 8:00 am, linh wrote:
> I like that, that makes the code selfdescribing (is there such a word
> in english?)
>
> On Mar 14, 2:58 pm, Craig Andera wrote:
>
> > What about overloading first to accept a predicate?
>
> > (first even? (iterate inc 1)) => 2
>
> > O
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
mething built around very-high scalability, using NIO and
> > thread pools and such.
>
> > On Mon, Mar 16, 2009 at 7:40 PM, Sean wrote:
>
> > > I'm not sure if some of the design inputs make sense, specifically
> > > Spring and Hibernate.
>
>
Hey everyone,
I'm writing a macro library for myself, and I'm thinking about
publishing it. Before I do so, I'd like to write & run some unit
tests for it. I was hoping the crowd could chime in on how they test
macros. Any links & examples would be great. Thanks!
--~--~-~--~--
Thanks to everyone who replied. After looking at the examples & a
night's sleep, this makes sense.
On Mar 18, 12:38 pm, Stuart Sierra
wrote:
> On Mar 17, 6:06 pm, Sean wrote:
>
> > I'm writing a macro library for myself, and I'm thinking about
> > pub
On Mar 20, 10:33 pm, Aaron Brooks wrote:
Here, here!
+1 +1 +1 ... !!
Dear God man! This is wrong!
(fact (fact (+ 1 1 1 ...)))
>
> On Fri, Mar 20, 2009 at 2:26 PM, Rayne wrote:
>
> > I Anthony Simpson, with the support of fellow Clojurists hereby
> > declare March 20th, the first day of spr
Could you throw this on github, so we can easily follow along with
improvements?
On Mar 22, 8:25 pm, "zoglma...@gmail.com" wrote:
> While playing around and implementing straight up Humman compression,
> I wrote a handful of utilities to conveinently play with byte and bit
> streams because I di
Hello Everyone,
I've been reviewing the str-utils package, and I'd like to propose a
few changes to the library. I've included the code at the bottom.
USE MULTI-METHODS
I'd like to propose re-writing the following methods to used multi-
methods. Every single method will take an input called in
.
I'll put the original post in the README
Long story short: multi-methods could be awesome
Sean
On Mar 23, 9:27 pm, David Nolen wrote:
> Looks interesting and maybe even very useful. Why not put your code on
> Github or some other public repo of your liking. It's much nicer than
&g
Some working code would make it a lot easier to understand *exactly*
what you're looking for. Do you think you could post a few quick
methods on github? If memory serves, the reflections package should
be a good place to start.
However, you'd need to ask *why* you need this.
If the answer is "
@Rowdy
Take the time to do the interleave example by hand. You'll it does
exactly what you want in one pass.
On Mar 24, 10:10 am, Rowdy Rednose wrote:
> Thanks guys, these solutions look much better already.
>
> But do I always have to have these 2 steps
> * merge collection
> * split collecti
guage.
Besides, once we get a kick-ass string library working, we can then
abstract the routines to work on any pattern of symbols, and give our
macro writers a boost.
Sean
On Mar 24, 2:22 pm, Stuart Sierra wrote:
> On Mar 23, 9:46 pm, Sean wrote:
>
> >http://github.com/francoisd
e changes should be in contrib. Pooling our efforts to create a
high performance version of the code does add value beyond a simple
wrapper.
A *fast*, tested and slick string library is even better than a
tested and slick string library.
Sean
On Mar 25, 3:08 pm, Perry Trolard wrote:
> W
Yesterday a coworker need a few excel spreadsheets (tab delimited)
stitched together. I took this as an opportunity to test run my
proposed string functions. Here's what I found:
Good stuff
* Having re-split be lazy is awesome. This made partially traversing
a row super quick.
* The str-before
Mark,
This is a great writeup on installing clojure. As an OSX nerd, my
main problem is getting an editor up and running. Maybe you could add
a section on setting up an editor? I know the wiki was a good place
to start.
On Mar 30, 7:02 am, Mark Reid wrote:
> Hi,
>
> I've just written a blog p
Hi,
Does anyone know of a good compression library in java or clojure? A
quick google didn't reveal much useful. I need an LZW filter for an
app I'm working on.
Sean
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Goo
There is a pair of java books I cut my teeth on, an I would recommend
them to anyone.
Core Java Volumes I & II, by Horstman and Cornell.
Amazing reference, two of the best technical books I've ever read.
Cover usage, gives code examples, and a tremendous amount of history &
theory (for their aud
ve side effects?
Sean
--~--~-~--~~~---~--~~
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+unsubsc
Thanks for the response everyone! I was able to get it working. If I
understand what everyone is saying, the following statement is true:
In Clojure, laziness is the rule not the exception.
On Apr 2, 10:29 pm, Matt Revelle wrote:
> Were you in #clojure earlier? This came up there and pjsta
I'm working with AWT, and there is a method that requires a float[]
(The java.awt.BasicStroke constructor). Is it possible to directly
create an array of primitives directly in Clojure, or do I need to
create a utility class in Java?
--~--~-~--~~~---~--~~
You recei
Okay wow... it'll take some time to fully appreciate this.
Can you comment on your hardware stack? How many servers are you
using? Is there an RDBMS in there somewhere?
How was deployment?
Looks awesome, thanks for sharing!
On Apr 7, 10:41 am, Stuart Sierra wrote:
> Here: http://www.altla
This feature would be very useful, as I know I spend too much time in
re-implementing stuff that exists in contrib. However, contrib isn't
the only library that needs to be documented. Besides the doc-string
metadata, is there any type of Clojure-doc, similar to Java-doc?
Is there utility to gen
Is it likely that we’ll see a common clojure.spec implementation in .cljc files
rather than separate .clj / .cljs files?
Sean Corfield -- (904) 302-SEAN
An Architect's View -- http://corfield.org
From: David Nolen
--
You received this message because you are subscribed to the Google
G
Thanks Alex. Based on what crossclj.info shows, I suspect you may be right that
almost no one cares 😊
https://crossclj.info/fun/clojure.core.incubator/seqable?.html
Sean Corfield -- (904) 302-SEAN
An Architect's View -- http://corfield.org
From: Alex Miller
--
You received this me
As a completely non-scientific data point, we had precisely one place in our
30k+ lines of code where we can use bigdec? And there is also precisely one
place we could use biginteger? 😊
Sean Corfield -- (904) 302-SEAN
An Architect's View -- http://corfield.org
From: Alex Miller
--
I can’t help but think you’re making it way more complicated than it needs to
be.
Define ::config in example.spec, and in example.core use :example.spec/config
(and, yes, require the example.spec namespace).
You need to avoid circular namespace dependencies.
Sean Corfield -- (904) 302-SEAN
An
correctly rather
than trying to establish that they _behave_ correctly oddly compelling, now
that I’ve had some time to think about it and play with it 😊
Sean Corfield -- (904) 302-SEAN
An Architect's View -- http://corfield.org
From: Beau Fabry
--
You received this message because yo
?
http://dev.clojure.org/jira/browse/JDBC
Sean Corfield -- (904) 302-SEAN
An Architect's View -- http://corfield.org
From: Xiangtao Zhou
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@google
Thank you! I’ll take a look at this while I’m back at work this week.
Sean Corfield -- (904) 302-SEAN
An Architect's View -- http://corfield.org
From: Xiangtao Zhou
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this gr
that failed the spec.
Sean Corfield -- (904) 302-SEAN
An Architect's View -- http://corfield.org
From: Rangel Spasov
--
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
, full of special cases, warts, and surprising behavior. I
wouldn’t wish that on any sane developer.
Sean Corfield -- (904) 302-SEAN
An Architect's View -- http://corfield.org
From: Brian Marick
--
You received this message because you are subscribed to the Google
Groups "Clojure"
…) so you the keyfn pulls the value corresponding to :age out of the hash maps. That will produce 3 from {:age 3, :name “luo”} and 1 from {:age 1, :name “sheng”} so they will sort appropriately. Sean Corfield -- (970) FOR-SEAN -- (904) 302-SEANAn Architect's View -- http://corfield.org/"If
""}user=> Given that, I think that a –version option on clojure would be misleading since it is not reporting the version of the clojure / clj scripts. Sean Corfield -- (970) FOR-SEAN -- (904) 302-SEANAn Architect's View -- http://corfield.org/"If you're not annoying so
That’s new in Clojure 1.10. I thought Cognitect AWS stuff required 1.10 from the get-go but I assume you had it working on 1.9? Sean Corfield -- (970) FOR-SEAN -- (904) 302-SEANAn Architect's View -- http://corfield.org/"If you're not annoying somebody, you're not really alive
be easier to just allow un-namespaced keywords here? Or is there
some aspect of the namespacing here that I’m missing?
Sean Corfield -- (904) 302-SEAN
An Architect's View -- http://corfield.org
From: Rich Hickey
--
You received this message because you are subscribed to the Google
G
OK, that explains a lot. Thank you. That needs to be clarified on the web page
I think…
Sean Corfield -- (904) 302-SEAN
An Architect's View -- http://corfield.org
From: Alex Miller
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
-info “SpecFailure” (s/explain-data spec arg)
Sean Corfield -- (904) 302-SEAN
An Architect's View -- http://corfield.org
From: Mark Engelberg
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send e
t just screams for something like:
(condp-> accounts
empty? (conj “stuff”))
Then you could thread the predicates:
(condp-> a
p1 (f1 args)
p2 (f2 args))
which would be:
(let [x (if (p1 a) (f1 a args) a)]
(if (p2 x) (f2 x args) x))
Suggestions?
Sean Corfield -- (904)
?
Sean Corfield -- (904) 302-SEAN
An Architect's View -- http://corfield.org
World Singles, LLC - http://worldsingles.com
From: t x
Sent: Thursday, January 30, 2014 9:43 PM
To: clojure@googlegroups.com
Hi,
With apologies for a soft question:
This question is NOT:
I
t of failure?
Can't quite wrap my head around the best way to do this.
Any thoughts or pointers? Help would be very much appreciated. Thanks!
Sean
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to
Hi,
I'm new to Clojure. This is also my first time posting here.
When I use REPL and print something out, I always get a nil printed.
For example, (print "Clojure"), I got: clojurenil. Where does the nil
come from?
Thanks a lot!
--
You received this message because you are subscribed to the Goo
That was one of the best explanations of code as data I've ever read.
Kudos!
On Thu, Dec 11, 2008 at 4:44 PM, Randall R Schulz wrote:
>
> On Thursday 11 December 2008 13:37, Paul Barry wrote:
> > I've been reading the latest chapter from Stuart's book, Chapter 7:
> > Macros, and he makes this st
I looked into this briefly; I'm amazed at the progress you've made. Please
keep updating!
On Fri, Feb 6, 2009 at 11:29 AM, Remco van 't Veer wrote:
>
> Got startup time down to 5 seconds by completely eliminating the use
> of lispreader and putting of loading the xml, set and zip namespaces.
> T
o the problem.
On Apr 14, 5:59 pm, Tom Faulhaber wrote:
> Jason,
>
> Thanks for the offer. I may take you up on it as I get this into
> "production" such as it is.
>
> Sean,
>
> Nothing that I found in contrib (but who knows, there's no
> documentation :-
Start by putting your code on github or something similar :)
On Apr 14, 8:01 pm, Chris wrote:
> While playing around with clojure I've found the (time ...) macro
> isn't as powerful as I'd like. To fix this I made a timing library to
> help me figure out where all my runtime is going. If other
Okay, I'm willing to bet this crowd has already seen this:
http://www.sun.com/third-party/global/oracle/index.jsp
Any thoughts on how this affects Clojure?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Clojure" g
n years.
*Will Java continue to be open source?
*What the hell is going to happen to JDBC?
Of course, I won't even begin to get into MySQL issues. Time to
install Postgres...
Has anyone here been able to install Clojure on IcedTea?
On Apr 20, 9:22 am, hank williams wrote:
> On Mon, Ap
Thanks to *everyone* for responding! I can see that I was over
reacting yesterday. Time for me to stop worrying and get back to
coding.
Sean
On Apr 21, 2:05 am, Adrian Cuthbertson
wrote:
> There are some precedents - the acquisition of SleepyCat (berkeley db,
> et al) - still r
There recently was a ton of traffic about SCM in the "Path to 1.0"
thread. Google made the following announcement:
http://google-code-updates.blogspot.com/2009/04/mercurial-support-for-project-hosting.html
Does this make changing the SCM tool to Hg a real possibility? While
this might not be s
Thank you and congrats!
On May 4, 9:46 am, AlamedaMike wrote:
|> Congratulations, Rich! And thanks for all your hard work. Having a
1.0
|> release out to help adoption in the workplace environments that we
|> need to get into.
Indeed, this is the case where I work. Having a stable version to
t
Hi,
Has anyone else here been using Clojure to interact with SAP? Or, are
there any JCo experts in the house?
Sean
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Clojure" group.
To post to this group,
The SAP library I'm using does rely on some native methods. The only
guess I have right now is that the native methods are being linked to
properly.
Can anyone give me a hand?
Sean
--~--~-~--~~~---~--~~
You received this message because you are subscribed to th
ng in REPL, then you need to include everything you
> need in the classpath the the invoked JVM, for example:
>
> java -classpath my-jar-file-containing-DsrlPassport.jar;clojure.jar
> clojure.main
>
> On 5 May, 15:54, Sean Devlin wrote:
>
> > Okay, I've got code that
epl...
>
> (TutorialConnect1.)
>
> That might highlight the problem - your java stack strace might give
> some clues. It does sound like a classpath problem of some sort.
>
> Rgds, Adrian.
>
> On Tue, May 5, 2009 at 6:04 PM, Sean Devlin wrote:
>
> > That's a really good
Yeah, it was a classpath error. I had to create the following dummy
object:
com.sap.jdsr.writer.DsrIPassport
Once I did that and added it to the classpath, I was golden. Turns
out this is a known error with SAP JCo
Thanks everyone!
On May 5, 1:49 pm, Sean Devlin wrote:
> Another gr
+1
On May 9, 2:33 am, Mark Derricutt wrote:
> Hi,
>
> Can we add the following to contrib's sql namespace, it simply adds "jndi"
> as a db-spec scheme ( I also raised this
> ashttp://code.google.com/p/clojure-contrib/issues/detail?id=39, which google
> decided to set as a defect and I can't cha
an
example of what I do, and you can decide if it's a good fit for your
application.
Sean
On May 11, 4:05 am, Janico Greifenberg wrote:
> Hi,
>
> I'm writing an RSS-reader using compojure and clojure.contrib.sql. As
> this is my first project in a functional language, I'
function-vs-macro debate,
and I we can save those for another day :)
On May 11, 12:04 pm, Victor Rodriguez wrote:
> On Mon, May 11, 2009 at 11:32 AM, Sean Devlin
> wrote:
>
> > Here are my thoughts on the three approaches:
>
> > Approach #1: This seems the most str
ps
I'll let someone else answer "how" with respect to Clojure.
Sean
On May 11, 11:42 pm, Mark Reid wrote:
> Hi,
>
> I'm quite new to macros so forgive me if this is a naïve question, but
> is it possible to write macros that are applied to an entire Clojure
> pro
ot of subtle cases that make it very
difficult do to this job. The biggest issue I see is that you could
accidently apply a macro that creates MORE work for the JVM.
So I'd recommend doing something for the easy cases, and let the JVM
do its job for everything else.
Sean
On May 12, 7:1
Awesome"
But the can also take a regex
(str-take #"\s+" "Clojure Is Awesome") = > "Clojure"
(str-drop #"\s+" "Clojure Is Awesome") = > "Is Awesome"
You can check the tests and README.html for
seems to occur
> common enough that it's not a bad idea.
>
>
>
> On Thu, May 14, 2009 at 1:12 AM, Sean Devlin wrote:
>
> > Hello again everyone,
> > I've added a few new routines to a string library I've been working
> > on. I mentioned it ab
5. If str-take/drop were part of a standard library, would you be
more likely to write about them in your book :-p (Excellent work,
btw! Can't wait for print version!)
Happy Hacking.
Sean
On May 14, 9:14 am, Stuart Halloway wrote:
> FYI: I am working on an open-source CSV parser in
Hmmm... it sounds like there would be use for a "string table utils"
or something like that.
On May 14, 11:12 am, Daniel Lyons wrote:
> On May 14, 2009, at 7:14 AM, Stuart Halloway wrote:
>
>
>
> > FYI: I am working on an open-source CSV parser in Clojure. Splitting
> > on delimiters is rarely e
Clearly you are all dog people. Lazy cat is redundant.
On May 16, 3:55 pm, Meikel Brandmeyer wrote:
> Hi,
>
> Am 16.05.2009 um 21:48 schrieb George Jahad:
>
> > I can't come up with a reason to use lazy-cat over concat. Is it
> > just around for backwards compatibility, or am I missing someth
I'm sorry, it's an Americanism. By "Dog People", I meant someone that
prefers a dog as a pet, not a cat. It was meant as a joke.
You're right, I should be more considerate of the international
audience, and careful to make my tone more clear. Thank you for
speaking u
I was making a joke about housecats.
Maybe I should file a bug report saying cat should default to being
lazy :)
Again, sorry for the confusion.
On May 16, 4:34 pm, Meikel Brandmeyer wrote:
> Hi,
>
> Am 16.05.2009 um 21:58 schrieb Sean Devlin:
>
> > Lazy cat is redundant.
The duck streams library should give some examples the Java crowd will
be ready to appreciate. That, or maybe use the with-open macro.
My $.02
On May 21, 7:42 am, Rich Hickey wrote:
> On May 21, 3:39 am, mikel wrote:
>
>
>
> > On May 18, 7:36 am, Rich Hickey wrote:
>
> > > I'll be doing two
I just noticed a quirk in the core API. The some and every? functions
have different naming conventions. Is there a reason for this? If
not I think renaming/creating an alias some? would be very helpful.
--~--~-~--~~~---~--~~
You received this message because you
r...))
Just more to discuss
On May 26, 9:02 am, Sean Devlin wrote:
> I just noticed a quirk in the core API. The some and every? functions
> have different naming conventions. Is there a reason for this? If
> not I think renaming/creating an alia
sult of the predicate, filter returns the seq item
> for which predicate matches.
>
> Concerning the result of some, it seems better to return a more
> meaningful value, because it still can be used as logical true, e.g.
> in an if or when construct ...
>
> 2009/5/26 Sean Devlin :
>
Oops, thanks
On May 26, 9:45 am, Laurent PETIT wrote:
> Please refer to Chouser's answer for your main point,
>
> Regards,
>
> --
> laurent
>
> 2009/5/26 Sean Devlin :
>
>
>
> > Okay, excellent counterexample for some. I understand that behavior
>
I would lead the desired term with ~'
For example:
`(+ 1 2)
=> (clojure.core/+ 1 2)
`(~'+ 1 2)
=> (+ 1 2)
This is very useful when defining a function in a macro
On May 26, 2:30 pm, kyle smith wrote:
> user> (def nums '(1 2 3))
> #'user/nums
> user> (def funs '((+ (1 2 3)) (- (1 2 3
> #'
CuppoJava,
Could you give us a little more information what you're trying to do?
What type of macro-macros are you writing?
On May 28, 4:58 am, Konrad Hinsen wrote:
> On 28.05.2009, at 03:11, CuppoJava wrote:
>
> > I'm using macroexpand-1 right now, but it's not terribly useful as
> > backquote
Okay, this looks a lot like the ruby yeild statement. Is that what
inspired you?
On May 28, 12:50 pm, CuppoJava wrote:
> That's unfortunate. It would have made matters much easier for me.
>
> The macro I'm attempting to write is:
>
> (defblockfn my_block_fn [arg1 arg2 func]
> (op1 arg1)
> (
version, notice:
(collect (fn[x](* 2 x)) [1 2 3])
Feels very similar to
[1, 2, 3].collect(){|x| 2*x}
You have much more control of the function.
The main point I'm getting at is that I don't think the blockfn macro
approach is the way to go. Either write a function that take
function
On May 28, 3:01 pm, Meikel Brandmeyer wrote:
> Hi,
>
> Am 28.05.2009 um 20:11 schrieb Sean Devlin:
>
> > Without discussing a specific application, I think what you're looking
> > for can be achieved by normal macros and functions in Clojure. I'll
>
On May 28, 3:10 pm, CuppoJava wrote:
> Thank you Meikel for going to the trouble of writing out the full
> macro. It's going to take me a while to decipher it, and hopefully
> grasp some understanding at the end of it.
"I find defblockfn very useful for functions that take a single
function as
Okay, good to know. It's interesting to see other approaches. It's
how we collectively get better.
My $.02:
(with_file "myfile.txt"
#(write "asdf")
(close))
Sean
On May 28, 3:23 pm, CuppoJava wrote:
> It's useful in all the cases where a
That's true. Good job Meikel, macro master!
On May 28, 3:31 pm, CuppoJava wrote:
> Correction: By "My macro" I, of course, mean "Meikel's macro" since
> you're the one that actually got it working.
>
> Have to give credit where it's due. =)
--~--~-~--~~~---~--~~
Likewise. Good discussion.
On May 28, 4:49 pm, Meikel Brandmeyer wrote:
> Hi,
>
> Am 28.05.2009 um 22:23 schrieb CuppoJava:
>
> > Thanks to Meikel and Sean for their input and help.
>
> You are welcome. :)
>
> Sincerely
> Meike
I just got my copy of Programming Clojure in the mail today. This is
the only time I expect to see the book in pristine condition, as I
know it will get bookmarked, highlighted, and well used in a hurry.
Congratulations Stuart!
--~--~-~--~~~---~--~~
You received t
Would type hints help at all?
On May 29, 11:40 am, Laurent PETIT wrote:
> Hi,
>
> Here is my attempt, for the real benchmark test, it has an honorable
> result of 62 sec. (if there is no flaw in my algorithm, of course).
>
> ;; file shootout/ring.clj
> (ns shootout.ring
> (:gen-class))
>
> (de
Hello Everyone,
I've created a library for interacting with the clipboard. It's a
wrapper for the AWT clipboard library.You can find it here:
http://github.com/francoisdevlin/devlinsf-clojure-utils/tree/master
*Note - I changed the location of my string library for anyone
following that.
=
This would encourage documenting structs, so I think this is a good
idea.
Sean
On Jun 2, 11:31 am, Stuart Halloway wrote:
> I would like to see defstruct take an optional docstring. Would such a
> patch be welcome?
>
> Stu
--~--~-~--~~~---~--~~
I don't know either, but you can use the following work around
(defn my-seq[object]
(instance? clojure.lang.Seqable object))
(my-seq []) =>true
(my-seq {}) =>true
(my-seq #{}) =>true
(my-seq '()) =>true
(my-seq :a) => false
(my-seq 'a-symbol) => false
Still, it would be nice to know the righ
Could you throw together some live examples and unit tests?
On Jun 3, 1:10 pm, CuppoJava wrote:
> In case anybody else found defblockfn useful, here's the final
> version. The original didn't work when you used destructuring in the
> argument list of the function.
>
> (defn remove_destructuring
There was this language wiritten in '58 that can do just that. It's
called LISP.
Here's Paul Grahams paper on eval:
http://lib.store.yahoo.net/lib/paulgraham/jmc.ps
Get to the part where he defines eval, and let your brain stay on that
for a while. You'll see WHY macros work, and never ever go
Gut gemacht!
Absolutely amazing Meikel. Now get some well earned sleep.
Sean
On Jun 4, 6:22 pm, Meikel Brandmeyer wrote:
> Hi again,
>
> Am 05.06.2009 um 00:06 schrieb Meikel Brandmeyer:
>
> > The docstring is a bit contorted but I'm too sleepy now,
> > to get th
ln "Maximum number of iterations
reached")
nil)
true (recur next-x (inc iter-count)))
So it's paying off already!
On Jun 4, 7:02 pm, "Stephen C. Gilardi" wrote:
> On Jun 4, 2009, at 6:54 PM, Sean Devlin wrote:
>
> > Gut gemacht
1 - 100 of 2689 matches
Mail list logo