Hi everyone. I’ve been using C for mostly everything for the last 6 7 years. I’m no C expert but I believe I’m pretty good with it.

I’m trying to build an application and C does not have many choices. The best is raygui but it’s too barebones. I had to implement so much from scratch and it kinda ruins the point.

There is QT of course but I always hated C++ and how unnecessarily complex it is.

Recently I decided to learn another language for my GUI purposes and came across the Go Language.

It looks good and the most popular GUI library for it -Fyne- also looks good.

My question is, is this a good combo for building GUI’s coming from C? Do you guys have any recommendations?

Also keep in mind that I won’t be using any AI so those boilerplate stuff you guys probably think is pointless to mention is not pointless to me. I would appreciate it.

  • farmgineer@nord.pub
    link
    fedilink
    English
    arrow-up
    2
    ·
    15 hours ago

    Does a web app work? If so, go (or rust or whatever) backend with a different frontend (react or something, though simpler is fine if you don’t need all that and especially if only for personal use).

    If not, I have no experience doing actual GUI work in Go. You could always use something like Kotlin which gives you basically any java GUI options you want, but it is java. I started to learn Kotlin a little and it’s fine (reminds me of Go but for JVM so far).

    I imagine python has stuff, but I dislike the language and it’s not the most performant (which may not matter based on usecase). Probably not good if you want to package it as an executable.

    • ducktumn@lemmy.zipOP
      link
      fedilink
      arrow-up
      1
      ·
      14 hours ago

      I’m building a desktop application and it’s a heavy one. Think of it as a simulation of some sort. I don’t think a web app is a good match for that.

      • ulterno@programming.dev
        link
        fedilink
        English
        arrow-up
        3
        ·
        12 hours ago

        You may consider:
        https://www.gtk.org/
        or
        https://wiki.libsdl.org/SDL3/FrontPage

        GTK will be useful for normal windows, buttons and stuff.
        SDL3 is mainly for making games, so it will be a little harder to reduce continuous compute load when you are new to it. It can be doe though.

        Both have all the keyboard/mouse handling and all that stuff. I haven’t tried raygui, so don’t have much to compare.

        So unless you absolutely want to get out of using C, these are pretty good options.

      • GottaHaveFaith@fedia.io
        link
        fedilink
        arrow-up
        3
        ·
        12 hours ago

        The calculation run on the backend, which can be C or Go or whatever. The web part is used only for the GUI