Fork me on GitHub

@richiardiandrea I think you really do have to be a bit careful about introducing new "weird" things, even if they seem objectively better to you (and even if they are pretty much better.) Adoption requires buy-in from a lot of people in most cases. And most people have an aversion to the new and weird. The ground must be laid very carefully.


Yeah I think I have definitely noticed this 😄


Anyone know how to convert a bezier curve like cubic-bezier(0.42, 0, 0.58, 1.0)into a function of time?


Using this I can see the relationship but not sure how to turn that into an equation,0,.58,1


The CSS form is cubic-bezier(P1x, P1y, P2x, P2y), with implicit P0 = {0,0} & P3 = {1,1}


Thanks, I usually find wikipedia too dense to learn math concepts from but this is really approachable. I shouldn’t have ruled it out so early on. Thanks again for pointing me to it.


Though admittedly, I’m not clear on how to plugin the P coords into it. Where it asks for (1-t)^3P0 for instance, is P0 either P0x or P0y or some combination of the two?


You apply that fn twice, I think, plugging in P0x, P1x, etc, to get B(t)x


Then again with P0y, P1y for B(t)y


The coordinates should not depend on each other, I think


Ok, I can work with that!


Also, P0x & P0y are 0 anyways, so that simplifies the equation quite a bit


So by plugging the coords I get an x and y where 0 <= t <= 1


But what I need is another percentage between 0 and 1


not sure what you mean by percentage?


does that ☝️ look like the curve you expect?


That’s not quite what I’m looking for, however I did find exactly what I was trying to do:


cool, I wonder what is referred to by mentioning compilers in the closing sentence: excited to push the boundaries of what’s possible with compilers

Alex Miller (Clojure team)19:04:22

it compiles AND its a flight simulator

😆 4

so basically excel

Daniel Hines19:04:03

Is GraalVM+Clojure a thing people are doing in production?

Daniel Hines19:04:30

Err, people do all kinds of things, but is it a relatively common and/or not-insanely-difficult thing?


@d4hines once after "warm up", JVM is faster then native-image¹ I think that makes no sense to move from JVM to a native-image But i see people talking about it on "lambda" scenario


Graalvm isn't the same as native image.

👍 8

We are evaluating it for an internal system due to the interop capabilities.

Daniel Hines20:04:45

☝️ That’s what interests me - the interop.


I don't get the impression it is particularly harder than graalvm+java. There's a gotcha or two in clojure core iirc.

Daniel Hines20:04:42

If I worked in a Java shop, I would try the whole “Clojure is just a library for Java” trick, but we do native C++ stuff, where that isn’t an option.

Daniel Hines20:04:14

So I’m interested in Graal as a way of making our stuff polyglot.


Llvm bytecode?

Daniel Hines20:04:00

I don’t know much about LLVM (or native stuff in general actually - this a new world for me). What would it look like? Clojure => Java Byte Code => LLVM => consume from C++?


I think graalvm can consume llvm bytecode for interop, so you can call existing code.


Although you can already do that with JNI

Daniel Hines20:04:05

Oh, so go the other way C++ => JVM => Clojure.


I think I remember a demo of going nodejs=>java, but haven't seen it actually released

Lennart Buit20:04:37

yeah, the polyglot nature of Graal sounds very interesting to me