Jump to content

Programming for the future


evarsanyi

Recommended Posts

Posted

I realize this doesn't make any sense short term, but...

 

It would be much more flexible if the programming facilities could be used to directly build state machines which could hold internal state (ie: variables) and were passed events directly.

 

All the current functionality could be implemented in terms of these. It would allow one to write code at the level the actual network runs. You don't know that unit X is 'on', you get an event saying it 'went on' (or maybe you don't even though it did); you don't know that the time is XX:XX right now (by definition that's false), you do know that XX:XX has passed from the future to the past.

 

I'm very happy with the functionality provided in 2.5! I have found that implementing solutions in a real world means understanding the ugliness of the real world and trying to wallpaper over it means either you lose flexibility or things can't be made to work reliably.

 

Again, really happy with this stuff, just some input for the next spin.

Posted

At some point in the future we'll be adding variables and other features. Variables in particular would be useful in creating a state machine.

 

All the current functionality could be implemented in terms of these. It would allow one to write code at the level the actual network runs. You don't know that unit X is 'on', you get an event saying it 'went on' (or maybe you don't even though it did); you don't know that the time is XX:XX right now (by definition that's false), you do know that XX:XX has passed from the future to the past.

I'm not sure what you are getting at here; the current programming model is entirely event driven.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Recently Browsing

    • No registered users viewing this page.
  • Forum Statistics

    • Total Topics
      37k
    • Total Posts
      371.4k
×
×
  • Create New...