Commit Graph

380 Commits

Author SHA1 Message Date
Aaron Boodman 821bccc946 Merge pull request #197 from aboodman/sort
tagshow: sort photos deterministically
2015-08-18 15:52:36 -07:00
Aaron Boodman fe40fe7996 tagshow: sort photos deterministically 2015-08-18 13:33:03 -07:00
Aaron Boodman c942f11b6a Merge pull request #196 from aboodman/actually-decode-blobs
Actually decode blobs
2015-08-18 12:52:01 -07:00
Rafael Weinstein 0222b95ff2 LevelDBStore 2015-08-18 11:20:17 -07:00
Aaron Boodman f33dd08b18 tagshow: Read blobs from noms rather than Flickr 2015-08-17 23:11:35 -07:00
Aaron Boodman 4e91401f46 Explore: show something useful for blobs 2015-08-17 23:01:34 -07:00
Aaron Boodman f4570a116c js: Decode blobs to DOM blob objects. 2015-08-17 23:01:23 -07:00
Aaron Boodman 4be54b2458 Merge pull request #194 from aboodman/decode-compound-blob
js: Add support for compound blobs
2015-08-17 16:02:48 -07:00
Aaron Boodman da3c12d479 js: Add support for compound blobs 2015-08-17 16:02:37 -07:00
cmasone-attic b8260e8bed Merge pull request #193 from cmasone-attic/int8
Add support for int8/uint8

Towards issue #160
2015-08-17 15:06:06 -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
cmasone-attic 33cc8c5a7a Merge pull request #192 from cmasone-attic/issue176
Use d.Try less granularly

Towards issue #176
2015-08-17 10:48:41 -07:00
Aaron Boodman 11a4892ce5 Merge pull request #187 from aboodman/tagshow
Introduce tagshow: a sideshow for noms photos
2015-08-17 10:38:28 -07:00
Chris Masone df520db380 Use d.Try less granularly
We can still get useful error messages out of d.Try without
specifically wrapping every single thing that might throw a
noms UsageError, so do so. The code is cleaner.

Towards issue #176
2015-08-11 11:25:50 -07:00
cmasone-attic 1a4a0fb86f Merge pull request #191 from aboodman/errors
Error handling example

Toward issue #176
2015-08-11 11:15:24 -07:00
Aaron Boodman 55b2b2a8cc Error handling example 2015-08-11 10:29:31 -07:00
cmasone-attic efc8d9a461 Merge pull request #190 from cmasone-attic/issue176
Create d.Exp and d.Try

Toward issue #176
2015-08-10 13:17:38 -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 1ec4507395 Introduce tagshow: a sideshow for noms photos 2015-08-09 00:00:40 -07:00
Aaron Boodman df56161298 Merge pull request #189 from aboodman/d
Remove global imports of dbg package
2015-08-09 00:00:04 -07:00
Aaron Boodman 214b37eccf Remove global imports of dbg package
Fixes #179
2015-08-08 23:57:37 -07:00
Aaron Boodman ed23824620 Merge pull request #188 from attic-labs/revert-186-server-ds
Revert "server: add ds flag"
2015-08-08 23:42:51 -07:00
Aaron Boodman 86d630d202 Revert "server: add ds flag" 2015-08-08 18:17:29 -07:00
Aaron Boodman 41fde0e617 Merge pull request #186 from aboodman/server-ds
server: add ds flag
2015-08-07 19:58:08 -07:00
Aaron Boodman d71c91e13a server: add ds flag
Toward #185
2015-08-07 18:22:49 -07:00
cmasone-attic 5d2842d56c Merge pull request #184 from cmasone-attic/whoops
Remove some unused functions in json_encode.go
2015-08-07 13:52:16 -07:00
Chris Masone 0a6f1a1a68 Remove some unused functions in json_encode.go
I intended to delete these before landing my last encode patch,
but failed to save the file.
2015-08-07 13:51:11 -07:00
Aaron Boodman f407029526 Merge pull request #181 from aboodman/tagdex
Tagdex
2015-08-07 09:52:15 -07:00
Erik Arvidsson ddebdcaefd Slight modification to compound blob encoding
The json serialization now only contains the length of each individual
blob child.

The go representation of this still uses offsets but the offsets are
for the end delimiter.

For "hi" "bye" we get

{"cb", [{"ref": "sha1-hi"}, 2, {"ref": "sha1-bye"}, 3]}

compoundBlob{[2, 5], [sha1-hi, ,sha1-bye]}

Keeping the length in the serialization leads to smaller serializations

Using the end offset leads to simpler binary search and allows us to
use the last entry as the length.

Issue #17
2015-08-07 11:24:27 -04:00
Aaron Boodman f82ebc657b Flickr: use map instead of set for albums 2015-08-07 08:04:51 -07:00
Aaron Boodman f98ee32460 Introduce tagdex: a program for indexing photo tags. 2015-08-07 08:04:47 -07:00
Aaron Boodman 673180c2c9 add values/walk.go 2015-08-07 08:04:42 -07:00
cmasone-attic eedb385fe2 Merge pull request #175 from cmasone-attic/issue139
Encapsulate profiling flags and set up in the clients/util package

Fixes issue #139
2015-08-06 17:08:10 -07:00
cmasone-attic f6927e8adc Merge pull request #178 from cmasone-attic/issue159
Migrate the types package to JSON decode using the enc package

Fixes issue #159
2015-08-06 17:03:01 -07:00
Chris Masone b207d7e7ca Remove ToItems(), fix error reporting in ReadValue 2015-08-06 17:02:26 -07:00
Chris Masone f4ef0d5cbc Address comments
Ensure reader gets closed in all cases in ReadValue, clean up BUG references,
delete NewCompoundBlob, and switch an io.Copy -> ioutil.ReadAll
2015-08-06 16:46:00 -07:00
Chris Masone bec1b344be Migrate the types package to JSON decode using the enc package
This change removes the json decoding code from the types package and ports
it onto the enc package's encoding API.

Fixes issue #159
2015-08-06 16:09:35 -07:00
cmasone-attic 21f414d1fd Merge pull request #173 from cmasone-attic/issue159
Migrate the types package to JSON encode using the enc package

For issue #159
2015-08-06 12:49:06 -07:00
Chris Masone 07046ce567 Address aa comments 2015-08-06 12:48:39 -07:00
Chris Masone 4e32281c28 Encapsulate profiling flags and set up in the clients/util package
Reduces code duplication. Yay!
2015-08-06 11:22:11 -07:00
Chris Masone 1a3c3e2c41 Migrate the types package to JSON encode using the enc package
This change removes the json encoding code from the types package and ports
it onto the enc package's encoding API.

Towards issue #159
2015-08-06 10:30:16 -07:00
Erik Arvidsson ea52c4ac7c Implement Seek for Blob.Reader()
This allows us to only read the relevant chunks

Issue #17, #155
2015-08-06 12:22:41 -04:00
Aaron Boodman c14d4cadb4 Merge pull request #172 from aboodman/flickr
Flickr: toward tag indexer
2015-08-05 21:40:18 -07:00
Aaron Boodman 9b2cbd8517 Add autogenerated $name field to structs 2015-08-05 18:43:47 -07:00
Aaron Boodman 7a86dd0828 Flickr: get tags too 2015-08-05 18:40:18 -07:00
Aaron Boodman f59a360a69 Rename clients/go to clients/util 2015-08-05 17:11:40 -07:00
Aaron Boodman 6f454497cb Flickr: add http cache
Also flush photo after creation to control working set.
2015-08-05 17:07:49 -07:00
cmasone-attic 2af4cdfe9a Merge pull request #166 from cmasone-attic/jsonenc
First cut of Very Low-Level JSON Encoding Package

Towards issue #159
2015-08-05 13:01:43 -07:00
Chris Masone 7ebe98f49c Address final comments
Primarily removing actual ref caclulations from unit tests, since
those aren't this package's responsiblility
2015-08-05 13:00:49 -07:00
Chris Masone 3c360b7037 Adapt to new compound blob encoding 2015-08-05 11:56:49 -07:00