GithubHelp home page GithubHelp logo

franzen / babelphish Goto Github PK

View Code? Open in Web Editor NEW
0.0 0.0 0.0 702 KB

A simple data serialization that allows for working with the same data structures in java, ruby and javascript.

License: MIT License

Ruby 77.54% Java 8.81% JavaScript 6.60% C# 7.05%

babelphish's People

Contributors

ahmedrali avatar franzen avatar

Watchers

 avatar  avatar  avatar

babelphish's Issues

Check divine test suite

Boolean default value failed for divine in ruby. I had to fix it (6373edb) for ruby, but since it wasn't covered by the test suite, I guess it still can be a problem in other places. Also make sure we have at least one instance of each possible type in the tests.

Discovered Bugs

In Generated Java File:

  • Neet to import:
    • java.io.ByteArrayInputStream
    • java.io.ByteArrayOutputStream
    • java.io.IOException
    • java.nio.charset.Charset
    • java.util.ArrayList
    • java.util.HashMap
  • In writeInt32: 0xFFFFFFFF needs to be 0xFFFFFFFFL
    • 0xFFFFFFFF = -1 while 0xFFFFFFFFL = 4.294.967.29 "Max Value"
  • In writeIpNumber:
    • split(".") needs to be split(".") because split function takes (String regex)
    • Need check of if v.equals("")
      • Integer.parseInt(bs[i]) raise error because of bs contains empty value. (bs = [""])
  • In writeBinary: 0xFFFFFFFF needs to be 0xFFFFFFFFL
  • In readBinary:
    • "return readBytes((int) readInt32(data), data)" raise error because of readInt32(data) = -1 "EOF",
      it needs to be "return readBytes((int) c, data)"

In Generated Ruby File:

  • In write_binary: it takes either list or string while read_binary always return string.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.