[-] Zangoose@lemmy.one 34 points 5 months ago

I'm guessing lemmy.cafe has .ml blocked but not the other way around, OP likely can't see your comment

[-] Zangoose@lemmy.one 13 points 6 months ago* (last edited 6 months ago)

In the grand scheme of things the difference between C, C++, and Python isn't meaningful when operating over a network (edit: for a single-user system). It's very likely that the difference for thread OP is just caused by weaker connections to specific repos.

We're talking about a package manager, not a game, network server, etc. On a basic level the package manager only needs to download files from a network and install them (OS syscalls for reading/writing files, these are exposed C functions or assembly routines), or delegate to a specific package's build setup (which will also likely be written in a compiled language)

546
submitted 7 months ago* (last edited 7 months ago) by Zangoose@lemmy.one to c/programmerhumor@lemmy.ml

Unfortunately I'm not in the path of totality but I am pretty close

Alt: A picture of the (almost but not totally covered) eclipse

278

Unfortunately I wasn't in the path of totality but I was pretty close.

Alt text: My photo of the (mostly but not totally covered) eclipse

[-] Zangoose@lemmy.one 12 points 7 months ago

Sorry for being unclear, I wasn't trying to say language doesn't make a difference (e.g. static vs. dynamic typing would make a big difference). I also personally like the error handling of rust a lot more, even if it does take a bit getting used to when my education has mostly been in languages with Java-style exception handling.

I mostly meant that the language-level performance and features aren't necessarily holding the codebase back in a debate between Java and Rust for a lemmy-like REST API. As long as the developers are aware of the pitfalls of Java (null, mutation, error-handling, etc.), it's possible to have good code.

I just think that from a maintainability standpoint, a Java-style codebase is much easier for most people to read, understand, and maintain because that's what most people are familiar with. Especially when many of the developers are volunteer contributors, that type of thing could make a big difference.

The main problem with Rust is that it's only starting to get adoption now, it isn't taught in most education curriculums, and it's industry use is pretty small at the moment. It's kind of a catch-22, because rust adoption won't increase unless large projects like lemmy exist. But that's also why I think having more options is also fine. Sublinks might get more developers short term because of its language, but that also doesn't mean it'll completely replace Lemmy. Both projects can exist at the same time, and hopefully benefit from each other's development.

[-] Zangoose@lemmy.one 21 points 7 months ago

A lot of people here seem to think that Java code is awful and disgusting and no projects should ever use it. The thing about popular languages is that more code existing in a language inevitably means a lot of it ends up being bad. The same thing will likely happen to rust as it gets popular, but that isn't exactly a problem. It's possible to have a well-maintained Java codebase.

Debate between functionality of the actual programming languages at this point is pretty meaningless, if they have good development standards then a Java program could end up just as well maintained as rust. Any time saved by compiler enforcement of specific standards (like no using null) would be lost by the fact that the devs don't know rust tooling. You could just have a requirement in PRs that null isn't used. Both Java and Rust have usable frameworks for REST API development, so using one or the other comes down to familiarity.

The idea that programming languages make code suddenly good or bad is pretty silly. Different languages have different language-level guarantees which can help produce good or working code. That being said, it's not like it's impossible to write good Java code, just like it's not impossible to write bad rust code. Most people seem to be conflating guaranteed functionality and safety with maintainability, stability, and readability. Rust is still a new language, so although it's great, Java will probably be the better choice for the latter 3 qualities.

That being said, something like Kotlin would probably have been a better starting point since it can interact with Java (and works like Java in most cases) but also has some nice improvements like stricter null checking (Kotlin nulls are treated similarly to rust's Option<T>, it's just described as T? instead and the syntax is generally a lot more concise). There's also the benefit of being able to write some code in Kotlin and some in Java since they are mostly cross-compatible.

104
Cat again rule (lemmy.one)
submitted 7 months ago by Zangoose@lemmy.one to c/196

Alt text: post this cat on Friday March 22. There is a picture of a "cat".

[-] Zangoose@lemmy.one 12 points 7 months ago* (last edited 7 months ago)

Java is reasonably fast though, as the JRE is pretty well optimized at this point. Languages closer to being fully interpreted like JS and Python (technically both python and JS still get compiled to a lower target and then interpreted) are still noticeably slower.

Edit: there's also the fact that JS/TS runs on a single thread, so it's inherently limited for applications intended to be scaled up.

10
submitted 8 months ago by Zangoose@lemmy.one to c/emulation@lemmy.ml

I'm trying to find links to full mirrors of Citra, but I can't find any of the extra repos Citra hosted (like the build environment with docker files, the GitHub wiki with all of the documentation, etc.)

I found this but it looks like it only has the Citra code for now. Does anyone have a backup of those other repos?

I was hoping to learn more about emulation development on an eventual successor like Lime3ds and maybe contribute toward getting the CI builds working again. If this isn't the right community for this question, I can remove it. I wasn't sure if there was a good place to ask questions on the development side of things.

[-] Zangoose@lemmy.one 15 points 8 months ago

Which costs an additional $100/yr for something that's free on any other platform.

[-] Zangoose@lemmy.one 13 points 8 months ago

Note that a few of these are misleading...

AngularJS no longer exists because the library switched to TypeScript (which can be used with JavaScript code) and is now just called Angular. For the non-developers, TypeScript and JavaScript are mostly cross-compatible, and having a typing system makes way more sense for what Angular tries to accomplish. They didn't actually kill the project.

The Google Duo app also got more or less facelifted into Google Meet, so it's not like it's actually dead.

Those things being said, the amount of things on that list is pretty crazy. Especially the ones that were straight up canceled and not rebranded/replaced.

[-] Zangoose@lemmy.one 11 points 1 year ago
[-] Zangoose@lemmy.one 11 points 1 year ago

Coal mining kills more people per year than nuclear does. Pollution kills more people by several magnitudes than nuclear ever could. When proper safety measures are put in place it's by far the safest form of energy. And regardless of whether people make nuclear power plants, the technology exists, so it will be used to make bombs regardless

[-] Zangoose@lemmy.one 22 points 1 year ago

How so? I usually find their content pretty interesting

[-] Zangoose@lemmy.one 11 points 1 year ago

As a current computer science college student who was a TA for 2 semesters, can confirm... It's wild out here

25
submitted 1 year ago* (last edited 1 year ago) by Zangoose@lemmy.one to c/linux@lemmy.ml

I'm getting a weird issue with steam on my desktop running endeavourOS with qtile, where steam starts and then immediately closes. I've been trying to figure out why this happens, but all of the solutions I could find from googling errors have said to uninstall xdg-desktop-portal or flatpak, but neither of those things worked for me, nor did running steam with the -no-cef-sandbox or -vgui. It's also worth noting that steam boots perfectly fine on my laptop (endeavourOS + KDE).

Here's the result from running steam:

steam.sh[60179]: Running Steam on endeavouros rolling 64-bit
steam.sh[60179]: STEAM_RUNTIME is enabled automatically
setup.sh[60253]: Steam runtime environment up-to-date!
steam.sh[60179]: Steam client's requirements are satisfied
[2023-07-09 12:18:01] Startup - updater built Jun 21 2023 21:17:38
[2023-07-09 12:18:01] Startup - Steam Client launched with: '/home/[username]/.local/share/Steam/ubuntu12_32/steam'
07/09 12:18:01 Init: Installing breakpad exception handler for appid(steam)/version(1687386907)/tid(60314)
Looks like steam didn't shutdown cleanly, scheduling immediate update check
[2023-07-09 12:18:01] Loading cached metrics from disk (/home/[username]/.local/share/Steam/package/steam_client_metrics.bin)
[2023-07-09 12:18:01] Failed to load cached hosts file (File 'update_hosts_cached.vdf' not found), using defaults
[2023-07-09 12:18:01] Using the following download hosts for Public, Realm steamglobal
[2023-07-09 12:18:01] 1. http://media.steampowered.com, /client/, Realm 'steamglobal', weight was 1, source = 'baked in'
[2023-07-09 12:18:01] Checking for update on startup
[2023-07-09 12:18:01] Checking for available updates...
[2023-07-09 12:18:01] Downloading manifest: http://media.steampowered.com/client/steam_client_ubuntu12
[2023-07-09 12:18:01] Manifest download: send request
[2023-07-09 12:18:02] Manifest download: waiting for download to finish
[2023-07-09 12:18:02] Manifest download: finished
[2023-07-09 12:18:02] Download skipped: /client/steam_client_ubuntu12 version 1687386907, installed version 1687386907, existing pending version 0
[2023-07-09 12:18:02] Nothing to do
[2023-07-09 12:18:02] Verifying installation...
[2023-07-09 12:18:02] Performing checksum verification of executable files
[2023-07-09 12:18:02] Verification complete

(process:60314): GLib-GObject-CRITICAL **: 12:18:02.475: g_object_ref: assertion 'G_IS_OBJECT (object)' failed

(process:60314): GLib-GObject-CRITICAL **: 12:18:02.475: g_object_unref: assertion 'G_IS_OBJECT (object)' failed
XRRGetOutputInfo Workaround: initialized with override: 0 real: 0xec817db0
XRRGetCrtcInfo Workaround: initialized with override: 0 real: 0xec816500
GetWin32Stats: display was not open yet, good
Loaded SDL version 3.0.0-1782-g214d5daa3

(steam:60314): Gtk-WARNING **: 12:18:02.549: Unable to locate theme engine in module_path: "adwaita",

(steam:60314): Gtk-WARNING **: 12:18:02.549: Unable to locate theme engine in module_path: "adwaita",
/usr/share/themes/Arc-Dark/gtk-2.0/main.rc:1090: error: unexpected identifier 'direction', expected character '}'
/usr/share/themes/Arc-Dark/gtk-2.0/apps.rc:91: error: unexpected identifier 'direction', expected character '}'
GetWin32Stats: display was not open yet, good
steamwebhelper.sh[60356]: Runtime for steamwebhelper: defaulting to /home/[username]/.local/share/Steam/ubuntu12_64/steam-runtime-heavy
steamwebhelper.sh[60356]: glibc >= 2.34, partially disabling sandbox until CEF supports clone3()
CAppInfoCacheReadFromDiskThread took 0 milliseconds to initialize
Failed to init SteamVR because it isn't installed
Assertion 'device' failed at src/libsystemd/sd-device/device-private.c:103, function device_get_tags_generation(). Aborting.
crash_20230709121803_27.dmp[60547]: Uploading dump (out-of-process)
/tmp/dumps/crash_20230709121803_27.dmp
/home/[username]/.local/share/Steam/steam.sh: line 798: 60314 Aborted                 (core dumped) "$STEAMROOT/$STEAMEXEPATH" "$@"
crash_20230709121803_27.dmp[60547]: Finished uploading minidump (out-of-process): success = yes
crash_20230709121803_27.dmp[60547]: response: CrashID=bp-84664b98-84d4-4b31-8857-26fff2230709
crash_20230709121803_27.dmp[60547]: file ''/tmp/dumps/crash_20230709121803_27.dmp'', upload yes: ''CrashID=bp-84664b98-84d4-4b31-8857-26fff2230709''

Edit: Also not sure if there's a better community to ask this in since this one seems to be mostly about news, I can ask elsewhere if this is the wrong community for debugging/help questions

Edit 2: I realized I didn't specify, but my system has a Ryzen 7 5700x/RX 5700XT so it isn't an issue with Nvidia drivers

Edit 3: Not sure why I put "Arch" in the title, just realized the mistake and fixed it. I'm on EndeavourOS, which is arch-based but obviously not the same thing.

Final Edit: Thanks for the help everyone! Installing the lib32-libnm package fixed it for me. If that doesn't work for others, maybe try installing the flatpak version of steam, since that version was launching for me also

[-] Zangoose@lemmy.one 25 points 1 year ago* (last edited 1 year ago)

Honestly It's been way worse for me lol, the discussions here are actually meaningful so I can sink way too much time reading threads instead of getting bored after looking at 5 consecutive reposted memes on reddit

Edit: I'm not complaining though, this is definitely better

view more: next ›

Zangoose

joined 1 year ago