addressalign-toparrow-leftarrow-rightbackbellblockcalendarcameraccwcheckchevron-downchevron-leftchevron-rightchevron-small-downchevron-small-leftchevron-small-rightchevron-small-upchevron-upcircle-with-checkcircle-with-crosscircle-with-pluscrossdots-three-verticaleditemptyheartexporteye-with-lineeyefacebookfolderfullheartglobegmailgooglegroupshelp-with-circleimageimagesinstagramFill 1linklocation-pinm-swarmSearchmailmessagesminusmoremuplabelShape 3 + Rectangle 1ShapeoutlookpersonJoin Group on CardStartprice-ribbonShapeShapeShapeShapeImported LayersImported LayersImported Layersshieldstartickettrashtriangle-downtriangle-uptwitteruserwarningyahoo

Assets, comments and other beasts.

Agenda

  1. Why Comments are Bad? [Miki]
  2. nrsc [Miki]
  3. DVID [Bill Katz]

There will be Pizza and probably beer :)

I stared a Trello ideas board and would love to get some traction there. I have about 1 hour worth of talks for the meetup and would love some more.

Join or login to comment.

  • A former member
    A former member

    August 1, 2013

  • Bill K.

    Thanks for hosting me. Since we were talking about databases, the most interesting talks/articles for me have been from Eric Brewer:

    http://www.infoq.com/presentations/NoSQL-History

    http://www.infoq.com/articles/cap-twelve-years-later-how-the-rules-have-changed

    Also, here's the simplest description I've read on leveldb, the embedded key-value store I used in the demo last night:

    http://www.igvita.com/2012/02/06/sstable-and-log-structured-storage-leveldb/

    Was thinking about the dependency issue, and am thinking about writing a utility to analyze a project's Go files, pull out all external references, do "go get", recurse until all external dependencies are local. Then do a second phase which creates a project-specific dependency git repo but with all references to external packages replaced by the repo being built.

    July 26, 2013

  • A former member
    A former member

    The Trello thing is read-only for everyone but Miki.

    Future meetup idea: Let's go through https://whispering-gophers.appspot.com/ as a workshop.

    July 26, 2013

    • Andres B.

      BTW I think the whispering gophers idea is great.

      July 26, 2013

    • A former member
      A former member

      Andres: You're in.

      July 26, 2013

  • A former member
    A former member

    Here's a quick survey of the asset embedding tools & approaches out there, courtesy of my bookmark archive. The .rodata trick is what I tried to explain with the ELF sections, except that too requires re-opening argv[0]. There should be a way to slap content in an object file that shows up as a variable, without going through the compiler slowness of large []byte literals.

    And as for the delay, the project I have at had embeds 348kB of JS, CSS, HTML into 1.7MB of go source with []byte literals (with bin2go), and "go build" of assets + rest of the app takes 2.7 seconds. The whole app source, assets + rest, is 1.8MB.

    (split to multiple comments, meetup.com is a horrible discussion forum)

    July 26, 2013

    • A former member
      A former member

      Thanks!

      July 26, 2013

  • A former member
    A former member

    Interestingly, none of the above chose to do `` quotes.. there's also this: http://play.golang.org/p/qKPAA6qJIi

    July 26, 2013

  • A former member
    A former member

    url: https://github.com/jteeuwen/go-bindata
    desc: go-bindata -- Embed assets in Go source files *or* executables
    extended: >

    Generates a go file with::

    func foo() []byte {
    gz, err := gzip.NewReader(bytes.NewBuffer([]byte{
    0x66, 0x6f, 0x6f, 0x0a,

    *or* optionally, re-opens arg0 and reads a ``.rodata`` section,
    enabling zero-copy operation but requiring the ``unsafe`` package.

    For the former, I prefer https://github.com/nsf/bin2go


    url: https://github.com/nsf/bin2go
    desc: bin2go -- Convert any file to Go source with []byte
    extended: >

    Generates a go file with::

    var v = []byte{
    0x66, 0x6f, 0x6f, 0x0a,
    }


    url: https://github.com/shaoshing/train
    desc: Train -- asset management for Go web apps
    extended: >

    Handles including Javascript and CSS so output is a single minified file.

    Imitates Rails a lot.

    July 26, 2013

  • A former member
    A former member

    url: https://bitbucket.org/rj/fileembed-go/
    desc: fileembed-go -- Embeds asset files into a Go source file, as []byte{...}

    url: https://bitbucket.org/tebeka/nrsc
    desc: nrsc -- Bundle web assets into a Go binary
    extended: >

    Access is through web Handlers, or an io.Reader.

    Data is stored inside a zip file slapped at the end of the
    executable; you pay for decompression on every access.
    Need to be able to open and read argv[0].

    url: https://github.com/carbocation/gotogether
    desc: gotogether -- Bundle web assets into a Go binary, fork of nrsc
    extended: >

    Fork of https://bitbucket.org/tebeka/nrsc

    Adds some features, but is not clear about what.

    Access is through web Handlers, or an io.Reader.

    July 26, 2013

  • A former member
    A former member

    TV:Thanks for the bug report, hopefully will find some time this weekend to work on it. Also - push requests are welcomed :)

    July 26, 2013

  • A former member
    A former member

    Rhett said: For those interested, here is another good article in this subject. http://www.javacodegeeks.com/2013/05/comments-are-for-losers.html

    July 26, 2013

  • A former member
    A former member

    Thank you Bill for that super cool talk. I'll never look at a fly the same way again.

    1 · July 26, 2013

  • A former member
    A former member

    Some instructions:

    * You can park in[masked]th Street parking. The gate between Olympic and Pennsylvania should be open.
    * The receptionist should know about the meetup.
    * The meeting room is called "Hollywood". From the main entrance continue straight. Take the stairs on the right to 2'nd floor and once there go toward the bright light (err, the end of the corridor to the left).
    * Call me[masked] on any problem.

    See you there.

    July 25, 2013

  • Bill K.

    I'll be in LA 2nd half of July, mostly for Siggraph. I can talk about a fairly cool Go project called DVID (Distributed, Versioned Image-Related Datastore) I've been working on for terabytes of neural tissue images. Flexible regarding amount of time for talk. (DVID uses nrsc :)

    July 9, 2013

    • A former member
      A former member

      Bill, can you create a pull request to https://github.com/lag...­ with your slides? (can be done after the meetup).

      July 20, 2013

    • Bill K.

      No problem.

      July 24, 2013

  • Bryan

    Going to try to make it, not 100% sure yet

    July 22, 2013

  • A former member
    A former member

    Won't be able to make it :(

    July 22, 2013

  • Buddy

    With the Trello board, are you looking for speakers or trying to see what people are interested in?

    July 8, 2013

    • A former member
      A former member

      Both :)

      July 10, 2013

14 went

Our Sponsors

Sign up

Meetup members, Log in

By clicking "Sign up" or "Sign up using Facebook", you confirm that you accept our Terms of Service & Privacy Policy