11 ms·
Photon Micro GUI
- torgoguys 7y agoName collision--QNX's gui was/is also named "Photon MicroGUI" and that is what I thought this post was going to be about: http://www.qnx.com/developers/docs/6.5.0/index.jsp?topic=%2Fcom.qnx.doc.neutrino_sys_arch%2Fphoton.html http://www.qnx.com/developers/docs/6.5.0/index.jsp?topic=%2F...
- ObscureScience 7y agoThis was what I thought as well. It's really too close. But awesome project nonetheless. I've given FLTK a try and while it's usable it seems a bit old in it's architecture.
- kazinator 7y agoThe only difference is the word break: "microgui" versus "micro gui".
- asark 7y agoCan confirm. Came in expecting the other Photon MicroGUI ("now there's a name I've not heard in a long time"), was surprised/disappointed. Man QNX+Photon made for a nice GUI operating environment. Rivaled only by BeOS on my "GUI environments/systems I wish had made a bigger splash" scale.
- octetta 7y agoTotally agree with you. While I've been away from QNX for a long time, I did enjoy this API and system design. When I saw it go EOL, I made an appeal for them to open source it. Never heard a peep.
- nineteen999 7y agoQNX is EOL? Really? The last release was only in 2017. I hadn't heard this was happening and I can't seem to find any reference to it.
- nobleach 7y agoI recall that QNX/Photon floppy disk in the late 90s. The entire OS and a GUI on a single floppy!!! (And it didn't look like GeOS or Windows 1)
- morganvachon 7y ago> Rivaled only by BeOS Those were the days! I had BeOS as my only OS for over a year until it became clear that Palm wasn't going to continue supporting and updating it. It wasn't long after that I got into QNX, initially because of my interest in embedded systems, but after running Photon on a test machine I fell in love with it almost as much as I loved BeOS.
- scottlocklin 7y agoWas just going to say this. Thanks. QNX was/presumably still is amazing in its simplicity and correctness.
- rbanffy 7y agoThat brings back fond memories. Both of my BB10 phones and my first experience with C (and vi). I learned C on a PC running QNX.
- morganvachon 7y agoSame. I don't understand why the authors of the linked project couldn't have done five minutes of research for the name. Or perhaps they did, and figured since QNX has moved on it would somehow make sense to take over the name? As shown here, that only leads to confusion.
- BearOso 7y agoI’ve never seen the phrase “microgui” used besides with QNX and this. With “photon” it’s so unique that there’s a 0% chance they hadn’t heard the name before. I’d like to know their reasoning.
- djowel64 7y agoHi I'm Joel, the the author of Photon. Thanks for noting. I honestly did not know. Oh well... It seems I have to change the name.
- skocznymroczny 7y agoI expected this http://photonkit.com/ http://photonkit.com/ , which is also a GUI project
- fasterdom 7y agoFunny how there are a few domains where the same problem is solved over and over again. Probably an indication that a good solution is truly missing. A long time ago I wrote a tiny audio synth. And yep, I wrote my own minimal GUI which had stuff like sliders, and most importantly knobs which general GUIs typically don't provide. Now I'm working on a non-audio webapp, and I have a problem where a knob would be the ideal solution. Searched far and wide for a Vue knob, and what I found was not usable. It worked if you "rotated" it circularly, but it didn't work if you pulled it up/down like a slider. You might say "use a slider then if you want to pull it up/down". True, but a slider takes a lot of UI space which sometimes is very precious. More importantly, the slider resolution is limited to it's height, while a knob could for example use the whole screen height for a full turn.
- yoz-y 7y agoIs it better to write one own's GUI in this case? I believe most toolkits have a way to add new controls, so it should be less work to add a knob to GtK, Qt or any other toolkit.
- fasterdom 7y agoTrue, you could write a new Qt control. Then you hit the second requirement: complete bitmap theming, many times of a skeuomorphic kind. This is extremely difficult to do in something like Gtk/Qt.
- torarnv 7y agoBehold, in all its skeuomorphic glory, the Qt styles example: https://doc.qt.io/qt-5/qtwidgets-widgets-styles-example.html https://doc.qt.io/qt-5/qtwidgets-widgets-styles-example.html
- kazinator 7y agoThat looks almost exactly like Motif from 1991, but superimposed with a wood grain pattern.
- FraKtus 7y agoFrom the author "Photon has its own HTML5 inspired canvas drawing engine using Cairo underneath". That means it should render nicely at any resolution, the author says, "resolution independent and allows for HDPI displays". But using Cairo means it should not have a good performance at high resolutions. I have yet to find a fork of Cairo GPU accelerated that supports all the API. So it may fit the bill if you are coding a simple interface, but it will be too slow to render at 60FPS and at high resolution. What comes closest for me is Dear ImGui, but I never saw an interface with those nicely rendered buttons in real-time done with Dear ImGui.
- srikz 7y agoI'm curious if you have come across (and recommend) any framework which lie in between Photon (Cairo) and Dear ImGui. I'm trying to follow all thr efforts in native desktop GUI tools and am currently using Dear ImGui for something which will only be used internally.
- FraKtus 7y agoFor me, nothing is as nice looking as Photon (resolution independent) and GPU friendly to allow 60 FPS cross-platform GUI. It looks like you still need to roll your own. I am currently working with Dear ImGui and found a pipeline where I put SVG icons in a true type front and can then render them resolution independent with Dear ImGui.
- elcritch 7y agoYou might try Scenic. It’s more embedded oriented but does run on desktops using OpenGL. Also it’s new so the component library is pretty small still.
- srikz 7y agoYes, have been excitedly following Scenic since Boyd Multerer's talk about his experiments a couple of years back. Haven't tried it yet as I somehow kept putting off wrapping my head around Elixir and FP
- 7y ago
- kazinator 7y agoNice screenshots; but doesn't seem "FFI friendly", unfortunately.
- tomcam 7y agowhat does that mean? a google search proved fruitless
- SolarNet 7y agoI assume they mean "Foreign Function Interface" this is a modern C++ code base, and hence can not be easily wrapped in a C function pointer for consumption by non-C++ languages.
- RussianCow 7y agoFFI = foreign function interface[0], a way to call functions written in one language (generally C) from another. By "FFI friendly" I think the parent meant that Photon Micro GUI isn't something you can easily use from languages other than C++. [0]: https://en.wikipedia.org/wiki/Foreign_function_interface https://en.wikipedia.org/wiki/Foreign_function_interface
- squarefoot 7y agoBummer. Higher level low footprint languages such as Nim and Crystal would benefit a lot from bindings for this GUI. Probably Lua too, but that's a different context and Lua already has Tekui and others.
- gurkendoktor 7y agoYou can still write Crystal wrappers for it, just not using FFI. This looks like it might be polished enough: https://github.com/Papierkorb/bindgen https://github.com/Papierkorb/bindgen The bigger issue is that Crystal really needs first-class Windows support before people will use it for GUIs...
- srikz 7y agoNanoGUI[1] is another GUI framework which uses NanoVG underneath. Interested to know if the author is familiar with that and what's their take on it. [1]: https://github.com/wjakob/nanogui https://github.com/wjakob/nanogui
- ktpsns 7y agoThis reminds me of the look of Blender's GUI, which is also OpenGL based.
- djowel64 7y agoHi I'm Joel, the the author of Photon. Yes, I know NanoGUI. I actually started with NanoVG. I had problems embedding in a plugin, IIRC. GLFW is not embeddable, IIRC.
- srikz 7y agoI came across Oui-blendish [1] whose goal is to help make blender-like UI [1]: https://bitbucket.org/duangle/oui-blendish/src/default/ https://bitbucket.org/duangle/oui-blendish/src/default/
- deleted 7y ago[deleted]
- hawski 7y agoNo mention of accessibility makes it not enough for more generic applications. That's my main pain point. I would love to have a modern alternative to wxWidgets - something in higher level language than C++. Something that would use GTK+ on GNOME, Qt on KDE, Cocoa on macOS, Cocoa Touch on iOS, Android APIs on Android. Android is the trickiest probably, because I would like it to run without NDK, so compiled down to Android JVM or DEX bytecode. Then it could fit every environment just right. Could means, that it's a first step, because those environments have different HIGs etc. What's interesting is that Lasarus is closest to it, but I would prefer higher level language. Is there a Tcl interpreter written in Java? Then Tcl/Tk could be also an option. Sorry for a bit off-topic rambling, but I would love to see something like it.
- monetus 7y agoThere is androwish, but it is a native port of tcl/tk iirc, not java. https://www.androwish.org/home/home https://www.androwish.org/home/home
- badsectoracula 7y agoOut of curiosity, why isn't Free Pascal high level enough? Also FWIW my LIL scripting language, is sort of Tcl-like and has a Free Pascal implementation (and also a C one) with a (optional) Lazarus drag-drop component: http://runtimeterror.com/tech/lil/ http://runtimeterror.com/tech/lil/ I also have a Lazarus component for FPLIL for exposing a Tk-ish (well, not exactly, but on a similar spirit) API: https://i.imgur.com/G8hto0N.gif https://i.imgur.com/G8hto0N.gif Though that last one isn't available anywhere... perhaps i should upload it at the LIL site above. It is just that it hadn't had much testing (i mainly wrote it for my 3D world editor so that scripts can expose simple UIs on the sidebar or in dialog boxes but haven't used it much elsewhere). EDIT: i decided to take a few minutes and upload the LILGUI stuff to the site above.
- skybrian 7y agoAt first glance, LIL does look very similar to Tcl. Do you consider it a stripped-down Tcl or are there other language features you added?
- reaperducer 7y agoToo many skeuomorphic elements. He needs to take the controls people know and understand and replace them with cryptic methods that require new learning, and are hidden from view by default. Otherwise no one will take it seriously as a modern UI.
- mankeysee 7y agoThe mobile and web people are probably triggered at this ui lol
- asutekku 7y agoTo be fair, knobs as shown in the screenshot are afwul in an usability’s point of view (how do i rotate this, how to fine tune the value), but they convey the information in the context of music plugins really well for the person most likely to use them.
- mirimir 7y agoYes, how does one adjust the setting of a knob? Gestures?
- stabbles 7y agoAwesome, that looks like an attempt to replace QML by native C++. Would be great if there was a SwiftUI inspired C++ UI framework (well, of course C++ might not lend itself so well for the job, but I'm just very curious what it would look like if someone makes a real attempt).
- zengid 7y agoIDK about y'all but the main page (https://www.cycfi.com/ https://www.cycfi.com/) this post is on has a bunch of interesting audio hardware/software posts. Pretty neat company!
- amelius 7y agoLooks promising. Some things I'd like to see explained: - How does rendering work? Is it using retained mode or not? - Does the system prevent unnecessary work, such as repainting of certain elements (even when scrolling, since scrolling can be implemented using a less expensive bitblt)? - How easy (natural) is it to change the UI hierarchy once it is running? - Is memory management natural? Is there a form of garbage collection or reference counting for UI elements? How easy is it to accidentally refer to deleted UI elements? - Does it make use of a GPU if available?
- djowel64 7y agoI'll do that in a follow up post. To be honest, I wasn’t ready to release this yet, not in this form, so the info is very preliminary, as noted in the introduction: "Let me tell you a bit about Photon… From my previous post about Ascend, some folks noticed its existence and actually found the github repository. The repository is rather underwhelming, I thought to myself, devoid of any documentation of any sort, other than a very terse description: “Photon Micro GUI library”. I figured perhaps it’s good to post preliminary information about it, maybe starting with some history and basic architecture and design principles and code snippets. Just enough to give it a bit of justice that it deserves." And then one of my Boost (https://www.boost.org/ https://www.boost.org/) peers twitted about it, and ended up being posted here. It seems I have a lot of work to do...
- zengid 7y agoHey thank you for your work. Giving the world a permissive Plugin-capable GUI library is a really special thing, so from us plugin developers I hope you know we appreciate your efforts.
- tyingq 7y agoWas confused for a moment because the Photon UI for QNX is also called a "Micro GUI". http://www.qnx.com/developers/docs/6.5.0/index.jsp?topic=%2Fcom.qnx.doc.neutrino_sys_arch%2Fphoton.html http://www.qnx.com/developers/docs/6.5.0/index.jsp?topic=%2F...
- rbanffy 7y agoSame here. Such a shame I need to go into my car to run QNX...
- djowel64 7y agoHi I'm Joel, the the author of Photon. It seems I have to change the name. Bummer :-) Anyway, I didn't know. Thanks for pointing it out.
- rbanffy 7y agoAll good names are taken
- djowel64 7y agoJust a stupid mistake, really. I know QNX, but I haven't used it and I didn't know the QNX Photon name. You guys are right. I should've done a 3 minute Google. My bad.
- djowel64 7y agoI now changed the name to Elemental C++ GUI library. Again, sorry for the stupid mistake and the confusion it caused.
- morganvachon 7y agoIf you're willing to share, I'm curious how you came up with the name, especially with it being literally one character (a space) different from such an established project from two decades ago. And kudos to you being willing to change it now that you know. It probably only really affects old OS and embedded nerds like me, and as an amateur musician I do find your project interesting, but I have to admit I got my hopes up that QNX Photon had finally been open sourced, or at least brought up to modern standards with a new release.
- qwerty456127 7y agoPhoton was the best I've ever seen. Not the most brilliant desktop environment UI (clearly modern Win7/Unity/Mac-like panels + Mac/Ubuntu-like keyboard features are better, let alone tiling WMs but these are only good with big displays) but the most cozy controls look&feel styling and a great C++Builder-like visual RAD IDE.
- Razengan 7y agoMy current fantasy is that Apple would open-source SwiftUI and the industry converges around that for native UIs, adding support for custom third-party skins/themes later. If they can already do it for such distinct devices as Mac, iPhone, iPad, TV and Watch, there's no reason it can' be adapted for Windows, Linux and Android as well. This is something that should have happened 5 years ago, before Electron etc. had a chance to fill in a obviously much-needed need. Really, why do we need anything more than "Button" to describe a button, or "List" to describe a list, on any GUI? HTML solved this a trillion years ago, it's a wonder it took so long to be wholeheartedly adopted for native UIs. I know Microsoft tried with WPF/XAML but it didn't seem to catch on.
- pjmlp 7y agoIt certainly did catch on Windows, served as influence to JavaFX and QML design, and the WPF grid layout landed on the Web as the initial CSS Grid proposal.
- Razengan 7y agoAre most Windows apps currently designed with WPF or something else? I have always looked to things like the Calculator and Notepad as a signal of confidence; I know there’s little reason to rewrite them, but the proof of the pudding would be if Microsoft updated something as “simple” as those applets to their championed UI framework. I know Visual Studio (and their abandoned Expression Studio) is/was built with WPF, but what’s the score in the “wild”?
- pjmlp 7y agoMost greenfield enterprise apps are WPF/UWP, some still insist on using Forms though. No one uses MFC/ATL for greenfield applications on Windows. When C++ comes into play, it is plugged via DLLs or COM into .NET applications (or even via C++/CX, C++/WinRT or C++/CLI). As for pure Win32 C style, for greenfield apps, only if are feeling masochist. Not counting 3rd party alternatives here like Qt, Delphi or C++ Builder.
- mwcampbell 7y agoPlease, please, please don’t use a GUI toolkit like this, that draws its own widgets rather than using platform standard ones, when developing a plugin for a digital audio workstation (e.g. VST or Audio Unit), as this author is apparently doing. Unless someone puts in all the extra effort to implement platform-specific accessibility APIs for said toolkit. Inaccessible DAW plugins are a problem for blind musicians and audio engineers because of GUI toolkits like this one. Maybe screen readers will eventually use some kind of machine learning to provide access to otherwise inaccessible GUIs, but that’s probably still a long way off. So for now, we need application developers to do their part. I don’t actually know what the best cross-platform solution is. Is wxWidgets fully functional in a context where it doesn’t own the event loop? I suspect not on Windows in particular. Yes, yes, I know it’s ugly 90s C++, but really, what’s more important, code aesthetics or usability?
- seanmcdirmid 7y agoIt isn’t really a problem of being cross platform: I don’t think platform UIs have enough richness to handle such applications without a lot of non standard components. You can only do so much with sliders. Likewise, accessibility capabilities rely on very standard generic UI capabilities. Once you go beyond that with professional tooling, accessibility will have to be custom as well.
- mwcampbell 7y agoI'm not convinced that standard controls are insufficient for a DAW plugin UI. Can you please explain why? Is it all about looks, or are there actually usability problems for sighted users?
- seanmcdirmid 7y agoLet me flip that question around: given what the plugin UI does, how would the interface actually look using LCD UI components and would the experience even be meaningful for unsighted users? Real time scrubbing and mixing with...a screen reader...how does that even work? I’m sure it could work, but you would still wind up with something as custom as seen here, perhaps even more so. Accessibility isn’t a free lunch except in very generic limited use contexts.