announcements

Project/library announcements ONLY - use threaded replies for discussions. Do not cross post here from other channels. Consider #events or #news-and-articles for other announcements.
2021-05-23T02:50:18.043900Z

Hello! I created yet another VS Code plugin for Clojure - https://github.com/Ivana-/bb-clj  Source code & installation VSIX are avaliable, feel free to try it!

👍 6
2021-05-23T16:07:38.052500Z

I was just informed, that bb abbreviation is already strong associated with babashka project, so I added spesial comment to readme

Please, don't be confused if 'bb' reminds you the babashka project - it's just a coincidence, abbreviation for bare-bones

borkdude 2021-05-23T21:08:13.054Z

FYI: the association is there because the command line tool is called bb and also the config file: bb.edn.

borkdude 2021-05-23T10:56:25.047Z

Use ClojureScript (interpreted by SCI) directly in an HTML <script> tag. https://github.com/borkdude/sci-script-tag https://borkdude.github.io/sci-script-tag/ Experimental, feedback welcome.

👍 15
3
1
3
🤯 5
🚀 9
8
pez 2021-05-23T11:16:38.047700Z

Totally awesome.

borkdude 2021-05-23T14:37:39.049300Z

Now also with Reagent plugin: https://borkdude.github.io/sci-script-tag/#reagent

pez 2021-05-23T14:48:13.049500Z

Can I put the script in a cljs file and include with something like

<script src="hello_world.cljs" type="application/x-sci"></script>

borkdude 2021-05-23T14:49:35.049700Z

hmm, not sure how that can be implemented yet, interesting

borkdude 2021-05-23T14:50:54.049900Z

maybe it already works? not sure ;)

borkdude 2021-05-23T14:57:50.050100Z

it seems there is a hack needed for this

pez 2021-05-23T15:03:48.050300Z

I should have tried myself, but am in the middle of something and mainly letting myself be distracted by this new cool thing of yours.

borkdude 2021-05-23T15:13:49.050600Z

@pez I am pushing a new commit which supports this

borkdude 2021-05-23T15:14:22.050800Z

note that SCI doesn't support all of CLJS so don't expect a random CLJS project to work, but you should be able to put snippets in there which are supported

borkdude 2021-05-23T15:16:53.051Z

ok works now

💯 1
pez 2021-05-23T15:17:05.051200Z

Haha, you amaze me!

pez 2021-05-23T15:23:35.051500Z

So, when working with an SPA project where we shared a lot of code between backend and frontend and where we server side rendered the SPA entry pages which when rendered in the browser “became” the SPA, there was still one thing I couldn’t solve. We had this quite involved business logic that powered a calculator on the web page. We had the same business logic used in the backend. While the SPA was being loaded and started, the calculator didn’t work. I’m looking at this script tag you’ve made and wondering if maybe it could be used for server side rendering fully functional pages. Don’t know if I am making sense, but anyway. (And, yes, I heard you about “not all CLJS”, even if I am reading in a “yet” there 😄.)

borkdude 2021-05-23T15:24:21.051800Z

https://borkdude.github.io/sci-script-tag/#src

pez 2021-05-23T15:26:24.052Z

I might experiment with what I just rambled about and see if it could be true.

borkdude 2021-05-23T15:27:13.052200Z

I would be surprised ;)