Jsonnet Playground Interest

94 views
Skip to first unread message

Matt Zhou

unread,
Sep 12, 2022, 6:48:34 PM9/12/22
to Jsonnet
Just testing the waters for how interested people would be for a dedicated Jsonnet playground (I know you can edit the code in the Jsonnet tutorial page, but it feels hacky). If people are interested I could work on this as a side project.

Dave Cunningham

unread,
Sep 13, 2022, 9:02:36 AM9/13/22
to Matt Zhou, Jsonnet
Some thoughts:

Something that is actually hosted ends up costing money and nobody wants to pay it, so likely it would have to still be client side code, in which case the same code could be used but framed in a more dedicated page.

It would be nice if one could link to the playground with given Jsonnet code already in it.  I'm not sure how practical it is to cram it all in the URL, but also we could maybe integrate with some sort of short URL service?


On Mon, 12 Sept 2022 at 23:48, 'Matt Zhou' via Jsonnet <jso...@googlegroups.com> wrote:
Just testing the waters for how interested people would be for a dedicated Jsonnet playground (I know you can edit the code in the Jsonnet tutorial page, but it feels hacky). If people are interested I could work on this as a side project.

--
You received this message because you are subscribed to the Google Groups "Jsonnet" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jsonnet+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jsonnet/b8854b25-cf51-4376-8401-25973b73567fn%40googlegroups.com.

Matt Zhou

unread,
Sep 13, 2022, 12:50:26 PM9/13/22
to Dave Cunningham, Jsonnet
That makes sense. I think we can do it client-side via WebAssembly like the current Jsonnet tutorial page, host it on a free-tier of Netlify or something, and build in some of that functionality with copying/pasting snippets? There are some free url shortening services (https://dev.bitly.com/docs/getting-started/rate-limits/), but how many people do you anticipate using the playground? I know personally it would be useful for folks at Databricks. 

Paul Rudin

unread,
Sep 13, 2022, 1:05:59 PM9/13/22
to Matt Zhou, Dave Cunningham, Jsonnet

Dave Cunningham

unread,
Sep 13, 2022, 1:13:15 PM9/13/22
to Paul Rudin, Matt Zhou, Jsonnet
gh-pages is fine for hosting static pages with javascript, maybe all we need is another page on the site?

Integrating it with github gists could be a plan as well.. I guess you have to be logged into github to write one but that's unlikely to be an issue for anyone

Matt Zhou

unread,
Sep 13, 2022, 1:14:21 PM9/13/22
to Dave Cunningham, Jsonnet, Paul Rudin
That sounds perfect. Would any of the jsonnet maintainers be interested in adding that page? 

jer...@grafana.com

unread,
Sep 16, 2022, 7:50:39 AM9/16/22
to Jsonnet
A little while ago I hacked together a playground here: https://jsonnet-libs.github.io/playground/


Feel free to take any bits of it that you like.

Dave Cunningham

unread,
Sep 16, 2022, 9:29:32 AM9/16/22
to jer...@grafana.com, Jsonnet
Nice!

Re: adding pages to the website, it can be done by submitting a PR and then I will push the new version to gh-pages.  The source code for the website is in the CPP GitHub repo.

Reply all
Reply to author
Forward
0 new messages