There's also 'bytes', 'byte-array' and 'into-array':
(byte-array (map byte [1 2 3]))
(into-array Byte/TYPE (map byte [1 2 3]))
// raek
--
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
On Fri, Sep 24, 2010 at 1:06 AM, Greg wrote:
> Thanks! What about single files though? (i.e. no project.clj)
>
>
cake has a global project.clj - ~/.cake/project.clj. Change this and single
files will get access to those dependencies.
David
> On Sep 23, 2010, at 9:22 PM, David Nolen wrote:
>
>
Thanks! What about single files though? (i.e. no project.clj)
On Sep 23, 2010, at 9:22 PM, David Nolen wrote:
> On Thu, Sep 23, 2010 at 11:55 PM, Greg wrote:
> Awesome! Great job on this, I was hoping the TM Clojure bundle would get some
> much needed loving. :-)
>
> Quick question: how does t
I just pulled the latest clojure and contrib and was able to build
them with one little glitch which I suspect is due to something I did
wrong...
Building Clojure seems to install 1.3.0-SNAPSHOT but by default
Contrib seems to expect 1.3.0-master-SNAPSHOT ?
A little bit of experimentation and I r
I'm not quite sure what you're asking. Clojure doesn't have byte literals, but
you can use the function 'byte' to coerce an int literal:
(map class [2 3 4]) => (java.lang.Integer java.lang.Integer java.lang.Integer)
(map class (map byte [2 3 4])) => (java.lang.Byte java.lang.Byte java.lang.Byte)
Is there a way to create a vector of byte literals eg. [64 69 72] as
bytes?
--
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 patie
On Thu, Sep 23, 2010 at 11:55 PM, Greg wrote:
> Awesome! Great job on this, I was hoping the TM Clojure bundle would get
> some much needed loving. :-)
>
> Quick question: how does this bundle get clojure.jar and
> clojure-contrib.jar (and any additional dependencies), and is there a way to
> tel
Awesome! Great job on this, I was hoping the TM Clojure bundle would get some
much needed loving. :-)
Quick question: how does this bundle get clojure.jar and clojure-contrib.jar
(and any additional dependencies), and is there a way to tell it to use a
specific clojure[-contrib].jar file(s)?
T
This probably comes back to divergent requirements. Strict durability
is much too expensive for what I need to do. For me the more important
thing is that whatever authoritative data lives on disk is consistent
with the application transaction boundaries. This means that I need to
tag persistent re
Ah. I thought we were discussing prefs, or datoms (durable atoms), as
I would call them. Because datoms are only synchronous but not
coordinated, there's no transaction boundary. (More accurately, the
swap! is the transaction boundary, much like auto-commit.) dosync has
no effect on datoms.
dr
It was mentioned about six weeks ago that ClojureCLR was mostly 1.2
compatible with a few outstanding issues and a couple dozen failing
tests. What is the status now? Is there still an intention of an
official binary release with 1.2 level functionality, or has that
target been dropped?
Thank
I haven't benchmarked... I don't have much experience with
benchmarking. Assistance would be greatly appreciated!
On Sep 23, 9:09 pm, Dragan Djuric wrote:
> What is the performance penalty?
>
> On Sep 23, 5:21 am, Alyssa Kwan wrote:
>
>
>
> > This is in reference
> > tohttp://groups.google.co
On Thu, Sep 23, 2010 at 8:16 PM, Alyssa Kwan wrote:
> There's no need for any transaction boundary; you just
> have to make sure that compareAndSet does a durable swap.
I had the chance to read your code today. You have a transaction
boundary in DRef.set() which is called by LockingTransaction.ru
First off Acknowledgements:
Aria Haghighi, did much of the heavy lifting on this project!
Stephen Roller, created the first version of the bundle in 2008
Mark McGranaghan, expanded Stephen Roller's version
Justin Balthrop & Lance Bradley, core developers of Cake
http://github.com/ninjudd/cake - if
On Sep 19, 2010, at 9:41 AM, Goran Jovic wrote:
> Anyway, being a Clojure newbie myself, I had a huge benefit from
> freely available code examples, so I decided to share my own project
> with other folks who are learning Clojure.
>
> It's hosted on:
> http://code.google.com/p/genetic-my-number/
What is the performance penalty?
On Sep 23, 5:21 am, Alyssa Kwan wrote:
> This is in reference
> tohttp://groups.google.com/group/clojure/browse_frm/thread/d6deac0c34d0
>
> Hi everyone!
>
> I have hacked the Clojure core to add durability to refs. The syntax
> to create these is (dref ),
BTW, to feed changes back to the core/contrib team, what's the
preferred approach? i.e., is the information on these pages
up-to-date:
http://clojure.org/contributing
http://clojure.org/patches
On Thu, Sep 23, 2010 at 5:34 PM, Sean Corfield wrote:
> Thanx. I saw your message but didn't look at t
Thanx. I saw your message but didn't look at the patch in detail.
I notice you have 1.3.0-master-SNAPSHOT but when I built Clojure and
mvn install'd it, it created 1.3.0-SNAPSHOT instead...?
On Thu, Sep 23, 2010 at 5:21 PM, Andy Fingerhut
wrote:
> Yep, I got the same thing yesterday.
>
> See my
Yep, I got the same thing yesterday.
See my message in the thread "Re: building new contrib against a
specific clojure jar" from last night for a patch that corrects this,
and causes 1.3.0-master-SNAPSHOT version of clojure to be used for
compilation everywhere in contrib instead of 1.2.0 v
As of yesterday, I built Clojure and Contrib from source successfully
and was able to run some Clojure programs. That was on my laptop.
Today I tried to do the same thing on my desktop and I'm hitting a
failure in mvn install during the test for monads.clj (if I'm reading
the output of Maven correc
I concur - that book is amazing.
Steve Yegge mentions he worked through the whole book in Scheme and
then Common LISP.
http://steve-yegge.blogspot.com/2006/06/shiny-and-new-emacs-22.html
(and he mentioned recently he was taking a look at Clojure.)
It looks like there is a blog or two online that
On Thu, Sep 23, 2010 at 10:23 AM, Stuart Halloway
wrote:
> Clojure 1.3 Alpha 1 is now available at
Thank you!
> For maven/leiningen users, your settings to get the beta from
> build.clojure.org/releases are:
> :dependencies [[org.clojure/clojure "1.3.0-alpha1"]
Are there plans to also make al
On Thu, Sep 23, 2010 at 1:40 AM, Andy Fingerhut
wrote:
> OK, one more quick hack I've found -- again, a hack, not a long term
> solution. If you want to create a Leiningen project that uses the latest
> clojure and contrib, read on. I couldn't figure out what to use in
> project.clj unless I ren
On Thu, Sep 23, 2010 at 4:20 PM, Will Kennedy wrote:
> Some background: I've been spending some of my free time providing by
> basic Clojure support in VS 2010. To be honest, I'm a bit of a Clojure
> newbie, so I figured something that would require me to build a lexer
> and parser for the langua
Fixing subject.
On Sep 23, 1:25 pm, Jeff Palmucci wrote:
> I have a very simple test case in clojure 1.2:
>
> (def * 1* (count (range 0 1)))
>
> I have a loop running in another thread that periodically causes a full gc
> and then prints the amount of used memory every 2 seconds.
Also, one thing I just thought about: I got this error when running
lein jar. Is it possible this is a leiningen problem rather than a
clojure problem?
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@goog
I have a project that consists of playhaven.downloader.run and
playhaven.downloader.core. Run is defined like this (for brevity's
sake, I've left out a lot of the code; let me know if I missed
something important):
;; run.clj
(ns playhaven.downloader.run
(:use playhaven.downloader.core
I have a very simple test case in clojure 1.2:
(def * 1* (count (range 0 1)))
I have a loop running in another thread that periodically causes a full gc and
then prints the amount of used memory every 2 seconds. Evaluating the above
form, I get:
Used memory: 0.079951296 G
Used
Some background: I've been spending some of my free time providing by
basic Clojure support in VS 2010. To be honest, I'm a bit of a Clojure
newbie, so I figured something that would require me to build a lexer
and parser for the language and delve into the clojure source would be
a great way to le
On Sep 22, 2:03 pm, Stuart Sierra wrote:
> On Sep 22, 12:35 pm, Justin Kramer wrote:
>
> > Here's the magic incantation I've been using:
>
> > [org.clojure.contrib/complete "1.3.1-SNAPSHOT" :classifier "bin"]
>
> > I don't know how official or future-proof that is.
>
> It's wrong, technically, bu
Will alpha releases be once-a-month, once-a-quarter, or now-seems-
good?
Is there a theoretical schedule for 1.3? Are people thinking of it as
a year or something less than a year away?
On Sep 23, 12:23 pm, Stuart Halloway
wrote:
> Clojure 1.3 Alpha 1 is now available at
>
> http://cloj
Not quite. Lua isn't a good example because it's a register based
runtime designed to be very small footprint. Also most of the games you
listed are PC.
Civ 4 uses python but it targets PC too. Consoles have very different and
strict set of rules.
We tried this last year, while we could get a
(str "if " "Xbox 360 has all you need to run Clojure"), I was just
trying to emphasize that even if you could emit code you still had
other problems.
On Sep 23, 5:45 am, Timothy Baldridge wrote:
> > Is this still a problem if you compile everything ahead of time? I
> > noticed that if I make a j
On Thu, Sep 23, 2010 at 8:47 AM, Eric Lavigne wrote:
> CodeBuilders is a small programming club in Gainesville, Florida, that
> meets about twice per week to work on programming projects (mostly in
> Clojure). The other two members are very new to programming, but
> learning fast as we build a Tic
"So imagine you are running java code on JVM in interpreted mode,
it's too slow for any serious game."
Meh...that's not exactly true. Many games (Warhammer 40k, Supreme
Commander, WoW, etc.) use stock LUA, and some (Civ IV) use Python.
Both of these are not JIT languages. Actually I would assume L
Clojure 1.3 Alpha 1 is now available at
http://clojure.org/downloads
== Changes ==
* enhanced primitive support
(http://dev.clojure.org/display/doc/Enhanced+Primitive+Support)
* better exception reporting
* ancillary namespaces no longer auto-load on startup:
clojure.set,
>> As far as XNA...last I heard XNA did not have any support for emit,
>> and as such is incapable of running any sort of jit code. Basically
>> all .NET code has to be ahead-of-time compiled to run a XBOX via XNA.
>> It's the same limitation that IronPython has
>> (http://ironpython.codeplex.com/w
> First of all, MonoDevelop should be able to load the .sln
Ok, I'll have a look at that. I currently know nothing of .NET or
mono, so it's all news to me :)
> As far as XNA...last I heard XNA did not have any support for emit,
> and as such is incapable of running any sort of jit code. Basicall
On xbox, you can't alter running code in memory, which means JIT basically
doesn't work. So imagine you are running java code on JVM in interpreted mode,
it's too slow for any serious game.
This is a common issue in most game consoles.
--
You received this message because you are subscribed to
It's probably possible to do it completely in Clojure, but you have to
subclass Atom. There's no need for any transaction boundary; you just
have to make sure that compareAndSet does a durable swap.
My plan was to get durable refs done and then extend the other mutable
identities, including atom.
CodeBuilders is a small programming club in Gainesville, Florida, that
meets about twice per week to work on programming projects (mostly in
Clojure). The other two members are very new to programming, but
learning fast as we build a Tic Tac Toe game together.
http://github.com/algarete13/tic-t
> Is this still a problem if you compile everything ahead of time? I
> noticed that if I make a jar with leiningen my clj files are included
> in the jar but I assumed that it was just part of some dogma that I
> should share my source code.
Actually I think it's a bit worse than that. LISP treat
Cool!
I'm getting back to Clojure after an extended absence. Just today I
was pondering the design of a solution to a similar problem, though I
suspect our requirements diverge on several points. My tentative
conclusion was that it could be done entirely in Clojure and without
modifying existing c
OK, one more quick hack I've found -- again, a hack, not a long term
solution. If you want to create a Leiningen project that uses the
latest clojure and contrib, read on. I couldn't figure out what to
use in project.clj unless I renamed this file first.
% mv ~/.m2/repository/org/clojure/
Hi Andrew,
feel free to add the Cambridge (UK) Clojurians group:
http://www.meetup.com/Cambridge-Clojurians/
Our next meeting is in a lovely pub called the Punter on Monday the 4th of
October from 7.30 onwards.
Sam
---
http://sam.aaron.name
On 20 Sep 2010, at 4.33 pm, Andrew Gwozdziewycz w
Is this still a problem if you compile everything ahead of time? I
noticed that if I make a jar with leiningen my clj files are included
in the jar but I assumed that it was just part of some dogma that I
should share my source code.
Also, I asked a similar question where I was concerned about th
OK, it appears one more line of change allows clojure-contrib latest
as of today to build with clojure 1.3.0-master-SNAPSHOT. See inline
below for slightly modified instructions that worked for me on both OS
X and Ubuntu Linux.
On Sep 22, 2010, at 6:16 PM, Andy Fingerhut wrote:
So I'm try
This is in reference to
http://groups.google.com/group/clojure/browse_frm/thread/d6deac0c34d0ce28/5c1e11ec2bd52bde.
Hi everyone!
I have hacked the Clojure core to add durability to refs. The syntax
to create these is (dref ), where and
are strings. Then you use them just like refs. Creati
48 matches
Mail list logo