Live data from Hacker News

Conrod – A Rust GUI Library

blog.piston.rs

31–40 of 76 posts

Re: Conrod – A Rust GUI Library

#31
post #30

I have mixed feelings about this. On one hand, I'm enthused that Rust, arguably the only serious contender to C++'s throne, is gaining traction. On the other hand, I'm scared that respectable projects like Qt (~6M lines of C++, man-millenia of work!) will be considered "obsolete" by the coming generation and another cyle of wheel reinvention will begin, tossing away man-centuries worth of polished, working code on th…

Is there a way to use Qt from Rust? It has C binding, but not C++ as far as I know.

Re: Conrod – A Rust GUI Library

#32
post #31
post #30

I have mixed feelings about this. On one hand, I'm enthused that Rust, arguably the only serious contender to C++'s throne, is gaining traction. On the other hand, I'm scared that respectable projects like Qt (~6M lines of C++, man-millenia of work!) will be considered "obsolete" by the coming generation and another cyle of wheel reinvention will begin, tossing away man-centuries worth of polished, working code on th…

Is there a way to use Qt from Rust? It has C binding, but not C++ as far as I know.

It's possible to use Qt from Python, so I would think Rust could do it in one way or another.

Re: Conrod – A Rust GUI Library

#33
post #31
post #30

I have mixed feelings about this. On one hand, I'm enthused that Rust, arguably the only serious contender to C++'s throne, is gaining traction. On the other hand, I'm scared that respectable projects like Qt (~6M lines of C++, man-millenia of work!) will be considered "obsolete" by the coming generation and another cyle of wheel reinvention will begin, tossing away man-centuries worth of polished, working code on th…

Is there a way to use Qt from Rust? It has C binding, but not C++ as far as I know.

http://endl.ch/content/cxx2rust-pains-wrapping-c-rust-exampl... is discussion on using C++ libraries from Rust that focuses on QT as a motivating example with runnable code at the time.

Re: Conrod – A Rust GUI Library

#34
post #31

Earlier quoted context omitted.

Is there a way to use Qt from Rust? It has C binding, but not C++ as far as I know.

http://endl.ch/content/cxx2rust-pains-wrapping-c-rust-exampl... is discussion on using C++ libraries from Rust that focuses on QT as a motivating example with runnable code at the time.

Thanks for the pointer!

Re: Conrod – A Rust GUI Library

#35
post #30

I have mixed feelings about this. On one hand, I'm enthused that Rust, arguably the only serious contender to C++'s throne, is gaining traction. On the other hand, I'm scared that respectable projects like Qt (~6M lines of C++, man-millenia of work!) will be considered "obsolete" by the coming generation and another cyle of wheel reinvention will begin, tossing away man-centuries worth of polished, working code on th…

It would be a shame for man-millennia of work to be lost, but it would also be a shame for advancement to be stalled by these kinds of concerns. Experimenting with new approaches and ideas, direct competition between projects, excitement over new languages and frameworks. These are all factors that lead to advancing the state of the art.

It's worth being concerned about losing the lessons learned from Qt, but this is a kind of false dichotomy between the old and the new.

With that said, I don't think those lessons will be lost anyway. Qt can't (and shouldn't!) last forever or remain in its current form. C++, though it will live for a long time yet, will eventually fall out of favor, and large sections will eventually be purged from Qt as the project matures. The man-years that went into the portions that were, or some day will be, removed have taught Qt developers and users a great deal.

Qt developers and users will bring knowledge and wisdom to new projects that will compete with Qt (directly or indirectly). Some projects will survive and some won't. Some will be much the same as Qt, while some will be completely different from the start. Conrod, as it happens, is an approach to a different kind of GUI development (see this comment: https://news.ycombinator.com/item?id=8244224).

This, of course, doesn't include developers who do their own things without ever using Qt. Hopefully, they will encounter blog posts and articles about some of those lessons, as well as attracting developers who've learned some of these lessons.

This isn't a case of getting away with reinventing the industry. In this nascent stage, computer science, with all the renegade hackers and developers, is still a necessary occurrence when new languages and frameworks are invented.

Re: Conrod – A Rust GUI Library

#36
post #30

I have mixed feelings about this. On one hand, I'm enthused that Rust, arguably the only serious contender to C++'s throne, is gaining traction. On the other hand, I'm scared that respectable projects like Qt (~6M lines of C++, man-millenia of work!) will be considered "obsolete" by the coming generation and another cyle of wheel reinvention will begin, tossing away man-centuries worth of polished, working code on th…

GCC stagnated until it received competition froom LLVM (clang). something similar seems to have happened to C++ the language itself, and i think viability of competing languages has played a large role.

Re: Conrod – A Rust GUI Library

#37

I had to look up what "immediate mode" means -- http://sol.gfxile.net/imgui/ discussion at http://lambda-the-ultimate.org/node/4561 Add to https://github.com/rust-lang/rust/wiki/Community-libraries#g... ?

Here's a link to Casey Muratori's presentation on imgui. Important context, IMO, since this is the genesis of imgui as an easily-identifiable "pattern" that many others have run with in various languages/environments.

https://mollyrocket.com/861

Re: Conrod – A Rust GUI Library

#38
post #30

I have mixed feelings about this. On one hand, I'm enthused that Rust, arguably the only serious contender to C++'s throne, is gaining traction. On the other hand, I'm scared that respectable projects like Qt (~6M lines of C++, man-millenia of work!) will be considered "obsolete" by the coming generation and another cyle of wheel reinvention will begin, tossing away man-centuries worth of polished, working code on th…

[deleted]

Re: Conrod – A Rust GUI Library

#39
post #4

Last time I checked this was the main thing that was missing for Go (a complete, multi platform GUI lib). Has there anything like this arisen yet? Some quick googling points to Gothic, which sounds promising.

I don't believe Go intends to be used for Desktop applications. I believe that's more Rust's goal. Go I suspect is intended for more service related stuff, backend, server, processing, etc. Though I'm not 100% sure about this.

[deleted]

Re: Conrod – A Rust GUI Library

#40
post #27

Isn't using immediate mode going to make implementing more complex widgets like multi-line text-edits with selection and style, and more importantly tree controls with collapsed/expanded persistent state that lazily load children (or only display items that are visible in the active view area) more difficult?

Why would it? You're not constantly trashing your application state, are you?
Post reply on HN