CE-0002: Lists, Durations, Includes, and Variables in Configs

21 views
Skip to first unread message

Dominik Charousset

unread,
Oct 16, 2017, 8:24:27 AM10/16/17
to caf-...@googlegroups.com

The discussion so far took place on the PR: https://github.com/actor-framework/evolution/pull/2

Feel free to join in the discussion by replying to this mail. :)

Thomas C. Schmidt

unread,
Oct 16, 2017, 8:32:42 AM10/16/17
to caf-...@googlegroups.com
Something to learn from the FRR Router implementation?

* FRR simply puts CLI commands into its config, so complexity and
parsing efforts decrease.

Ask Colin and Marcel about details.
> --
> You received this message because you are subscribed to the Google
> Groups "caf-devel" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to caf-devel+...@googlegroups.com
> <mailto:caf-devel+...@googlegroups.com>.
> To post to this group, send email to caf-...@googlegroups.com
> <mailto:caf-...@googlegroups.com>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/caf-devel/946CBB53-01DC-4EEE-BEAD-1D931443247A%40haw-hamburg.de
> <https://groups.google.com/d/msgid/caf-devel/946CBB53-01DC-4EEE-BEAD-1D931443247A%40haw-hamburg.de?utm_medium=email&utm_source=footer>.
> For more options, visit https://groups.google.com/d/optout.

--

Prof. Dr. Thomas C. Schmidt
° Hamburg University of Applied Sciences Berliner Tor 7 °
° Dept. Informatik, Internet Technologies Group 20099 Hamburg, Germany °
° http://www.haw-hamburg.de/inet Fon: +49-40-42875-8452 °
° http://www.informatik.haw-hamburg.de/~schmidt Fax: +49-40-42875-8409 °

matthias

unread,
Oct 16, 2017, 11:50:33 AM10/16/17
to caf-devel
FWIW: in VAST, we already have a parser framework that implements the majority of this proposal: nested data, symbol table parsers, type checks, etc. Unfortunately it's reliant on C++14, otherwise we could have "migrated" it easily. I know that we have too many C++11-only users at this point, but perhaps some of the code translates without too much headaches, saving scarce developer time.

Dominik Charousset

unread,
Oct 18, 2017, 9:17:16 AM10/18/17
to Matthias Vallentin, caf-devel
FRR simply puts CLI commands into its config

That’s something they can get away with by restricting themselves to UNIX only. That would require to either do something different on Windows or shipping a full CLI parser/interpreter. Neither strikes me as a good idea.

Aside from that, users already rely on the .ini configuration format of CAF. Switching to something else would unnecessarily put obstacles in the way of existing users.

FWIW: in VAST, we already have a parser framework that implements the majority of this proposal: nested data, symbol table parsers, type checks, etc. Unfortunately it's reliant on C++14, otherwise we could have "migrated" it easily. I know that we have too many C++11-only users at this point, but perhaps some of the code translates without too much headaches, saving scarce developer time.

I think that’s a good option in the long run. I would love to replace the hand-written INI parser with something that’s easy to compose and extend. I’m not sure how much effort it would take to integrate this into CAF’s inspect API, though. The extensions in the proposal (lists, dates, variables) are straightforward to integrate into the existing parser. I’d say let’s explore the idea of integration VASTs parser framework at a later time, independently from this proposal.

    Dominik
Reply all
Reply to author
Forward
0 new messages