Sub-cards (0)Archived
Comments (2)

Should I reuse an existing bytecode format and VM or create my own?


A bytecode interpreter can provide a platform-independent execution environment:

  • send code between nodes in a distributed system

  • use it to speed up compile-time computation and metaprogramming

  • create sandboxed environments by disallowing certain opcodes (networking, file system access)

  • avoid dealing with platform-specific dynamic linking quirks