cmasone-attic
dac247cc5d
Merge pull request #586 from cmasone-attic/slowTests
...
Reduce size of test data in Set and Map IterAllP() tests
2015-11-06 09:23:14 -08:00
Chris Masone
6b31cf7bc9
Reduce size of test data in Set and Map IterAllP() tests
...
Building up these big Sets and Maps is really slow, and the purpose of
this test is not to stress-test the code with huge data, but rather to
verify correctness. Since Set and Map are being replaced soon, it doesn't
make sense to improve the existing implementations.
2015-11-06 09:04:13 -08:00
Aaron Boodman
3b09516a48
Merge pull request #572 from aboodman/quadtree2
...
Rewrite walk(), update quadtree to be generic again
2015-11-05 16:12:50 -08:00
Aaron Boodman
69a86f3036
Rewrite walk() to walk value tree instead of chunks
...
Also fix quad_tree to take advantage of that to be generic again.
Fixes #445 , #497
2015-11-05 16:12:02 -08:00
cmasone-attic
8f6d1011c0
Merge pull request #580 from cmasone-attic/issue578
...
Add Filter() to List
2015-11-05 15:33:28 -08:00
Rafael Weinstein
6b2e70b39c
Merge pull request #576 from rafael-atticlabs/moreJS
...
More complete implementation of Package & TypeRef, including get_ref & more tests
2015-11-05 15:26:21 -08:00
Rafael Weinstein
2c12962bed
More complete implementation of Package & TypeRef, including get_ref & more tests
2015-11-05 15:22:59 -08:00
Chris Masone
b54fd91c82
Add Filter() to List
...
And update collection templates to be backed by the untyped
Filter() implementations.
Fixes #578
2015-11-05 15:15:46 -08:00
Chris Masone
c40b57fc41
Generated code
2015-11-05 15:15:07 -08:00
cmasone-attic
7fad0856c3
Merge pull request #579 from cmasone-attic/issue564
...
IterAllP for typed Maps
2015-11-05 15:14:47 -08:00
Erik Arvidsson
4747a4f433
Merge pull request #581 from arv/struct-no-chan
...
Remove the channel from struct reader/builder
2015-11-05 17:59:51 -05:00
Erik Arvidsson
cc89fb2d90
Remove the channel from struct reader/builder
...
Instead use a slice of Value
2015-11-05 16:34:03 -05:00
Erik Arvidsson
329e13e0ae
Generated code
2015-11-05 16:33:25 -05:00
cmasone-attic
a8751cdde5
Merge pull request #563 from cmasone-attic/indexChange
...
Fix xml_importer and pitchmap/index to correctly use typed containers.
2015-11-05 12:21:12 -08:00
Chris Masone
5bda67180d
Run go generate ./... at top level to pick up codegen changes from rebase
2015-11-05 12:15:23 -08:00
Chris Masone
2e68c39b14
Fix xml_importer and pitchmap/index to correctly use typed containers.
...
Fixes #554
2015-11-05 12:08:22 -08:00
Chris Masone
4e79367d1a
IterAllP for typed Maps
...
Fixes #564
2015-11-05 12:06:10 -08:00
Erik Arvidsson
2fcd3ce3af
Merge pull request #575 from arv/register-ref
...
Clean up registration of Ref values
2015-11-05 14:51:37 -05:00
Erik Arvidsson
0fa249e5ff
Create README.md
2015-11-05 14:51:25 -05:00
Erik Arvidsson
460841e3ed
Clean up registration of Ref values
...
Ref values use the TargetRef to get the internal implementation
RegisterFromValFunction and ToNomsValueFromTypeRef were only used by
ref values at this point so these were renamed and simplified to be
more specific for ref values
2015-11-05 14:32:45 -05:00
Aaron Boodman
f0a83992e3
Merge pull request #570 from aboodman/quadtree
...
Get quadtree client working with newbindings
2015-11-05 11:29:15 -08:00
cmasone-attic
ed98228e76
Merge pull request #574 from cmasone-attic/issue564
...
Add IterAllP() to all typed Lists and Sets
2015-11-05 09:22:03 -08:00
Chris Masone
7b55efa9b6
Generated Code
2015-11-05 08:42:22 -08:00
Chris Masone
d66151b4c1
Add IterAllP() to all typed Lists and Sets
...
Also added IterAllP() to types.Set so it could be used by generated
set code.
Towards #564
2015-11-05 08:42:22 -08:00
Erik Arvidsson
ca89d12836
Merge pull request #565 from arv/register-the-others-too
...
Remove InternalImplementation() from List, Map & Set
2015-11-05 11:17:20 -05:00
Aaron Boodman
6f77a9d14e
quad_tree: Call WriteValue() with SQuadTree, not *SQuadTree
...
This is a temporary fix for issue #566 .
2015-11-04 20:22:36 -08:00
Aaron Boodman
980770965e
quad_tree: add usage
2015-11-04 20:22:36 -08:00
Aaron Boodman
8d0e850880
sfcrime_importer: add usage
2015-11-04 20:22:32 -08:00
Erik Arvidsson
9ba1c4a508
Remove InternalImplementation() from List, Map & Set
...
Instead register a function to extract the internal backing store.
2015-11-04 18:57:36 -05:00
Erik Arvidsson
8c98964fee
Generated code
2015-11-04 18:57:27 -05:00
Erik Arvidsson
7b386cb708
Merge pull request #562 from arv/types-enum
...
Add types.Enum
2015-11-04 17:29:12 -05:00
Erik Arvidsson
7d4e2df45d
Add types.Enum
...
This is needed to be able to round trip enums.
If there is no codegen for an enum that is read from the datastore we
now return a types.Enum which can be serialized back to the same
sequence.
2015-11-04 16:40:07 -05:00
Aaron Boodman
ed64ce9af2
Merge pull request #557 from aboodman/build
...
Improve Splore build experience
2015-11-04 13:10:27 -08:00
Aaron Boodman
8f77860805
Improve Splore build experience
2015-11-04 13:10:10 -08:00
Rafael Weinstein
ba6072e664
Merge pull request #559 from rafael-atticlabs/testSplore
...
Run tests in clients/splore
2015-11-04 13:00:44 -08:00
Erik Arvidsson
faca34cc07
Merge pull request #561 from arv/simplify-fixup
...
Make sure that we call fixupTypeRef before we use the Ref
2015-11-04 15:51:48 -05:00
Erik Arvidsson
5f66001324
Make sure that we call fixupTypeRef before we use the Ref
...
The Ref of a TypeRef is used in a maps and then it is important that
we fix all empty refs to point at the current package.
Remove unneeded calls to fixupTypeRef and make sure we call it just
before using the TypeRef as a key in a map.
2015-11-04 15:18:13 -05:00
Erik Arvidsson
040690a239
Merge pull request #560 from arv/struct-reader
...
Remove InternalImplementation from structs
2015-11-04 15:04:10 -05:00
Erik Arvidsson
07414d0a9e
Remove InternalImplementation from structs
...
By adding a reader to structs we can remove the function that exposes
the internal implementation details of a struct.
2015-11-04 14:57:52 -05:00
Rafael Weinstein
d314df9d3e
Run tests in clients/splore
2015-11-04 11:11:06 -08:00
Erik Arvidsson
98ebe90ccb
Merge pull request #555 from arv/remove-from-val
...
Remove from val
2015-11-04 12:17:15 -05:00
Erik Arvidsson
756b893e8f
Remove FromVal functions
...
The generated objects are all type.Values now so FromVal is not needed
2015-11-04 12:13:55 -05:00
Erik Arvidsson
a45ba9df29
Followup minor cleanup
...
cmasone pointed this out but I missed it before merging.
2015-11-04 12:02:17 -05:00
Erik Arvidsson
6feee5eb5b
Merge pull request #550 from arv/types-struct
...
Add types.Struct and improve typed structs
2015-11-04 11:59:42 -05:00
Erik Arvidsson
9aadd85004
Add types.Struct and improve typed structs
...
The generated code for typed structs now uses a Go struct which
implements Value directly. The fields in this struct uses the "user"
type. (The union value still uses types.Value though.)
When a typed struct is created by the decoder, it asks for a struct
builder which returns a channel that the values of the fields of the
struct are sent to.
2015-11-04 11:55:07 -05:00
Rafael Weinstein
3bbdfdf294
Merge pull request #558 from rafael-atticlabs/asyncDecodingTest
...
(js) Add test for correct async decoding
2015-11-04 08:22:54 -08:00
Rafael Weinstein
edac9907a4
moar
2015-11-03 22:23:26 -08:00
Rafael Weinstein
ae8bd93c03
(js) Add test for correct async decoding
2015-11-03 22:21:14 -08:00
Rafael Weinstein
ea071cacf4
Merge pull request #556 from rafael-atticlabs/asyncDecoding
...
Async decoding
2015-11-03 17:35:24 -08:00
Rafael Weinstein
afb55166ef
(js) fix async decoding
2015-11-03 17:34:59 -08:00