Top Tweets for #clavascript
#clavascript is a name I could not get used to.
It is continuing as squint!
https://t.co/Wf117KwLm5
#squintcljs #clojure #clojurescript
Machine learning in JS on Bun
https://t.co/IEvG19OoGN
Could be interesting to use with #nbbjs (REPL), #cherrycljs or #clavascript
#clojure #clojurescript

@jarredsumner Holy crap... could I insert my #clavascript compiler here as a loader for `.cljs` files?
Immutability on the cheap with immer and #clavascript:
(ns immer (:require ["immer$default" :as produce]))
(def v1 {:a 1})
(def v2 (produce v1 #(assoc! % :b 2)))
;; will crash:
;; (def v3 (assoc! v2 :foo :bar))
(prn v1 v2 (= v1 v2))
Minified + bundled: 11kb.
#clojurescript
![borkdude's tweet photo. Immutability on the cheap with immer and #clavascript:
(ns immer (:require ["immer$default" :as produce]))
(def v1 {:a 1})
(def v2 (produce v1 #(assoc! % :b 2)))
;; will crash:
;; (def v3 (assoc! v2 :foo :bar))
(prn v1 v2 (= v1 v2))
Minified + bundled: 11kb.
#clojurescript https://t.co/VuelF3mT0b](https://pbs.twimg.com/media/FbuGBt5XwAAbUa5.jpg)
Made a string with clavascript/string.js:
#clavascript

#clavascript advent of code:
https://t.co/8BRZBHveLZ
Already found quite a few bugs and missing core functions by doing #adventofcode 2021 part 1 and 2, but now it works:
#clojurescript #clojure

A funny wtf moment I had with JavaScript coming primarily from #clojure, implementing group-by in #clavascript:
const updateFn = fnil(conj_BANG_, [])
const ret = {}
for (const o in coll) {
update_BANG_(ret, updateFn, o)
}
return ret;
All values in ret would be the same... 1/2
A demo with #clavascript and WindowJS
The code is here:
https://t.co/n6UfTBngIo
It does not use 1 single function from Clava's stdlib, all plain JS output.
#clojurescript #clojure

Some #clavascript core functions have now been made lazy, built on JS iterators!
https://t.co/dzJ4Mvll05
#clojurescript #clojure


Produce a tiny self-contained executable (750kb) with #clavascript and QuickJS:
https://t.co/TnMMdmlZPt
#clojurescript #clojure

What if we would expose the associative protocol in #clavascript so you can bring your own immutable/persistent collections? 🤯
#clojure #clojurescript

Published a new version of #clavascript: matrix transposition using "apply map vector" works :)
Let Advent of Code begin!
#clojure #clojurescript


assoc-in and assoc-in! have landed in #clavascript
assoc-in! mutates in place, assoc-in returns new (shallow) copies.
#clojurescript #clojure
https://t.co/dzJ4MvkNax
Thanks @corasaurus_vex!

Trends for you
Most Popular Users

Elon Musk 
@elonmusk
240.1M followers

Barack Obama 
@barackobama
119.3M followers

Donald J. Trump 
@realdonaldtrump
111.6M followers

Cristiano Ronaldo 
@cristiano
108.9M followers

Narendra Modi 
@narendramodi
107M followers

Rihanna 
@rihanna
97.3M followers

NASA 
@nasa
92.1M followers

Justin Bieber 
@justinbieber
90.6M followers

KATY PERRY 
@katyperry
86.8M followers

Taylor Swift 
@taylorswift13
80.6M followers

Lady Gaga 
@ladygaga
72.1M followers

Kim Kardashian 
@kimkardashian
69.4M followers

YouTube 
@youtube
68.6M followers

Virat Kohli 
@imvkohli
68.5M followers

Bill Gates 
@billgates
63.4M followers

The Ellen Show
@theellenshow
62.5M followers

CNN 
@cnn
61.9M followers

Neymar Jr 
@neymarjr
61M followers

X 
@x
60.9M followers

CNN Breaking News 
@cnnbrk
59.9M followers

