[self-interest] Changing prototype chain as state machine

David Goehrig dave at nexttolast.com
Fri Sep 30 19:09:01 UTC 2011


I'd agree that the systems in these papers are far from ideal. In fact, the limitations they impose to make their type system work (linearity for example) are impractical for modeling wide classes of interesting problems. 

For example, my day job involves distributed non-linear editing of linear media. There are a lot of adhoc states I need to represent in my models that have multiple states they can assume AND those states may depend on the sequence of prior states to determine which state comes next. 


Dave

-=-=- dave at nexttolast.com -=-=-

On Sep 30, 2011, at 1:19 AM, ungar at mac.com wrote:

> Thanks, guys. I'll read the Ego paper. A while back I gave a keynote at OOPSLA on the role of paradox in language design.
> 
> In general, I believe that better type systems are worse--depending on the context. One loses the power of ambiguity.
> However, if you are sending code to Mars, it's a good tradeoff. Anyway, I'll have to read the paper.
> 
> - David
> 
> 
> On Sep 29, 2011, at 5:20 PM, David Goehrig wrote:
> 
>>  
>> 
>> The Plaid paper lays out the same concept with stricter typing. 
>> 
>> I hadn't seen Ego before. 
>> 
>> Thanks!
>> 
>> -=-=- dave at nexttolast.com -=-=-
>> 
>> On Sep 29, 2011, at 3:47 PM, "Welch, Ronald P (US SSA)" <Ronald.P.Welch at BAESYSTEMS.com> wrote:
>> 
>>>  
>>> Dave,
>>> 
>>> 
>>> This reminds me of a derivation of Self called "Ego" that makes
>>> steps toward adding type checking to Self. If you haven't 
>>> already seen it, there is paper describing Ego here:
>>> 
>>> http://www.cs.cmu.edu/~aldrich/papers/
>>> 
>>> Ron
>>> ----------=-=-=-=-=-=-=-=-========oOo========-=-=-=-=-=-=-=-=----------
>>>                   mailto:Ronald.P.Welch at baesystems.com
>>> ----------=-=-=-=-=-=-=-=-===================-=-=-=-=-=-=-=-=----------
>>> 
>>> 
>>> 
>>> 
>>> On Sep 27, 2011, at 8:28 PM, David Goehrig wrote:
>>> 
>>>>  
>>>> In one of the Self papers it states that assignable parent slots can be useful. And then it is largely an ignored subject from then on. 
>>>> 
>>>> I've been ressurrecting this idea for a web framework which models core finite state machines by exploiting assignable parent slots to only expose methods sensible for that state. 
>>>> 
>>>> eg. A response object has no header:Value: after the headers have already been sent, and a closed socket has no read or write: or close methods, but does have an open:
>>>> 
>>>> When I'm building these objects there is some default behavior that needs surpressing, specifically firing up the debugger when an unknown message send is encountered. This is heavily inspired by Randy's ARK unknown methods fall through. 
>>>> 
>>>> Where this has become critical is building large scale distributed applications with transparent proxies forwarding messages. Which may hit an object multiple times due to resend logic. 
>>>> 
>>>> Do any of the wise ones on the list know of any applications using these approaches?
>>>> 
>>>> If not, why?
>>>> 
>>>> -=-=- dave at nexttolast.com -=-=-
>>>> 
>>> 
>>> 
>> 
> 
> 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.selflanguage.org/pipermail/self-interest/attachments/20110930/5a0234dd/attachment.html>


More information about the Self-interest mailing list