You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@johnzon.apache.org by Romain Manni-Bucau <rm...@gmail.com> on 2020/12/16 19:38:39 UTC

Planning 1.2.10

Hi everyone,

I will make johnzon-jsonlogic CompletionStage friendly in th coming days.
High level it will enable to chian stages instead of current functions.
To keep backward compat i am planning to add a CompletionStage apply method.

I hope to be able to release it shortly after (hopefully end of week).

Any blocker on your side? Anything else to await? Maybe the OSGi fix
mentionned on 1.2.9 thread?

Re: Planning 1.2.10

Posted by Romain Manni-Bucau <rm...@gmail.com>.
Hi everyone,

think I will wait for the OSGi fix to be in before triggering 1.2.10, it is
Xmas holidays and we just got 1.2.9 so not sure it is the best moment to
relaunch another vote.

Romain Manni-Bucau
@rmannibucau <https://twitter.com/rmannibucau> |  Blog
<https://rmannibucau.metawerx.net/> | Old Blog
<http://rmannibucau.wordpress.com> | Github <https://github.com/rmannibucau> |
LinkedIn <https://www.linkedin.com/in/rmannibucau> | Book
<https://www.packtpub.com/application-development/java-ee-8-high-performance>


Le jeu. 17 déc. 2020 à 10:27, Romain Manni-Bucau <rm...@gmail.com> a
écrit :

> Just pushed the update to jsonlogic.
>
> Feel free to review if you are interested. I will just use this message to
> give a small overview of what it enables.
>
> Test code is not as sexy as runtime code but it gives an idea of what it
> offers:
> https://github.com/apache/johnzon/blob/master/johnzon-jsonlogic/src/test/java/org/apache/johnzon/jsonlogic/JohnzonJsonLogicTest.java#L47
> .
> An Operator (or AsyncOperator - both classes are the same, it is just
> about which method you implement as an user, the stage based one or the
> synchronous based one) can return a stage. Using applyStage method of the
> logic instance you get a promise instead of a synchronous call enabling to
> write asynchronous operators.
> We don't have recursive or async operator built-in but since you can
> register the ones you want as an user on logic instance it opens a lot of
> doors.
> Since modern framework are integrated with stage too, we can imagine
> returning such a call in a JAX-RS endpoint for example:
> https://github.com/apache/johnzon/blob/master/johnzon-jsonlogic/src/test/java/org/apache/johnzon/jsonlogic/JohnzonJsonLogicTest.java#L98
> .
> We just created a composable command factory way more integrable and
> flexible than GraphQL ;).
> [/end of teasing ;)].
>
> Romain Manni-Bucau
> @rmannibucau <https://twitter.com/rmannibucau> |  Blog
> <https://rmannibucau.metawerx.net/> | Old Blog
> <http://rmannibucau.wordpress.com> | Github
> <https://github.com/rmannibucau> | LinkedIn
> <https://www.linkedin.com/in/rmannibucau> | Book
> <https://www.packtpub.com/application-development/java-ee-8-high-performance>
>
>
> Le mer. 16 déc. 2020 à 22:31, Jean-Louis Monteiro <
> jlmonteiro@tomitribe.com> a écrit :
>
>> Hi,
>>
>> That sounds good to me.
>>
>> Thanks for the visibility
>> --
>> Jean-Louis Monteiro
>> http://twitter.com/jlouismonteiro
>> http://www.tomitribe.com
>>
>>
>> On Wed, Dec 16, 2020 at 8:38 PM Romain Manni-Bucau <rmannibucau@gmail.com
>> >
>> wrote:
>>
>> > Hi everyone,
>> >
>> > I will make johnzon-jsonlogic CompletionStage friendly in th coming
>> days.
>> > High level it will enable to chian stages instead of current functions.
>> > To keep backward compat i am planning to add a CompletionStage apply
>> > method.
>> >
>> > I hope to be able to release it shortly after (hopefully end of week).
>> >
>> > Any blocker on your side? Anything else to await? Maybe the OSGi fix
>> > mentionned on 1.2.9 thread?
>> >
>>
>

Re: Planning 1.2.10

Posted by Romain Manni-Bucau <rm...@gmail.com>.
Just pushed the update to jsonlogic.

Feel free to review if you are interested. I will just use this message to
give a small overview of what it enables.

Test code is not as sexy as runtime code but it gives an idea of what it
offers:
https://github.com/apache/johnzon/blob/master/johnzon-jsonlogic/src/test/java/org/apache/johnzon/jsonlogic/JohnzonJsonLogicTest.java#L47
.
An Operator (or AsyncOperator - both classes are the same, it is just about
which method you implement as an user, the stage based one or the
synchronous based one) can return a stage. Using applyStage method of the
logic instance you get a promise instead of a synchronous call enabling to
write asynchronous operators.
We don't have recursive or async operator built-in but since you can
register the ones you want as an user on logic instance it opens a lot of
doors.
Since modern framework are integrated with stage too, we can imagine
returning such a call in a JAX-RS endpoint for example:
https://github.com/apache/johnzon/blob/master/johnzon-jsonlogic/src/test/java/org/apache/johnzon/jsonlogic/JohnzonJsonLogicTest.java#L98
.
We just created a composable command factory way more integrable and
flexible than GraphQL ;).
[/end of teasing ;)].

Romain Manni-Bucau
@rmannibucau <https://twitter.com/rmannibucau> |  Blog
<https://rmannibucau.metawerx.net/> | Old Blog
<http://rmannibucau.wordpress.com> | Github <https://github.com/rmannibucau> |
LinkedIn <https://www.linkedin.com/in/rmannibucau> | Book
<https://www.packtpub.com/application-development/java-ee-8-high-performance>


Le mer. 16 déc. 2020 à 22:31, Jean-Louis Monteiro <jl...@tomitribe.com>
a écrit :

> Hi,
>
> That sounds good to me.
>
> Thanks for the visibility
> --
> Jean-Louis Monteiro
> http://twitter.com/jlouismonteiro
> http://www.tomitribe.com
>
>
> On Wed, Dec 16, 2020 at 8:38 PM Romain Manni-Bucau <rm...@gmail.com>
> wrote:
>
> > Hi everyone,
> >
> > I will make johnzon-jsonlogic CompletionStage friendly in th coming days.
> > High level it will enable to chian stages instead of current functions.
> > To keep backward compat i am planning to add a CompletionStage apply
> > method.
> >
> > I hope to be able to release it shortly after (hopefully end of week).
> >
> > Any blocker on your side? Anything else to await? Maybe the OSGi fix
> > mentionned on 1.2.9 thread?
> >
>

Re: Planning 1.2.10

Posted by Jean-Louis Monteiro <jl...@tomitribe.com>.
Hi,

That sounds good to me.

Thanks for the visibility
--
Jean-Louis Monteiro
http://twitter.com/jlouismonteiro
http://www.tomitribe.com


On Wed, Dec 16, 2020 at 8:38 PM Romain Manni-Bucau <rm...@gmail.com>
wrote:

> Hi everyone,
>
> I will make johnzon-jsonlogic CompletionStage friendly in th coming days.
> High level it will enable to chian stages instead of current functions.
> To keep backward compat i am planning to add a CompletionStage apply
> method.
>
> I hope to be able to release it shortly after (hopefully end of week).
>
> Any blocker on your side? Anything else to await? Maybe the OSGi fix
> mentionned on 1.2.9 thread?
>