Skip to content
Snippets Groups Projects
  1. Nov 07, 2016
    • Michael Paulson's avatar
      chore(lint) (#4079) · d298adc4
      Michael Paulson authored
      * chore(lint)
      
      I accidentally let 2 pieces of lint in with my generated code.
      
      * fix(generate-code): I did not generate all the required code for tests.
      d298adc4
  2. Sep 06, 2016
  3. Jul 20, 2016
  4. Jul 05, 2016
  5. Jun 07, 2016
    • Romain Gilles's avatar
      Create a maven like project structure for java development. Make it OSGi... · 9875b0e0
      Romain Gilles authored
      Create a maven like project structure for java development. Make it OSGi compliant. Generate the flatbuffers code for testing (example).
      
      Java developer are mostly comfortable with maven project structure. One one the main concept behind maven is convention. If you follow the maven project convention then your development team will get more effective as they now this project structure and can easily find the production code versus the test code.
       In this pull request I have structured the java project around 2 main parts:
        * the `flatbuffers` project. This project is the api / lib project and contains the test code structure + an example of code generation for testing. This avoid to commit generated code. Pre-configure JUnit for test driven development and make this project OSGi compliant.
        * the `jmh` project. This project aims to provide a placeholder for micro-benchmarking. JMH is a 'de facto' standard for micro benchmarking you can find more details here: http://openjdk.java.net/projects/code-tools/jmh/
      
      For now I didn't move the JavaTest class but it could be a next step with a migration to the JUnit framework.
      The only impacts are the move of the class and the project structure => no code change.
      9875b0e0
  6. Jan 18, 2016
  7. Oct 15, 2015
    • Evan Wallace's avatar
      Add a test for JavaScript UTF-8 <=> UTF-16 conversion · 57a6dd47
      Evan Wallace authored
      JavaScript uses UTF-16 but FlatBuffers uses UTF-8. This commit tests the code
      that does the conversion between the two encodings. The last entry in the array
      is tricky because each code point actually requires two UTF-16 code units,
      unlike the other examples. The current JSON output of flatc actually handles
      this case incorrectly (it generates invalid JSON with UTF-8 code units). The
      generated JavaScript code passes these tests fine, however.
      57a6dd47
    • Evan Wallace's avatar
      Add support for JavaScript code generation · 224e33ed
      Evan Wallace authored
      This adds a JavaScript language target. The generated JavaScript uses Google
      Closure Compiler type annotations and can be compiled using the advanced
      compilation mode, which performs type checking and optimizations such as
      inlining and dead code elimination. The generated JavaScript also exports all
      generated symbols for use with Node.js and RequireJS. This export behavior
      can be turned off with the --no-js-exports flag for use with Google Closure
      Compiler.
      224e33ed
  8. Aug 01, 2015
  9. Jun 16, 2015
  10. Jun 15, 2015
  11. May 12, 2015
    • rw's avatar
      Port FlatBuffers to Python. · 48dfc69e
      rw authored
      Implement code generation and self-contained runtime library for Python.
      
      The test suite verifies:
        - Correctness of generated Python code by comparing output to that of
          the other language ports.
        - The exact bytes in the Builder buffer during many scenarios.
        - Vtable deduplication correctness.
        - Edge cases for table construction, via a fuzzer derived from the Go
          implementation.
        - All code is simultaneously valid in Python 2.6, 2.7, and 3.4.
      
      The test suite includes benchmarks for:
        - Building 'gold' data.
        - Parsing 'gold' data.
        - Deduplicating vtables.
      
      All tests pass on this author's system for the following Python
      implementations:
        - CPython 2.6.7
        - CPython 2.7.8
        - CPython 3.4.2
        - PyPy 2.5.0 (CPython 2.7.8 compatible)
      48dfc69e
  12. May 06, 2015
  13. Mar 27, 2015
  14. Mar 13, 2015
  15. Feb 17, 2015
    • Alex Ames's avatar
      Added the hash attribute to ints and longs. · d575321e
      Alex Ames authored
      FlatBuffer schema files can now optionally specify a hash attribute that
      will allow someone writing json files to enter a string to be hashed
      rather than a specific value. The hashing algorithm to use is specified
      by the schema.
      
      Currently the only algorithms are fnv1 and fnv1a. There are 32 bit and
      64 variatns for each. Additionally, a hashing command line tool was
      added so that you can see what a string will hash to without needing to
      inspect the flatbuffer binary blob.
      
      Change-Id: I0cb359d0e2dc7d2dc1874b446dc19a17cc77109d
      d575321e
  16. Jan 26, 2015
  17. Jan 16, 2015
  18. Sep 15, 2014
  19. Aug 22, 2014
  20. Aug 12, 2014
    • Wouter van Oortmerssen's avatar
      File identifier feature. · 5da7bda8
      Wouter van Oortmerssen authored
      Allows you to add, and test for the presence of a magic 4-char
      string in a FlatBuffer.
      
      Tested: on OS X.
      
      Change-Id: I090692a9e4fb53bed3543279a28563e67132cba0
      5da7bda8
  21. Jul 21, 2014
    • rw's avatar
      Port FlatBuffers to Go. · 74d5f370
      rw authored
      Implement code generation and runtime library for Go, derived from the
      Java implementation. Additionally, the test suite verifies:
      
       - the exact bytes in the Builder buffer during object construction,
       - vtable deduplication, and
       - table construction, via a fuzzer derived from the C++ implementation.
      
      Change-Id: Ib95a019c684891def2b50281e570b4843fea7baa
      74d5f370
  22. Jun 10, 2014
Loading