Fork me on GitHub
#announcements
<
2023-06-27
>
Sam Ritchie00:06:38

Announcing the first release (v0.1.0) of Emmy-Viewers! This library adds powerful, interactive 2D and 3D plotting to the #emmy computer algebra system via #clerk or #portal, all from Clojure, no ClojureScript build required (!!). The https://emmy-viewers.mentat.org/ has Getting Started instructions — the easiest way to start is with the emmy-viewers/clerk template https://emmy-viewers.mentat.org/#clerk-project-template. • Interactive docs: https://emmy-viewers.mentat.org/ • GitHub: https://github.com/mentat-collective/emmy-viewers • Clojars: https://clojars.org/org.mentat/emmy-viewers I still can’t quite believe this all works!!! See https://emmy-viewers.mentat.org/dev/examples/manifold/pq_knot, this https://emmy-viewers.mentat.org/dev/examples/mathbox/ode, a https://emmy-viewers.mentat.org/dev/examples/manifold/klein, https://emmy-viewers.mentat.org/dev/examples/simulation/toroid, https://emmy-viewers.mentat.org/dev/examples/mathbox/functions and https://emmy-viewers.mentat.org/dev/examples/manifold/fdg for 3D examples, and the https://emmy-viewers.mentat.org/dev/examples/mafs for interactive 2D examples. And a quick gif. Amazing that this is all possible from the Clojure REPL, thanks to the incredible libraries I’m sitting on top of:

🎉 88
wow 32
🤯 19
🍩 10
clojure-spin 2
🔥 2
🥯 1
Sam Ritchie00:06:52

this is a HUGE documentation task, and each sub-library deserves more documentation beyond the examples I’ve put together so far. That will all come!

Colin (fosskers)02:06:28

God speed!

❤️ 2
Sam Ritchie16:06:03

Hot on the heels of this release, thanks to a Clerk update, you can try some of this fully in the browser: https://emmy-viewers.mentat.org/dev/examples/mafs/edit all calculus (via the D operator) is available etc, plus a ton more but that’s a fun one to try:

🆒 2
mkvlr10:06:59

https://github.com/nextjournal/simple-http-server is a tiny thin wrapper around SimpleWebServer from https://openjdk.org/jeps/408 for JDK 18+ . Compatible with clojure -X.

👍 32
2
2
2
yes 2
souenzzo12:06:57

add this to readme clj -Sdeps '{:deps{nextjournal/simple-http-server{:git/url"":git/sha"30061b0bb413369f6c180d8a9466f003fb13e08c"}}}' -X nextjournal.simple-http-server/serve! btw, had this error:

Execution error (IllegalArgumentException) at sun.net.httpserver.simpleserver.FileServerHandler/<init> (FileServerHandler.java:74).
Path does not exist: /Users/enzzocavallo/src/auto-discovery/public
I think that you can serve . by default maybe follow the https://github.com/emikulic/darkhttpd default options

mkvlr12:06:01

@U2J4FRT2T good ideas! Do you want to submit a PR or shall I make the change?

souenzzo12:06:54

feel free to do 🙂 I will only be able to in the weekend