sci

Sumanth Yedoti 2025-12-30T11:14:59.990999Z

set the channel topic: https://github.com/babashka/sci - also see #babashka, #squint and #nbb

Sumanth Yedoti 2025-12-30T07:22:59.042329Z

Hi, my question is about Squint 👀 I want to learn and do video animations using https://motioncanvas.io/. I thought Squint might be better and compatible Clojure dialect for this, after failing to setup with ClojureScript as expected. But no success with Squint. Any help please and your thoughts on this? https://motioncanvas.io/docs/quickstart#explanation that was problematic and JSX syntax of Squint too.

borkdude 2025-12-30T11:07:47.614669Z

Btw, there is a #squint channel for this :)

👌 1
borkdude 2025-12-30T11:10:04.921629Z

This example in JS translates to squint as follows:

import {makeProject} from '@motion-canvas/core';

import example from './scenes/example?scene';

export default makeProject({
  scenes: [example],
});
(ns my-namespace
  (:require ["@motion-canvas/core" :refer [makeProject]]
            ["./scenes/example?scene$default" :as example]))

(def default (makeProject {:scenes [example]}))

😊 1
Sumanth Yedoti 2025-12-30T11:11:18.285169Z

I was just working on repo. I could manage to make it work. The thing was to add ^:gen for generator function, as Claude helped. https://github.com/sumanthyedoti/motion-canvas-squint-cljs

borkdude 2025-12-30T11:11:45.316779Z

yes

Sumanth Yedoti 2025-12-30T11:12:43.967529Z

Thank you...! I will carry from here and see how it goes.

borkdude 2025-12-30T11:12:53.476709Z

OK, let's continue in #squint

1
Sumanth Yedoti 2025-12-30T07:23:16.916969Z

Sorry, I don't have a share-able example repo for reference. I can provide on if that is better.

borkdude 2025-12-30T07:46:53.816709Z

I’ll have a look later today but a repro is always better