google / go-jsonnet

Apache License 2.0
1.61k stars 233 forks source link

Dead ? #14

Closed joeblew99 closed 7 years ago

joeblew99 commented 7 years ago

Just asking because i am using this with kubernetes and trying to avoid any c++ dependencies.

jbeda commented 7 years ago

While this hasn't been worked on recently I'm hoping we can motivate enough use via Kubernetes so it makes sense to start again. On Sun, Apr 23, 2017 at 9:29 AM jow blew notifications@github.com wrote:

Just asking because i am using this with kubernetes and trying to avoid any c++ dependencies.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/google/go-jsonnet/issues/14, or mute the thread https://github.com/notifications/unsubscribe-auth/AACRvhQurR0lqD4l6Q9Qpkpw33MTwDMiks5ry3xZgaJpZM4NFdWL .

sparkprime commented 7 years ago

Not dead, just resting :)

I'm not as plugged into the k8s community as I used to be (which wasn't very much anyway). If there is growing interest, is there some way we can track it? I have an intern coming in the Summer to work on Jsonnet, and not yet decided where to invest that effort.

joeblew99 commented 7 years ago

there is a c --> golang converter. Its newish and has some loos edges still.

https://github.com/elliotchance/c2go

jbeda commented 7 years ago

Tagging @hausdorff to keep him in the loop as he has been working on https://github.com/heptio/kube.libsonnet and https://github.com/heptio/vscode-jsonnet.

hausdorff commented 7 years ago

To answer your question about how you can track the interest of the k8s community in Jsonnet, @sparkprime: there is a sig-apps thread where the community is starting to hash out what the next steps of improving the general app config story looks like, which has been influential enough that you can start to see this sentiment percolating to other parts of the community as well.

So, you could keep an eye out for those threads and threads like them, as they appear. If that's too much work for you, you can always just ask me when you want to know, since I think it is fair to say I probably have the most context about the direction the community is headed.

As those threads relate to this discussion, let me try to summarize briefly:

Let me know if you have any other questions.

joeblew99 commented 7 years ago

@jbeda thanks for the links.

I am planning to use the jsonnet for k8, but also for code gen (sort of ) for go-kit and go micro. The reason jsonnet was chosen for K8, is the same for the microservices because you want each stage of the code gen to be driven from JSON, and each stge takes in JSON and outputs JSON. Its very similar to a Flow base programming idea with Inputs, the node that does the work, and outputs that can go to many places. This is perfect example that i can extend https://github.com/tockins/realize

Microservice Frameworks

joeblew99 commented 7 years ago

@hausdorff yes please keep me in the loop if you can. Its nice that you offer.

golang based jsonnet is the ticket if you ask me. So its great to hear that k8 team is heading that way.

sparkprime commented 7 years ago

Thanks for that report. If we're in a position where adoption of Jsonnet is being held back by the unfinished go-jsonnet then that would definitely motivate me personally to prioritize this.

Although the Jsonnet language has moved on a bit since work ceased here, we can stage the development by first completing the language as it stood then, and then having some rounds of backwards compatible changes to add the new stuff. In the mean time people can integrate it / use it as long as they don't use the features that were introduced since then (named params, default arguments, etc).

The intern is here July -> October and I'm going to make a post nearer the time to gauge community interest in what he should do. We don't have to wait for him to do go-jsonnet of course.

hausdorff commented 7 years ago

My belief is that the Go port is probably not the biggest impediment to k8s adoption at this point. I'll say why, then briefly what I think is the biggest impediment.

The sig-apps round table happened on on Tuesday. Rick Spencer compiled the meeting notes here (and also a more concise, but also more opaque, summary is available on the sig-apps thread). If you read through the notes, you will see that the sig-apps community has already provisionally agreed to standardize app templating on Jsonnet.

While a feasible Go port certainly doesn't hurt, it seems to me that Jsonnet's biggest chance to lose this standing is if it became clear we'd have trouble accomplishing one of the important goals we have for adoption. To me the biggest unknowns lie in:

If we can execute on those things, I believe it will be trivial to stimulate demand for a Go Jsonnet port.

sparkprime commented 7 years ago

It's very interesting you say that (about tooling specifically) because my original proposal for this intern included a lot of options in that space -- doc gen, linter, better formatter, profiler, static analysis (find definition of), etc. These kinds of projects are likely to be much more interesting for an intern anyway than porting something that already exists, no matter how useful that port is.

hausdorff commented 7 years ago

Oh excellent. I've already started working on such things. Here is a working prototype of autocomplete:

We also have prototypes of other features, such as calling up the docs in response to an onHover event, etc. If there is shared interest, I would love to work with more people on the tooling story together. If this is something you're interested in, let me know how you'd like to proceed. I can, if you like, start a thread on the mailing list; or, I'm happy to let you guys take the lead if that more suits your taste.

joeblew99 commented 7 years ago

i already installed it :) Nice Have not had time to play yet.

hausdorff commented 7 years ago

Oh, great! But, it will be some days before we roll out dot completion features. This is meant only to illustrate that we are serious about the tooling story. :)

joeblew99 commented 7 years ago

got it. i am hoping that the google repo with the pure golang version gets some love. Will make it much easier to use in general

sparkprime commented 7 years ago

This is now being actively worked on.

robfig commented 6 years ago

Random question: Any plans to port the jsonnet formatter to Go? The motivation: I've written a Go program that generates jsonnet, and I'd like to pass the resulting jsonnet through a formatter without shelling out or using cgo.

Apologies for the drive-by, and thanks for the great technology!

sbarzowski commented 6 years ago

I think we will do it eventually, but it is not our top priority.

Actually "shelling out" seems to me like the best solution both long and short term.

BTW please feel free to just open new issues when you have questions (definitely better than asking questions in an unrelated thread). Thanks 😄