Fork me on GitHub
#off-topic
<
2019-04-03
>
tagore01:04:50

@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.

richiardiandrea02:04:27

Yeah I think I have definitely noticed this 😄

jayzawrotny16:04:43

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

jayzawrotny16:04:13

Using this I can see the relationship but not sure how to turn that into an equation http://cubic-bezier.com/#.42,0,.58,1

polymeris19:04:28

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

jayzawrotny19:04:38

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.

jayzawrotny20:04:05

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?

polymeris20:04:29

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

polymeris20:04:46

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

polymeris20:04:10

The coordinates should not depend on each other, I think

jayzawrotny20:04:43

Ok, I can work with that!

polymeris20:04:35

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

jayzawrotny22:04:14

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

jayzawrotny22:04:37

But what I need is another percentage between 0 and 1

polymeris22:04:08

not sure what you mean by percentage?

polymeris22:04:35

does that ☝️ look like the curve you expect?

jayzawrotny16:04:23

That’s not quite what I’m looking for, however I did find exactly what I was trying to do: http://greweb.me/2012/02/bezier-curve-based-easing-functions-from-concept-to-implementation/

mrevelle19:04:02

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

alexmiller19:04:22

it compiles AND its a flight simulator

dpsutton19:04:02

so basically excel

alexmiller19:04:01

that'd be my guess

alexmiller19:04:15

compiled excel

d4hines19:04:03

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

d4hines19:04:30

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

souenzzo20:04:32

@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 https://gist.github.com/mfikes/07be413e34750a9f451bd76d937ff545

dominicm20:04:00

Graalvm isn't the same as native image.

dominicm20:04:32

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

d4hines20:04:45

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

dominicm20:04:42

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

d4hines20: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.

d4hines20:04:14

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

dominicm20:04:31

Llvm bytecode?

d4hines20: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++?

dominicm20:04:02

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

dominicm20:04:10

Although you can already do that with JNI

d4hines20:04:05

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

dominicm20:04:17

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