Menu

Serialization Support

s
2015-03-03
2015-03-14
  • s

    s - 2015-03-03

    Hello,

    Does HaikuVM support serialisation?

     
    • genom2

      genom2 - 2015-03-14

      No, it's not possible for two reasons:
      1. HaikuVM does not support reflection.
      2. HaikuVM uses the leJOS runtime. And this runtime has no implementation of ObjectOutputStream nor ObjectInputStream.

      I only can think of a proprietary solution for HaikuVM (and a much weaker solution than serialisation support of a full blown JVM). The Memory Layout of HaikuVM Objects tries to mimic a C struct layout of a block of memory e.g. an object memory space. (In contrast a classic Java class typically doesn't.) The idea is to make the mapping to C as close as possible to simplify implementation and improve execution speed. (see http://haiku-vm.sourceforge.net/#[[Memory%20Layout%20of%20HaikuVM%20Objects]])

       

      Last edit: genom2 2015-03-14

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.