News for hackers. Stuff that matters.
Re:LCUI – A small C library for building user interfaces wit... by pecg on Wednesday February 07, 2018 @04:33PM (#16328213)
This looks good, I think that it would be worth giving it a shot. My main problem is XML, it is always incredibly slow to parse, and there is not an accepted defined way to express the content, s-expressions would do a much better job, perhaps a combination between C parsing scheme definitions of UIs could work.
Re:LCUI – A small C library for building user interfaces wit... by flukus on Wednesday February 07, 2018 @06:14PM (#16328849)
> My main problem is XML, it is always incredibly slow to parse

They could always add an option to compile it, much like xaml, it may even be as simple as a xslt transform.

Re:LCUI – A small C library for building user interfaces wit... by stuaxo on Thursday February 08, 2018 @09:37AM (#16332235)
Woa, XSLT to create an executable.. it's so twisted I hope someone does this.
Re:LCUI – A small C library for building user interfaces wit... by zbentley on Thursday February 08, 2018 @09:38AM (#16332240)
For most UI toolkits, isn't XML parsing happening pretty infrequently (and mostly at startup)?

Speeding up start times is a laudable goal, but this comment makes it sound as if the performance implications are more significant than that.

Re:LCUI – A small C library for building user interfaces wit... by jbreiding on Wednesday February 07, 2018 @04:42PM (#16328287)
I think this depends of the levels of nesting and complexity, but a libsax based parser is not "incredibly" slow.

A Dom based parser could be, but also depends of number of nodes and nesting.

Re:LCUI – A small C library for building user interfaces wit... by learc83 on Wednesday February 07, 2018 @05:09PM (#16328466)
I'm not sure why the OP thinks that parsing XML is any slower than any other data representation method that allows arbitrary nesting.

Love sax by the way. I just switched over one of our sites to use a sax based parser because the default rails .to_hash was choking on 100MB+ XML files.

Re:LCUI – A small C library for building user interfaces wit... by baybal2 on Thursday February 08, 2018 @09:57AM (#16332369)
>XML, it is always incredibly slow to parse

I don't see libxml2 being slower than any other markup language parser. In comparison to how slow some JSON (an easier to parse language) parsers are, libXML2 is actually quite fast.