Hallo all,
I know that what I'm asking here is not 100% about clojure but I hope
people in here can help me anyway.
Me and a classmade of mine have to do a project for school and we
though i would be cool to do some programming language benchmarking.
Its a good fit because he is a systems guy and
as for first and next:
You can do this
(let [fst (first [1 2 3 4 5 6])
rst (rest [1 2 3 4 5 6])]
(println "first: " fst)
(println "rest: "rst))
or
(let [[fst & rst] [1 2 3 4 5 6]]
(println "first: " fst)
(println "rest: "rst))
both print this:
first: 1
rest: (2 3 4 5 6)
--
I thought about that a little too. The thing is that clojure is doing
something almost imposible. There is almost know way around writing
you json library backand in clr interop.
If we want to make clojure programm that run on the clr, the jvm and
possibly in the browser we have to write pure cloj
> What is the difference between rest and next?
This has to do with lazyness. I wrote an answer to that on
stackoverflow.
http://stackoverflow.com/questions/4288476/clojure-rest-vs-next
Should answer everthing.
> I'm confused, should I use empty? or not? when to use it?
> Why Clojure decided to
On Dec 6, 11:40 am, Ken Wesson wrote:
> Won't that make the internal recursive call fail though?
>
> And even if not -- ugly IMO. :)
Agree. Why make something slower and more ugly?
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this grou
On Dec 15, 6:12 am, Mark Engelberg wrote:
> One thing I've argued for in the past, but got no traction:
> We have:
> get-in, get
> assoc-in, assoc
> update-in, ?
> Let's add update to go with update-in.
update should really be in there. I always try to write update then i
remember that I have to
Lisp is Not an Acceptable Lisp
Friday, April 14, 2006
Clojure wasn't out then.
--
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 pa
> I've been a lazy programmer for more than 30 years. :-)
True me to but the trick is to let the computer be lazy too. Because
we all know a team of lazy 'things' work best.
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send
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
The dream would be to have:
- Everything for clojure in clojure
- A nice compiler in clojure
- java speed clojure
- Collections and multimethodes in clojure
- A js generating backend for the compiler that works with GWT for the
required java stuff
Unfortunately I do not (jet) have the skill to do
The hints are not use for static type analysis they are there for
speed. There is no type checker. In your example the compiler tries
using it as an int if that is not working the compiler uses reflaction
to find out the type.
no auto casts are by design.
On 31 Dez., 05:57, Jarl Haggerty wrote:
11 matches
Mail list logo