Commit Graph

986 Commits

Author SHA1 Message Date
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 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
Rafael Weinstein 93ec716edc Merge pull request #552 from rafael-atticlabs/assert
add noms.assert module
2015-11-03 14:52:17 -08:00
Rafael Weinstein a96f7743fe add noms.assert module 2015-11-03 14:47:34 -08:00
Erik Arvidsson 003bfd5545 Merge pull request #548 from arv/chunks-ref
Make Chunks return all reachable Refs from the current Value
2015-11-03 17:17:16 -05:00
Erik Arvidsson eeaac87d5f Make Chunks return all reachable Refs from the current Value
We now do a recursive call which bottoms out with a ref.Ref for RefKind
Values. This means that we traverse into nested structures consistently.

The effect of this is that we get all the refs that the current chunk
references.
2015-11-03 17:13:20 -05:00
Erik Arvidsson b68b3c8c3c Merge pull request #551 from arv/npm-versions
splore: Align versions of browserify and watchify
2015-11-03 17:12:49 -05:00
Erik Arvidsson 8f7416b4e6 splore: Align versions of browserify and watchify
This is so that they "use" the same version
2015-11-03 17:01:32 -05:00
Dan Willhite 26752bcb5a Merge pull request #542 from willhite/picasa
Picasa
2015-11-02 17:11:20 -08:00
Dan Willhite fd7a8973ce Migrate to use nomsdl codegen.
Use shared RemotePhoto object that flick examples uses. Add GeoPos information.
2015-11-02 17:06:13 -08:00
Aaron Boodman 3e5c03887a Merge pull request #545 from aboodman/toRef
Remove compoundObjectToRef from compoundObject
2015-11-02 15:42:50 -08:00
cmasone-attic 6aa2dad19f Merge pull request #544 from cmasone-attic/fixer
Fix botched handling of -in with -out-dir
2015-11-02 15:11:42 -08:00
Rafael Weinstein 1266d778b9 Merge pull request #543 from rafael-atticlabs/sploreJS2
splore now uses js2
2015-11-02 14:29:37 -08:00
Rafael Weinstein 8330394fcd splore now uses js2 2015-11-02 14:23:53 -08:00
Chris Masone d3162c9081 Fix botched handling of -in with -out-dir
The output file should always be emitted relative to -out-dir. I was
incorrectly appending the path to the input file onto that provided in
-out-dir to construct the path to the output file.
2015-11-02 14:14:43 -08:00
Aaron Boodman c65a776241 Remove compoundObjectToRef from compoundObject 2015-11-02 14:10:03 -08:00
Aaron Boodman 3f4fb1e9f7 Merge pull request #538 from aboodman/blob-future
Finish removing Future
2015-11-02 13:52:01 -08:00
Aaron Boodman 0622c8c860 Remove Future 2015-11-02 13:44:47 -08:00
Aaron Boodman bad6be3037 Remove futureFromValue. Another step toward removing Future. 2015-11-02 13:44:17 -08:00
Aaron Boodman 005a5fe438 Merge pull request #539 from aboodman/list-interface
Collapse list.go and list_leaf.go since we only have one impl.
2015-11-02 13:27:48 -08:00
Aaron Boodman c5b8de8174 Collapse list.go and list_leaf.go since we only have one impl. 2015-11-02 13:20:38 -08:00
cmasone-attic 007ca96c55 Merge pull request #540 from cmasone-attic/issue476
Clean up codegen -out-dir flag handling
2015-11-02 12:24:26 -08:00
Chris Masone a64cee5aab Clean up codegen -out-dir flag handling
Get rid of -out and ensure that Go package names generated from -out-dir
are actually legal Go identifiers.

Fixes #476
2015-11-02 12:17:42 -08:00
Rafael Weinstein 2bbae0907d Merge pull request #537 from rafael-atticlabs/js2HttpStore
(js2) Add HttpStore & more decode/encode support
2015-11-02 11:41:12 -08:00
Rafael Weinstein 9017dced4f (js2) Add HttpStore & more decode/encode support 2015-11-02 11:24:21 -08:00
Erik Arvidsson 02dda2e161 Merge pull request #530 from arv/compound-type-type-ref-after-mutation
Add runtime type assertions for the basic compound types
2015-11-02 12:06:09 -05:00
Erik Arvidsson 89734aae9e Add runtime type assertions for the basic compound types
If we have a List, Map, Set or Ref with a non Value element type we
now check the type of the params to functions that "mutate" these.
2015-11-02 11:57:49 -05:00
Erik Arvidsson 62fad2d615 Merge pull request #536 from arv/equals-by-ref
Make Equals compare by Ref (after comparing TypeRef)
2015-10-30 18:35:08 -04:00
Aaron Boodman 894e615696 Merge pull request #535 from aboodman/blob-future
Convert NewBlob() away from using resolvedFutures
2015-10-30 15:05:09 -07:00
Erik Arvidsson 3c0ef5bcbb Make primitives reasonable 2015-10-30 17:33:47 -04:00