Better HN
topnewbestaskshowjobs
Log inSign up

gen2brain

153 karma · joined Feb 12, 2016 (10y ago) · 96 submissions

Submissions

comment 1d ago · link · parent

Thanks, I have been working on it for a few years, before that it was just binding for original IUP. Sure, I plan to maintain it. What it needs are real apps and users though, 200+ examples and few real apps I have are not enough to expose all issues it might have. I have e.g. gVim port, use it for some time with Qt, it is very smooth.

comment 1d ago · link · parent

Nice, I like this, though, it still needs Apple hardware. I think I would prefer if someone was to improve GNUstep instead. I always knew that in theory it implements the same APIs, etc. but, in my IUP fork, I managed to have the same Cocoa driver/backend compile for macOS and for the GNUstep on Linux/BSD. The driver is a little polluted with ifdefs for APIs that are not implemented though, and needs some patches, but I think it was still worth it.

With the nice modern theme like Rik, you can have global menu like in macOS, and it looks much nicer than default theme. Improve theme, improve GNUstep and there you have it. You can check the GNUstep sample screenshot at https://github.com/gen2brain/iup-go .

comment 2d ago · link · parent

You can check my IUP fork here https://github.com/gen2brain/iup-go , with many drivers/backends for the native controls. And they all have Canvas and GLCanvas controls. Well, maybe not modern, but still the only easy cross-platform API to handle different platforms with more or less the same codebase.

And of course, no need to use Go, you can use C, there is a nice wrapper for C++. You can also build IUP.xcframework and use Swift if you like, and there is a bindgen example that can generate Lua and Python bindings, or can export API model as JSON so you can generate whatever bindings. Simple C API based on IUP and attributes, but very poverfull. Nice docs and 200+ examples, retained, standard events and callbacks, should be easy to start and fast to build native apps everywhere.

comment 1w ago · link · parent

Yes, I used that a lot, I had some crazy configs there, mini TV in dock with XawTV or something, and nice panel. But for years I prefer Openbox, configured once and it just works. Today i also have Labwc, almost same experience, LXQt works fine with both.

comment 2w ago · link · parent

Sure you can, check https://github.com/gen2brain/iup-go , from single dev on Linux that for a long time used VMs for testing, macOS in VM, iOS simulator in that VM (painful), etc. OK, several months ago I bought some old iPhone first, then one month ago I bought Mac mini M1, just for testing. It needed years though, not few weekends, but it is doable.

comment 2w ago · link · parent

You can check https://github.com/gen2brain/iup-go , real native controls everywhere, powerful, same codebase for desktop and mobile apps (different layout though). I hope to release soon, after years in making it finally does everything that is planned. With proper documentation, 200+ examples, etc.

You do not have to use Go, of course C works, and there is a nice wrapper for C++. I have ported gVim, it was a good test that helped me optimize many things, but now I maintain and use it on my desktop with Qt, it is just too good to throw it away. Can also be used with WinUI, Cocoa, FLTK gVim is also nice and slick.

comment 2w ago · link · parent

But, can it work without GPU? All native toolkits have fallback to software rendering. I do not uderstand what is gained, cpu was good enough for that since Windows 95 era? Just do not redraw every frame like in games but retain instead?

comment 3w ago · link · parent

How is that even possible, browser in 60M? Or are you not counting the new web process you get started together with your app?

comment 3w ago · link · parent

I tried to use kmscon before, and it does work nice and is much faster. But, I can only have one app that is using DRM, i.e., I cannot start console/DRM image viewer from such terminal, or mpv, etc. That is a deal breaker and issue for me.

comment 1mo ago · link · parent

Well, that "Go crap" needs some explanation. The reason I am not involved in JS is because I mostly use Go for backend, and I am happy I have no relation with frontend at all. And even that is just small part of my job and what I do daily (Radius, Diameter, etc.). But, I never heard about Go crap (in that context maybe), or experienced any crap there, it is just nice and simple. What are the issues?

comment 1mo ago · link · parent

Yeah, after I posted I realized that Go remark was not correct, but again, I am confused how do you combine all that. JS I can read and understand (well, understand), I have seen it already, TS, I compile TS to JS right, and then I can choose any of the current available runtimes to run that code, correct? And final fat binary that is deployed has what, whatever runtime I choose to be? Huh, I think I guessed that right, I do use such apps, but never bothered to understand how they are actually packed.

comment 1mo ago · link · parent

I have no idea anymore what is happening, and none of the blogposts seem to explain that either. So, if I am to start a new JS or TypeScript project or whatever, what should I choose and why? One runtime used a lot of tokens to rewrite Zig project, one was already Rust, one bought, one rewritten in Go, what is going on?

comment 1mo ago · link · parent

Well, not really DOS, but company where I did migration (15+ years ago) from 4GL and AIX to Linux and Aubit 4GL did exactly that. They all used HyperTerminal (after me, putty) to connect and start all sorts of apps, think, SQL AND UI at the same time, terminal apps, with keyboard shortcuts that MUST be exactly the same, otherwise you would have mutiny.

They are sold a few years ago, new owner just needs a good (and huge) location in the city, if they continued, nothing would change for people working there. They saw Windows as something just for minesweeper and solitaire, nothing else.

comment 1mo ago · link · parent

Dey took er jerbs!

comment 1mo ago · link · parent

After some time, this seems to be the first image format, now in production, not being just the nus product of some video format.

comment 1mo ago · link · parent

My perfect mail client would be something that does not use a browser to show the HTML emails at all. And would need to have text-only option I can enable. And for HTML emails, I would prefer something like html to markdown, that markdown can be mapped to native UI toolkits, they all have some "rich" text support.

I did that in my IUP fork, bold, italic, headings, link, image, table, that can all be mapped to native text widget, can load and save markdown from that.Will it look as intended, no, but, do not create websites when you send emails and everything will be fine.

comment 1mo ago · link · parent

Well, it is what was always considered to be a default toolkit. Sure, I like Qt and prefer such apps but you got a have the GTK installed anyway. It was always difficult to have general toolkit with it when you depend on dozens of dependencies, collection of libraries, not big fat libraries like in Qt, that you can deploy.

GTK4 changed a lot though, like they do not even try anymore, deprecated font dialog because that is better done with XDG portals, but such thing does not even exist. How will that work on macOS and Windows, it cannot? Or what they did with the menus. Toolkits should be user oriented and should not have vision, it just needs to work and provide controls, events, etc., you cannot even position windows in macOS and Windows with GTK4, that is not toolkit that works for users.

I am working on the IUP fork here https://github.com/gen2brain/iup-go , one toolkit to handle them all, and I did my best for GTK4 backend, but from 14 drivers/backends I worked on, it was the worst experience and I had to fight battles with it.

comment 2mo ago · link · parent

Detectors can clearly identify the exact issues. So, what are those issues here? We know, but we don't want to tell our cash-paying customers.

comment 2mo ago · link · parent

It was written in the AGENTS.md, but Claude only read CLAUDE.md. That is how the man-vs-machine war started.

comment 2mo ago · link · parent

I work on the IUP fork, where I have and support the Qt driver, which works with both Qt5 and Qt6, and I only need a couple of checks to make it work on both. I often check if I broke the Qt5 build; nope, all good there, hard to break. For GTK3 and GTK4, those must be separate drivers; there's no way you can handle that with a couple of checks. Everything is different. That was possible to some extent and works with GTK2/GTK3 (single driver), but there are so many checks and workarounds there. Qt is so nice to work with.

comment 2mo ago · link · parent

I am working on the IUP fork (UI toolkit) , with many new drivers/backends and features, and, of course, I added Haiku because it looks and performs so well, it works differently from what I used to see, making it even more interesting. The result: the absolute king in memory usage was the Win32 driver, like 4M for Hello World; in Haiku, that is 3M! For comparison, the GTK4 driver uses 40M; GTK3 and Qt6 ~15. WinUI is something like ~25.

comment 2mo ago · link · parent

My first association when someone mentions Matrox is MPlayer and mga_vid kernel module. I had G200, and hardware YUV acceleration worked perfectly. Direct access to hardware from MPlayer, it worked very nice, in console with `-vo mga` and in X11 with `-vo xmga`, there was no difference at all.

comment 3mo ago · link · parent

I heard this repeated many times. You can create closed-source Qt apps without paying any money. You cannot statically link, though; you must obey the LGPL license; that is all. And yes, you cannot use commercial modules, but that is kinda expected.

comment 3mo ago · link · parent

Sure, you need to wrap it in C, but there is also `cfltk` that is maintained and used in Rust bindings. Btw., the difference in memory usage is huge with GTK4. FLTK hello world is ~10M, GTK3 is ~15M, GTK4 is 40M! With Cairo rendering, it's about 30M, but still a lot.

comment 3mo ago · link · parent

Nice, I just use lxqt-openssh-askpass, but I am on X11. A lighter alternative (for single-text input) would be FLTK. Version 1.4 is really nice, with Wayland support, and they even draw custom window decorations on GNOME. Both Cairo and FLTK should be able to compile with -X; not sure, though, about the status of the Zig bindings.

comment 3mo ago · link · parent

Why not fix all the issues with private jets and yachts first? Why don't they use regular public transportation as we all do? Instead, let's bash poor Clanker, who reviews kernel code.

comment 3mo ago · link · parent

Well, AI or not, it is interesting to see Swift and Flutter without Dart. But is SNI Tray there? I see something in the top-right corner of that panel, but I'm not sure what it is.

comment 4mo ago · link · parent

Yes, and you need an army of people to "wrap" WebKit just like that. E.g., the WebKit port on Haiku, of course, is not in good shape because it has more code than the whole of their OS. EFL once had a WebBrowser control/component, maintained by Tizen devs, but of course, it has now been removed. There is no manpower to maintain such control.

comment 4mo ago · link · parent

I would like to see a similar project that fixes Wayland. Like, can someone vibe-code window positioning, add SSD to GNOME (damage was already done, but still), and add the ability to send events so you can automate and drive the app offscreen for testing.

comment 4mo ago · link · parent

On my device, bars grow as I scroll. I want your feature, being able to just scroll the static page without elements jumping around.
1234