Erik Arvidsson
61f14f8c9a
Rename noms UInt* to Uint*
...
Fixes #673
2015-12-02 12:01:42 -05:00
Dan Willhite
7dd540d5d5
Make generated files stable and consistent with go fmt.
2015-11-24 16:15:35 -08:00
Rafael Weinstein
e75f5097c7
Allow Map & Set to order by natural ordering of element type if available.
2015-11-16 14:30:30 -08:00
Erik Arvidsson
a72ce41a1d
Go: TypeRef -> Type
...
Remaining identifiers
2015-11-13 17:54:53 -05:00
Chris Masone
eda9b92870
Rename types.TypeRef to types.Type
...
There are probably still a lot of variable names and comments to fix,
but this updates all the Go code.
Towards #441
2015-11-09 08:26:32 -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
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
3c0ef5bcbb
Make primitives reasonable
2015-10-30 17:33:47 -04:00
Erik Arvidsson
30cc7d518f
Make Equals compare by Ref (after comparing TypeRef)
...
This changes equal to compare by ref. Since computing the ref can be
expensive we first check that the type refs are equal.
Fixes #532
2015-10-30 16:50:49 -04:00
Aaron Boodman
a9bc416a2f
Change Chunks() to return []ref.Ref
2015-10-30 09:24:58 -07:00
Erik Arvidsson
ede5f43204
Value should also have a TypeRef
...
This is so that we can get the runtime type of a value
2015-09-30 16:15:13 -04:00
Erik Arvidsson
d17dc67a73
NomDL CodeGen: Rename self
2015-09-25 17:17:12 -04:00
Erik Arvidsson
1a4bdae624
Make types.Ref explicit
...
No more implicit Get or Equals
2015-09-18 14:03:19 -04:00
Chris Masone
5de698b8f1
Add Unmarshal and Marshal
...
Unmarshal and Marshal are tools for moving data from Noms into native Go and
back. The rules are described in the documentation of the two functions, but
the behavior is broadly similar to encoding/json.
Towards issue #160
2015-08-26 09:27:58 -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
Aaron Boodman
214b37eccf
Remove global imports of dbg package
...
Fixes #179
2015-08-08 23:57:37 -07:00
Aaron Boodman
7944c1b3af
Revert "Make WriteValue return a "skinny" copy of input value"
2015-07-30 09:23:35 -07:00
Aaron Boodman
a84893c0d8
Make WriteValue return a "skinny" copy of input value
...
Fixes #141
2015-07-29 16:06:54 -07:00
Chris Masone
4fe00d4f81
Address aa's comments
...
- Return factory methods to privacy
- use tighter syntax inside Chunks() methods
- Rename Futures() -> Chunks()
2015-07-23 15:32:38 -07:00
Chris Masone
a560139d73
Make types.future public
...
This will enable us to walk the chunk graph without having to go
through weird contortions to figure out which values don't have
chunks in any chunkstore (because they were inlined).
Towards issue #82
2015-07-23 15:32:26 -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
Aaron Boodman
82a87d548c
Use go generate instead of custom thing for generating primitives
2015-07-10 10:39:31 -07:00