Follow

Hello world. Here's my work on integrating Racket and Vulkan, licensed under MIT: sagegerard.com/racket-vulkan-n

@sage

> Hello world. Here's my work on integrating Racket and Vulkan, licensed under MIT:

Hello and welcome to . That looks like a really cool project. I've only spent a little bit of time with , but I've enjoyed that time a lot.

What sort of use cases do you have in mind? Racket seems a bit slow for a lot of the ways Vulkan might be used (unless I'm missing something)

@codesections Thanks! The use cases match Vulkan's (graphics + compute pipelines for video games, encoding, and research), plus something of personal interest: DSLs for tailored asset creation.

I was drawn to Racket because I think there are opportunities in generating assets like 3D models, textures, etc. that LOOK hand made given sufficient work on a guiding DSL.

> Racket seems a bit slow for [this]

Overhead is inevitable, but part of my design is to expose the raw C API to limit that.

@codesections For an example of what I mean by using arbitrary DSLs for custom assets: One of my projects lets me build websites by embedding any language I want within a `<script>` tag. sagegerard.com/racket-powered.

In a future article, you'll see images or videos appearing on a page that existed solely as code before the page was built. I think having Vulkan around makes cooler things possible there.

@sage

> One of my projects [polyglot] lets me build websites by embedding any language I want within a `<script>` tag. sagegerard.com/racket-powered.

That sounds really cool. How similar is polyglot to , docs.racket-lang.org/pollen/ ?

I've really enjoyed trying Pollen, and have "rewrite my site in Pollen" on my to-do list. Would polyglot be a competitor there?

@codesections > How similar is polyglot to ?

It's different enough to make you think about what kind of work you want to do.

Pollen/frog grants you expediency in publishing. The cost is more work if you want to change platforms.

Polyglot grants you the freedom to change your mind on how to do things even when your project gets big. The cost is more work up front.

I made polyglot as a way for me to escape vendor lock-in while limiting vendor lock-in for my users as much as I can.

Sign in to participate in the conversation
Fosstodon

Fosstodon is an English speaking Mastodon instance that is open to anyone who is interested in technology; particularly free & open source software.