flatbuffers/samples
Derek Bailey ba5eb3b5cf Lua (5.3) Language addition (#4804)
* starting Lua port of python implmention. Syncing commit

* Bulk of Lua module port from Python done. Not tested, only static analysis. Need to work on binary strings. Started work on flatc lua code generation

* Fixed all the basic errors to produced a binary output from the builder, don't know if it is generated correctly, but it contains data, so that must be good

* fixed binary set command that was extending the array improperly

* continued improvement

* Moved lua submodules down a directory so their names don't clash with potential other modules. Added compat module to provide Lua versioning logic

* Successful sample port from Python

* working on testing Lua code with formal tests

* continued to work on tests and fixes to code to make tests pass

* Added reading buffer test

* Changed binaryarray implmentation to use a temporary table for storing data, and then serialize it to a string when requested. This double the rate of building flatbuffers compared to the string approach.

* Didn't need encode module as it just added another layer of indirection that isn't need

* profiled reading buffers, optimizations to increase read performance of monster data to ~7 monster / millisecond

* Writing profiler improvments. Get about
~2 monsters/millisecond building rate

* removed Numpy generation from Lua (came from the Python port)

* math.pow is deprecated in Lua 5.3, so changed to ^ notation. Also added .bat script for starting Lua tests

* adding results of generate_code.bat

* simple edits for code review in PR.

* There was a buffer overflow in inserting the keywords into the unorder set for both the Lua and Python code gens. Changed insertion to use iterators.

* fixed spacing issue

* basic documenation/tutorial updates. Updated sample_binary.lua to reflect the tutorial better

* removed windows-specific build step in Lua tests
2018-07-05 15:55:57 -07:00
..
android Text files should not have executable bit set (#4480) 2017-11-06 10:20:22 -08:00
lua/MyGame/Sample Lua (5.3) Language addition (#4804) 2018-07-05 15:55:57 -07:00
SampleBinary.cs Some code in the samples and docs still used old C# API. 2017-05-22 15:14:46 -07:00
SampleBinary.java Revamping the FlatBuffers docs. 2016-01-19 14:31:17 -08:00
SampleBinary.php Revamping the FlatBuffers docs. 2016-01-19 14:31:17 -08:00
android_sample.sh C++98 (stlport) support for core FlatBuffers and FlexBuffers. 2017-07-20 11:01:00 -07:00
csharp_sample.sh Made .sh files all have same comment formatting. 2016-05-23 14:08:21 -07:00
dart_sample.sh Add [Dart] support (#4676) 2018-05-18 11:06:15 -07:00
go_sample.sh Made .sh files all have same comment formatting. 2016-05-23 14:08:21 -07:00
java_sample.sh Made .sh files all have same comment formatting. 2016-05-23 14:08:21 -07:00
javascript_sample.sh Made .sh files all have same comment formatting. 2016-05-23 14:08:21 -07:00
monster.fbs Text files should not have executable bit set (#4480) 2017-11-06 10:20:22 -08:00
monster_generated.h Rename MANUALLY_ALIGNED_STRUCT to add FLATBUFFERS_ prefix in generated code within tests/. Via running `cd tests && sh generate_code.sh` (#4696) 2018-04-05 16:36:42 -07:00
monsterdata.json Text files should not have executable bit set (#4480) 2017-11-06 10:20:22 -08:00
php_sample.sh Made .sh files all have same comment formatting. 2016-05-23 14:08:21 -07:00
python_sample.sh Made .sh files all have same comment formatting. 2016-05-23 14:08:21 -07:00
sample_binary.cpp Made all C++ files clang-formatted. 2017-12-21 11:45:02 -08:00
sample_binary.go Resolve Go fmt and vet warnings (#4134) 2017-01-09 17:13:44 -08:00
sample_binary.lua Lua (5.3) Language addition (#4804) 2018-07-05 15:55:57 -07:00
sample_binary.py Revamping the FlatBuffers docs. 2016-01-19 14:31:17 -08:00
sample_text.cpp Made all C++ files clang-formatted. 2017-12-21 11:45:02 -08:00
samplebinary.js Revamping the FlatBuffers docs. 2016-01-19 14:31:17 -08:00