From: "Michael T. Richter" Date: 2007-10-21T16:04:31+09:00 Subject: Re: embed Ruby or Lua --=-CGHQ1ss7Na5OBFn4Ljkq Content-Type: multipart/alternative; boundary="=-HlKKbAJzBQ7yugxItBpb" --=-HlKKbAJzBQ7yugxItBpb Content-Type: text/plain Content-Transfer-Encoding: quoted-printable On Sun, 2007-21-10 at 15:19 +0900, M. Edward (Ed) Borasky wrote: > I really don't think you want a=20 > garbage-collected language for this, although I'm sure it's possible to=20 > use one if the heavy lifting is done in a low-level library. There are, in fact, hard realtime garbage collection algorithms available. For some reason language designers just don't seem to want to implement them in their languages in favour of garbage collection algorithms that are easier to write. What I'd like to see someday is a language whose runtime explicitly supports garbage-collection plug-ins so that you can use the appropriate collection algorithm for the appropriate situation. Going to the OP's question? Embed the Lua. Ruby is a great language and great for embedding in applications, even, except in the specific case of what you're talking about right now: anything with hard realtime (and even soft realtime!) requirements. Lua is a much faster language and has garbage collection that is far more easily tuned. --=20 Michael T. Richter (GoogleTalk: ttmrichter@gmail.com) I have to wonder why people think that when they can't manage local personnel within easy strangling and shooting distance, then they can manage personnel thousands of miles away that have different languages, cultures, and business rules. (Joe Celko) --=-HlKKbAJzBQ7yugxItBpb Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable On Sun, 2007-21-10 at 15:19 +0900, M. Edward (Ed) Borasky wrote:
I really don't think you want a 
garbage-collected language for this, although I'm s=
ure it's possible to 
use one if the heavy lifting is done in a low-level=
 library.

There are, in fact, hard realtime garbage collection algorithms available.&= nbsp; For some reason language designers just don't seem to want to impleme= nt them in their languages in favour of garbage collection algorithms that = are easier to write.

What I'd like to see someday is a language whose runtime explicitly support= s garbage-collection plug-ins so that you can use the appropriate collectio= n algorithm for the appropriate situation.

Going to the OP's question?  Embed the Lua.  Ruby is a great lang= uage and great for embedding in applications, even, except in the sp= ecific case of what you're talking about right now: anything with hard real= time (and even soft realtime!) requirements.  Lua is a much faster lan= guage and has garbage collection that is far more easily tuned.

--
Michael T. Richter <ttmri= chter@gmail.com> (GoogleTalk: ttmrichter@gmail.com)
I have to wonder why people think that when they can't manage local pers= onnel within easy strangling and shooting distance, then they can manage pe= rsonnel thousands of miles away that have different languages, cultures, an= d business rules. (Joe Celko)
--=-HlKKbAJzBQ7yugxItBpb-- --=-CGHQ1ss7Na5OBFn4Ljkq Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.3 (GNU/Linux) iD8DBQBHGvnwLqyWkKVQ54QRAkGNAJ9pnqpygTPkTHQKv9vUKxTPeXa2SQCfQ1YT /lkmOLIXAO1NHlgSWzPVVDc= =3EGv -----END PGP SIGNATURE----- --=-CGHQ1ss7Na5OBFn4Ljkq--