greetings, i want to build a daw (digital audio workstation), but i have no idea where to even start. here are my needs and the options i’ve found:

my needs:

  • load and keep things (audio, midi) in memory
  • cross-platform compatibility is not a requirement

the options i’ve found:

  • flutter
  • gtk/qt
  • raylib (with zig)
  • webassembly (with zig)

[rejected] flutter: the first option that came to my mind was flutter. i thought it would give me a quick start in laying down the ui, but i don’t think it has the capability to fulfill my needs (please correct me if i’m wrong)

gtk/qt (with zig): i wonder if qt provide bindings for zig

raylib (with zig): it’s cool (my choice as of now)

[rejected] webassembly (with zig): it would be an ultimate comfort to build this way ig, but is it possible to make that web app into desktop one (like tauri or something)?

id really appreciate your opinions and advice

ps: i hope i’m clear. i got a headache searching about these. i’ll update this post for more clarity later

final note

Thank you guys for all your opinions and advises. Thanks for explaining the limitations with gtk, things with qt and flutter. That kotlin compose thing was cool too. Thanks for mentioning yabridge thats gonna be helpful. It might not seem like it, but I did listen to your thoughts, and stuck with zig and raylib. Thanks a lot

10 points

Google just killed flutter. Just so you know. They do that a lot. Be careful

permalink
report
reply
5 points

No they didn’t. It literally got an update this week (3.22). Laying off part of the team (which is worrying) is not the same as actually killing it.

permalink
report
parent
reply
1 point

Lol

permalink
report
parent
reply
3 points

i recommend gtk’s libadwaita. it saves alot of time. It has JS Python rust and C bindings.

permalink
report
reply

Bad idea. Very bad idea, especially for more complex projects.

permalink
report
parent
reply
2 points

Well, it is a bad idea if you are building anything not intended to be exclusively a GNOME app.

permalink
report
parent
reply

It’s also a bad idea if you want to build anything that’s more complex than GNOME’s single-purpose apps that lack all kinds of features. Building something as complex as a DAW would be a nightmare with libadwaita.

permalink
report
parent
reply
1 point

Why? It is solid for me

permalink
report
parent
reply

Libadwaita has been specifically designed for simple GNOME-style applications that only have one purpose and don’t include many features. I wouldn’t recommend it for complex project like a DAW.

permalink
report
parent
reply
-1 points

You could use libadwaita

permalink
report
reply
0 points

That’s gtk.

permalink
report
parent
reply
2 points

It is actually a GTK4 theme. You can use GTK4 without libadwaita but not the other way around.

permalink
report
parent
reply
-1 points

I would say a “superset of gtk” since the point of libadwaita is shipping more widgets targeting Gnome UI/UX (including its theme). That’s why they describe it like “Building blocks for modern GNOME applications”.

permalink
report
parent
reply
0 points

I would always go with something cross platform to save you or someone else effort later. I recommend Python to save yourself effort too.

Checkout kivy.

permalink
report
reply
1 point

isnt python slow?

permalink
report
parent
reply
2 points

Yes. For a DAW, I would avoid languages with garbage collection.

permalink
report
parent
reply
0 points

The most important speed to optimize is developer speed. Python is by that measure one of the fastest languages.

CPU speed is negligible

permalink
report
parent
reply
0 points

What are your needs which aren’t being met with flutter? – It’s really just a UI renderer and it has a C/C++/ObjectC/Java underlayer for everything else. It should link fine with existing c libraries. I have done a bit with it recently including desktop dev: https://www.producthunt.com/products/which-browser So hopefully I can answer any questions. – Hit me up on matrix

It seems that Zig is the intended language? If go where a consideration I would point you at this to consider: https://github.com/go-graphics/go-gui-projects too.

permalink
report
reply

Linux

!linux@lemmy.ml

Create post

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

  • Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.
  • No misinformation
  • No NSFW content
  • No hate speech, bigotry, etc

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

Community stats

  • 8.4K

    Monthly active users

  • 6.3K

    Posts

  • 172K

    Comments