Commit Graph

724 Commits

Author SHA1 Message Date
Erik Arvidsson bbe396fb94 Merge pull request #308 from arv/set-extras
NomDL: Codegen for Set extras
2015-09-17 17:25:59 -04:00
Erik Arvidsson 0203a71e9d Merge pull request #309 from arv/map-extras
NomDL: CodeGen for Map extras
2015-09-17 17:23:43 -04:00
Erik Arvidsson f64f6ae81c NomDL: CodeGen for Map extras
This adds Iter, IterAll and Filter to Maps

Issue #303
2015-09-17 17:20:49 -04:00
Erik Arvidsson 175cc7ccc1 NomDL: Codegen for Set extras
This adds Iter, IterAll and Filter to Sets

Issue #303
2015-09-17 16:49:22 -04:00
Rafael Weinstein 8d56b8c968 Reland: ChunkSource.Get() now returns a []byte. chunks.Serialize takes a stream of Chunks 2015-09-17 12:31:25 -07:00
Erik Arvidsson 24f1f58042 Build fix - run godep again 2015-09-17 14:30:09 -04:00
Erik Arvidsson 025d8e2dfa Merge pull request #305 from arv/list-extras
NomDL: Codegen for List extras
2015-09-17 14:27:03 -04:00
Erik Arvidsson 5a83b23f29 NomDL: Codegen for List extras
Adds Iter, IterAll and Filter to the List(T) types

Depends on PR #298

Issue #303
2015-09-17 14:24:36 -04:00
Erik Arvidsson e10e6224b0 Codegen for NomDL
This adds a new codegen that reads .noms files and generates Go
API for these types

Issue #304
2015-09-17 14:01:49 -04:00
Rafael Weinstein a62cf1bbb8 Revert "ChunkSouce.Get() now returns []byte"
This reverts commit 2be269acf4.
2015-09-16 20:47:36 -07:00
Aaron Boodman d01ffdcbb7 Merge pull request #300 from aboodman/flickr-geo
flickr: slurp in geotags
2015-09-16 17:51:22 -07:00
Aaron Boodman c6078979a2 flickr: slurp geotags 2015-09-16 17:50:36 -07:00
Aaron Boodman 522df3055b Merge pull request #302 from aboodman/stable-gen
nomgen: stabilize the order types are generated in across runs
2015-09-16 17:41:39 -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
Rafael Weinstein c5831254b7 Merge pull request #301 from rafael-atticlabs/getByteSlice
ChunkSource.Get() now returns a []byte. chunks.Serialize takes a stream of Chunks
2015-09-16 16:43:05 -07:00
Rafael Weinstein 2be269acf4 ChunkSouce.Get() now returns []byte 2015-09-16 16:42:36 -07:00
Rafael Weinstein 0df9f46a2e Remove http_store (someone got lost in recent patch) 2015-09-16 12:55:55 -07:00
Rafael Weinstein 2eedf47c61 Merge pull request #299 from rafael-atticlabs/http
Split HttpStore into HttpClient/Server and move to http package
2015-09-16 12:32:02 -07:00
Rafael Weinstein 9c6effe19f split chunks/http_store into http/http_client & http/http_server 2015-09-16 10:56:43 -07:00
Rafael Weinstein 31961b4113 Merge pull request #296 from rafael-atticlabs/copyChunksP
CopyReachableP
2015-09-16 10:54:06 -07:00
Rafael Weinstein 068d4d3878 CopyChunksP 2015-09-16 10:50:19 -07:00
cmasone-attic 5807227664 Merge pull request #297 from cmasone-attic/issue293
Add comments to NomDL

Closes Issue #293
2015-09-16 07:56:59 -07:00
Aaron Boodman 9733dfe24b Merge pull request #295 from aboodman/parallelize-flickr
flickr: parallelize!
2015-09-15 17:27:32 -07:00
Chris Masone 8660c518db Add comments to NomDL
Both // and /* */ comments are supported, per your C/C++ expectations.

Closes issue #293
2015-09-15 16:42:04 -07:00
Aaron Boodman 1938f57ef3 simpler 2015-09-15 16:07:21 -07:00
Aaron Boodman 2f9ba473ec flickr: parallelize! 2015-09-15 15:59:06 -07:00
Aaron Boodman 17fb68f576 Merge pull request #290 from aboodman/remote-photo
Add "RemotePhoto" concept and update flickr, tagdex, tagshow
2015-09-15 15:54:15 -07:00
cmasone-attic b15ba70162 Merge pull request #291 from cmasone-attic/issue286_sugar
Make named union fields in structs syntactic sugar
Fixes Issue #286
2015-09-15 11:57:58 -07:00
Chris Masone e74897c418 Fix error message in grammar.peg 2015-09-15 09:16:08 -07:00
Chris Masone b2f02c0405 Get rid of UnionKind
As arv pointed out, the parser should no longer generate TypeRefs
of UnionKind, so I made it stop doing that. Getting rid of UnionKind
has the side effect of making UnionDesc no longer capable of satisfying
TypeDesc, so one can no longer create a TypeRef that holds a UnionDesc.
That's correct for production, but I'd been using Field structs (which
contain a TypeRef) to define my test cases. Since I still need to test
that the parser correctly handles named union fields in structs, and
Field structs are no longer capable of expressing that, I needed to
create a new testField struct and some attendant types to allow me
to write all my test cases.
2015-09-15 09:12:46 -07:00
Chris Masone d0340a1160 Make named union fields in structs syntactic sugar
Arv pointed out that there's really no difference between a named
union struct field and a struct field whose type is a struct that
contains only an anonymous union. This patch makes the parser replace
the TypeRef of UnionKind in each named union field with a TypeRef of
StructKind that contains only an anon union.

Fixes Issue #286
2015-09-14 16:31:35 -07:00
cmasone-attic d72318d048 Merge pull request #289 from cmasone-attic/issue286
Check for duplicate names in struct, union definitions

Towards issue #281
2015-09-14 16:08:43 -07:00
Chris Masone 24cfa4423c Go back to using []Field in struct definitions 2015-09-14 16:02:05 -07:00
Dan Willhite 253a859610 Merge pull request #275 from willhite/concurrent-fetch
Add concurrency to photo fetching.
2015-09-14 15:45:03 -07:00
Dan Willhite 4ff11d1f6e Add concurrency to photo fetching.
Other improvements are:
1) Handle albums with more than 1000 photos correctly
2) Fetch original or small images (-small flag)
3) Progress logging and -quiet flag
4) Addition of -force-auth flag
5) Improve handling of http errors
6) Used go fmt and golint on source code
7) If fetching 1 album, merge in albums from previous commit
2015-09-14 15:35:19 -07:00
Aaron Boodman 4a080851fe tagshow: teach about RemotePhoto 2015-09-14 11:07:42 -07:00
Aaron Boodman d2e93df249 tagdex: teach about RemotePhoto 2015-09-14 11:04:11 -07:00
Aaron Boodman 9036ae5b32 Add RemotePhoto concept and change Flickr to use 2015-09-14 11:04:11 -07:00
Aaron Boodman f31c2942cb Merge pull request #285 from aboodman/js-server-urls
js: customizable server urls
2015-09-14 11:01:31 -07:00
Aaron Boodman 4275dd0a6c tagshow: make server urls customizable 2015-09-14 11:00:41 -07:00
Aaron Boodman 4dc3c060c0 noms_store: make server url customizable 2015-09-14 11:00:38 -07:00
Chris Masone 64b39a2715 Check for duplicate names in struct, union definitions
These should be disallowed, so disallow them. This also makes
us use a map for fields and choices, which is probably the right
way to store that information in Noms anyway. This patch means
we'll be on better footing for converting datastructures to Noms.

Towards issue #281
2015-09-14 10:58:44 -07:00
cmasone-attic 5158a9626a Merge pull request #282 from cmasone-attic/type_grammar
Parser for Noms type language.

Generated using pigeon (https://github.com/PuerkitoBio/pigeon). This
patch introduces the 'parse' package, which provides an API for
parsing the Noms type language into a datastructure called
parse.Package. A Package contains a lookup table of defined types, a
list of container specializations it requires, and a set of imports
that are required to be satisfied in order for the package to be used.
No type-checking is currently performed; that'll be in a follow-on patch.

Towards Issue #281
2015-09-14 08:40:26 -07:00
Chris Masone d1fc897b28 Moved parser code to nomdl/parse 2015-09-11 17:08:33 -07:00
Chris Masone a230c06bc0 Address CR comments
1) Reject duplicate 'using' declarations, which required TypeRef.Equals()
2) Allow whitespace after ':' in field declarations
3) Allow " in import statements
4) Misc cleanups
2015-09-11 15:56:33 -07:00
Rafael Weinstein ae247c8f23 Merge pull request #278 from rafael-atticlabs/jsBufferReads
switch js to use buffer reads
2015-09-11 14:42:22 -07:00
Rafael Weinstein 10350dbd7e switch js to use buffer reads 2015-09-11 14:41:51 -07:00
Chris Masone 9fdf1fcf92 Add go generate support for the parser 2015-09-11 13:25:12 -07:00
Aaron Boodman aad09b7ff8 Merge pull request #280 from aboodman/imgsvr
imgsvr: Don't use png encoding for photographic images
2015-09-11 13:14:55 -07:00