On 18.03.2010, at 04:50, Praki Prakash wrote:
As others have mentioned, Haskell is heavy in its use of monads and many
other algebraic structures. I don't know why the two languages feel so
different with respect to the level of formalism you need to use them. But,
Haskell is one of the
Hey Markus,
Probably not what you want to hear, but I think great names are both
memorable and descriptive. Leaning on those criterias clj-native is
not bad at all.
Lau
On 17 Mar., 08:08, mac markus.gustavs...@gmail.com wrote:
After just a little more test and polish I plan on calling
Hi Lee,
Personally I think JSwat does the job right in that you can break the
code and get a look at local variables. There has also been release a
'debug-repl' which allows you to halt execution and jump into a REPL,
like so: http://georgejahad.com/clojure/debug-repl.html. There exists
2
Hi Ben,
I think we often get the impression that functional programming is
directly connected to monads, but in practical terms the important
concepts are pure functions and persistent immutable datastructures.
The learning curve when coming from an imperative language, lies (for
me at least)
Hey Tim,
Welcome - I might be restating, but this should get you going quickly:
Getting ready:
http://www.bestinclass.dk/index.php/2009/12/clojure-101-getting-clojure-slime-installed/
Doing simple pages:
http://www.bestinclass.dk/index.php/2009/12/beating-the-arc-challenge-in-clojure/
Eugen,
Fantastic insight - I cant wait to work that into a blogpost :)
Lau
On 17 Mar., 15:56, Eugen Dück eu...@dueck.org wrote:
All,
Developing in clojure is a lot of fun, at least it was for me and a
project of mine - except for one thing: Deploying the app as Java Web
Start app, that
What about Clonure? Wordplay on Clone and leaving out the j ;)
2010/3/17 mac markus.gustavs...@gmail.com:
After just a little more test and polish I plan on calling clj-native
1.0. But clj-native is a *really* boring name so I want to change it
before 1.0 and I don't have very good imagination
On Wed, Mar 17, 2010 at 1:28 PM, Ben Armstrong synerg...@gmail.com wrote:
What I would like to have is some sort of lexicon to at least help explain
the terminology in a way that doesn't require three years of academic
exposure to functional programming to read. Is there such a reference? Or
Hello, I just was to lazy to get my Javadoc, so I wanted to list the
methods of an object from the 1.1-REPL.
I got different results when mapping .getName or #(.getName %) over
the seq I produced - I expected this to be the same. So seemingly my
expectations are wrong. Would you please rectify?
Hi,
Java methods are not clojure functions. To treat them like first-class
functions you have to wrap them in clojure functions as you did in
your second example.
For your actual task: you might want to look at clojure.contrib.repl-
utils/show.
Sincerely
Meikel
--
You received this message
Thank you Meikel. I just didnt encounter that information before ;-)
I'm still in the process of learning the core lib, so while learning I
sometimes avoid the contrib libraries, and try myself. Here this
proved educating again ;-)
(wouldn't do so for production ;-)
Thank you and regards, alux
Hello,
is there a possibility to reload a clj-file that has been provided at
the REPL-start via -i filename.clj ? (It doesn't have a name space.)
This would save me to provide a namespace in the file an thus type (ns
my-ns) after every REPL start.
Thank you and greetings,
alux
--
You
Hi,
On Mar 18, 12:06 pm, alux alu...@googlemail.com wrote:
is there a possibility to reload a clj-file that has been provided at
the REPL-start via -i filename.clj ? (It doesn't have a name space.)
This would save me to provide a namespace in the file an thus type (ns
my-ns) after every
C-Foam
martin
On Wed, Mar 17, 2010 at 12:38 PM, mac markus.gustavs...@gmail.com wrote:
After just a little more test and polish I plan on calling clj-native
1.0. But clj-native is a *really* boring name so I want to change it
before 1.0 and I don't have very good imagination when it comes to
On Wed, Mar 17, 2010 at 3:08 AM, mac markus.gustavs...@gmail.com wrote:
After just a little more test and polish I plan on calling clj-native
1.0. But clj-native is a *really* boring name so I want to change it
before 1.0 and I don't have very good imagination when it comes to
these
memfn is from the depths of time and should be deprecated -- it is
idiomatic to write an anonymous fn around the method.
Stu
This seems like a potential usecase for (memfn):
-
clojure.core/memfn
([name args])
Macro
Expands into code that creates a fn that expects
I love the reference, but I dunno dude, the word itself sounds venereal !
On 18 Mar 2010, at 14:36, Alexandre Patry wrote:
On Wed, Mar 17, 2010 at 3:08 AM, mac markus.gustavs...@gmail.com wrote:
After just a little more test and polish I plan on calling clj-native
1.0. But clj-native
Many thanks, all questions I had are answered. And some I didn't have
but should!
Greetings, alux
On 18 Mrz., 14:25, Meikel Brandmeyer m...@kotka.de wrote:
Hi,
On Mar 18, 12:06 pm, alux alu...@googlemail.com wrote:
is there a possibility to reload a clj-file that has been provided at
the
Is there any reason why a .method occurrence in non-operator position
doesn't just do the closure wrapping automagically?
-Per
On Thu, Mar 18, 2010 at 9:50 PM, Stuart Halloway
stuart.hallo...@gmail.com wrote:
memfn is from the depths of time and should be deprecated -- it is idiomatic
to write
clj-segfault
j/k :)
Seriously though, thank you for working on this. I'm sure it will
remove a serious barrier to entry for some people.
On Mar 13, 1:14 pm, mac markus.gustavs...@gmail.com wrote:
Hello all.
I have had some time lately to work on my C FFI for Clojure and I
think it's pretty
Too right. Thanks very much friend.
Tim
On Wed, Mar 17, 2010 at 3:25 PM, Michael Wood esiot...@gmail.com wrote:
On 17 March 2010 21:18, Michael Wood esiot...@gmail.com wrote:
[...]
$ java -cp clojure-1.1.0.jar:clojure-contrib.jar clojure.mainClojure
1.1.0
[...]
Whoops! Not sure what
Would :deprecated be a reasonable thing to include in a function's
metadata? Just the presence of it seems good enough, but I guess
pairing it with some programmer friendly message (hey, use bar
instead of foo) might be nice.
Or... maybe 10,000 lines of XML as metadata! :-)
On Mar 18, 10:50 am,
See http://vimeo.com/8398020
Great video!
But, it would be great if I could capture the *text* of the video,
(if available) that would be very helpful in referrencing Lau's
instructions
Anyone know how to do that?
thanks
--
Tim
t...@johnsons-web.com
http://www.akwebsoft.com
--
You received
And upgrade the doc macro accordingly? That would make entirely too
much sense.
+1
On Mar 18, 2:36 pm, Seth seth.schroe...@gmail.com wrote:
Would :deprecated be a reasonable thing to include in a function's
metadata? Just the presence of it seems good enough, but I guess
pairing it with some
On 18/03/10 06:57 AM, Michael Kohl wrote:
There's a really nice article series on monads in Clojure:
http://onclojure.com/2009/03/05/a-monad-tutorial-for-clojure-programmers-part-1/
Oh, wow! Lucidly written. And it gives me something, maybe-m, that I
can't believe I got along without
Hello!
I much enjoyed reading the tutorial http://www.lisperati.com/casting.html
, mentioned by eyeris today. The most mind-extending thing (to me,
having Java background) is the, admittedly non-idiomatic, use of
symbols as data.
But I have two translation problems, I want to pose before going
Again, from my translation of the http://www.lisperati.com/casting.html
tutorial.
I completely lost track at the macro generating macro (defspel game-
action ..
In short, Barski writes a very simple (and neat) text adventure. To
avoid wrong assumtions he doesnt talk about macros but SPELs, using
But I have two translation problems, I want to pose before going to
sleep (its pitch dark in Europe :). First the easy one:
Common Lisp
(defun describe-path (path)
`(there is a ,(second path) going ,(first path) from here.))
My Clojure version, I use a map:
(defn describe-path [path]
I just did this :
(defn describe-path [path]
`(there is a ,(second path) going ,(first path) from here.))
which gives me :
(describe-path (list left right))
(user/there user/is user/a (clojure.core/second user/path) user/going
(clojure.core/first user/path) user/from here.)
Sure, it prepends
Yes, of course, thats what a sane person would do ;-)
I mentioned in my later post, this usage of symbols as data is 1. non-
idiomatic but 2. really illuminating for somebody with Java
background.
Well, and its what this tutorial does.
Nevertheless thank you for the answer!
Kind regards, alux
Hello Fons,
(my former answer was to Brian)
I tried this one, actually. But the result is really used as output of
the adventure 'game' here. So the namespace prefix must not be there.
Thank you for the answer, alux
On 18 Mrz., 21:50, fons haffmans fons.haffm...@gmail.com wrote:
I just did
On 18 March 2010 20:31, Timothy Washington twash...@gmail.com wrote:
Too right. Thanks very much friend.
No problem :)
On Wed, Mar 17, 2010 at 3:25 PM, Michael Wood esiot...@gmail.com wrote:
On 17 March 2010 21:18, Michael Wood esiot...@gmail.com wrote:
[...]
$ java -cp
On Thu, Mar 18, 2010 at 4:25 PM, alux alu...@googlemail.com wrote:
Hello!
I much enjoyed reading the tutorial http://www.lisperati.com/casting.html
, mentioned by eyeris today. The most mind-extending thing (to me,
having Java background) is the, admittedly non-idiomatic, use of
symbols as
On Mar 18, 2010, at 10:55 AM, Per Vognsen wrote:
Is there any reason why a .method occurrence in non-operator position
doesn't just do the closure wrapping automagically?
I'd like to know this as well. Smooth Java interop is one of Clojure's selling
points, but having to wrap Java methods in
On 18 March 2010 22:38, alux alu...@googlemail.com wrote:
Again, from my translation of the http://www.lisperati.com/casting.html
tutorial.
I completely lost track at the macro generating macro (defspel game-
action ..
In short, Barski writes a very simple (and neat) text adventure. To
Don't want to start my own thread, so here goes: we are starting a
functional programming user group in Vienna that - judging by the
people who showed interest so far - will probably be quite heavy on
all things Lisp, so it'd be nice if you could include that too:
On Mar 18, 2010, at 4:17 PM, David Nolen wrote:
On Thu, Mar 18, 2010 at 4:25 PM, alux alu...@googlemail.com wrote:
Hello!
I much enjoyed reading the tutorial http://www.lisperati.com/casting.html
, mentioned by eyeris today. The most mind-extending thing (to me,
having Java background) is
...
(game-action weld chain bucket attic
(if ((and (have 'bucket) (alter-var-root (var *chain-welded*) (fn
^
Your if-condition is nested one form too deeply; try (if (and (have
'bucket) ...) ...)
I haven't tried it, so there might be other problems.
-Dave
--
You
On 18 March 2010 23:40, Dave M damncan...@gmail.com wrote:
...
(game-action weld chain bucket attic
(if ((and (have 'bucket) (alter-var-root (var *chain-welded*) (fn
^
Your if-condition is nested one form too deeply; try (if (and (have
'bucket) ...) ...)
I haven't
On 18 March 2010 23:40, Michael Gardner gardne...@gmail.com wrote:
On Mar 18, 2010, at 4:17 PM, David Nolen wrote:
On Thu, Mar 18, 2010 at 4:25 PM, alux alu...@googlemail.com wrote:
Hello!
I much enjoyed reading the tutorial http://www.lisperati.com/casting.html
, mentioned by eyeris today.
But using symbols for something like this is a bit contrived anyway.
Maybe, but I've seen it in other Common Lisp books/tutorials before.
e.g. I'm sure PAIP was one of them.
Part of the motivation is that CL symbols always compare with EQ and
EQL, whilst strings are not required to do so:
* LauJensen lau.jen...@bestinclass.dk [100318 00:26]:
Hey Tim,
Welcome - I might be restating, but this should get you going quickly:
Oh that's great Lau!
I have been looking at your videos and was wondering where I could
find text instructions
(see my posting subject: Clojure 101 -
how about 'patois' or 'creole'
On Mar 17, 12:08 am, mac markus.gustavs...@gmail.com wrote:
After just a little more test and polish I plan on calling clj-native
1.0. But clj-native is a *really* boring name so I want to change it
before 1.0 and I don't have very good imagination when it comes
My experience as a newcomer to Clojure is that one of the most
surprising things is the dichotomy between the Clojure and JVM world.
I was reading one of Lau's blog posts on converting images to ASCII art:
http://www.bestinclass.dk/index.php/2010/02/my-tribute-to-steve-ballmer
His
I'm trying to eliminate some reflection overhead in little SQL utility
I'm working on and can't seem to get the type hint right for this
code:
(import 'java.sql.ResultSet)
(set! *warn-on-reflection* true)
(defn rs-get-row [#^ResultSet rs]
(if (.next rs)
(let [cols (.. rs getMetaData
My guess from looking at the API documentation for ResultSet is that
it doesn't know which of the several one-parameter overloads of
getObject to choose. Presumably you want the integer one, so try
(.getObject rs (int i)).
-Per
On Fri, Mar 19, 2010 at 12:08 PM, cageface milese...@gmail.com
Hi there -- I am looking for a solution to a particular memoization
pattern. I have a function foo that is the entry point of a caller
that makes many thousands of calls to a function bar. In calling foo,
bar will be called with many different args but there are many
repeated calls to bar with the
47 matches
Mail list logo