Exciting new milestone for Blueprint support in Workbench

It's like those 2 were made for each others !

#GTK #GNOME

https://github.com/sonnyp/Workbench

https://gitlab.gnome.org/jwestman/blueprint-compiler

GitHub - sonnyp/Workbench: Code playground for GNOME 🛠️

Code playground for GNOME 🛠️. Contribute to sonnyp/Workbench development by creating an account on GitHub.

GitHub

GTK XML is fine for RAD tools (Glade, Cambalache , ...) but way too verbose and with too many levels of indentation for hand-writing.

I'm excited to see where Blueprint goes

Technical details; the first prototype was spawning the blueprint-compiler on every change – which would take ~ 700ms to update the real time preview.

I am now using the blueprint language server as a long-running sub-process using the stdio transport and only sending the new text on change.

https://github.com/sonnyp/Workbench/issues/3

https://gitlab.gnome.org/jwestman/blueprint-compiler/-/merge_requests/33

Support Blueprint · Issue #3 · sonnyp/Workbench

https://jwestman.pages.gitlab.gnome.org/blueprint-compiler/ The UI tab should support Blueprint. We probably want to turn UI - XML into a dropdown to select which format to use and default to xml S...

GitHub

And since Blueprint ships a language server - we can even get auto-completion, hints and so on !

Very cool @flyingpimonster

@sonny Thanks! It's awesome to see Blueprint in action.

@sonny Oh, I was just thinking about this project yesterday!

Suggesting that GTK + Blueprint + GJS provides webdevs pretty much everything they like about the web platform. Thanks for your work!

@sonny this feels like flutter but better, I need gtk but for android 
@sonny TIL about Blueprint, it looks neat. Thanks for mentioning it!
@sonny also in my backlog there's “try Workbench” after I saw it mentioned in TWIM a couple of times.
@sonny interesting how similar the syntax of Blueprint is to QML.

@carlschwan @sonny

Definitely! It feels like we finally has a better counterpart to QtQuick.

@sonny That's so cool!

How stable is Blueprint at the moment, by the way?

I would be soo excited to use this in my projects!

@fortressia works great – here is a list of apps making use of it https://gitlab.gnome.org/jwestman/blueprint-compiler/-/merge_requests/32/diffs

It also has a very convenient and easy to use porting tool. Check the doc.

There are a couple of things missing but not blockers for me.

Add more applications built with Blueprint (!32) · Merge requests · James Westman / Blueprint

A markup language for GTK user interfaces. Docs: https://jwestman.pages.gitlab.gnome.org/blueprint-compiler/

GitLab
@sonny why are there lines obfuscating the text on the left?
@smoldesu sorry I don't know what you mean, could you take a screenshot ?