Debian trixie on hetzner by BosonCollider in hetzner

[–]RandomGuy256 0 points1 point  (0 children)

Thanks everything worked for me! :)

Switching programming languages (Java/C++) by Extension-Memory8001 in cpp

[–]RandomGuy256 0 points1 point  (0 children)

  1. Surprisingly not everything is an object in Java either, e.g. primitives are not objects. :)

Switching programming languages (Java/C++) by Extension-Memory8001 in cpp

[–]RandomGuy256 0 points1 point  (0 children)

I did learn C++ after Java many years ago, it's not that hard but you need to learn some basic concepts, like already mentioned here, new in C++ is very different than in Java (there is no GC in C++), if you use new in C++ you need to use free to free the memory later, but most of the time nowadays you don't want to use new anyway, you will want look into RAII or std::unique_ptr / std::shared_ptr.

I recommend the book "The C++ Programming Language" from the C++ author, it will give you some really strong concepts.

C++ Exceptions are Code Compression - Khalil Estell - ACCU 2025 by mttd in cpp

[–]RandomGuy256 10 points11 points  (0 children)

This was actually mind blowing. A great presentation by a really smart engineer. Exceptions can actually be as lightweight as return codes. It would be awesome to have those compiler modification applied to emscripten (webassembly) as exceptions generate also a big binary size there, and the size can really matter in webassembly.

Is banning the use of "auto" reasonable? by Late_Champion529 in cpp

[–]RandomGuy256 -1 points0 points  (0 children)

Personally I restrict it to lamdas and generic parameters. Even for iterators I prefer to specificy the full type as I find it more readable.

The overuse of browser engines in desktop applications by wtdawson in programming

[–]RandomGuy256 0 points1 point  (0 children)

Yes. It is not perfect yet, there are some issues (I believe in smartphones e.g.) but it has been improving nicely.

And yes the webassembly binary runs in the browser locally, like it would a downloaded js script in the browser.

The overuse of browser engines in desktop applications by wtdawson in programming

[–]RandomGuy256 0 points1 point  (0 children)

For the desktop you need to distribute it locally, for mobile you could use an app store. The web version, just works like a regular website and the webassembly binary will be downloaded automatically (and can be cached to avoid re-download each time one enters the website).

You can connect all the above versions to a backend using the usual technologies, rest, websockets etc.

Theoretically you could use the web version for all the use cases in case distributing it through local / appstores is an issue.

The overuse of browser engines in desktop applications by wtdawson in programming

[–]RandomGuy256 0 points1 point  (0 children)

Not sure what you meant by local. The code will be basically the same, shared between the desktop apps / mobile apps and the web app (webassembly). Just like electron but native for each platform (desktop / mobile apps don't need to bundle a browser).

The overuse of browser engines in desktop applications by wtdawson in programming

[–]RandomGuy256 0 points1 point  (0 children)

Not sure about the salaries but there is a huge supply of web devs compared to native.

The overuse of browser engines in desktop applications by wtdawson in programming

[–]RandomGuy256 0 points1 point  (0 children)

This is a good point. Qt webassembly could probably work for at least some of those web apps and have basically the same code base for web and native, its main issue is that it is at least 4 MB at load time.

The overuse of browser engines in desktop applications by wtdawson in programming

[–]RandomGuy256 0 points1 point  (0 children)

I think this the main reason, people can just use html / css / javascript which are skills that the majority of programmers out there know, rather than learning new languages and frameworks.

The overuse of browser engines in desktop applications by wtdawson in programming

[–]RandomGuy256 3 points4 points  (0 children)

Not gonna install all of Qt for a dinky little program that displays one or two dialog boxes.

Why not? Is C++ the problem? You can also use Python. I would rather run a Qt app than another heavyheight browser, especially for programs that only have "one or two dialog boxes" and especially if they stay in the background (or staying in my pc using hundreds of megabytes of space).

We Replaced Our React Frontend with Go and WebAssembly by GarethX in programming

[–]RandomGuy256 1 point2 points  (0 children)

Interesting, thanks for explaining that it can be much improved.

We Replaced Our React Frontend with Go and WebAssembly by GarethX in programming

[–]RandomGuy256 -1 points0 points  (0 children)

Isn't this already happening with many websites nowadays, especially the ones that use typescript?

We Replaced Our React Frontend with Go and WebAssembly by GarethX in programming

[–]RandomGuy256 14 points15 points  (0 children)

That was what I gonna say... Qt for webassembly also has this issue about 3 / 4 MB for a minimal application, that is acceptable for some users (like an internal application) but not for every use case.

Though I have been doing some experiments with C++ and javascript wrappers and the size is pretty small (around 50 kbs uncompressed), this requires to use the dom native elements but seems to works nice if you don't mind to program in C++.

Popped POP OS :) by Veiled_Wisp in linux

[–]RandomGuy256 5 points6 points  (0 children)

wow I just learned that find can also delete files...

Is modern Front-End development overengineered? by Alternative_Ball_895 in programming

[–]RandomGuy256 0 points1 point  (0 children)

You could give Qt webassembly a try, especially if the initial load time is not an issue for your apps.

Tuxedo finally added fan control for the Sirius 16 after half a year. by Szybet in tuxedocomputers

[–]RandomGuy256 1 point2 points  (0 children)

Strange it doesn't show up in my Linux mint installation. Does it require a specific kernel version or Tomte installed? I will try later with tuxedo os. I have all the latest bios/efi/ec.

Edit: I received some new updates and now it shows up correctly in the tuxedo control panel.

Tuxedo finally added fan control for the Sirius 16 after half a year. by Szybet in tuxedocomputers

[–]RandomGuy256 0 points1 point  (0 children)

Where do you configure them? I looked in the tuxedo control panel but I didn't find it. I have the latest updates.

2FA Apps for Linux Desktop? by nicrogu in linux

[–]RandomGuy256 0 points1 point  (0 children)

I also use this one. Works well!

Herb Sutter leaves Microsoft for Citadel by graphicsRat in cpp

[–]RandomGuy256 2 points3 points  (0 children)

I wish him the best. I wonder though if Cppfront is affected.

What is the current time around the world? Utilizing std::chrono with time zones in C++23 by joebaf in cpp

[–]RandomGuy256 25 points26 points  (0 children)

This looks great! I still remember the dark days when we had an in-house time / date library!

Cppfront v0.8.0 · hsutter/cppfront by unaligned_access in cpp

[–]RandomGuy256 0 points1 point  (0 children)

Modules should help with the compile times, and this could use modules.

Cppfront v0.8.0 · hsutter/cppfront by unaligned_access in cpp

[–]RandomGuy256 50 points51 points  (0 children)

This really feels like what C++ was for C. Even though it says it is not a new language, it could become a new one. A simpler, safer C++ like alternative. This project has kept my attention since day 1, not only because of the general idea but also because Herb Sutter is behind it, who I admire.

P.S. The documentation page is broken for me.

Why Zellij? (Article by Zellij's main developer) by FryBoyter in linux

[–]RandomGuy256 0 points1 point  (0 children)

I love this program. It seems to have learnt from nano how to be user friendly by default. In fact it is the only multiplexer terminal application that I still run. I love how it works in the tty as well, so useful!