News for hackers. Stuff that matters.
Re:Elements C++ GUI Library by hannofcart on Monday July 06, 2020 @07:27AM (#23746740)
Firstly, this looks fantastic. And the GUI not taking over the main loop is a wonderful feature. This is something that has really irritated me using most other GUI libraries (including Qt).

> The GUI should be declared in C++ code.

While I love the declarative aspect of the above, would the authors consider using a different DDL for layouts rather than C++?

The reason I ask is: this now enables creation of wrappers around this library for other languages like Golang and Python.

Also, having the layouts described as plain data rather than C++ code would allow not having to compile for minor UI/layout changes. Which will in turn permit faster prototyping during UI development.

Re:Elements C++ GUI Library by xamolxix on Monday July 06, 2020 @10:11AM (#23748030)
First time loading any of the examples it takes a noticeable time but it creates some cache files e.g. "e33b398b592a74de7cce1c9035ee8082-le64.cache-7" which seem binary. Subsequent loads are fast.
Re:Elements C++ GUI Library by jfkebwjsbx on Monday July 06, 2020 @08:56AM (#23747375)
Agreed, C++ for declarative-anything is a bad idea and will make compile times suffer a lot.