On Thu, 31 Dec 2009 13:01:35 -0800 (PST)
nathaniel wrote:
> BTW, does anyone know what kind of GC algorithms (reference counting
> or thread- based or what) are used by other Lisps?
Reference-counting GC's in most LISPs are pretty much a thing of the
past. Between needing to do cycle detection a
I'm trying to think of scenarios where circular references would be a
problem in Clojure. When does memory actually have to be allocated?
Inside a let block, most often. When lexically scoped variables are
passed to a function, their reference count increases as they are
bound to its parameters,
I see. Thanks, that makes a lot of sense.
So just because this sort of multiple reference isn't explicit (or
even visible) in Clojure, that doesn't mean it's not happening. Under
the hood, a derived data structure is more than likely to share memory
with its progenitor. And that's for very good
On Dec 24, 6:14 pm, atucker wrote:
> I am also curious about this. Apologies, possibly naive question
> ahead :)
>
> My background is in C++. By choosing to work with immutable values
> (i.e. with a lot of consts), I found that I was able to avoid most of
> explicit memory management, pointers
I am also curious about this. Apologies, possibly naive question
ahead :)
My background is in C++. By choosing to work with immutable values
(i.e. with a lot of consts), I found that I was able to avoid most of
explicit memory management, pointers etc. Exceptions were:
(a) when interfacing wit
On Tue, Dec 22, 2009 at 8:43 PM, mac wrote:
>
>> You might run into the problem than any C++ garbage collector you find
>> will probably not be quite as efficient as the JVM's garbage collector
>> (I don't think it would be possible to implement Clojure without a
>> GC). Additionally, a lot of Clo
On Dec 21, 3:09 pm, pmf wrote:
> On Dec 20, 7:22 pm, nathaniel wrote:
>
> > Does anyone know of Clojure features
> > which rely on Java features that would be prohibitively difficult to
> > implement in C++?
>
> You might run into the problem than any C++ garbage collector you find
> will probabl
On Dec 20, 7:22 pm, nathaniel wrote:
> Does anyone know of Clojure features
> which rely on Java features that would be prohibitively difficult to
> implement in C++?
You might run into the problem than any C++ garbage collector you find
will probably not be quite as efficient as the JVM's garbag
Hi: I've recently discovered Clojure and have loosely followed some
of the discussions here. First of all, I think Clojure is a great
language, since I also love Lisp, and I feel that the Java platform is
the most robust for web development. But I perhaps come from a
background a little differen