This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-08-23
Channels
- # babashka (104)
- # beginners (23)
- # calva (15)
- # cider (2)
- # clojure (29)
- # clojure-europe (14)
- # clojure-nl (2)
- # clojure-norway (3)
- # clojure-spec (4)
- # clojure-switzerland (1)
- # cursive (3)
- # datomic (6)
- # emacs (17)
- # etaoin (2)
- # expound (1)
- # fulcro (4)
- # graphql (4)
- # honeysql (7)
- # introduce-yourself (2)
- # jackdaw (5)
- # malli (3)
- # meander (19)
- # nbb (3)
- # off-topic (35)
- # pathom (6)
- # pedestal (4)
- # polylith (31)
- # rdf (11)
- # re-frame (8)
- # reitit (6)
- # shadow-cljs (8)
- # specter (4)
- # squint (15)
- # vim (6)
Wrap["getBasis"] = function () {
return [symbol("rf")];
};
Wrap["cljs$lang$type"] = true;
Wrap["cljs$lang$ctorStr"] = "Wrap";
Wrap["cljs$lang$ctorPrWriter"] = function (this__29314__auto__, writer__29315__auto__, opt__29316__auto__) {
return _write(writer__29315__auto__, "Wrap");
};
☝️:skin-tone-2: the above is generated by deftype
. is it necessary?@lilactown Probably not, just copied from CLJS, we can change it
@lilactown Excited about your protocol PR. After that one we can start introducing protocols for dispatch in some of the core fns and remove some of the hard-coded stuff (assuming it will be fast enough)
even if it's not fast enough for core types we can fall back on protocols for types we don't recognize
we'll need to be careful about checking instanceof for Object, though. we'd probably want to check the constructor to see if it's literally Object, then fall back on protocols, then fall back on instanceof checking for things derived from Object
I have a tangential question: "Is it reasonable to consider targeting C++ with something like Clava?" In particular I've been trying to find a way to do something like this for our embedded C++ developers. I envision using a kind-of-Clojure on a big development computer, with full REPL-driven-development and unit testing, then "compiling" for the target (i.e., Generate C++ with no exceptions or heap dynamic memory allocation).
you might be interested in #jank
Or perhaps targeting an embedded JS engine with Clava could be interesting in the future
have you seen https://www.espruino.com/
I remember @U04VDQDDY telling me that in some cases the JS was faster than C on the ESP32