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 JVM
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
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
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 "C
On Tue, Dec 21, 2010 at 12:23 AM, Sean Corfield wrote:
> On Mon, Dec 20, 2010 at 7:54 PM, Stephen Pardue
> 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
On Tue, Dec 21, 2010 at 12:16 AM, Sean Corfield wrote:
> On Mon, Dec 20, 2010 at 8:23 PM, Ken Wesson 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
On Mon, Dec 20, 2010 at 7:54 PM, Stephen Pardue
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] (case (.getName (typ
On Mon, Dec 20, 2010 at 8:23 PM, Ken Wesson 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, I've been trying
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 wrote:
> On Mon, Dec 20, 2010 at 10:54 PM, Stephen Pardue
> wrote:
>>
>> (defn panda-2 [x]
>> (let [xType (type x)]
>> (co
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 tried
On Mon, Dec 20, 2010 at 10:39 PM, javajosh wrote:
>
>
> On Dec 20, 10:53 am, Aaron Bedra wrote:
>> On 12/20/10 1:47 PM, Ken Wesson wrote:
>>
>> > On Mon, Dec 20, 2010 at 1:42 PM, Aaron Bedra wrote:
>> >> On 12/20/10 1:39 PM, Ken Wesson wrote:
>> >>> On Mon, Dec 20, 2010 at 1:26 PM, Meikel Brandm
On Mon, Dec 20, 2010 at 10:54 PM, Stephen Pardue
wrote:
> (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 condp.
If you fin
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 funct
On Dec 20, 10:53 am, Aaron Bedra wrote:
> On 12/20/10 1:47 PM, Ken Wesson wrote:
>
> > On Mon, Dec 20, 2010 at 1:42 PM, Aaron Bedra wrote:
> >> On 12/20/10 1:39 PM, Ken Wesson wrote:
> >>> On Mon, Dec 20, 2010 at 1:26 PM, Meikel Brandmeyer
> >>> wrote:
> Hi,
>
> if you prefer text
On Mon, Dec 20, 2010 at 5:18 PM, Steve 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 and not even all lin
On Mon, Dec 20, 2010 at 4:49 PM, Mike Meyer
wrote:
> On Mon, 20 Dec 2010 16:27:11 -0500
> Ken Wesson wrote:
>
>> On Mon, Dec 20, 2010 at 3:00 PM, Mike Meyer
>> wrote:
>> > On Mon, 20 Dec 2010 19:26:49 +0100
>> > Meikel Brandmeyer wrote:
>> >> http://clojure.googlegroups.com/web/AreWeThereYet.pd
On Mon, Dec 20, 2010 at 5:05 PM, Anclj 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)
>
>
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" bein
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 Mon, 20 Dec 2010 16:27:11 -0500
Ken Wesson wrote:
> On Mon, Dec 20, 2010 at 3:00 PM, Mike Meyer
> wrote:
> > On Mon, 20 Dec 2010 19:26:49 +0100
> > Meikel Brandmeyer wrote:
> >> http://clojure.googlegroups.com/web/AreWeThereYet.pdf
> >
> > Thanks for the link.
> >
> > To bad it made Tufte ki
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 wrote:
> On
On Mon, Dec 20, 2010 at 4:28 PM, Anclj 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"
On Mon, Dec 20, 2010 at 4:10 PM, Laurent PETIT wrote:
>
>
> 2010/12/20 Ken Wesson
>>
>> On Mon, Dec 20, 2010 at 12:26 AM, Tim Daly
>> 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 equa
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 (ta
On Mon, Dec 20, 2010 at 3:00 PM, Mike Meyer
wrote:
> On Mon, 20 Dec 2010 19:26:49 +0100
> Meikel Brandmeyer wrote:
>> 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
On Mon, Dec 20, 2010 at 1:20 PM, Ken Wesson 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 and pdfs are wont
On Mon, Dec 20, 2010 at 2:55 PM, Tim Daly 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 in my web browser as nor
On Mon, Dec 20, 2010 at 2:10 PM, Tim Robinson 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 I don't even have t
On Mon, Dec 20, 2010 at 1:57 PM, Alyssa Kwan 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" in computer scien
On Mon, Dec 20, 2010 at 3:55 PM, Laurent PETIT wrote:
>
>
> 2010/12/20 Ken Wesson
>>
>> On Mon, Dec 20, 2010 at 10:27 AM, uap12
>> 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 every
2010/12/20 Ken Wesson
> On Mon, Dec 20, 2010 at 12:26 AM, Tim Daly
> 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
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
2010/12/20 Ken Wesson
> On Mon, Dec 20, 2010 at 10:27 AM, uap12
> 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, eagerly. If it's a multi-gigabyte file exp
On Dec 20, 2010, at 15:23, Konrad Hinsen wrote:
> 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
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 writing
>
>> 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
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 w
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 nic
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
equa
On Mon, 20 Dec 2010 19:26:49 +0100
Meikel Brandmeyer 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 information de
On 12/20/2010 1:47 PM, Ken Wesson wrote:
On Mon, Dec 20, 2010 at 1:42 PM, Aaron Bedra wrote:
On 12/20/10 1:39 PM, Ken Wesson wrote:
On Mon, Dec 20, 2010 at 1:26 PM, Meikel Brandmeyerwrote:
Hi,
if you prefer text over talk:
http://clojure.googlegroups.com/web/AreWeThereYet.pdf
*giggle
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 Mon, 20 Dec 2010 12:19:59 -0500
Ken Wesson 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 from OpenJDK.
Still
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 ta
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
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 wrote:
> On Fri, Dec 17, 2010 at 5:39 PM, c
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 wrote:
> On Saturday, December 18, 2010 at 02:10 pm, Alyssa Kwan wrote:
>
> > I'd like to unit test my html output for well-formedness. What
On 12/20/10 1:47 PM, Ken Wesson wrote:
On Mon, Dec 20, 2010 at 1:42 PM, Aaron Bedra wrote:
On 12/20/10 1:39 PM, Ken Wesson wrote:
On Mon, Dec 20, 2010 at 1:26 PM, Meikel Brandmeyerwrote:
Hi,
if you prefer text over talk:
http://clojure.googlegroups.com/web/AreWeThereYet.pdf
*giggle*
I
On Mon, Dec 20, 2010 at 1:48 PM, Meikel Brandmeyer 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 work
Hi,
Am 20.12.2010 um 19:39 schrieb Ken Wesson:
> On Mon, Dec 20, 2010 at 1:26 PM, Meikel Brandmeyer 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:42 PM, Aaron Bedra wrote:
> On 12/20/10 1:39 PM, Ken Wesson wrote:
>>
>> On Mon, Dec 20, 2010 at 1:26 PM, Meikel Brandmeyer wrote:
>>>
>>> Hi,
>>>
>>> if you prefer text over talk:
>>>
>>> http://clojure.googlegroups.com/web/AreWeThereYet.pdf
>>
>> *giggle*
>>
>> It figu
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 L
On 12/20/10 1:39 PM, Ken Wesson wrote:
On Mon, Dec 20, 2010 at 1:26 PM, Meikel Brandmeyer 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 laughi
On Mon, Dec 20, 2010 at 1:30 PM, Alyssa Kwan 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" isn't good enough
On Mon, Dec 20, 2010 at 1:26 PM, Meikel Brandmeyer 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 this message
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 discussi
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
On Mon, Dec 20, 2010 at 2:49 AM, Alex Osborne wrote:
> Ken Wesson 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 hashmap, and then add
>> an
On Mon, Dec 20, 2010 at 12:26 AM, Tim Daly 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 key in a hashmap, a
On Mon, Dec 20, 2010 at 10:27 AM, uap12 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 that worked on arbitrary
s
On Mon, Dec 20, 2010 at 10:41 AM, 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 tried compiling a Cl
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
ng
+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
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" grou
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 unsubscri
2010/12/20 uap12
> Hi,
> I just started a hobby project, it download a webbpage, and extract number
> data witch exits between Start rad: --and --
> Example
> Start rad:01 20 20 52 32 85 89
>
> Everything works fine exept -main witch gives a error i don't understand.
> Becurse i try to learn
Hi,
I just started a hobby project, it download a webbpage, and extract number
data witch exits between Start rad: --and --
Example
Start rad:01 20 20 52 32 85 89
Everything works fine exept -main witch gives a error i don't understand.
Becurse i try to learn Clojure, i like to now what's wro
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 clojure.lang.RT.
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 a
`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
>
> "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
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 clojure.lang.RT.rea
Thanks! That's just what I was looking for.
On Dec 19, 5:56 pm, Miki 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,
> --
> Miki
--
Y
Ken Wesson 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 web (as
trad
> 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
fi
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
wrote:
> Is there a natively compiled version of Clojure? I
76 matches
Mail list logo