Fork me on GitHub
#onyx
<
2016-12-08
>
Travis01:12:23

@michaeldrogalis moving away from slack? just noticed your channel topic

michaeldrogalis01:12:55

Just fixed a broken link because of a comma, no.

lucasbradstreet01:12:34

Maybe we should change it to "alternative Onyx chat"

lucasbradstreet01:12:51

This is more popular though not as advertised

yonatanel09:12:47

@lucasbradstreet refinement calls are in the cheat sheet, but the guide only mentions the two pre-existing options, so there's no reason to look for it.

yonatanel09:12:51

What's your position on adding uniqueness-key checks to onyx-local-rt, making it possible to simulate duplicate segments?

michaeldrogalis15:12:25

@yonatanel Probably not. local-rt isn’t meant to be an exact mirror of core in that regard. The environment itself would need to accrete a good chunk of state to do that check, would be raising the complexity bar a lot.

michaeldrogalis16:12:19

uniqueness-key will go away in 0.10 by the way. The ABS engine doesn’t need the user to tell it what makes a segment unique since it does barrier injection, which we control.

yonatanel16:12:44

when is it due?

michaeldrogalis16:12:36

Heh, we have been saying “a few weeks” for a few months. Things keep coming up. @lucasbradstreet, how’re you feeling?

richiardiandrea22:12:05

Maybe this question has been already answered/made, but I was wondering whether there is already someone using Onyx with node.js peers and/or AWS lambdas

lucasbradstreet22:12:22

@yonatanel it’s coming along nicely, but I got slowed down a bit because of my move to the US. I’m willing to commit to a technical preview in the next week

lucasbradstreet22:12:40

@richiardiandrea we don’t know of anyone using Onyx in this way. We have been discussing it a bit, but don’t really have the time to do it ourselves at the moment. The main blockers would be implementing the ZK client so they could coordinate, and the messaging layer which would likely involve some C interop with Aeron

richiardiandrea22:12:36

@lucasbradstreet thanks, my question is maybe more whether there is also an abstraction for function calls (I guess at the moment they are resolved only on the JVM?)

lucasbradstreet22:12:29

onyx-local-rt can do it in clojurescript, though the functions need the metadata on them so they will be exported

richiardiandrea22:12:55

ok cool so you are already using cljs-in-cljs aka bootstrapped cljs great

lucasbradstreet22:12:31

However, onyx-local-rt doesn’t feel terribly useful for production use at the moment. If you can do everything you need in one peer it might be OK though

lucasbradstreet22:12:38

It’s also a bit unstable still

gardnervickers22:12:03

@richiardiandrea I don’t believe we support cljs-in-cljs yet

lucasbradstreet22:12:18

@gardnervickers I think klipsche (klipse?) did it with bootstrap cljs

richiardiandrea22:12:33

@gardnervickers cool, is it something you are interested in? I think cljs-in-cljs is only necessary for the resolve part, once the peer "receives" the catalog entry (sorry I am new to the architecture) and it wants to call :onyx/name

richiardiandrea22:12:43

yes Klipse uses bootstrap cljs

gardnervickers22:12:24

Oh thats news to me, I thought there was a JVM pre compilation step.

richiardiandrea22:12:30

ah no Klipse (and replumb, which is what Klipse uses under the hood and of which I am the author 😄) evaulates in the browser

richiardiandrea22:12:06

(sorry I am writing with so many spelling mistakes!)

michaeldrogalis22:12:31

local-rt works for CinC, yeah

lucasbradstreet22:12:44

oops, we broke it tho

lucasbradstreet22:12:49

but it did work 😄

richiardiandrea22:12:58

yes I remember that too 😉

michaeldrogalis22:12:19

local-rt feels like it could be a good fit to execute as a complex function into Lambda.

richiardiandrea22:12:27

I have to dig into it, but is local-rt calling resolve given a catalog?

richiardiandrea22:12:35

I mean, resolve and evaluate the actual js function in :onyx/name?

richiardiandrea22:12:31

(I am checking as well)

richiardiandrea22:12:13

actually there is probably a better way...you don't need to resolve the function on Lambda, just trigger it, the problem is how to make it participate in the Onyx framework

richiardiandrea22:12:02

but I see that it is doable, first step it is probably to hook it in local-rt

michaeldrogalis22:12:18

Yeah, I was picturing an inversion of control. Lambda is invoking a program that fires up onyx-local-rt. You’re talking about integrating Lambda into Onyx core though, right?

richiardiandrea22:12:18

well yes I am trying to see if it is feasible to go completely serverless AND language agnostic (ok, Java and Javascript-ey languages)

richiardiandrea22:12:44

and use Onyx for orchestration/task scheduling

michaeldrogalis22:12:14

That’s an intriguing proposition.

richiardiandrea22:12:21

Ah ah, I am fishing 🙂 No but seriously, I see a lot of value in using either one or the other language given this or that constraint (that we have at the new company I am working with)

michaeldrogalis22:12:17

Any sort of Lambda integration would be useful I’m sure. See how far you can go.

richiardiandrea22:12:05

Ok cool I am in the brainstorming phase now but I'll stay in touch if things become concrete

richiardiandrea22:12:52

just to give more context, I am also looking at https://aws.amazon.com/step-functions

richiardiandrea22:12:06

but of course Onyx's scope is waaay wider

colinhicks23:12:24

@richiardiandrea, I started something relevant awhile back, which I've since abandoned:

richiardiandrea23:12:53

oh, that's helpful

colinhicks23:12:12

not sure how useful it is. this was pre-onyx-local-rt

richiardiandrea23:12:13

oh it's a Java lambda too

richiardiandrea23:12:43

thanks, I think it is a good starting point for sure

colinhicks23:12:36

Hopefully it helps. It's seriously incomplete, though

richiardiandrea23:12:06

I think it is going to be useful 🙂