Live data from Hacker News

Photon Micro GUI

cycfi.com

21–30 of 127 posts

Re: Photon Micro GUI

#22
post #17

Earlier quoted context omitted.

> They don't provide knobs because they're a bad idea for input I like knobs because the distance from the center of that control (radius of your arc movement) can be a “fineness” or “coarseness” control. I think sliders don’t usually offer this.

Some iPhone apps provide this for the time slider (I believe via the native media player control, although I could be wrong). It is very nice.

I’ve seen this too, and yes, it’s nice. I don’t know where in the stack this feature lives.

Re: Photon Micro GUI

#23
post #8

From 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 cod…

Anyone using Skia?

Re: Photon Micro GUI

#25
No 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.

Re: Photon Micro GUI

#26

Funny 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 ide…

In the early days of the iOS App Store I worked on a music iPad app. Through many hours of user testing and researching prior art, the best solution we came up with was detecting the trajectory of the user input and supporting both vertical dragging and dial-like rotation. It took a shitload of trial and error fine tuning, but it eventually turned out pretty well.

I think many music apps these days give you the option buried somewhere in settings.

Re: Photon Micro GUI

#27
post #25

No 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 A…

There is androwish, but it is a native port of tcl/tk iirc, not java. https://www.androwish.org/home/home

Re: Photon Micro GUI

#28
post #25

No 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 A…

Out 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/

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

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.

Re: Photon Micro GUI

#29
post #23
post #8

From 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 cod…

Anyone using Skia?

Doesn't Skia have a very fragile API? I remember reading that they were breaking their API/ABI all the time. If nothing else, Cairo's API is always backwards compatible.

Re: Photon Micro GUI

#30
post #13

Earlier quoted context omitted.

what does that mean? a google search proved fruitless

FFI = 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

Bummer. 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.
Post reply on HN