Hold your horses if you are using Figwheel Main. I get lots of warnings at startup:
[Figwheel:WARNING] Compile Warning resources/public/js/dev/figwheel/repl.cljc line:52 column:17
Wrong number of args (1) passed to goog.log/getLogger
47 ;; goog.debug.Logger.Level.(SEVERE WARNING INFO CONFIG FINE FINER FINEST)
48 ;;
49 ;; set level (.setLevel logger <http://goog.debug.Logger.Level.INFO|goog.debug.Logger.Level.INFO>)
50 ;; disable (.setCapturing log-console false)
51
52 (defonce logger (glog/getLogger "Figwheel REPL"))
^---
53
54 (defn ^:export console-logging []
55 (when-not (gobj/get goog.debug.Console "instance")
56 (let [c (goog.debug.Console.)]
57 ;; don't display time
[Figwheel:WARNING] Compile Warning resources/public/js/dev/figwheel/repl.cljc line:70 column:3
Wrong number of args (3) passed to goog.log/log
65 true))
66
67 (defonce log-console (console-logging))
68
69 (defn debug [msg]
70 (glog/log logger goog.debug.Logger.Level.FINEST msg))
^---
71
72 ;; TODO dev
73 #_(.setLevel logger goog.debug.Logger.Level.FINEST)
74
75 ;; --------------------------------------------------------------
1👍The release notes talks about these changes to the latest Closure Library
SICMUtils 0.18.0 is out! As of today, the library can run everything from Sussman and Wisdom’s Functional Differential Geometry: http://xahlee.info/math/i/functional_geometry_2013_sussman_14322.pdf As a wild example that I don’t have my head around yet (thanks for the code, GJS!), here are Einstein’s field equations in Clojure: https://github.com/sicmutils/sicmutils/blob/master/test/sicmutils/fdg/einstein_test.cljc#L40 This is a big milestone toward a complete port of the original, massive scmutils library from Gerald Sussman. There are a couple of large pieces to go, mostly around making the simplifier smoking fast… but the end is in sight. Once the port is done I’ll turn full focus toward expanding the system’s ability to drive animations in the browser, and generate beautiful Vega charts during interactive investigations of these physical systems and calculus on manifolds. Here’s the CHANGELOG for the release: https://github.com/sicmutils/sicmutils/blob/master/CHANGELOG.md#0180 Come discuss in #sicmutils if any of this seems interesting!
3👏56🚀21🎉This looks very impressive.
1🙏Happy to answer any questions or be a guide for the library; there really is a ton here. CLJDocs are having trouble building, but here’s at least a skeletal overview of some of the library: https://cljdoc.org/d/sicmutils/sicmutils/0.18.0/doc/introduction
For those using malli and missing spec's instrumentation, I wrote this small thing today (very early version!) 😄 I plan to continue improving it in the following weeks as I use it: https://github.com/setzer22/malli-instrument
14👍4🎉Releasing an alpha version of Clem -- a project to make clojure exception messages easier to understand, using a tool which integrates with users' REPLs. It's especially targeted at beginners, but I could use feedback from more experienced developers as well. Gitlab: https://gitlab.com/unc-app-lab/clem-repl ClojureVerse write up: https://clojureverse.org/t/introducing-clem-the-clojure-error-mediator/7468
16🎉@eagonmeng Thanks! And that would probably be very useful, but at the moment the database simply doesn't exist. Part of why I'm sharing this with the community is Clem not only provides messages on errors, but also adds them to the database so we know they exist. It'll need a bit of time to build up a useful database. It's simply a datomic database, so I imagine once we have a somewhat usable basis of errors we could allow downloading it. (You can also try running your own instance, though it's really only set up to do that for dev setups)
Does it also helps with the clojurescript stack traces?
Not working with ClojureScript yet, obviously somewhere we'd like to go, but the tooling is different so it will be a fairly substantial project
I see thanks anyway ^^
@donyorm you've created https://clojurians-log.clojureverse.org/clojure/2018-03-28/1522263598.000890
cool!
@ghadi Dang that's exactly what we did, down to https://clojurians-log.clojureverse.org/clojure/2018-03-28/1522264623.000274 describing the infrastructure. I don't believe the original creator of Clem was active on this slack when it started, but definitely great minds thinking a like there :)