Commit Graph

25 Commits

Author SHA1 Message Date
Erik Arvidsson 16353f38f8 NomDL: Make the new serialization default
This makes the new typed serialization the default (the old
serialization is not used but the code has not been cleaned up yet).

Some things are no working in the new world:

Chunking -  The compound list is not working correctly any more. The
Chunks method is having issues because it assumed things based on the
old implicit chunking.

Commit - uses a `Set(Commit)` which means that the parent commit is
embedded. We need to change that to be `Set(Ref(Commit))` so that the
parent commit is referenced instead.
2015-10-21 19:04:22 -04:00
Erik Arvidsson 6185ea1ddb NomDL: Use a list for the types in the package
This does not yet update the serialization to use the ordinal.
2015-10-14 14:49:04 -04:00
Dan Willhite 43d9a6f4fb Remove commit lineage from datastore head.
Replace datastore head with a map of datasetID's to commits. Each commit in the map represents that dataset's head. Fixes #402. Fixes #60. Filed #404 about small window of potential conflict with updating root that needs to be resolved at some point. # Please enter the commit message for your changes. Lines starting
2015-10-14 11:04:13 -07:00
Aaron Boodman 3c85411dc1 Regenerate all gen'd code in repo 2015-09-16 17:26:45 -07:00
Aaron Boodman 91df15a12a nomgen: stabilize the order types are generated in 2015-09-16 17:26:31 -07:00
Dan Willhite ab34143ba5 Pin dependencies using godep tool. Rewrite dep urls. 2015-08-26 14:05:40 -07:00
Chris Masone 1bd5af910a Add support for int8/uint8
It turns out that having these makes marshaling native go to and from noms
cleaner.

Towards issue #160
2015-08-17 13:44:50 -07:00
Chris Masone 17fd75f01d Create d.Exp and d.Try
Introduces the notion of debug 'expectations', analogous to the
'checks' that we already have. d.Exp provides the same API as d.Chk,
but expectation violations can be caught using d.Try().

Toward issue #176
2015-08-10 12:40:43 -07:00
Aaron Boodman 214b37eccf Remove global imports of dbg package
Fixes #179
2015-08-08 23:57:37 -07:00
Aaron Boodman 9b2cbd8517 Add autogenerated $name field to structs 2015-08-05 18:43:47 -07:00
Erik Arvidsson 6b26be741d nomgen: Move file handling into nomgen.go
Fixes #46
2015-07-27 15:58:02 -07:00
Erik Arvidsson e379360f3a Change the default names for typed data structures
TList -> ListOfT
TSet -> SetOfT
KeyValueMap -> MapOfKeyToValue

Issue #108
2015-07-23 14:12:06 -07:00
Erik Arvidsson 615a0971c3 Add custom name for all generated types
Map, Set and List can now also define their name using $name.

Issue #108
2015-07-23 13:49:46 -07:00
Erik Arvidsson 9e9b9556e4 Add tests for codegen
The test for this does the following:

1. The generated code is checked in
2. Running the test regenerates the generated code
3. Then the test.go is compiled and run

This also adds a smoke test for the codegen which just makes sure
that we do not fail when we try to generate code.

Fixes #90
2015-07-23 13:47:00 -07:00
Aaron Boodman e4983d1826 Merge pull request #110 from aboodman/index
Add some usage of strongly-typed maps to the index program.
2015-07-23 11:23:39 -07:00
Aaron Boodman e39d74543d Add some usage of strongly-typed maps to the index program.
This doesn't really feel like progress to me though. Going to let
it rattle around in my head a bit more before going further.
2015-07-22 16:20:19 -07:00
Erik Arvidsson a3b3bb1090 Add Map codegen 2015-07-22 14:36:34 -07:00
Erik Arvidsson 3fdc008f5c Codegen: Add support for noms types
This makes it possible to do a List of Bool or Map of Int32 etc
2015-07-22 12:24:27 -07:00
aboodman d753c86ee7 Merge pull request #43 from aboodman/idiot
Idiot
2015-07-15 15:09:40 -07:00
Chris Masone 14a7ad747e Enable nomgen to generate code for lists
Fixes issue #18
2015-07-15 14:12:58 -07:00
Aaron Boodman 4c521b6fa2 Rename _rungen.go to rungen.go everywhere because I'm an idiot 2015-07-15 13:55:17 -07:00
Erik Arvidsson 26eb6aa7d9 Replace capitalize with strings.Title 2015-07-13 15:44:33 -04:00
Chris Masone c9e4a44cb0 Fix compile issue in nomgen.go
type.Values is not a thing, but type.Value is.
2015-07-13 11:03:23 -07:00
Rafael Weinstein 8297baea11 Incremental loading of Map 2015-07-13 10:36:17 -07:00
Aaron Boodman 82a87d548c Use go generate instead of custom thing for generating primitives 2015-07-10 10:39:31 -07:00