News for hackers. Stuff that matters.
Re:Gio – write immediate-mode GUI programs in Go by ClawsOnPaws on Wednesday May 26, 2021 @05:02AM (#27288042)
I know that this project is still in very early stages, however as I often do, I've come here to mention accessibility. I've run the examples on both Mac and Windows, and as expected, I can't use either of them. This is not a strict criticism yet and I'm aware how difficult it is to interface with accessibility API's, but I do hope that if this project does make it far enough that this will be considered. Pretty much everything that draws their UI directly to the screen using OpenGL or similar immediately makes me think that I probably don't even need to try the program to know that it's inaccessible, and more often than not I'm right. If you're building an app using these gui toolkits, please do keep this in mind.
Re:Gio – write immediate-mode GUI programs in Go by pqb on Wednesday May 26, 2021 @06:15AM (#27288510)
This, hundreds times this. I can't say how many years in a row I was experimenting with various GUI toolkits, libraries and concepts of an application like rxi/lite editor [0]. While I saw many good looking implementations but the very first what caught my attention was lack of any kind support to screen-reading software or problem with displaying right-click context menus. I even remember previous HN discussion when I pointed out few projects that could provide some screen-readers support [1]. Sadly, I would say 95% of all GUIs I know do not care about the accessibility.

From the positive side, I am glad more and more hackers on HN focus on that matter. Also worth noting big players on the market really do take that point seriously, e.g. Flutter has a Semantics tag [2].

[0]: https://github.com/rxi/lite

[1]: https://news.ycombinator.com/item?id=26223380

[2]: https://api.flutter.dev/flutter/widgets/Semantics-class.html

Re:Gio – write immediate-mode GUI programs in Go by slimsag on Wednesday May 26, 2021 @07:48AM (#27289254)
If we want more accessible UIs, we need to demand better standard accessibility APIs from OS vendors Microsoft and Apple.

Unity has no official support for screenreaders or colorblind modes. Unreal has both. If an major game engine developer like Unity cannot be bothered to add support, can we really expect the little developer hacking away on some OpenGL side project to?

Most people working with OpenGL use GLFW (or sometimes SDL), neither have any cross-platform API for supporting screen readers. Why? Because not only do Windows and MacOS have different APIs, but different screen readers, braille displays, etc. have different APIs.

But okay - let's look at the web. It's the most accessible platform of them all, right? What have Google/Apple/Mozilla done to support developers adding screenreader support from WebGL and Canvas-based applications? -> not a whole lot. You need to inject text into a hidden div, which also has performance implications so you need to build a UI to toggle it on/off or detect accessibility the way Flutter Web does.

We should have better accessibility, but as long as we expect developers to run through several hours/days of hoops to get even something basic working - it's just not going to happen, and that is mostly the fault of extremely poor platform APIs.

Re:Gio – write immediate-mode GUI programs in Go by mwcampbell on Wednesday May 26, 2021 @09:15AM (#27290086)
> extremely poor platform APIs

As a former member of the Windows accessibility team at Microsoft, I'd appreciate your thoughts on what makes the platform accessibility APIs extremely poor. I have my own thoughts on what makes them difficult to implement, but I'd like to hear your perspective first.

Re:Gio – write immediate-mode GUI programs in Go by xyzzy_plugh on Wednesday May 26, 2021 @02:36PM (#27294368)
I've dabbled in this space and it would easily, easily be more code than all of Gio just to get basic accessibility integration in Windows. COM, OLE, a heavy bias towards automatically working with native UI elements which are obviously not used here. It's just not a user friendly API. Hell, that applies to anything that uses COM
Re:Gio – write immediate-mode GUI programs in Go by zxzax on Wednesday May 26, 2021 @02:59PM (#27294644)
Could that be solved by having better golang bindings for COM/OLE? Is it a problem of too much boilerplate?
Re:Gio – write immediate-mode GUI programs in Go by xyzzy_plugh on Wednesday May 26, 2021 @05:27PM (#27296342)
That's a big part of it. Another part is that most Go developers want to keep their Cgo dependencies as small as possible (preferably zero) for portability and performance reasons. It's also problematic that Go is not really OOP, and in particular immediate mode programming implies that state is inferred by the pass each frame -- meshing this with the COM/OLE model is bananas. You basically need to do everything the library is doing to draw, cache and render the UI again to render the state in COM. It's a ton of bookkeeping.

Worse still, while the Gio layout engine is pretty good at culling non-visible stuff, ultimately the framework doesn't know what will be visible until we're in GPU land, so there would have to be a ton of bookkeeping added to test if, for example, some text was clipped or if things were overlapping.

In practice, the best way to model things would be to just allow the developer to do something equivalent to pushing fields full of ARIA information like in the browser. But now you're losing all the advantages of the immediate mode and layout engine, etc.

It's a lose/lose situation, unfortunately.

I think the real solution is somewhere in the middle. I think screen readers need to grow some OCR abilities, and libraries like Gio need to learn some better navigation tech, like supporting tab, keyboard nav, etc. Something like that.

Re:Gio – write immediate-mode GUI programs in Go by zxzax on Wednesday May 26, 2021 @05:35PM (#27296421)
Screen readers doing OCR is a big no-no. There is no possible way that will have the effect you want it to have. The text-to-speech part is the absolute bare minimum of what a screen reader is actually doing. For example that would break horribly with the situation you describe, where some piece of text gets clipped.

Just IMO, it's unrealistic to expect to have an accessible GUI that stores no state, does none of that type of bookkeeping, has no OOP model, and only outputs to pixels. The point with these type of assistive technologies is that the user can't work with that type of visual data, they need more state presented to them. Sure, it makes everything easier to develop when you cut it all out and only use immediate mode, but that's exactly the problem: everything else has been cut out, on purpose.

Re:Gio – write immediate-mode GUI programs in Go by xyzzy_plugh on Wednesday May 26, 2021 @09:18PM (#27298241)
> For example that would break horribly with the situation you describe, where some piece of text gets clipped.

Forgive my ignorance, but what should happen here? Let say I have a scrollable text pane with an entire novel in it.

I agree there should still be a mechanism to pass more accessibility data than OCR could extract. What is the bare minimum information that is required? Pretend there is no UX model -- arbitrary things could be presented (like in a video game).

In particular, with Gio there isn't necessarily a single set of widgets or UX. Gio has a small set of Material Design compliant widgets, but is mostly a library for composing immediate mode graphics. For example I have several custom widgets, some that only interact with the keyboard, some that don't have any text at all (just graphics or animations), one is a akin to a 2D-scrollable map, click-to-drag Google maps style. I'm not really sure where I'd begin in making these accessible. How should something like Google Earth be made accessible, ideally?

Re:Gio – write immediate-mode GUI programs in Go by mwcampbell on Wednesday May 26, 2021 @05:52PM (#27296565)
Have you heard of the Screen Recognition feature in iOS 14? I haven't had a chance to use it myself yet. From what I've heard, it's impressive, but not a complete solution, at least not yet. Apple published a paper about it here:

https://machinelearning.apple.com/research/creating-accessib...

Re:Gio – write immediate-mode GUI programs in Go by zxzax on Wednesday May 26, 2021 @06:06PM (#27296699)
That's quite interesting, thank you. I haven't heard of that. My only concern with that is, I hope some app developers don't see it as an excuse to avoid using the native accessibility APIs and adding the necessary properties to their controls.
Re:Gio – write immediate-mode GUI programs in Go by jcelerier on Wednesday May 26, 2021 @04:08PM (#27295441)
Qt supports accessibility on windows without issues afaik, it's a couple thousand lines of code
Re:Gio – write immediate-mode GUI programs in Go by xyzzy_plugh on Wednesday May 26, 2021 @05:31PM (#27296386)
Qt is retained, not immediate mode.
Re:Gio – write immediate-mode GUI programs in Go by egnehots on Wednesday May 26, 2021 @01:31PM (#27293509)
really the major pain point is more the lack of cross platform APIs.
Re:Gio – write immediate-mode GUI programs in Go by zxzax on Wednesday May 26, 2021 @02:28PM (#27294270)
Such cross platform API would belong in a cross platform toolkit, it really makes no sense for Windows to provide that. For example Qt has a cross platform accessibility API, and GTK is currently working on making theirs cross platform. Maybe somebody should move this functionality out into a standalone library?
Re:Gio – write immediate-mode GUI programs in Go by mwcampbell on Wednesday May 26, 2021 @02:46PM (#27294480)
> Maybe somebody should move this functionality out into a standalone library?

I've been thinking about this for a while. Below is an edited excerpt from a message that I wrote to a colleague a few months ago, about how I think I should go about such a project:

---

I've been thinking about the problem of multiple programming languages, and even multiple programming styles within the same language. Do we implement a C library that would make hard-core Unix and Linux folks happy? A library in a subset of C++ that some developers of games and graphics would be comfortable with? A more modern style of C++ that would make some other developers happy? And where would that leave folks working in Java, or C# like the Unity crowd? Of course, different platforms have varying levels of support for different languages. And there are more languages coming into popularity or on the horizon, like Swift and Rust.

So I think what we really want is a cross-platform message format or protocol, with multiple implementations: multiple providers on the application/toolkit side, and multiple client libraries on the platform side. The client libraries could be written in each platform's native language (e.g. C++ for Windows, Java for Android, Swift for Apple platforms, or JavaScript for the web), and separately, provider libraries could be implemented in multiple languages. All major programming languages can work with binary data buffers. And since none of us want to work directly with those raw bytes, we could use an existing standard like Google Protocol Buffers, which already has implementations in several languages. Initially, for desktop and mobile platforms as well as web applications, this protocol would just be used internally between components in the same application process. But I can dream about platforms themselves adopting the protocol someday. There would have to be glue layers between cross-platform providers and platform-specific clients, but if we design this right, the glue could be kept pretty thin, with most of the complexity being kept on one side or the other, so we don't have a multiplication of effort for n toolkits or applications on m platforms.

I think the protocol should be push-based, rather than pull-based like Windows UI Automation and some other accessibility APIs. That is, the application/toolkit would push full information about objects in the accessibility tree when it first creates that tree, and incremental updates when objects are created or destroyed, when properties change, when text content changes, etc. That's probably the only thing that's going to work for the web platform, and I think it's a model that other platforms would do well to adopt. (It's probably too late for Windows, but I dream of replacing the current accessibility model on desktop Linux someday, after my non-compete with Microsoft expires.) The challenge with a push model is making it efficient; we don't want to re-push the whole contents of a large text box when the user types a single character, and when we do need to push all contents, we need to do so efficiently. And sometimes we really do need to push a lot of information. For example, for a text box, we need the screen coordinates of every character, plus all of the boundaries between words.

Luckily, a push-based accessibility architecture has been done before, internally in the Chromium browser engine. As you probably know, Chromium has a multi-process model, where web pages are rendered in sandboxed processes, which communicate with a master browser process that interfaces with the OS. The browser process is not allowed to do blocking IPC requests into the renderer processes, so it can't implement synchronous, pull-based accessibility APIs like UIA in the obvious way. So the Chromium team implemented a protocol where the renderer processes push their accessibility trees, and incremental updates to those trees, over to the browser process, which can then store the trees in memory and then provide information to UIA or other APIs on request. The pushed trees are comprehensive, including the information I mentioned about text. Chromium does this using its own binary protocol called Mojo, which is kind of like Protocol Buffers but strongly tied to Chromium. So, while I'll take design inspiration from Chromium, I probably won't take the actual protocol or code.

I also want my protocol to scale down to embedded platforms. Accessibility on devices running embedded software (i.e. not Windows or another general-purpose OS) is basically an unsolved problem; as far as I know, device makers have to implement their own custom self-voicing interfaces, if they do anything about the problem at all. But imagine a standard where a user can pull out their smartphone, connect to the specialized device over Bluetooth or WiFi, and get an accessible interface to the device on their phone. Yeah, I'm swinging for the fence with this project. To pull this off, I think the protocol would need to be not only push-based but streaming, allowing providers to send out accessibility information without having to build up and maintain much extra state in memory. This would also help with the immediate-mode GUIs that are used in some games and game development tools. If we design the protocol right, these immediate-mode toolkits should be able to push out accessibility information and events at the same time that they're making OpenGL (or similar) calls to draw the current frame, again without having to hold much extra state in memory, which is something that these toolkits try to avoid.

Re:Gio – write immediate-mode GUI programs in Go by neverartful on Thursday May 27, 2021 @08:33AM (#27302242)
I've been thinking of something very similar to this and have been working on the implementations. I currently have front-ends written in Java (Swing and SWT), Pascal (Delphi VCL, Delphi FMX, Lazarus LCL), C++ (wxWidgets and Gtk). I also have a HTML/JS prototype. I have backends written in Java, C#, Go, Crystal, and Nim. For the protocol I'm using JSON via HTTP. The more I work with this approach the more advantages I see. I think you're on to something.
Re:Gio – write immediate-mode GUI programs in Go by mwcampbell on Thursday May 27, 2021 @08:54AM (#27302470)
Based on the set of front-ends, it sounds like the goal of your project is a cross-language GUI toolkit wrapper. Is that correct? The goal of my project is a cross-platform and cross-language accessibility abstraction.
Re:Gio – write immediate-mode GUI programs in Go by zxzax on Wednesday May 26, 2021 @04:11PM (#27295480)
That seems like it could be interesting. It sounds like you would need to have part of a library store and diff the tree state, and then send updates based on that? You could use that part for immediate mode GUIs, and then retained mode GUIs could skip it and maintain their own trees, and just deal with the protocol, maybe even the raw protobuf bindings or whatever it is you choose.

The Linux desktop environments could really use more people working on the accessibility stack, it's really outdated at the moment.

Re:Gio – write immediate-mode GUI programs in Go by jcelerier on Wednesday May 26, 2021 @04:09PM (#27295451)
You can use d-bus on Mac, windows and Linux.
Re:Gio – write immediate-mode GUI programs in Go by iudqnolq on Wednesday May 26, 2021 @08:33AM (#27289689)
> Unity has no official support for screenreaders or colorblind modes. Unreal has both. If an major game engine developer like Unity cannot be bothered to add support, can we really expect the little developer hacking away on some OpenGL side project to?

Games are special because the means of interaction is often a core part of the experience. An accessibility mode for a game can be a huge amount of work. Not to say that some people don't do that huge amount of work (which is great) but games lacking accessibility is no excuse to use game-like development practices to write apps that could otherwise be relatively easily made accessibile.

Re:Gio – write immediate-mode GUI programs in Go by CJefferson on Wednesday May 26, 2021 @11:21AM (#27291684)
Apple's accessibility is excellent if you use their GUI library. Windows is good and improving.

I'm not positive what you want them to provide-- some kind of "fake GUI?" I might not be imaginative enough, but I can't imagine how that would work.

Re:Gio – write immediate-mode GUI programs in Go by amelius on Wednesday May 26, 2021 @07:31AM (#27289111)
In my opinion, accessibility should be implemented at the OS level. The OS can, for example, run OCR on the entire screen and turn bitmaps into selectable text, read text out loud, etc. This kind of functionality shouldn't be replicated on a per-app basis. Accessibility of browsers is usually considered to be very good, but browsers are almost OSes, so why not lift this one more level into the OS?
Re:Gio – write immediate-mode GUI programs in Go by masklinn on Wednesday May 26, 2021 @02:13PM (#27294046)
> In my opinion, accessibility should be implemented at the OS level.

Which it is. Apple has been praised for the accessibility of both macOS and iOS for years if not decades, accessibility concerns have been baked into Cocoa forever. And accessibility is literally a top level category of the Settings app.

And I know that Windows has been improving by leaps and bounds.

> The OS can, for example, run OCR on the entire screen and turn bitmaps into selectable text, read text out loud, etc

That exists (look up VoiceOver Recognition). However it can not be reliable, and will never be anywhere near as good as actual semantic annotation.

Image recognition has no way to understand that the physical UI layout has no relation to its logical setup, nor does it have any way to differentiate between semantic and decorative content, or to see through invisibility to know that a button is a menu versus an action.

Re:Gio – write immediate-mode GUI programs in Go by zxzax on Wednesday May 26, 2021 @01:14PM (#27293274)
That is not really going to work, at all. To have a good experience, a screen reader needs more contextual information than just the text.
Re:Gio – write immediate-mode GUI programs in Go by p_l on Wednesday May 26, 2021 @05:45PM (#27296498)
OSes do provide accessibility APIs - and usually if you use one of the more supported graphic toolkits there are somewhat easy ways to integrate directly in semantic ways, without needing to OCR and do fortune telling.

Usually it means that you need a deferred mode semantic tree of the application for accessibility UI to walk through, though.

Re:Gio – write immediate-mode GUI programs in Go by mtzet on Wednesday May 26, 2021 @09:13AM (#27290053)
This gets brought up pretty much every time immediate mode GUIs are discussed on HN. I think your comment is reasonable, and I don't disagree, but I also think it's important to not throw the baby out with the bathwater and dismiss immediate mode GUIs for accessibility reasons.

It's not at all clear to me that the right approach is to have both the accessibility interface and the GUI be generated from the same components. It seems to me that it's just approaching the lowest common denominator of a passable GUI and a passable accessibility interface.

The traditional widget-style GUI paradigm asks you to essentially copy all your application data into their format and to keep this format in sync with your own data. This is tedious, and I believe hinders the creation of better GUIs. On the flip-side, owning your data structure means it can indeed hook into the accessibility API for you.

Immediate mode GUIs provide an alternative approach, where they only handle rendering stuff on screen. Since all the data structures are now properly controlled by the programmer, it is much easier to create dynamic GUIs. Taking a step back like this provides an opportunity to further the state of the art.

The solution I see to providing accessibility in immediate mode GUIs is that the programmer has to hook into the accessibility API themselves -- if it makes sense. It's not clear to me that certain advanced GUI programs can ever be very accessible. Yes, this is more work, but there's also an opportunity to create richer experiences for people with disabilities.

Re:Gio – write immediate-mode GUI programs in Go by mwcampbell on Wednesday May 26, 2021 @10:04AM (#27290622)
> This gets brought up pretty much every time immediate mode GUIs are discussed on HN. I think your comment is reasonable, and I don't disagree, but I also think it's important to not throw the baby out with the bathwater and dismiss immediate mode GUIs for accessibility reasons.

I can only talk about my own motivation for repeatedly bringing this up. If a developer is unaware that they're choosing an inaccessible GUI toolkit for their application, and that application is then required for a particular job, then that developer may end up unwittingly preventing some people from doing that job. And this isn't just hypothetical for me; I know of a blind person who lost his job (luckily only temporarily) because of an inaccessible application. So I think it's entirely reasonable for an application developer to dismiss a GUI toolkit because it's inaccessible. I wish more developers would research this on their own before choosing a toolkit for their applications. But since many don't, I feel obligated to draw attention to it. I'm glad I'm not the only one.

As for your suggestion that applications should implement the platform accessibility APIs themselves: First, it's impractical to expect application-level code to do this directly. The Windows accessibility APIs are notoriously hard to implement correctly. And my understanding is that the Mac, iOS, and Android accessibility APIs are only easy to implement if the application is written in the platform's native programming language. Now, these problems could be solved with an open-source wrapper library -- the SDL or GLFW of accessibility. And I'm planning to implement such a library myself sometime. But my plan is for that library to be used by toolkits, not applications. Because if every application has to directly implement accessibility in parallel with its GUI, then it's a safe bet that even fewer applications will be accessible. We want to get to a place where as many applications as possible can be accessible by default, with minimal effort on the part of the application developers.

Re:Gio – write immediate-mode GUI programs in Go by politician on Wednesday May 26, 2021 @01:56PM (#27293868)
I think there's a difference between asking applications to implement the accessibility APIs themselves and asking applications to use accessibility APIs provided by the OS.

A graphics application should be able to submit draw calls or queues to a OS subsystem that, for example, generates a comparable audio space, performs colorspace/size transformations for improving visibility, etc. Developers should just be responsible for plugging in to these systems, and the systems themselves should be as standardized as OpenGL, Vulkan, DirectX.

Re:Gio – write immediate-mode GUI programs in Go by zxzax on Wednesday May 26, 2021 @02:24PM (#27294217)
Applications don't have to implement this, the toolkit is supposed to handle it. It happens at the layer above Vulkan/DirectX, because those APIs are too low level and don't know anything window controls, text, etc. When applications disregard the platform's toolkit and use another toolkit that is not at feature parity with the one provided by the platform, they'll lose functionality. That's always been the case.
Re:Gio – write immediate-mode GUI programs in Go by politician on Wednesday May 26, 2021 @05:03PM (#27296075)
What I'm saying is that there should be a cross-platform standard like Vulkan or like the Document Object Model for accessibility. Toolkits should use implementations of that standard to enable accessibility like they use implementations of Vulkan or OpenGL to render graphics. In turn, applications should use the toolkits, as you've said.

I don't know if there is a "Khronos Group" for Accessibility Standards. Maybe there is.

Re:Gio – write immediate-mode GUI programs in Go by zxzax on Wednesday May 26, 2021 @06:53PM (#27297160)
IMO the closest thing to that is WAI-ARIA, the concepts apply anywhere.
Re:Gio – write immediate-mode GUI programs in Go by mwcampbell on Wednesday May 26, 2021 @07:01PM (#27297214)
I think you're right. Unfortunately, that isn't very helpful for developers not using the web platform.
Re:Gio – write immediate-mode GUI programs in Go by CJefferson on Wednesday May 26, 2021 @11:25AM (#27291750)
I know people who use XCode through accessibility on Macs, and tell me it works well. Site, some things (3d graphics) are going to be hard to ever make accessable, but what exists is fairly good, if you just standard widgets. Blind people are using Macs and iPhones, and finding them highly effective.

I suspect most Devs would never link up and keep up to date an alternative accessibility interface. Also there is a lot of benefit to the accessable and standard interface being close, to make it easy to cooperate.

Re:Gio – write immediate-mode GUI programs in Go by zxzax on Wednesday May 26, 2021 @01:12PM (#27293243)
It gets brought up because, at least from my perspective, none of the immediate mode toolkits are addressing this. I understand the desire to keep the code simple and only handle the rendering, but that is fundamentally opposed to the way some assistive technologies work. They need to access the UI as a state tree to even make sense. If the goal with these toolkits is to always avoid storing state information, that isn't ever going to work with screen readers. You can't push this task to the app developer, it really needs to be tied to the toolkit's internal hierarchy and focus handling.

My opinion for the last several years has been, if you use these toolkits, you might just have to accept that your app is not going to be accessible and is not really suitable for anything beyond highly specialized use.

Re:Gio – write immediate-mode GUI programs in Go by ClumsyPilot on Wednesday May 26, 2021 @05:12AM (#27288105)
This is the one real (and legal) reason why people should actually use OS UI. To replicate this functionality is a tall order.

The 'looks native' thing is mostly noise

Re:Gio – write immediate-mode GUI programs in Go by twobitshifter on Wednesday May 26, 2021 @01:45PM (#27293710)
https://news.ycombinator.com/item?id=26212787

The same valid comment was made when nuklear was discussed a few months back.

Many would love to unshackle themselves from the limitations of working with UI toolkits and it’s increasingly difficult/impossible to fulfill all the requirements we place on software, especially for solo developers. I don’t know how many one off tools I’ve written where the only interface is the command line over the years. It would be nice to have a simple step up from that as offered by Imgui tools.

Re:Gio – write immediate-mode GUI programs in Go by Ennea on Wednesday May 26, 2021 @06:42AM (#27288716)
As someone who occasionally writes tiny tools with some GUI, how can I test how well they work with accessibility tools?
Re:Gio – write immediate-mode GUI programs in Go by supercheetah on Wednesday May 26, 2021 @07:53AM (#27289294)
On Windows, test it with NVDA[1] or JAWS[2]. On Linux, in Gnome, there's a screen reader that can be enabled in the settings under accessibility. I'm not sure what there is for Mac, Android, or iOS offhand.

Also, test in high contrast modes, and screen magnifiers.

1. https://www.nvaccess.org/

2. https://www.freedomscientific.com/products/software/jaws/

Re:Gio – write immediate-mode GUI programs in Go by mwcampbell on Wednesday May 26, 2021 @09:48AM (#27290451)
To expand on this:

Windows also has the Narrator screen reader built in, and in Windows 10, Narrator is a decent screen reader IMO. (Disclosure: I used to be on the Windows accessibility team at Microsoft, where I worked on Narrator.) To enable Narrator, press Ctrl+Win+Enter. Narrator has a built-in tutorial (not written by me) to help you get started.

Mac and iOS has VoiceOver built in. To enable it on Mac, press Command+F5. On iOS, you may be able to triple-press the home button, on devices that have one. Failing that, you can find it in Settings.

Android has TalkBack built in. You can find it somewhere in Settings; the specifics are device-dependent.

Re:Gio – write immediate-mode GUI programs in Go by Ennea on Wednesday May 26, 2021 @08:03AM (#27289384)
Thank you, that's very helpful! I'll be saving these for later :)
Re:Gio – write immediate-mode GUI programs in Go by gjvnq on Wednesday May 26, 2021 @09:43AM (#27290382)
Hacky/Unixy solution: Make a CLI version.
Re:Gio – write immediate-mode GUI programs in Go by tenaciousDaniel on Wednesday May 26, 2021 @10:08AM (#27290670)
As a front-end web developer who's looking to get into lower-level UI tech, I'm really curious to learn more about this. So novice question - what's the connection between immediate mode/openGL implementations and accessibility?
Re:Gio – write immediate-mode GUI programs in Go by mwcampbell on Wednesday May 26, 2021 @10:27AM (#27290887)
There's no reason in principle why an OpenGL-based GUI must be inaccessible. Qt heavily uses OpenGL, at least on some platforms, but is still more or less accessible.

It's more accurate to say that the vast majority of GUI toolkits that have ever been written are inaccessible, and most OpenGL-based toolkits fall into this category. Accessibility is tedious to implement at the toolkit level, especially in a cross-platform toolkit, so generally only big toolkits with corporate backing get it.

Also, on the web platform, if you abandon semantic HTML and use canvas or WebGL, then you're forfeiting the accessibility that your UI would normally have by default. As far as I know, the only way to make a canvas or WebGL-based UI accessible is to construct a parallel HTML DOM tree (and presumably use CSS to hide it behind the canvas).

Thanks for being curious about this.

Re:Gio – write immediate-mode GUI programs in Go by tapirl on Wednesday May 26, 2021 @06:53AM (#27288812)
It is very helpful for the developers if you could provide more info, such as error messages.
Re:Gio – write immediate-mode GUI programs in Go by iamgopal on Wednesday May 26, 2021 @07:11AM (#27288953)
Ultimately browser as a gui, ( even without JavaScript ) will win, no other gui efforts are at par with that. So a WebKit with api to plug any language backend would be a good idea ( electron without js ). Is there any effort in that direction ?