scittle

Thierry 2023-02-26T08:28:00.107159Z

Is there a cljs/scittle equivalent of jQueries JSON.stringify() ? I searched on the bb scittle sites but came up empty. I have zero experience with cljs and really like the way scittle works

borkdude 2023-02-26T09:07:18.082619Z

@thierry572 (js/JSON.stringify ...)

Thierry 2023-02-26T09:07:52.089349Z

Well that was easy πŸ™ƒπŸ€¦πŸ»β€β™‚οΈ

borkdude 2023-02-26T09:09:01.362369Z

js is the global JS environment, JSON is a JS standard, not from jquery

πŸ™Œ 1
Thierry 2023-02-26T13:19:03.291979Z

Thanks for the tips, got it working in the end. Had some inline javascript in a clojure project and wanted to know how to do the same with scittle as writing Clojure(script) is more fun to do then js 🀭. And I wanted to see what would be faster.

borkdude 2023-02-26T13:21:05.409779Z

JS is likely faster than CLJS and normal CLJS is likely faster than scittle (since scittle uses an interpreter)

Thierry 2023-02-26T14:13:51.245009Z

Yeah just messing about, scittle is perfect in this case because I dont yet know how to integrate cljs into my clj project 😁 which I will probably do in the end, just not now

borkdude 2023-02-26T22:59:47.956769Z

Gerome 2023-02-27T15:41:29.099689Z

This would be pretty cool for #clerk

borkdude 2023-02-27T15:42:26.447079Z

I think you could do a similar thing with clerk as well

Gerome 2023-02-27T15:43:10.654109Z

Yes, but clerk is not interactive. I mean, people looking at the notebook, could change data and calculations on the fly.

borkdude 2023-02-27T15:44:50.157839Z

@sritchie09 can probably tell you how you could accomplish this with clerk and a custom build or maybe @mkvlr is open to adding an evaluation component like this into clerk

borkdude 2023-02-27T15:45:11.716279Z

I think most of the dependencies for this are in clerk already anyway

Sam Ritchie 2023-02-27T15:57:33.994479Z

This would be great and I’m sure we can get it working in Clerk

Gerome 2023-02-27T15:59:00.935619Z

@borkdude Aykay, you know more about this stuff than I do πŸ™‚

mkvlr 2023-02-27T16:22:00.749439Z

@andrea712 built some clerk demos around this iirc

Andrea 2023-02-27T16:30:50.183159Z

it uses clerk viewers cljs library

Andrea 2023-02-27T16:32:23.270969Z

but that’s plain sci, browser target, compiled with shadow

borkdude 2023-02-27T16:32:51.955629Z

same as the original post here, but cljs-showcase is very minimal

πŸ‘ 1
mkvlr 2023-02-27T17:02:26.754169Z

@andrea712 I meant a code viewer that evaluates the code in sci and shows the editable code with its result