Skip to content

[Proposal] Rewrite in go #94

Closed
Closed

Description

@schickling

First of all, thanks a lot for this awesome package and all the time you guys put into building it. I appreciate that a lot!

I'm aware my suggestion is kinda daring, nonetheless I want to put it up for discussion. Almost all docker related projects (and of course docker itself) are written in go-lang. boot2docker for example also takes this step. I think I don't have to list the advantages you have using go. But the main advantage in my opinion is that you don't have any dependencies such as pip.

As I said, this is just a suggestion. If you don't consider a rewrite in go, simply close this issue. I won't be sad 😺

Activity

  1. aanand commented on Feb 15, 2014

    @aanand

    Definitely a discussion worth having. We've been mulling it over since the start, and I already agree with your points. Not having to deal with pip would make for a much smoother ride.

    A few things, off the top of my head:

    • A lot more developers are familiar with Python than Go, and some of Go's gotchas (while well-documented) are not always obvious to newcomers. While yes, a lot of the Docker ecosystem is written in Go, I suspect the net effect would still be of raising the barrier to entry. This might not be true over a longer time scale, though.
    • We're already experimenting with building Fig binaries (see Ship OS X binaries #25), which might make the pip-avoidance argument moot.
    • I like Go, but I like Python more, and move faster in it. Personal thing.

    Like I say though, it's worth talking about, so thanks for giving the discussion a place.

  2. bfirsh commented on Feb 16, 2014

    @bfirsh

    Yep. Our reasoning in the first place for writing it in Python was moving fast, and the assumption we'd be able to produce binaries.

    Turns out making binaries of Python apps is not so straight forward. Another argument for Go is we can reuse bits of Docker / the rest of the Docker ecosystem written in Go.

  3. bfirsh commented on Feb 18, 2014

    @bfirsh

    Another +1 for Go: reusing the Docker client code would fix #95 and #96.

  4. schickling commented on Feb 18, 2014

    @schickling
    Author

    Awesome. Thanks for sharing your thoughts! I want to dive deeper into Go on my own, so perhaps I can help at some point.

  5. michaelsauter commented on Feb 26, 2014

    @michaelsauter

    There are already some tools out there which are similar to Fig which are written in Go. For example, I've written Crane.

  6. gregwebs commented on Mar 11, 2014

    @gregwebs

    What are the other options (in any language) besides Crane? It would be nice to have a Wiki page for that.

  7. bbradbury commented on Mar 17, 2014

    @bbradbury

    Love the idea of this in Go.

  8. bfirsh commented on Jul 8, 2014

    @bfirsh

    If anyone wants to have a go at starting this, there's a blank branch here that pull requests can be opened against:

    https://github.com/orchardup/fig/tree/go-rewrite

    /cc @schickling @bbradbury

  9. marksteve commented on Jul 9, 2014

    @marksteve

    Would love to be involved in this!

  10. bfirsh commented on Jul 9, 2014

    @bfirsh

    @marksteve Stuff is happening: #298 :)

    Guess we could discuss in #orchardup on freenode? /cc @nathanleclaire

  11. marksteve commented on Jul 10, 2014

    @marksteve

    👍

  12. gregwebs commented on Jul 10, 2014

    @gregwebs

    crane works well for me, might be a good starting point.

  13. bfirsh commented on Jul 11, 2014

    @bfirsh

    @marksteve @schickling – @nathanleclaire is having a go at this. If you want to help out, he's in #orchardup on freenode. :)

  14. nathanleclaire commented on Jul 12, 2014

    @nathanleclaire

    @marksteve @schickling @bbradbury If you guys would like to contribute, it's a fun time working on re-implementing this in Go. IRC is by far the best way to get ahold of me (my handle is nathanleclaire) although my email is pretty easy to track down as well. You should ping me and we can discuss next steps. See #314 as well

  15. d11wtq commented on Jul 12, 2014

    @d11wtq

    If you're adding tests and not just hacking, I'll help out. I think the python implementation currently suffers from huge gaps in the test coverage, so it would be good to focus on that early on in a rewrite. Much easier to get that right from the beginning.

  16. tomerdmnt commented on Aug 25, 2014

    @tomerdmnt

    I started this experiment ichijiku in golang. I wanted a fig version that works on windows as well. It aims to be compatible with fig.yml, written in golang, and I also decided on using the docker command line client to have access to all the latest features.

  17. dnephin commented on Aug 27, 2015

    @dnephin
  18. d11wtq commented on Aug 27, 2015

    @d11wtq

    Oooh, very nice. Is the long term plan for compose to built into the docker binary as a sub-command? E.g. docker compose up.

  19. ybogdanov commented on Sep 2, 2015

    @ybogdanov
  20. added a commit that references this issue on Jan 19, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions