rw
f675f6433c
go: give enums their own scalar types
2018-07-26 16:46:35 -07:00
Robert
f7bc9bd51b
Merge pull request #4146 from zchee/go-test-fix_struct
...
go: fix unknown field 'UOffset' to 'Pos'
2017-01-26 20:45:49 -08:00
Robert
059661b9ac
Merge pull request #4112 from manolama/tweaks
...
Restore the ''import "unsafe'' removed in 36daedf35fd0cc2ad0e5e24d187…
2016-12-09 14:29:57 -08:00
Robert
0de4f3f75b
Create basic issue template ( #4107 )
...
* Create basic issue template
* Update ISSUE_TEMPLATE.md
2016-12-07 14:17:30 -08:00
Robert
b59aafc659
Merge pull request #3791 from mmastrac/master
...
Avoid unsafe when sizing types
2016-12-07 11:51:11 -08:00
Robert
92a6ae93fa
Merge pull request #3977 from gonzaloserrano/feature/go-generic-deserialitzation
...
Add a generic way to deserialize a flatbuffer in Go.
2016-12-07 11:17:55 -08:00
Robert
63b240ec7b
Merge pull request #3995 from rw/go-remove-unused-initializer
...
Remove invalid vector item heap alloc
2016-08-20 22:07:10 -07:00
rw
c4ba502f57
Remove invalid vector item heap alloc
...
Fixes #3986
2016-08-20 20:33:36 -07:00
Robert
b36bd67b39
Merge pull request #3976 from gonzaloserrano/fix/gofmt
...
Make most of the Go code comply with gofmt (except enums).
2016-08-03 17:41:10 -04:00
Robert
fc19f746b0
Merge pull request #210 from splhack/add_enumnames_to_go
...
Add EnumNames to Go code
2016-07-25 20:44:33 -07:00
Robert
a56c6e5195
Merge pull request #363 from danring/fix-341
...
Emit GetRootAs methods for all types in Go and Python
2016-07-22 15:12:35 -07:00
Robert
6f75ec8490
Merge pull request #3913 from rw/fix-pytest-binary-type
...
Fix test using compat.binary_types (from March).
2016-06-18 13:02:02 -07:00
rw
fd43d3709e
Fix test using compat.binary_types (from March).
2016-06-18 01:12:56 -07:00
Robert
77742a3fba
Merge pull request #3806 from mediagraph/fix-create-string
...
Fix CreateString with already-encoded string or bytearray in Python 2.7.
2016-04-27 20:31:55 -07:00
Robert
ba7204a7b7
Merge pull request #3859 from rw/go-zero-alloc-strings
...
Go: Fix heap allocation when reading a string.
2016-04-23 18:38:03 -07:00
rw
e8ac0f293e
Fix heap allocation when reading a string.
2016-04-23 12:32:43 -07:00
rw
a88cf317fd
Python: remove ctypes dependency in runtime library.
2016-02-08 14:15:02 -08:00
Robert
b7d97ff3de
Merge pull request #3491 from faizanrashid/master
...
[BUG FIX] [MINOR] Fix encoding with unicode characters.
2016-01-19 17:56:26 -08:00
Robert
b4d29970f4
Merge pull request #2098 from faizanrashid/issue-1741
...
[BUG] [MINOR] Use buffer for specific py versions
2016-01-06 16:13:59 -08:00
Robert
4725be015d
Merge pull request #343 from rw/go-builder-ergonomics
...
Go: Improve Builder user interface.
2015-11-16 12:18:30 -08:00
rw
3232727ace
Python: Improve Builder user interface.
...
+ Add state to the Builder object to track if we are inside a table,
and if we are finished building the buffer.
+ Use this data to check that a buffer is being built correctly.
+ Raise an exception if a buffer is not being built correctly.
+ Test that the exceptions happen as expected.
Based on d236dea .
2015-11-11 19:43:53 -08:00
rw
2dfff15a9d
Improve Builder user interface.
...
+ Add state to the Builder object to track if we are inside a table,
and if we are finished building the buffer.
+ Use this data to check that a buffer is being built correctly.
+ Panic if a buffer is not being built correctly.
+ Test that the panics happen as expected.
Based on d236dea13d .
2015-11-11 17:08:16 -08:00
Robert
07478a6700
Merge pull request #204 from layzerar/fix_struct_comment
...
fix comment generation of struct
2015-10-20 13:25:53 -07:00
Robert
b4db88808f
Merge pull request #286 from tguo-aa/fix-278
...
Add self.assertNotNested() in CreateString
2015-10-08 00:23:26 -07:00
Robert
781c39c708
Fix 32bit-system integer overflow (test only)
...
For #277
2015-09-25 13:57:17 -07:00
Robert
2736711d67
Merge pull request #275 from brunoqc/patch-1
...
Remove duplicate Go test
2015-09-21 15:13:24 -07:00
Robert
9689d38bef
Merge pull request #235 from FrankStain/master
...
2Gb buffer size checks fixed for Python Builder
2015-08-19 23:22:20 +02:00
Robert
1c152cc72a
Merge pull request #222 from rw/go-update-panics
...
Panic when nesting strings. Test panic scenarios.
2015-06-29 18:10:44 -04:00
rw
4d305f5922
Panic when nesting strings. Test panic scenarios.
...
Also add a new `insideObject` boolean to the Builder to track whether an
object is currently being constructed. This fixes a bug with objects
that have zero fields.
2015-06-24 11:53:44 -04:00
Robert
2535a3aa3a
Merge pull request #206 from rw/go-faster-string-writing
...
Go: CreateString now needs zero allocs.
2015-05-20 14:37:53 -07:00
rw
0894c25f2c
Improve comment for unicode check.
2015-05-20 14:19:49 -07:00
rw
7810fb9ce4
use escape codes here for non-unicode editors
2015-05-20 13:42:51 -07:00
rw
c127cf78c2
Go: CreateString now needs zero allocs.
...
Big speed boost for the typical use case of building with strings.
2015-05-20 12:00:44 -07:00
rw
339376ba67
Regenerate Doxygen docs to add Python usage page.
2015-05-15 12:23:10 -07:00
rw
7a1b77322b
Update Python package description: license, descriptions.
2015-05-15 12:20:20 -07:00
Robert
f8139b05cb
Merge pull request #112 from rw/python23-read-write-gen-port
...
Port FlatBuffers to Python.
2015-05-13 11:20:09 -07:00
rw
776c4eb965
use EnsureDirExists from util.h instead of mkdir
2015-05-13 10:54:02 -07:00
rw
2746aabcf1
fix string catenation
2015-05-13 10:50:47 -07:00
rw
48dfc69ee6
Port FlatBuffers to Python.
...
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)
2015-05-12 15:40:29 -07:00
Robert
4d213c2d06
Merge pull request #165 from rw/go-faster
...
Go speed improvements
2015-05-12 14:53:31 -07:00
rw
e5c21ec666
invoke many fewer growth events
2015-05-09 16:32:26 -07:00
rw
e11da87a24
gofmt
2015-05-09 16:10:03 -07:00
rw
3dd54424c0
remove remaining allocs during build
2015-05-09 16:07:11 -07:00
rw
5d68493df4
update CheckClash for string accesses
2015-05-09 15:37:13 -07:00
rw
d756efbf76
Reduce allocations when reusing a Builder.
...
Add the function `Reset` to the Builder, which facilitates reuse of the
underlying byte slice.
2015-04-02 19:33:00 -07:00
rw
ace7fa8094
Reduce allocations when building strings.
...
Builder has a new CreateByteString function that writes a
null-terimnated byte slice to the buffer. This results in zero
allocations for writing strings.
2015-04-02 18:22:13 -07:00
rw
f02646e357
Remove all string allocations during parsing.
...
Change the signature for 'string' getters and settings to use byte
slices instead of strings.
2015-04-02 11:56:55 -07:00
rw
0a3a09aaf3
Merge branch 'go-bytevector-getter' of github.com:benharper123/flatbuffers into go-faster
2015-04-02 11:47:17 -07:00
rw
796be3282c
Benchmarks for building and parsing 'gold' data.
...
Identifies alloc-heavy codepaths.
2015-04-02 11:26:00 -07:00
rw
468124fb9b
chmod GoTest.sh +x
2015-04-02 11:25:48 -07:00
rw
ef03cf46e4
Fix vector of strings for Go
...
Mirrors Java patch 39d4b7e2bf
Change-Id: If8d0ab29f6eb508a156d468aeb0a9d5410149e53
2014-09-23 17:25:50 -07:00
rw
417cb878c3
Fixed possible alignment issue in Go
...
Java patch with same purpose:
cdb0dca39d
Change-Id: I57d268cc0064843779eb7812a9e69326d9ab2498
Tested: on Darwin
2014-09-04 17:35:08 -07:00
rw
0477a54f65
Tweak Go test.
...
Add more comments explaining the tests. Remove the extraneous 'superFuzz'
functionality. By default, do not compare to generated Java files.
Change-Id: Icb0aa8262e10035958639f9a88ca666694a2ce73
2014-07-25 15:26:00 -07:00
rw
74d5f3701f
Port FlatBuffers to Go.
...
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
2014-07-21 16:40:39 -07:00
rw
e2c02b833e
license is a comment, not an echo
2014-06-23 13:37:32 -07:00
rw
0b60ece438
show absolute path to user when aborting
2014-06-20 16:51:32 -07:00
rw
69dc8cbbc3
sh script for JavaTest
2014-06-20 16:21:49 -07:00