Hacker News new | past | comments | ask | show | jobs | submit login

wxWidgets has a sublime idea: an api that is just a wrapper over native controls. For cross platform frameworks it is fast and light. The very opposite of bloatware.

But it also has a terrible flaw: its heavy-templated C++ api, hard to port to other languages.

I don't want to get stuck on C++. I want to use Go and Rust. And all the wxWidgets ports to those languages suck, big time.

Show me a solid wxWidgets for Rust and I'll fall in love again. Yes, I'd also colaborate on that project, too.




And here I am, loving (modern!) C++ and not getting warm with Rust all that much.


This isn't really a fault in WxWidgets. It's not like there are any good Go or Rust UI toolkits.


>> This isn't really a fault in WxWidgets. It's not like there are any good Go or Rust UI toolkits.

GTK-rs is decent for rust on Linux. Not sure how it does on other platforms.


As a user GTK typically feels a little funky on Windows, although I don't know how much of that is a fault with the toolkit and how much of it is a function of Windows definitely not being those developers' primary target.

I'm delighted to hear Rust programmers have got something worth using.


And which GTK library does it need? GTK 1, 2 ,3, 4 or 5 ?


I'll respond to the lame joke. 1 and 2 are dead, 5 doesn't exist, and it supports 3 or 4.


wxPython is the only maintained alternative there. I think there’s an opportunity to create bindings to other languages with libClang nowadays. However, it’s gotta be done selectively, since there’s so much surface area in the API to fill in the gaps for C++’s standard library.


I also maintain wxlua (Lua wrapper around wxwidgets: https://github.com/pkulchenko/wxlua) and it is expected to work with the current wxwidgets release (I tested with a recent pre-release version).


I think the Haskell bindings for wxWidgets is pretty good

https://hackage.haskell.org/package/wx


Why so negative, yo? If you don't want to get stuck on C++, stick to C! )


> If you don't want to get stuck on C++, stick to C! )

You can't use C directly with the official WxWidget library. For instance, here is the first line of WxWidget's manual:

"Welcome to wxWidgets, a stable and powerful open source framework for developing native cross-platform GUI applications in C++!"




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: