Clojure is designed to be hosted. So I'm pretty sure that there are no
plan to write a nativ clojure VM but you could try to compile the byte
code with llvm. I here there is a java byte code frontend.
On Dec 20, 8:43 am, kaveh_shahbazian kaveh.shahbaz...@gmail.com
wrote:
Is there a natively
Can you articulate it any better than ah hah!?
Heureka!
--
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 - please be patient with your
first
Ken Wesson kwess...@gmail.com writes:
* OO programs conflate value, state, and identity.
Ah. So, like the confused situations you get with Java's mutable
collections.
I just thought of a non programming language example which might help
explain what state and identity conflation means. The
Thanks! That's just what I was looking for.
On Dec 19, 5:56 pm, Miki miki.teb...@gmail.com wrote:
Does anyone know how to set connection or read timeouts for clj-http?
I didn't see anything in the API. clj-apache-http has that option though
(setting http.socket.timeout parameter).
HTH,
--
Hi gurus,
I find clojure can use pr-str and read-string to save/load data. But when I
use read-string to load a instance of a datatype, which is saved to file
using pr-str, an exception thrown.
java.lang.RuntimeException: java.lang.Exception: No dispatch macro for: :
at
You can't step into the same river twice.
In this quote the river is the identity. At any snapshot in time the river
is a specific value.
--
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
`read` does not yet support datatypes. This is a known problem which *may*
be fixed in 1.3.
-Stuart Sierra
clojure.com
--
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
It's theoretically possible, but not under active investigation at this
time.
-Stuart Sierra
clojure.com
--
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
Hi gurus,
I find clojure can use pr-str and read-string to save/load data. But when I
use read-string to load a instance of a datatype, which is saved to file
using pr-str, an exception thrown.
java.lang.RuntimeException: java.lang.Exception: No dispatch macro for: :
at
Hi,
I just started a hobby project, it download a webbpage, and extract number
data witch exits between brStart rad:/SPAN --and -- /TD
Example
brStart rad:/SPAN01 20 20 52 32 85 89/TD
Everything works fine exept -main witch gives a error i don't understand.
Becurse i try to learn Clojure, i
2010/12/20 uap12 anders.u.pers...@gmail.com
Hi,
I just started a hobby project, it download a webbpage, and extract number
data witch exits between brStart rad:/SPAN --and -- /TD
Example
brStart rad:/SPAN01 20 20 52 32 85 89/TD
Everything works fine exept -main witch gives a error i
Tanks very mutch for the help.
/Anders
--
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 - please be patient with your
first post.
To
If you wait for clojure in clojure and then use VMkit (LLVM based
thing to do Virtual Machine), it can be an interesting project.
I am not sure if it would be considered as really native, though.
Nicolas.
--
You received this message because you are subscribed to the Google
Groups Clojure
+1 on partial with no args !
I have a doubt: using partial conveys the intent, but with automatic
currying one may get confused between partial application
function call, no?
--
You received this message because you are subscribed to the Google
Groups Clojure group.
To post to this group, send
I have posted a repository containing the code for a web application I made
using a server push (AKA Comet, long polling) architecture. The front end
is in Javascript, and the back end is in Clojure. The clojure code is able
to send notifications to clients' browsers effectively through use of
On Mon, Dec 20, 2010 at 10:41 AM, nicolas.o...@gmail.com
nicolas.o...@gmail.com wrote:
If you wait for clojure in clojure and then use VMkit (LLVM based
thing to do Virtual Machine), it can be an interesting project.
I am not sure if it would be considered as really native, though.
Has anyone
On Mon, Dec 20, 2010 at 10:27 AM, uap12 anders.u.pers...@gmail.com wrote:
Tanks very mutch for the help.
/Anders
Of course (apply str ...) will suck the whole file into ram all at
once, eagerly. If it's a multi-gigabyte file expect OOME. It would be
nice if there was a variation on re support
On Mon, Dec 20, 2010 at 12:26 AM, Tim Daly d...@axiom-developer.org wrote:
On 12/19/2010 10:53 PM, Ken Wesson wrote:
Ah. So, like the confused situations you get with Java's mutable
collections. Two lists are equal if they have the same contents in the
same order -- but then you use one as a
On Mon, Dec 20, 2010 at 2:49 AM, Alex Osborne a...@meshy.org wrote:
Ken Wesson kwess...@gmail.com writes:
Ah. So, like the confused situations you get with Java's mutable
collections. Two lists are equal if they have the same contents in the
same order -- but then you use one as a key in a
Hi,
if you prefer text over talk:
http://clojure.googlegroups.com/web/AreWeThereYet.pdf
Sincerely
Meikel
--
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
No, identifiers are names. Identity transcends names. For example,
in a distributed shared object system, multiple machines on the same
network will have different identifiers for the same identity.
Ordinary usage isn't good enough for metaphysical discussions.
There is a metaphysical
On Mon, Dec 20, 2010 at 1:26 PM, Meikel Brandmeyer m...@kotka.de wrote:
Hi,
if you prefer text over talk:
http://clojure.googlegroups.com/web/AreWeThereYet.pdf
*giggle*
It figures.
I ask for text instead of video so, naturally, I get a PDF link.
*falls over laughing*
--
You received
On Mon, Dec 20, 2010 at 1:30 PM, Alyssa Kwan alyssa.c.k...@gmail.com wrote:
No, identifiers are names. Identity transcends names. For example,
in a distributed shared object system, multiple machines on the same
network will have different identifiers for the same identity.
Ordinary usage
On 12/20/10 1:39 PM, Ken Wesson wrote:
On Mon, Dec 20, 2010 at 1:26 PM, Meikel Brandmeyerm...@kotka.de wrote:
Hi,
if you prefer text over talk:
http://clojure.googlegroups.com/web/AreWeThereYet.pdf
*giggle*
It figures.
I ask for text instead of video so, naturally, I get a PDF link.
I think too many posters here are equating Clojure with Lisp.
Clojure is a LISP, but it is not LISP itself.
* Mutability is not a given in all LISP implementations, only some of
them.
* STM transactions (i.e. state and time management upon non-mutable
objects) is a Clojure concept, that no other
On Mon, Dec 20, 2010 at 1:42 PM, Aaron Bedra aaron.be...@gmail.com wrote:
On 12/20/10 1:39 PM, Ken Wesson wrote:
On Mon, Dec 20, 2010 at 1:26 PM, Meikel Brandmeyerm...@kotka.de wrote:
Hi,
if you prefer text over talk:
http://clojure.googlegroups.com/web/AreWeThereYet.pdf
*giggle*
It
Hi,
Am 20.12.2010 um 19:39 schrieb Ken Wesson:
On Mon, Dec 20, 2010 at 1:26 PM, Meikel Brandmeyer m...@kotka.de wrote:
Hi,
if you prefer text over talk:
http://clojure.googlegroups.com/web/AreWeThereYet.pdf
*giggle*
It figures.
I ask for text instead of video so, naturally, I
On Mon, Dec 20, 2010 at 1:48 PM, Meikel Brandmeyer m...@kotka.de wrote:
http://clojure.googlegroups.com/web/AreWeThereYet.pdf
*giggle*
It figures.
I ask for text instead of video so, naturally, I get a PDF link.
*falls over laughing*
How rude. Searching in the PDF (yes, that works), one
On 12/20/10 1:47 PM, Ken Wesson wrote:
On Mon, Dec 20, 2010 at 1:42 PM, Aaron Bedraaaron.be...@gmail.com wrote:
On 12/20/10 1:39 PM, Ken Wesson wrote:
On Mon, Dec 20, 2010 at 1:26 PM, Meikel Brandmeyerm...@kotka.dewrote:
Hi,
if you prefer text over talk:
I hadn't considered using an online validator. Given that these are
only unit tests, this is the simplest solution. Thanks!
On Dec 18, 7:27 pm, Jeff Valk jv-li...@tx.rr.com wrote:
On Saturday, December 18, 2010 at 02:10 pm, Alyssa Kwan wrote:
I'd like to unit test my html output for
Thank Ken, your suggestion solved my problem with the OOM exception.
I tried your suggestion to run it in parallel but I didn't see much
difference. Instead I called future on the let call and that helped
the performance.
On Dec 17, 2:55 pm, Ken Wesson kwess...@gmail.com wrote:
On Fri, Dec 17,
What things normally mean has no place in computer science. You
have to embrace the jargon to be able to think rationally in the
space. This in no way detracts from this discussion.
When I say Hickey nomenclature, I mean vis a vis classical
philosophy or Hegel. Lay nomenclature only muddies
Hi Ken,
I'd like to nominate you on behalf of the Clojure community to convert
all non-text resources into text only resources. You officially have
my vote. I think your passion makes you the perfect candidate to do
this work. In the mean time I'd like to extend a thanks to all the
folks having
On Mon, 20 Dec 2010 12:19:59 -0500
Ken Wesson kwess...@gmail.com wrote:
Has anyone tried compiling a Clojure project (along with Clojure
itself) with gcj or jet?
I tried to compile Clojure 1.2 with GCJ. To avoid compilation errors I
had to replace some classes in GNU Classpath with versions
I understand hosting on a VM has it's own (huge) advantages: GC,
libraries, proved practices and vast amount of research and community
effort already available; no doubt on that part.
It is just having a mature and well designed cross-platform natively
compiled language (other than C and C++) has
On 12/20/2010 1:47 PM, Ken Wesson wrote:
On Mon, Dec 20, 2010 at 1:42 PM, Aaron Bedraaaron.be...@gmail.com wrote:
On 12/20/10 1:39 PM, Ken Wesson wrote:
On Mon, Dec 20, 2010 at 1:26 PM, Meikel Brandmeyerm...@kotka.dewrote:
Hi,
if you prefer text over talk:
On Mon, 20 Dec 2010 19:26:49 +0100
Meikel Brandmeyer m...@kotka.de wrote:
Hi,
if you prefer text over talk:
http://clojure.googlegroups.com/web/AreWeThereYet.pdf
Thanks for the link.
To bad it made Tufte kill a kitten. I had forgotten there was a
textual representation with a lower
On 12/20/2010 1:42 PM, Tim Robinson wrote:
I think too many posters here are equating Clojure with Lisp.
Clojure is a LISP, but it is not LISP itself.
Since I've worked in a dozen Lisps (golden common, VMLisp, Lisp370,
Zetalisp, MacLisp, Lisp 1.5, Orien Lisp, etc.) I don't think I would
I looked into this a while back. Unfortunetly, Clojure really is
designed to be run on a VM. It makes heavy use of the GC, reflection,
and OOP.
Clojure is a fantastic language (Although I have just scratched the
surface) and It would be nice to have it natively compiled.
Why would it be nice?
On 20 Dec 2010, at 18:19, Ken Wesson wrote:
Is it really necessary, though? Hotspot's JIT yields up
native-ballpark speeds when you really need them, if you optimize your
code appropriately.
For me, a native-code implementation of Clojure would be of interest
for interfacing with libraries
Is it really necessary, though? Hotspot's JIT yields up
native-ballpark speeds when you really need them, if you optimize your
code appropriately.
For me, a native-code implementation of Clojure would be of interest for
interfacing with libraries written in C, C++, and Fortran. The same
On 20 Dec 2010, at 21:28, Timothy Baldridge wrote:
Have fun with that. For C it would be easy-ish to create a pinvoke
like system. But for C++.yehhh.the way C++ is linked is
just wrong. Sometimes linkers can't even link between two different
C would be fine. I wouldn't mind
2010/12/20 Ken Wesson kwess...@gmail.com
On Mon, Dec 20, 2010 at 10:27 AM, uap12 anders.u.pers...@gmail.com
wrote:
Tanks very mutch for the help.
/Anders
Of course (apply str ...) will suck the whole file into ram all at
slurp will suffice to suck everything into memory
once,
I generally find it easier to get the bigger picture of something when I'm
stepping a little bit back.
With programming languages, sometimes it can involve discovering language
n+1 to give some new perspective on language n, and getting the ah ah
moment with language n.
For example, it's hard to
2010/12/20 Ken Wesson kwess...@gmail.com
On Mon, Dec 20, 2010 at 12:26 AM, Tim Daly d...@axiom-developer.org
wrote:
On 12/19/2010 10:53 PM, Ken Wesson wrote:
Ah. So, like the confused situations you get with Java's mutable
collections. Two lists are equal if they have the same contents in
On Mon, Dec 20, 2010 at 3:55 PM, Laurent PETIT laurent.pe...@gmail.com wrote:
2010/12/20 Ken Wesson kwess...@gmail.com
On Mon, Dec 20, 2010 at 10:27 AM, uap12 anders.u.pers...@gmail.com
wrote:
Tanks very mutch for the help.
/Anders
Of course (apply str ...) will suck the whole file
On Mon, Dec 20, 2010 at 1:57 PM, Alyssa Kwan alyssa.c.k...@gmail.com wrote:
What things normally mean has no place in computer science. You
have to embrace the jargon to be able to think rationally in the
space. This in no way detracts from this discussion.
I meant what things normally mean
On Mon, Dec 20, 2010 at 2:10 PM, Tim Robinson tim.blacks...@gmail.com wrote:
Hi Ken,
I'd like to nominate you on behalf of the Clojure community to convert
all non-text resources into text only resources.
Sorry, but I must decline; I simply don't have the time to do so. As I
already mentioned
On Mon, Dec 20, 2010 at 2:55 PM, Tim Daly d...@axiom-developer.org wrote:
I am amazed that you find a link to a scholarly article inappropriate.
I didn't find the link inappropriate. No doubt the content is just peachy.
I did find the format problematic. I much prefer stuff I can simply
browse
On Mon, Dec 20, 2010 at 1:20 PM, Ken Wesson kwess...@gmail.com wrote:
I did find the format problematic. I much prefer stuff I can simply
browse in my web browser as normal, without involving special plugins
or external applications and without the files themselves being
enormous, as videos
On Mon, Dec 20, 2010 at 3:00 PM, Mike Meyer
mwm-keyword-googlegroups.620...@mired.org wrote:
On Mon, 20 Dec 2010 19:26:49 +0100
Meikel Brandmeyer m...@kotka.de wrote:
http://clojure.googlegroups.com/web/AreWeThereYet.pdf
Thanks for the link.
To bad it made Tufte kill a kitten. I had
Hi,
I have some questions related with maps and vectors, if someone can
help me I will appreciate it a lot.
I have a vector like:
[a1 a2 a3 b1 b2 b3 c1 c2 c3]
And I would like to have:
[[a1 a2 a3] [b1 b2 b3] [c1 c2 c3]]
Until now I have done:
(map vector (take 3 [a1 a2 a3 b1 b2 b3 c1 c2 c3]))
On Mon, Dec 20, 2010 at 4:10 PM, Laurent PETIT laurent.pe...@gmail.com wrote:
2010/12/20 Ken Wesson kwess...@gmail.com
On Mon, Dec 20, 2010 at 12:26 AM, Tim Daly d...@axiom-developer.org
wrote:
On 12/19/2010 10:53 PM, Ken Wesson wrote:
Ah. So, like the confused situations you get with
On Mon, Dec 20, 2010 at 4:28 PM, Anclj anb...@gmail.com wrote:
Hi,
I have some questions related with maps and vectors, if someone can
help me I will appreciate it a lot.
I have a vector like:
[a1 a2 a3 b1 b2 b3 c1 c2 c3]
And I would like to have:
[[a1 a2 a3] [b1 b2 b3] [c1 c2 c3]]
Since Ken doesn't mention it explicitly: there's a difference between
vec and vector. (vec x) returns a vector containing all the elements
of x - a vector view of x, I think the doc mentions. (vector x)
returns a vector containing the single element x.
On Dec 20, 1:33 pm, Ken Wesson
On Mon, 20 Dec 2010 16:27:11 -0500
Ken Wesson kwess...@gmail.com wrote:
On Mon, Dec 20, 2010 at 3:00 PM, Mike Meyer
mwm-keyword-googlegroups.620...@mired.org wrote:
On Mon, 20 Dec 2010 19:26:49 +0100
Meikel Brandmeyer m...@kotka.de wrote:
Thanks a lot for the fast reply!
Now I have the vector as I wanted.
I have been playing with your code: (map #(/ votes %) (iterate inc 1))
user= (take 10 (map #(/ 100 %) (iterate inc 1)))
(100 50 100/3 25 20 50/3 100/7 25/2 100/9 10)
I have managed to put that in a lazy sequence:
user= (def ls
On Tuesday, December 21, 2010 4:47:56 AM UTC+11, Ken Wesson wrote:
But some of this underlying-philosophy stuff still seems to be locked
up in videos and presentations in disparate places, invisible to
Google's search and not even all linked from one place (the closest to
one place being
On Mon, Dec 20, 2010 at 5:05 PM, Anclj anb...@gmail.com wrote:
Thanks a lot for the fast reply!
Now I have the vector as I wanted.
I have been playing with your code: (map #(/ votes %) (iterate inc 1))
user= (take 10 (map #(/ 100 %) (iterate inc 1)))
(100 50 100/3 25 20 50/3 100/7 25/2
On Mon, Dec 20, 2010 at 4:49 PM, Mike Meyer
mwm-keyword-googlegroups.620...@mired.org wrote:
On Mon, 20 Dec 2010 16:27:11 -0500
Ken Wesson kwess...@gmail.com wrote:
On Mon, Dec 20, 2010 at 3:00 PM, Mike Meyer
mwm-keyword-googlegroups.620...@mired.org wrote:
On Mon, 20 Dec 2010 19:26:49
On Mon, Dec 20, 2010 at 5:18 PM, Steve stephen.a.lind...@gmail.com wrote:
On Tuesday, December 21, 2010 4:47:56 AM UTC+11, Ken Wesson wrote:
But some of this underlying-philosophy stuff still seems to be locked
up in videos and presentations in disparate places, invisible to
Google's search
On Dec 20, 10:53 am, Aaron Bedra aaron.be...@gmail.com wrote:
On 12/20/10 1:47 PM, Ken Wesson wrote:
On Mon, Dec 20, 2010 at 1:42 PM, Aaron Bedraaaron.be...@gmail.com wrote:
On 12/20/10 1:39 PM, Ken Wesson wrote:
On Mon, Dec 20, 2010 at 1:26 PM, Meikel Brandmeyerm...@kotka.de
Hello Clojure land!
I am writing a function that I just realized that I could implement
using multi methods (I think).
However, I will describe the problem anyways.
I want to be able to call a function that will take different actions
depending on the type of in the input.
I first wrote this
On Mon, Dec 20, 2010 at 10:54 PM, Stephen Pardue
pardue.step...@gmail.comwrote:
(defn panda-2 [x]
(let [xType (type x)]
(cond
(= java.lang.String xType) HELLZ YEAH IT'S A STRING!
(= java.lang.Integer xType) it's an integer...)))
You should take a look at
On Mon, Dec 20, 2010 at 10:39 PM, javajosh javaj...@gmail.com wrote:
On Dec 20, 10:53 am, Aaron Bedra aaron.be...@gmail.com wrote:
On 12/20/10 1:47 PM, Ken Wesson wrote:
On Mon, Dec 20, 2010 at 1:42 PM, Aaron Bedraaaron.be...@gmail.com wrote:
On 12/20/10 1:39 PM, Ken Wesson wrote:
On
Hi Konrad,
Have you tried giws (spelt opposite of swig) .. it automatically generates
all the necessary jni stuff necessary for any java-class .. It takes an xml
file as input and generates any necessary jni-wrappers .. It can only acess
the class member-functions not member-values. I have
user (type 'java.lang.Integer)
clojure.lang.Symbol
user
the docs for case say the test constants are not evaluated.
On Mon, Dec 20, 2010 at 8:16 PM, David Nolen dnolen.li...@gmail.com wrote:
On Mon, Dec 20, 2010 at 10:54 PM, Stephen Pardue pardue.step...@gmail.com
wrote:
(defn panda-2 [x]
On Mon, Dec 20, 2010 at 8:23 PM, Ken Wesson kwess...@gmail.com wrote:
But that would leave people with the misleading impression that a pdf
file is an adequate choice, even when I'm on my mobile ...
It's a perfectly adequate choice on my mobile... I read PDFs all the
time on my phone.
(sorry,
On Mon, Dec 20, 2010 at 7:54 PM, Stephen Pardue
pardue.step...@gmail.com wrote:
(defn panda [x]
(case (type x)
java.lang.String HELLZ YEAH IT'S A STRING!
java.lang.Integer it's an integer..))
Since (type x) returns a Class object, you could do this:
user= (defn panda[x]
On Tue, Dec 21, 2010 at 12:16 AM, Sean Corfield seancorfi...@gmail.com wrote:
On Mon, Dec 20, 2010 at 8:23 PM, Ken Wesson kwess...@gmail.com wrote:
But that would leave people with the misleading impression that a pdf
file is an adequate choice, even when I'm on my mobile ...
It's a perfectly
On Tue, Dec 21, 2010 at 12:23 AM, Sean Corfield seancorfi...@gmail.comwrote:
On Mon, Dec 20, 2010 at 7:54 PM, Stephen Pardue
pardue.step...@gmail.com wrote:
(defn panda [x]
(case (type x)
java.lang.String HELLZ YEAH IT'S A STRING!
java.lang.Integer it's an integer..))
Hello everybody,
I was under the impression that parallel colt is a parallelized subset of
colt libraries. but it seems like colt has less functionality than parallel
colt libraries.. Am I missing something?
Sunil.
--
You received this message because you are subscribed to the Google
Groups
How about a macro like this?
--
(defmacro my-case [e clauses]
`(condp = ~e
~...@clauses))
--
(defn panda-3 [x]
(my-case (type x)
java.lang.String HELLZ YEAH IT'S A STRING!
java.lang.Integer it's an integer...))
--
I'll just stick with condp though. Thanks David.
On 21 Dec 2010, at 06:57, Sunil S Nandihalli wrote:
I was under the impression that parallel colt is a parallelized
subset of colt libraries. but it seems like colt has less
functionality than parallel colt libraries.. Am I missing something?
My impression is the same as yours. Parallel
On 20 Dec 2010, at 21:43, Michael Glaesemann wrote:
For me, a native-code implementation of Clojure would be of
interest for interfacing with libraries written in C, C++, and
Fortran. The same goal could probably be achieved otherwise
(compiling Java bytecode to native code, or simply a
75 matches
Mail list logo