Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

The idea of serializing suspended computation across a network seems extremely attractive to a lot of people but I've never understood why it's so appealing versus the more typical approach of sending whole binaries and defining messaging protocols. Could you possibly elaborate on why this capability is exciting?


For me. Code expressiveness and Simplicity.

If you can just send the computation around your basically don't need the entire message/protocol boilerplate in your execution code.

For example, think of a game engine that allows to write code with loops and calling function that may wait for an event or a rule to be true. Imagine that your game can be paused stored in case of a connection lost, synced between different server or both at a server and at a client for fast response. Now without this language feature your basic game logic code gets, you can just have a wait statement inside a loop etc., How will you return to the same place on resume? You need more code, storing the entire execution state.. on every condition or a loop you either need to store something or have code that looks like a state machine etc., With this feature you don't need special design pattern, just write it, and the mess is in the language level.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: