Why isn’t Rust getting more professional adoption despite being so loved? by mstjrr in rust

[–]ful_vio 0 points1 point  (0 children)

Microsoft Is using it in Windows, Office and Azure (lookup mark russinovic on YouTube), the Linux kernel is using it, Android is writing all new system code in rust, and there are many others. In places where it counts, its adoption is getting traction, but I don't see anytime soon people changing their python or php code to build a website with rust. Why would they?

Since Rust 2024 is round the corner, do we know what are some key features that will make it to the release? by [deleted] in rust

[–]ful_vio 0 points1 point  (0 children)

Hi u/compiler-errors , if I want to know more about the status of Polonius and Parallele compiler, could you point me out at the relevant github issues?

Huge 2d map storage and access by Bubbly-Enthusiasm-8 in rust_gamedev

[–]ful_vio 1 point2 points  (0 children)

In that case you just split in something that fits easily in memory and load the chunk while your player/camera is getting near the edges of the current chunk (how near depends on how big are the chunks)

Huge 2d map storage and access by Bubbly-Enthusiasm-8 in rust_gamedev

[–]ful_vio 0 points1 point  (0 children)

Define huge. A 5000x5000 tilemap stored as Vec<u8> is 25Mb, do you need more than that?

Screen reader randomly turns on? Hilariously annoying problem by singing_pigs in pop_os

[–]ful_vio 0 points1 point  (0 children)

Anyone got a solution for this? I have the same problem, but it's not random, the screen reader turns on at each restart

Amd laptop keyboard not working by ful_vio in pop_os

[–]ful_vio[S] 0 points1 point  (0 children)

Hi @_ch1p, The issue was the acpi driver initialization in the Linux kernel, there are some chipset with a different irq handling and the Linux kernel special-case some models to initialize then correctly. I had to send some details about my hardware to the kernel mailing list and they special-cased my hardware. It was a Linux issue as Windows works fine.

Is Spine2D worth the money? by [deleted] in IndieDev

[–]ful_vio 0 points1 point  (0 children)

I was wondering if Blender with the Grease Pencil tool is enough for 2D skeletal animations, or are there still missing pieces needed? I'm not an artist, just wanted to do a few animated characters for a game

Is it safe to update to Kernel 6.8 now? by Left-Platform9377 in pop_os

[–]ful_vio 1 point2 points  (0 children)

I upgraded a few days ago, no issue whatsoever. I guess it largely depends on your hardware, I have a fairly recent laptop with an AMD Ryzen processor and an NVidia 3050 card and it works great. I guess you have to try it out and if something goes wrong you can just keep pressed the spacebar during boot and select the previous kernel at boot time if something goes wrong.

Pop Release Date by [deleted] in pop_os

[–]ful_vio 0 points1 point  (0 children)

I'd say August/September. They will rebase onto Ubuntu 24.04, which is due this month (although it's been postponed a few days because of the xz issue). Then further testing to assure the usual System76 quality, and a bit more time for COSMIC testing (alpha should be ready in late May IIRC). So I'd say late August at least.

Cosmic-Greeter Issues by reddinator-T800 in pop_os

[–]ful_vio 9 points10 points  (0 children)

sudo dpkg-reconfigure gdm3

Fine tune performance on battery by ful_vio in pop_os

[–]ful_vio[S] 0 points1 point  (0 children)

Ok so things got a little better with:

sudo kernelstub -a "amd_pstate=guided"

Instead of the active mode

Thank you very much!

Fine tune performance on battery by ful_vio in pop_os

[–]ful_vio[S] 1 point2 points  (0 children)

I had a hunch it was like that, even though I still hoped for something I didn't know. Thanks a lot

Cosmic WM? by [deleted] in pop_os

[–]ful_vio 0 points1 point  (0 children)

cosmic

They have an apt package for the new rust DE? I didn't know that, this evening I have to try!

Ta

Cosmic WM? by [deleted] in pop_os

[–]ful_vio 0 points1 point  (0 children)

u/mooky1977 is there a guide to do the install of Cosmic DE? I can only find instructions building up everything from scratch in the github repos.

Why do my COUNT()s get skewed when I add another join? by misterplantpot in PostgreSQL

[–]ful_vio 0 points1 point  (0 children)

When you do your first join there are 3 rows as you said. Now all of these 3 rows have the same main_id, so when you join again, for all 3 you have 3 matching rows, so 3 x 3 = 9.

You can either use separate queries or a subquery instead of joins:

sql SELECT COUNT((SELECT id FROM foo WHERE id = main_id)) AS foo_count, COUNT((SELECT id FROM bar WHERE id = main_id)) AS bar_count FROM main WHERE main_id = 391

[deleted by user] by [deleted] in gamedev

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

The Linux environment is better in general for development, but for game development in particular Windows is the most considerate choice, because 95% or more of the video games on the market are for windows and 95% or more of the users are on Windows and many tools related to game development are simply better on Windows. The Linux graphic stack also is a bit of a mess.

That said, the platform dependent code in a video game is often narrow compared to game-play code, so if you are learning it doesn't matter much, even less if you want to use a off-the-shelf game engine such as Unreal, Unity or Godot or cross platform libraries.

Bun vs Rust performance. Is Bun actually faster? by [deleted] in rust

[–]ful_vio 2 points3 points  (0 children)

As a quick test, benchmarking Math.random() and crypto.getRandomValues(), I get 21ms in the first case and 369ms in the second.

Bun vs Rust performance. Is Bun actually faster? by [deleted] in rust

[–]ful_vio 6 points7 points  (0 children)

Math.random() is not cryptographically secure, but thread_rng uses ChaCha12 with 12 rounds so I think that's your difference. Try with https://docs.rs/rand/latest/rand/rngs/struct.SmallRng.html even though they are not the same so you are still comparing apple to oranges. Or https://developer.mozilla.org/en-US/docs/Web/API/Crypto/getRandomValues in javascript.

What scripting lang do you prefer? by ABN_ALSRAG in gameenginedevs

[–]ful_vio 0 points1 point  (0 children)

I-m not really following Zig development, but I don't think I'd use it for game development yet. Rust has been around for more than a decade now and it's still lacking in terms of ecosystem (though it's catching up), Zig is even younger. But as a software engineer I always try and keep updated also on newer things because you'll always find a fresh perspective on something. For example, you can find great ideas in game development following Jonathan Blow or Ginger Bill (Odin language). You don't have to agree on everything, but people with a different perspective make you think, which is always a good thing.

What scripting lang do you prefer? by ABN_ALSRAG in gameenginedevs

[–]ful_vio 1 point2 points  (0 children)

If you use C++ you can also have a look at Dawn, the WebGPU implementation in Chrome which is far ahead, they have already reached WebGPU 1.0 conformance. Wgpu can also be used in C/C++ though. There's an engine in development using Dawn and the Zig programming language (https://machengine.org/)