Commit Graph

18 Commits

Author SHA1 Message Date
Erik Arvidsson 1d13a878c4 Fix types.Ref and RefKind objects
Ref Values now have a TargetRef() method that returns the ref.Ref of
the target the Value is referencing.

Note: This is a breaking change. In old code the Ref() of the Value was
the Ref of the underlying target.

Fixes #464
2015-10-26 11:18:02 -04:00
Erik Arvidsson 6c7864edbe Change List to not use futures
This disables the compound list creation and its related tests
2015-10-26 09:34:54 -04:00
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 8565f175ee Make sure Chunks includes type.Refs and the TypeRef
Chunks shold return the futures for types.Ref values.

For typed values that have a TypeRef which has a package ref, also
include that.
2015-10-13 11:00:51 -04:00
Erik Arvidsson 1a4bdae624 Make types.Ref explicit
No more implicit Get or Equals
2015-09-18 14:03:19 -04:00
Rafael Weinstein 0555d7a3c1 Remove errors from read/write/encode/decode 2015-08-18 16:37:04 -07:00
Aaron Boodman 214b37eccf Remove global imports of dbg package
Fixes #179
2015-08-08 23:57:37 -07:00
Aaron Boodman b79d7987c4 Make ref.Ref a type of Value too.
"Fixes" #141.
2015-08-04 16:37:33 -07:00
Rafael Weinstein 1369ac9e6b Allow xml_importer & pitchmap/index to be more streamy 2015-07-28 14:13:59 -07:00
Chris Masone 5bceb60e88 Update comment on Future 2015-07-23 15:34:40 -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
Aaron Boodman 409fd1b076 Map and Set: Compare using future.Val() when possible.
This can be more efficient than comparing by ref for primitives.
2015-07-21 09:26:38 -07:00
Aaron Boodman c4537d82d6 futureEquals fast path 2015-07-09 18:38:32 -07:00
Aaron Boodman 90d7042a3a fast path when comparing futures for primitives 2015-07-09 18:07:23 -07:00
Aaron Boodman 1640657030 Rename Future->future 2015-07-09 17:51:25 -07:00
Aaron Boodman ca43c9cfec Decode Lists lazily 2015-07-09 17:30:43 -07:00
Aaron Boodman d5b90dd43c Teach flatList about Futures. 2015-07-09 17:30:43 -07:00
Aaron Boodman 8662a36344 Add types.Future, which will be the basis for lazy loading. 2015-07-09 17:30:43 -07:00