sci

martinklepsch 2022-07-01T11:18:24.321869Z

If I wanted to create a browser-playground for a specific library, where should I start? Is there a repo I could use as a starting point?

borkdude 2022-07-01T11:26:59.487589Z

@mkvlr ^ I keep hearing this question over and over. We should maybe build something? ;)

❤️ 2
borkdude 2022-07-01T11:27:48.503059Z

@martinklepsch You could maybe start with https://nextjournal.github.io/clojure-mode/ and then add your own library in the mix.

mkvlr 2022-07-01T11:39:31.710979Z

@borkdude we're on it

🔥 4
borkdude 2022-07-01T11:48:07.718499Z

Anything I'm not aware of?

mkvlr 2022-07-01T13:21:07.042859Z

I think you're aware of most things

👍 1
mkvlr 2022-07-01T13:21:26.869119Z

maybe not that codemirror 6 supports embedded grammars

mkvlr 2022-07-01T13:21:56.068239Z

so once we wrap up the migration to 6.0 we can have clojure mode embedded in markdown code fences

borkdude 2022-07-01T13:22:26.334709Z

Not sure what it means, but it surely sounds interesting :)

mkvlr 2022-07-01T14:39:56.558109Z

means we need to wrap up: • https://github.com/nextjournal/markdown/pull/4https://github.com/nextjournal/clojure-mode/pull/25 from there, it should not be a lot of work to adjust https://snapshots.nextjournal.com/markdown/build/8f8372e5584dba4e1f86e38f3e4aca2e20dceeb4/index.html#/notebooks/try.clj to get a playground based on a markdown file

mkvlr 2022-07-01T14:40:34.427719Z

moving clerk’s parsing to a cljc ns is something I’m also looking at

mkvlr 2022-07-01T15:08:36.799439Z

that was painless and all those deps should work in cljs, correct?

borkdude 2022-07-01T15:10:07.300249Z

at least the deps I'm familiar with, yes :)

mkvlr 2022-07-01T15:11:06.652049Z

I vouch for the one with nextjournal. and if I’m not mistaken you’re mainting all the other ones except clojure.core 🙃

borkdude 2022-07-01T15:12:03.702769Z

indeed haha

borkdude 2022-07-01T15:12:21.093479Z

☯️

mkvlr 2022-07-01T11:41:32.549009Z

@martinklepsch I'd recommend starting from https://github.com/nextjournal/clojure-mode/pull/25 which we'll wrap up next week, this adds support for Clerk's viewers to it (besides upgrading Codemirror & other deps)

martinklepsch 2022-07-01T11:47:48.607739Z

clojure-mode looks awesome really awesome! Ideally I was looking for something that would be more a matter of configuring+deploying rather than building 😅 But seems like clojure-mode would be an amazing foundation for that

borkdude 2022-07-01T11:49:12.015409Z

Cc @jackrusher

2022-07-01T14:45:42.062389Z

@borkdude yeah, definitely something that should exist

2022-07-01T11:49:21.331109Z

@jackrusher has joined the channel