I don't think it every is going to scale.
MVCC/TL2 based STM designs rely on a central clock, so if you can
update the clock in 0.1 ms on all machines, the maximum throughput is
1/0.0001 = 10.000 transactions/second... no matter how many machines
you throw at it. Even on a single machine the
Dear all,
After playing a bit with protocols I found this (which seems odd to me):
(All of this on clojure-1.2.0-master-SNAPSHOT, downloaded with lein - i
don't know how recent it is)
user (defprotocol Foo (foo [x] )) ; We define a protocol Foo
user (def bar {:foo Foo}) ; We hide it in a
Hi,
On Jul 12, 10:44 am, Nicolas Oury nicolas.o...@gmail.com wrote:
After playing a bit with protocols I found this (which seems odd to me):
(All of this on clojure-1.2.0-master-SNAPSHOT, downloaded with lein - i
don't know how recent it is)
user (defprotocol Foo (foo [x] )) ; We define
On 12 July 2010 10:44, Nicolas Oury nicolas.o...@gmail.com wrote:
Is it what it is supposed to do?
I think so.
The reason why this happens is that the Var backing the protocol holds
an immutable map, which extend modifies with alter-var-root; the copy
has the old version. You're able to add an
On Jul 11, 11:55 am, stewart setor...@gmail.com wrote:
Hi All,
Has anybody considered implementing Clojure on BEAM. Are there any
works or current attempts currently available?
In your view where are the real trip ups for this to happen.
Instead you should take a look at Erjang
/karl
--
Ok. I understand.
So, if you want to do some programming that generates insances, it should be
done with symbols, at the macro-level?
On Mon, Jul 12, 2010 at 10:01 AM, Meikel Brandmeyer m...@kotka.de wrote:
Hi,
On Jul 12, 10:44 am, Nicolas Oury nicolas.o...@gmail.com wrote:
After playing
This is not Clojure:
http://github.com/rvirding/lfe
Are there any works or current attempts currently available?
--
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
Hi Lee,
Please note that ccw also has a user ml (for an historical reason, it has a
name which does not reflect the current name of the project):
clojuredev-us...@googlegroups.com
Anyway:
2010/7/11 Lee Spector lspec...@hampshire.edu
I'm using Eclipse/Counterclockwise and on a couple of
Is there a way to set up a map so that there is a default function
which depending on the key returns a value if one is not present in
the map. I can obviously write this with a deftype and have it
implement Associative, Seqable, etc. so it behaves like a built-in
map, but just wondering if there
Thanks Laurent.
FWIW I had looked for the ccw-specific mailing list but not found it... perhaps
that should be advertised a bit more (e.g. I don't see it mentioned on
http://code.google.com/p/counterclockwise/). Thanks for pointing it out to me.
On the specific issue: I had turned off build
I think the first, most important, step is to identify a JVM which is
designed for safety critical systems. The only JVM I know of that has
even bothered to consider SC Java is Atego's (formerly Aonix)
UltraPERC, and I don't think they've qualified it to the level you
seek.
To get qualified for
On 12 Jul 2010, at 16:13, aria42 wrote:
Is there a way to set up a map so that there is a default function
which depending on the key returns a value if one is not present in
the map. I can obviously write this with a deftype and have it
implement Associative, Seqable, etc. so it behaves like
Dear all,
I have written a small experimentation about type-classes in Clojure 1.2,
build above protocols.
It's not a proposal, not even a good idea, just an idea that was easy enough
to try.
It allows to give some rules to Clojure in order to extend Protocols when
some protocol/interfaces are
On Sun, Jul 11, 2010 at 4:10 PM, zkim zachary@gmail.com wrote:
If you're willing to continue the discussion, I'd like to keep this
going (maybe another thread?). As I'm writing this I'm getting the
feeling that I'm not quite articulating my thoughts well, and I think
further discussion
Okay, I have a fairly complex app I'm thinking of converting to
clojure as a way to learn how clojure works. Here's how the basic
structure of the app works:
1) Load a SVG (XML) file and parse it into a format usable by the
program (convert strings to numbers, etc)
2) Persist the in-memory
1) would be more:
- define a protocol for each kind of function (render, serialize...)
- define a deftype/defrecord for each type of element, and make them extend
the protocol
It's not that different from 2. (protocol, as far as I understand, are
multimethod whose dispatch function is the type
1. would be my favorite too. Multimethods are fine too, but may be a
bit slow. 3. is the same as 2. while avoiding multimethods.
On Mon, Jul 12, 2010 at 10:26 PM, Nicolas Oury nicolas.o...@gmail.com wrote:
I would do for 1, but other would do differently I think.
Good thing with a
On Jul 12, 1:26 pm, Nicolas Oury nicolas.o...@gmail.com wrote:
The right choice depends somehow of taste.
chipping in two cents:
try to predict what kinds of change your system needs to support, and
use that to help choose a style.
(a) fp style: easy to add new operations on a fixed set of
The site looks very nice, I especially like the find real world
examples functionality and the fact that it collects documentation
for common non-core libraries as well.
I made my own cheat sheet for private use over the past month or so,
core functions only. It's at the 80% stage, I don't expect
On Jul 13, 12:25 am, j-g-faustus johannes.fries...@gmail.com wrote:
I made my own cheat sheet for private use over the past month or so,
core functions only. It's at the 80% stage, I don't expect it will
ever be 100%, but I have found it useful:
http://faustus.webatu.com/clj-quick-ref.html
I want to provide a scripting api into my program which runs server
side, but don't want my users to completely use up the resources on my
server. Are there any ways to restrict how many resources a user has
access to? Perhaps create a sandboxed environment per user which they
can execute their
Are there any ways to restrict how many resources a user has access to?
If you use Linux, you see /etc/security/limits.conf.
--
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
On Jul 13, 1:36 am, ngocdaothanh ngocdaoth...@gmail.com wrote:
Are there any ways to restrict how many resources a user has access to?
If you use Linux, you see /etc/security/limits.conf.
That is useful and I will keep that in mind, however I was thinking of
application users, so they would
Hi David,
David Soria Parra d...@php.net writes:
any feeback on this so far?
A typical example would be:
(digest-to-str (digest hello world :algorithm SHA-1))
digest-to-str is a bit misleading as hexadecimal digits are not the
only way you can represent a digest as a string: base 64 and base
Has anyone used clojure.contrib.Datalog for anything serious? What
kind of problem
did you run into if any?
What is the performance like? Is there a sweet spot beyond that it's completely
in memory only?
Thanks,
--
Omnem crede diem tibi diluxisse supremum.
--
You received this message
Another flatten thread! Sorry..
Hello all, before I realized there was a flatten in the master branch
(and before I looked at contrib) I wrote this pretty standard code:
(defn my-flatten [coll]
(lazy-seq
(when-let [coll (seq coll)]
(let [x (first coll)]
(if (sequential? x)
To learn Clojure, I'm writing a system that could be compared to
fold...@home. I have a database table of jobs that need to be done,
where each row has an id, some data, and a status. The server that
issues these jobs to clients is multi-threaded, and I want to ensure
that it never issues the same
Unless you wrap a doall around the calls to flatten and my-flatten,
you're not really timing anything relevant.
--
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
Hi,
On Jul 13, 4:02 am, Wilson MacGyver wmacgy...@gmail.com wrote:
Has anyone used clojure.contrib.Datalog for anything serious? What
kind of problem
did you run into if any?
I considered using it, but I could never figure out, how to use it
correctly. eg. what predicates are available? Can
29 matches
Mail list logo