[#290] — Florian Frank <flori@...>
Hi all,
5 messages
2002/08/03
[#297] GC longjmp macros — Michal Rokos <m.rokos@...>
Hi,
5 messages
2002/08/05
[#308] Q: OSSL in std. distr? — Michal Rokos <m.rokos@...>
Hi,
4 messages
2002/08/08
[#326] Implications of a #force_free method in Object? — Matthew Bloch <mattbee@...>
Hello;
8 messages
2002/08/19
[#328] Int vs Long — Michal Rokos <m.rokos@...>
Hi,
7 messages
2002/08/21
[#337] Int vs Long (2nd part) — Michal Rokos <m.rokos@...>
Hi,
7 messages
2002/08/22
[#340] Int vs Long #3 — Michal Rokos <m.rokos@...>
Hi,
9 messages
2002/08/22
[#344] Re: [Cleanup] Int vs Long #3
— nobu.nokada@...
2002/08/22
Hi,
[#348] Re: [Cleanup] Int vs Long #3
— Michal Rokos <m.rokos@...>
2002/08/23
Hello,
[#353] File (struct stat handling) — Michal Rokos <m.rokos@...>
Hello,
6 messages
2002/08/23
[#358] node.h for eval.c — Michal Rokos <m.rokos@...>
Hi,
5 messages
2002/08/23
[#372] rb_class_path — Michal Rokos <m.rokos@...>
Hello,
7 messages
2002/08/27
[#382] Port match to new dup, clone framework — Michal Rokos <m.rokos@...>
Hi,
5 messages
2002/08/28
[#393] in dln.c — Michal Rokos <m.rokos@...>
Hi,
14 messages
2002/08/30
[#398] Re: [MemLeak] in dln.c
— nobu.nokada@...
2002/08/31
Hi,
[#403] Re: [MemLeak] in dln.c
— Michal Rokos <m.rokos@...>
2002/09/02
Hello,
Ruby embedding limitations
From:
"Timothy J. Wood" <tjw@...>
Date:
2002-08-24 03:29:23 UTC
List:
ruby-core #363
There are a couple of basic problems with Ruby's embedding support given the system that I want to build. First off, it looks like it is currently impossible to reinitialize the entire Ruby environment. For example, in the game I'm working on, I want the game logic to be scripted and I want people to be able to add their own game types by defining a set of modules and classes. When I switch between game types, I'd like to start off with a totally clean slate (including changing the search path that Ruby uses to load modules). I suppose I could try to manually clean stuff up, but I worry that I won't be able to get everything (especially threads and such that the user might have started). A closely related problem is the fact that Ruby doesn't allow you to create multiple runtimes. This would be a pretty dramatic change (basically involving changing all API points to take a big 'globals' block). I'd like to be able to do this to create servers that can run multiple game types at once (in different threads, one thread per Ruby engine). I can live without the second capability, but the first one really worries me. Can anyone suggest a way to guarantee that you're environment is totally cleaned up? One of the things I like about Python's embedding interface is the fact that you can shut it down and restart it. Of course, I like the Ruby language better, so I'm torn.... :) -tim