[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: objective-c: how slow ?
From: |
Bissell, Tim |
Subject: |
RE: objective-c: how slow ? |
Date: |
Mon, 10 Sep 2001 11:32:36 +0100 |
Marko M wrote:
Adding methods to existing classes at runtime is completely routine. Adding
new classes at runtime is common. There used to be a free tool called eval
that would dynamically (just in time) recompile method implementations,
dynamically load the new implementations, and patch the runtime to use the
new versions with existing classes. In other words, you could edit the C
code of a method implementation while the program that uses the method was
running, press a button, and load the new implementation into the running
program.
----
Ages ago (four, five years?) I wrote a Smalltalk on Objective-C-runtime
system
on NeXTStep. Each smalltalk method in a class was a call to a function
which
translated parameters, pushed them on a Stack and called a Smalltalk
interpreter
(based on Tim Budd's Little Smalltalk). It worked fairly well except that
the NeXT runtime would stop working if you unloaded a class, and then
reloaded a
class of the same name, which I had to do to add (Obj-C accessible) ivars to
a class.
I'll have to dig it out, and see if it works better with the latest 3.0 GCC
runtime...
Tim
----------------------------------------------------------------------
If you have received this e-mail in error or wish to read our e-mail
disclaimer statement and monitoring policy, please refer to
http://www.drkw.com/disc/email/ or contact the sender.
----------------------------------------------------------------------
- Re: objective-c: how slow ?, (continued)
- Re: objective-c: how slow ?, Erik M. Buck, 2001/09/07
- Re: objective-c: how slow ?, Erik M. Buck, 2001/09/07
- Re: objective-c: how slow ?, Marko Mikulicic, 2001/09/07
- Re: objective-c: how slow ?, Malmberg, 2001/09/08
- Re: objective-c: dynamic inheritance and s-arrays [was: how slow] ?, Marko Mikulicic, 2001/09/08
- Re: objective-c: how slow ?, Richard Frith-Macdonald, 2001/09/07
- Re: objective-c: how slow ?, Marko Mikulicic, 2001/09/07
- Re: objective-c: how slow ?, Malmberg, 2001/09/07
- Re: objective-c: how slow ?, Marko Mikulicic, 2001/09/07
- Re: objective-c: how slow ?, Malmberg, 2001/09/08
RE: objective-c: how slow ?,
Bissell, Tim <=