Mail Archives: geda-user/2018/07/24/14:00:22
On Tue, 24 Jul 2018, karl AT aspodata DOT se wrote:
> Igor2:
> ...
>> Liblihata is implemented in 2 main layers (both in plain C89):
>
> Is it this: svn://repo.hu/lihata
Yup, that one. Home page and documentation (mirror of a subdir from the
above svn): http://repo.hu/projects/lihata/
>
> Perhaps it is best to start with something simple in c before
> taking the step to a script language.
Good idea!
>
> What would be better, the fungw route or the low level one ?
Both are good choices, each with its own pros and cons. I think it's up to
you, how you'd like to use the result.
fungw pros: work once, have the binding work with all languages; already
has some code
fungw cons: the main idea behind fungw is to support only the common
minimum in all languages, which is function call, so the result will never
feel as native as with a low level, language specific binding
direct perl pros: can be as native as you like; if you follow the php
example, you use only the low level parser from the C lib and buidl your
own native perl data structs in memory if the user wants to have a dom
direct perl cons: have to write from scratch, will work with perl only
I'm happy with either solution, even with parallel alternatives (e.g.
both low level / native support for some languages and fungw bindings).
Regards,
Igor2
- Raw text -