2018-01-29 6:41 GMT+01:00 Jean-Philippe André :
> Hey,
>
> On Sat, Jan 27, 2018 at 9:36 PM, Davide Andreoli
> wrote:
>
> > 2018-01-27 12:40 GMT+01:00 Felipe Magno de Almeida <
> > felipe.m.alme...@gmail.com>:
> >
> > > On Fri, Jan 26, 2018 at 11:20 AM, Gustavo Sverzut Barbieri
> > > wrote:
> > > > On Fri, Jan 26, 2018 at 12:50 AM, Jean-Philippe André <
> > j...@videolan.org>
> > > wrote:
> > > >>
> > > >> Hi,
> > >
> > > [snip]
> > >
> > > >> So what I think is that this is a great tool that you provide here,
> > but
> > > I
> > > >> doubt other languages than Python will adopt this straight away.
> > Unless
> > > we
> > > >> start working on a new binding, maybe?
> > > >
> > > > well, point is you can create a new binding just replacing the text
> > > > files that are the template... so maybe even c++ and c# could be
> > > > changed to use that without major issues...
> > > >
> > > > not sure if Felipe thinks maintaining an eolian generator on his own
> is
> > > worth.
> > > >
> > > > as for python dep... it will come with meson anyway.
> >
>
> The Python dep is only for compilation anyway.
>
> > We will test pyolian with a test generator. Not sure about bindings yet
> > > because we need some flexibility that templating might not be enough,
> > > for example for JS which generates registration functions etc. "Loops"
> > > are weirder in that case, but indeed maintaining more code is not
> > > exactly my goal.
> > >
> >
> > The template engine is really powerfull, it have access to the whole
> eolian
> > api and db. And provide various control structures (if/then/else, for
> > loops,
> > macros, variables, etc...)
> > It should be able to generate whatever complexity you need.
> >
>
> I was thinking the complexity may be too big for the templates generation,
> but then again it may be just a matter of more templating?
>
Yes, more template macros and more logic in the template, that's it.
>
> Anyway if pyolian works out for esoteric bindings, then this is absolutely
> for the best.
> One generator in one language could be easier to maintain. :)
> Also, the C++ generator is VERY hard to maintain (for C devs), so that
> could help.
>
pyolian are just pure python bindings for eolian (eolian api accessible
from
python). it doesn't help in writing the output files, you still have to
procedurally
code and fprintf to files you want to generate (a real pain)
The real powerfullness comes from the template generator, that is just an
executable. You don't even need to know python to use it, you can drive
the generator from a bash script, or whathever you like. Everything you
need to learn is the template syntax explained at:
https://phab.enlightenment.org/w/pyolian/
>
>
>
> >
> > > I do think pyolian will help with new ideas that are going to be easier
> > > to put in practice, which we might not even have seriously considered
> > > yet.
> > >
> > > @Davide: Could you create a EFL branch with pyolian inside? I think
> > > this should not be outside EFL IMO.
> > >
> >
> > pyolian (and the template generator) is aready in the EFL master branch.
> >
> > look at src/scripts/pyolian/ for them, there is also a quite complete
> docs
> > in README.md
> >
> > and look at src/scripts/gendoc/ for an example usage.
> >
> > Let me know when you try it :)
> >
> >
> > >
> > > > --
> > > > Gustavo Sverzut Barbieri
> > > > --
> > > > Mobile: +55 (16) 99354-9890
> > >
> > >
> > > Regards,
> > > --
> > > Felipe Magno de Almeida
> > >
> > >
> > > --
> > > Check out the vibrant tech community on one of the world's most
> > > engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> > > ___
> > > enlightenment-devel mailing list
> > > enlightenment-devel@lists.sourceforge.net
> > > https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
> > >
> >
> > --
> > Check out the vibrant tech community on one of the world's most
> > engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> > ___
> > enlightenment-devel mailing list
> > enlightenment-devel@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
> >
>
> Best regards,
>
> --
> Jean-Philippe André
>
> --
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> ___
> enlightenment-devel mailing list
> enlightenment-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
>
--
Check out