{"id":16658480,"url":"https://github.com/sritchie/programming-2022","last_synced_at":"2025-04-09T18:32:55.319Z","repository":{"id":43007125,"uuid":"465754681","full_name":"sritchie/programming-2022","owner":"sritchie","description":"Talks at the \u003cProgramming\u003e 2022 Conference in Porto, Portugal","archived":false,"fork":false,"pushed_at":"2022-03-30T18:48:43.000Z","size":19304,"stargazers_count":11,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-23T20:36:47.206Z","etag":null,"topics":["clojure","clojurescript","physics","sicmutils","webgl"],"latest_commit_sha":null,"homepage":"","language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sritchie.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-03-03T14:32:00.000Z","updated_at":"2022-05-10T23:18:17.000Z","dependencies_parsed_at":"2022-09-13T19:23:24.456Z","dependency_job_id":null,"html_url":"https://github.com/sritchie/programming-2022","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sritchie%2Fprogramming-2022","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sritchie%2Fprogramming-2022/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sritchie%2Fprogramming-2022/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sritchie%2Fprogramming-2022/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sritchie","download_url":"https://codeload.github.com/sritchie/programming-2022/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248087749,"owners_count":21045583,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["clojure","clojurescript","physics","sicmutils","webgl"],"created_at":"2024-10-12T10:05:43.370Z","updated_at":"2025-04-09T18:32:55.289Z","avatar_url":"https://github.com/sritchie.png","language":"HTML","funding_links":["https://github.com/sponsors/sritchie"],"categories":[],"sub_categories":[],"readme":"# `\u003cprogramming\u003e` 2022\n\nHello! Welcome to the repository for my (Sam Ritchie's) talks from the 2022\nEuropean Lisp Symposium and `\u003cprogramming\u003e` conferences.\n\n\u003e If you find this work interesting, please consider sponsoring it via [Github\n\u003e Sponsors](https://github.com/sponsors/sritchie). Thank you!\n\nHere you'll find:\n\n- More information about [SICMUtils][SICMUTILS] and the projects I discussed in\n  the talks\n- Working versions of the demos\n- The `org-re-reveal`-generated slides from the presentations.\n\n## Links\n\n- [SICMUtils repository][SICMUTILS]\n- The [Road to Reality Newsletter](https://roadtoreality.substack.com/)\n- [Road to Reality Discord\n  Server](https://roadtoreality.substack.com/p/road-to-reality-discord-server?s=w)\n- [Clerk][CLERK], the notebook rendering engine used by SICMUtils\n- [In-progress executable version](https://github.com/sicmutils/fdg-book) of\n  _Functional Differential Geometry_ ([book link][FDG])\n- [In-progress executable version](https://github.com/sicmutils/sicm-book) of\n  Sussman and Wisdom's _Structure and Interpretation of Classical Mechanics_\n  ([book link][SICM])\n- [Mathbox](https://gitgud.io/unconed/mathbox) by @unconed\n- [mathbox-react](https://github.com/ChristopherChudzicki/mathbox-react) by\n  @ChristopherChudzicki\n\n## Demo Instructions\n\nThe demos include both Clojure and Clojurescript code. Two environments means\ntwo build tools, so you'll need to have these installed:\n\n- [clj](https://clojure.org/guides/getting_started), for running the JVM side\n- [shadow-cljs](https://shadow-cljs.github.io/docs/UsersGuide.html#_installation)\n  for building the JS bundle used by the demos. This is a lovely system that\n  will automatically rebuild the bundle any time you save a cljs file.\n  - You'll also need [node.js](https://nodejs.org/en/download/package-manager/)\n    installed, to install the initial `npm` dependencies.\n\nWhen those are all set (the links include installation instructions),\n\nClone the repository:\n\n```bash\ngit clone git@github.com:sritchie/programming-2022.git\ncd programming-2022\n```\n\nGenerate the JS bundle for the demos by running the following commands in one\nterminal window:\n\n```bash\nnpm install\nshadow-cljs watch sicm-browser\n```\n\nIn another tab, start a Clojure repl with `clj`. This REPL has the full\n[SICMUtils\nAPI](https://cljdoc.org/d/sicmutils/sicmutils/CURRENT/api/sicmutils.env)\navailable, so run some tests for fun:\n\n```clojure\n(-\u003einfix (((exp D) (literal-function 'f)) 'x))\n;;=\u003e \"f(x) + Df(x) + 1/2 D²f(x) + 1/6 D³f(x) + ...\"\n```\n\nNext, start a webserver for Clerk, (the literate programming viewer) by running\nthe following commands:\n\n```clojure\n;; point Clerk at our newly-generated JS bundle instead of its default:\n(swap! clerk-config/!resource-\u003eurl\n       assoc\n       \"/js/viewer.js\"\n       \"http://localhost:9000/out/main.js\")\n\n;; Start the clerk server.\n(clerk/serve!\n {:browse? true :port 7777})\n```\n\nNow run `(clerk/show! \u003cpath/to/file.clj\u003e)` to run any of the demos. Some\nexamples to try:\n\n```clojure\n;; intro:\n(clerk/show! \"src/demo.clj\")\n\n;; Mathbox basics:\n(clerk/show! \"src/cube_controls.clj\")\n\n;; functions:\n(clerk/show! \"src/functions.clj\")\n(clerk/show! \"src/polar.clj\")\n\n;; symbolic physics:\n(clerk/show! \"src/einstein.clj\")\n\n;; vega, symbolic, double-pendulum\n(clerk/show! \"src/pendulum.clj\")\n\n;; mathbox physics:\n(clerk/show! \"src/oscillator.clj\")\n(clerk/show! \"src/ellipsoid.clj\")\n(clerk/show! \"src/double_ellipsoid.clj\")\n\n;; browser/client comms:\n(clerk/show! \"src/live_oscillator.clj\")\n```\n\n\u003e NOTE: Clojure is far more pleasant if you can get a REPL running from inside\n\u003e of your favorite code editor. I'll update this repo with links to a good\n\u003e \"Getting Started\" resource; but please open an issue if you're having trouble\n\u003e and I'll get you sorted.\n\nIf you're running a REPL from inside your editor, see the [Clerk\nhomepage](https://github.com/nextjournal/clerk#editor-workflow) for instructions\non how to trigger `clerk-show!` with a key command, making dynamic interaction\nmuch more fun.\n\n## Presentations\n\nThe presentations themselves live in `presentations/org/*.html`. see\n`presentations/README.md` for more detail on how to:\n\n- build these `html` files from their associated `org` files\n- generate slides by executing Clojure code\n- Serve these presentations in presenter mode\n\nEnjoy!\n\n[CLERK]: https://github.com/nextjournal/clerk\n[SICMUTILS]: https://github.com/sicmutils/sicmutils\n[SICM]: http://mitpress.mit.edu/books/structure-and-interpretation-classical-mechanics\n[FDG]: http://mitpress.mit.edu/books/functional-differential-geometry\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsritchie%2Fprogramming-2022","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsritchie%2Fprogramming-2022","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsritchie%2Fprogramming-2022/lists"}