Remix.run Logo
rekabis 3 hours ago

> I think this will smack the hands of developers who don’t manage RAM well

And hopefully kill Electron.

I have never seen the point of spinning up a 300+Mb app just to display something that ought to need only 500Kb to paint onto the screen.

api 3 hours ago | parent | next [-]

The point is being able to write it once with web developers instead of writing it a minimum of twice (Windows and macOS) with much harder to hire native UI developers.

aeonfox 2 hours ago | parent | next [-]

And HTML/CSS/JS are far more powerful for designing than any of SwiftUI/IB on Apple, Jetpack/XML on Android, or WPF/WinUI on Windows, leaving aside that this is what designers, design platforms and AI models already work best with. Even if all the major OSes converged on one solution, it still wouldn't compete on ergonomics or declarative power for designing.

rTX5CMRXIfFG an hour ago | parent [-]

Lol SwiftUI/Jetpack/WPF aren’t design tools, they’re for writing native UI code. They’re simply not the right tool for building mockups.

I don’t see how design workflows matter in the conversation about cross-platform vs native and RAM efficiency since designers can always write their mockups in HTML/CSS/JS in isolation whenever they like and with any tool of their choice. You could even use purely GUI-based approaches like Figma or Sketch or any photo/vector editor, just tapping buttons and not writing a single line of web frontend code.

nutjob2 an hour ago | parent | prev [-]

You mean the point is to dump it all on the end user's machine, hogging its resources.

It's bad enough having to run one boated browser, now we have to run multiples?

This is not the right path.

righthand 3 hours ago | parent | prev | next [-]

The point is you can be lazy and write the app in html and js. Then you dont need to write c, even though c syntax is similar to js syntax and most gui apps wont require needing advanced c features if the gui framework is generous enough.

Now that everyone who cant be bothered, vibe codes, and electron apps are the overevangelized norm… People will probably not even worry about writing js and electron will be here to stay. The only way out is to evangelize something else.

Like how half the websites have giant in your face cookie banners and half have minimalist banners. The experience will still suck for the end user because the dev doesnt care and neither do the business leaders.

david-gpu 3 hours ago | parent | next [-]

Syntax ain't the problem. The semantics of C and JS could not be more different.

righthand 3 hours ago | parent [-]

But the point isn’t that they’re more different than alike. The point is that learning c is not really that hard it’s just that corporations don’t want you building apps with a stack they don’t control.

If a js dev really wanted to it wouldn’t be a huge uphill climb to code a c app because the syntax and concepts are similar enough.

dminik 2 hours ago | parent | prev | next [-]

What "advanced features" are there to speak of in C? What does the syntax of C being similar to JS matter?

This comment makes no sense.

righthand 2 hours ago | parent [-]

Well theres the whole c89 vs c99. I’ll let you figure the rest out since it’s a puzzle in your perspective.

michaelt 3 hours ago | parent | prev [-]

Honestly C and JavaScript could hardly be more different, as languages.

About the only thing they share is curly braces.

Dylan16807 2 hours ago | parent | prev | next [-]

You do need a couple framebuffers, but for the most part yeah...

lmm 34 minutes ago | parent | prev [-]

Who cares about 300Mb, where is that going to move the needle for you? And if the alternative is a memory-unsafe language then 300Mb is a price more than worth paying. Likewise if the alternative is the app never getting started, or being single-platform-only, because the available build systems suck too bad.

There ought to be a short one-liner that anyone can run to get easily installable "binaries" for their PyQt app for all major platforms. But there isn't, you have to dig up some blog post with 3 config files and a 10 argument incantation and follow it (and every blog post has a different one) when you just wanted to spend 10 minutes writing some code to solve your problem (which is how every good program gets started). So we're stuck with Electron.

tcfhgj 26 minutes ago | parent [-]

> And if the alternative is a memory-unsafe language

and if not?

lmm 17 minutes ago | parent [-]

> and if not?

If the alternative is memory-safe and easy to build, then maybe people will switch. But until it is it's irresponsible to even try to get them to do so.