bauble.studio
conjure
bauble.studio | conjure | |
---|---|---|
7 | 71 | |
341 | 1,635 | |
- | - | |
5.1 | 8.3 | |
5 months ago | 10 days ago | |
Janet | Fennel | |
MIT License | The Unlicense |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
bauble.studio
-
Domain Repetition
If you aren't familiar with SDFs, some rough intuition for what's going on here: you have some primitive functions that define shapes, you have combinators that distort shapes, and you then have combinators that distort space. And then when you trace rays through distorted space, you render an image that looks like your combinators distorted the shapes themselves, but really you're distorting the path that your rays travel along.
The operation here is that you distort space with the modulo operator. So now you have space that repeats -- and when you trace rays through this repeated space, you're basically teleporting the rays back to the origin (using mod in the classic "wrapping around" fashion) every time they pass out of a section of space.
And then ultimately the ray will collide with the shape -- the one shape -- that exists in this distorted space, after wrapping around some number of times.
If the idea of "taking the mod of space" is intriguing, I would encourage you to try playing with SDFs! It's a really incredible technique for real-time rendering of "3D vector graphics."
Also shameless plug for my SDF playground https://bauble.studio, and an example program that uses instanced repetition to render an "infinite" number of varying shapes:
(tile [400 0 300] (fn [i]
-
Why Janet?
Depending on what you're doing, Janet might be a great fit! I wrote a DSL for [expressing and shading 3D shapes](https://bauble.studio), and it was pretty easy. Depending on exactly what you're trying to do, the ease of embedding the Janet interpreter inside of other programs might be a big point in its favor.
- Signed distance functions in 46 lines of Python
-
Is there a name for this? -- Intermediate Representation with Graphics Primitives
For other inspiration check out Pyret in DCIC and the term Constructive Solid Geometry like Bauble
- Bauble: an interactive tutorial that will teach you everything you need to know to make art with lisp and math
- Bauble: A playground for making art with Lisp and math
conjure
- Racket Language
-
Lisp Programming with Vim (2019)
I was going to say, in 2023 I looked around and for Clojure at least Conjure seemed like the best option.
https://github.com/Olical/conjure/wiki/Client-features
Unfortunately, in the table linked above the CL support in Conjure is so-so. I'm curious what people use for CL or if it's still slimv/vlime.
I did a write up configuring Conjure with neovim here if that's something that's appealing:
- Conjure: Evaluating code within your running program
- Interactive Lisp family languages evaluation for Neovim
-
Existing non-lua plugins examples
The excellent olical/conjure plugin is now lua (via fennel..) but it was originally written in clojure and you can still see the code on the legacy-jvm branch https://github.com/Olical/conjure/tree/legacy-jvm
-
Configuring Neovim with Fennel
Install conjure plugin
-
Spinneret: A modern Common Lisp HTML generator
> You mean that you accidentally "overwrite" (declare again) a function with the same name as the one you're now declaring, but you didn't mean to?
I mean I use let to bind a variable with the same name as a function. This is idiomatic in Common Lisp, and totally breaks things in most other languages.
> This I'm also curious about, what exactly SLIME gives you that for example Conjure for neovim wouldn't already? Maybe something about continuations perhaps? That seems to be the only feature I've seen from Common Lisp (besides actually being able to compile to binaries) that I'd love to have in Clojure.
I watched a video and it does seem rather complete, but [1] indicates there is no debugger? That's a rather glaring omission. I also don't see a profiler mentioned, and SLIME with SBCL gives me a profiler (down to the assembly level if needed). I'm sure Java in general has great profiling tools, but how are the integrated into the Clojure system?
As an aside, by "continuations" did you mean "restarts"? First-class continuations are a feature of scheme, not CL. Indeed a huge boost to CL productivity is simply allowing you to handle an exception before the stack is unwound.
1: https://github.com/Olical/conjure/wiki/Client-features
-
clojure's like plugin for golang?
Does anyone know if there is a plugin like this one https://github.com/Olical/conjure for golang? Thank you in advance!
-
Looking for documentation on writing a swank client
i know you said you didn't want source of other clients but this one is pretty simple so sharing just in case. it's from a nvim plugin https://github.com/Olical/conjure/blob/master/fnl/conjure/client/common-lisp/swank.fnl
- `yarepl.nvim`, yet Another REPL for Neovim, flexible, supporting multiple paradigms to interact with REPLs, native dot repeat (without `vim-repeat`), telescope integration, and more!
What are some alternatives?
3d-game-shaders-for-beginners - 🎮 A step-by-step guide to implementing SSAO, depth of field, lighting, normal mapping, and more for your 3D game.
cider-nrepl - A collection of nREPL middleware to enhance Clojure editors with common functionality like definition lookup, code completion, etc.
sdf-viewer - A fast and cross-platform Signed Distance Function (SDF) viewer, easily integrated with your SDF library.
vim-scriptease - scriptease.vim: A Vim plugin for Vim plugins
toodle.studio - turtle graphics playground
vimspector - vimspector - A multi-language debugging system for Vim
janetroids - This was a paint program and then became asteroids
rebel-readline - Terminal readline library for Clojure dialects
sdf - Simple SDF mesh generation in Python
aniseed - Neovim configuration and plugins in Fennel (Lisp compiled to Lua)
glyph.janet - Personal Data Manager for the command line
kaboom.js - 💥 JavaScript game library