GJS BOF: Day 2



Hi list,

Here are the notes from Wednesday. It was the last day of the conference, many people had left already, so all the sessions had coalesced into one large hacking room. We had a bit of GJS-related discussion but not too much:

Structured logging
------------------
Bastian brought up the question: could we improve the formatting of the log output? Philip W's new GLib structured logging facilities would seem to be perfect for this. We already discussed enabling the feature from JS on the gtk-devel mailing list, but a separate thing would be to use it in the interpreter.

We could send the stack trace as a separate key, but we could also add a custom log formatter to GJS so that stack traces were still printed on the console.

Philip W also suggested sending stack traces to coredumpd.

Autocompletion
--------------
Niv continued to hack on Tern for GObject.

XML
---
GJS is sorely missing APIs for parsing and writing XML. Libxml2 is not really bindable. Gxml is maybe a possibility, but it's written in Vala and so is not necessarily ABI stable depending on which Vala release it was compiled with. Possibly this does not matter for GObject introspection.

It's fairly easy to make a simple XML writer in pure _javascript_, you're welcome to rip off this one: https://github.com/ptomato/jasmine-gjs/blob/master/src/xmlWriter.js XML parsing is more of a problem. This would be an area where sharing more code with Node would help.

Christian prefers GMarkup for XML code anyhow. Its API takes raw gpointers so is not bindable, but it would be nice to wrap it.

Builder
-------
I made some GJS snippets for Builder: [1]

Regards,
Philip C

[1] https://bugzilla.gnome.org/show_bug.cgi?id=770055



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]