Encoding and decoding C structures in Scala with scodec

Results 1 to 2 of 2
  1. #1

    note Encoding and decoding C structures in Scala with scodec


    RaGEZONE Recommends

    RaGEZONE Recommends

    Hello everyone. I've been doing server emulation development for a few months now on Phantasy Star Online and I am going to start writing blog posts addressing specific issues for using more modern approaches to the field of server emulation.

    Scala is a nice language that has very, very powerful abstractions and in-language DSLs over common tasks. scodec is a parser combinator library that enables you to write fairly high performance parsers for structures very quickly. This is the first of what I hope to be many articles I intend to write for this language, but I may also write related content for other languages like Rust, maybe Kotlin or Haskell, etc. My hope is that writing educative articles on the topic may help jump-start efforts to build better scaling, maintainable, and secure servers for less complicated games. C++ is really not coder friendly in any sense, and there are much better options that, if you're willing to forgo some performance, make it far easier to implement things like database interaction, inter-server communication, RESTful APIs for database access, etc.

    You do not need to know Scala to fully understand this, but it does take advantage of Scala-specific features that programmers of more conventional languages might find hard to grok (type inferencing, strong typing, higher-kinded types, etc).

    Encoding and decoding C structures in Scala with scodec


  2. #2
    Registered SystemSequence is offline
    MemberRank
    Feb 2016 Join Date
    5Posts

    Re: Encoding and decoding C structures in Scala with scodec

    Good luck with this, hope we'll see a final version later on :)




Advertisement