This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2024-06-08
Channels
- # announcements (2)
- # babashka (6)
- # beginners (40)
- # calva (23)
- # clojure (30)
- # clojure-europe (7)
- # clojure-gamedev (8)
- # clojure-losangeles (1)
- # clojure-sweden (2)
- # clojurescript (184)
- # datahike (1)
- # dev-tooling (2)
- # hyperfiddle (3)
- # music (1)
- # nbb (1)
- # off-topic (14)
- # pedestal (5)
- # polylith (8)
- # rdf (1)
- # tools-build (14)
- # yamlscript (1)
I am looking for co-creators for the clojure rpg project I am working on.... If anyone is interested let me know, also willing to give an introduction to the codebase ... Because I'm kinda stuck at the project, so looking for some new input/perspective 😎 Let's create something amazing together! 🧙🪄 https://github.com/damn/Cyber-Dungeon-Quest
sounds super fun 🙂 , but personal reasons prevent me from taking on a new project. I do enjoy Cataclysm https://github.com/CleverRaven/Cataclysm-DDA . You might be able to take some inspiration and also some game data /graphics from the game - being open and all.
I know CDDA is not in clojure, but the data is JSON and graphics are PNG / jpeg and with an open license
regarding world generation you might want to look at: • https://www.youtube.com/watch?v=qRtrj6Pua2A&ab_channel=CodingQuest • https://robertheaton.com/2018/12/17/wavefunction-collapse-algorithm/ • https://github.com/mxgmn/WaveFunctionCollapse
just curious is there something like parenscript in clojure and no i don't mean clojurescript. Just some kind a lib that generates js code on the fly in for example a ring middleware.
you might be looking for squint: https://github.com/squint-cljs/squint
yeah i know squint and all that but its basically just another transpiler 😄 if you take a look into parenscript it does it more or less on the fly. Like imagine having a ring or http-kit application and you could write js in there like you do html in hiccup. Just that the code you have to write for js is clojure in that case.
I've used parenscript before. Squint is pretty much the Clojure equivalent of it. See https://github.com/squint-cljs/squint/blob/main/examples/babashka/index.clj
This example does exactly what you want -- Ring handler transpiles Clojure to JS and serves to the client. This is virtually identical to how one uses Parenscript in Common Lisp
If you don't want to transpile, you can use sci and send Clojure code to be evaluated by sci in the browser. Otherwise there's no way to do what you want without transpiling...
Yes indeed. Perhaps @U03DKF57E0M has the idea about "transpilation" that this is a file -> file transformation vs "on the fly" -> compile a form to a JS expression, but squint supports both things and works in the JVM and JS
https://github.com/aiba/squint-hiccup-example is it something like that right? But why do he need squint core ?
He needs squint core because he uses something from the core library, like for
and doseq