[LAD] [ANN] The Audio Rollendurchmesserzeitsammler V0.0.1

From: Kjetil S. Matheussen <k.s.matheussen@email-addr-hidden>
Date: Mon Apr 28 2008 - 21:26:22 EEST

The Audio Rollendurchmesserzeitsammler V0.0.1.

http://www.notam02.no/arkiv/src/rollendurchmesserzeitsammler-0.0.1.tar.gz

(Sorry for the long text below. I'm not planning to do
  big announcements of further versions of the collector.
  There is also more information about how it works, etc.,
  in the README file in the source package.)

ABOUT
-----
The Audio Rollendurchmesserzeitsammler is a garbage collector
which provides a general way to efficiently allocate and use memory
inside a realtime audio thread without having to manually free
it later.

Furthermore, there is no write barrier,
no read barrier, no special pointer types or templates (ie. no need to
tell the collector exactly where pointers are), no reference counting,
cyclic dependencies are detected, and finally it is by default
configured to be hard realtime safe.

Finally, The Audio Rollendurchmesserzeitsammler can be a drop in
replacement for Hans Boehm's conservative garbage collector for C
and C++.

(Regarding its realtime safiness, I think CPU caches might theoretically
play an unpredictable role to screw things up, but my limited
observations so far is that it doesn't, or at least doesn't screw
up a lot.)

GARBAGE COLLECTOR TYPE
----------------------
Short: Snapshot mark-and-sweep.
Long: Hard realtime conservative parallel non-moving snapshot-mark-sweep-and-free.

PURPOSE
-------
This collector might be useful for running high level, high performing,
and garbage producing languages such as C#, Clean, Common Lisp, D,
Eiffel, Haskell, Java, Oberon-2, OCaml, Scheme or SML directly inside a
realtime audio thread doing signal processing.
(http://shootout.alioth.debian.org/)

It can also be useful for running less high performing programming
languages which are not doing signal processing directly but would still
be convenient to run inside the realtime audio thread, for example for
handling midi events.

By replacing the garbage collector in a high level language with
the one provided in this package, the language becomes one step closer
to be able to do realtime signal processing directly in the audio thread.
And in some cases, this might very well be all thats needed too.

One example is Stalin, an extremely efficient Scheme compiler.
By only replacing Hans Boehm's garbage collector, which Stalin normally
is using, Stalin's generated code can now run safely inside a realtime
audio thread.

See the provided example stalinwrapper.c / graincloud.scm how to
do that.

The allocator is also so effective, that its not unlikely that in some
cases it might make sense using it in a program
written in C or C++ as well when doing larger computations.

CREDITS
-------
The garbage collector uses TLSF for doing memory alloaction and
deallocation. TLSF is a memory manager library supporting both
bounded allocation time and bounded deallocation time.
http://rtportal.upv.es/rtmalloc/

gcconfig.h is copied from Hans Bohems garbage collector.
http://www.hpl.hp.com/personal/Hans_Boehm/gc/
_______________________________________________
Linux-audio-dev mailing list
Linux-audio-dev@email-addr-hidden
http://lists.linuxaudio.org/mailman/listinfo/linux-audio-dev
Received on Tue Apr 29 00:15:03 2008

This archive was generated by hypermail 2.1.8 : Tue Apr 29 2008 - 00:15:07 EEST