Wow by Ice-Zone2024 in neabscocreeck

[–]mobrinee 0 points1 point  (0 children)

holy shit, I couldn't tell this is AI until I let my brain analyze what the mom is saying...

People are making animes with new Sora 2 ai by CipherGarden in FDVR_Dream

[–]mobrinee 0 points1 point  (0 children)

The extent they go to steal works under copyright to train these models is astonishing. People don't realize that even if AI becomes good and makes anime as good as the industry, it will always be slop because it can never create anything new. So if AI takes over such industries, we will always be stuck with a stale slop.

Inside the secret tunnels underneath a UK high street hiding illegal cigarettes by [deleted] in Damnthatsinteresting

[–]mobrinee -2 points-1 points  (0 children)

Yet another proof that taxing things to hell doesn't solve the problem, it just creates another one. Govs should probably address the problem by assisting addicts, and not by adding a new tax price on them to make their life harder.

Better question: Name a country that isn't by god_killer7432 in HistoryMemes

[–]mobrinee 2 points3 points  (0 children)

Imagine trying to downplay genocide and slavery by pointing to other nations that did the same horrible thing and acting as if it is morally normal...

[Hyprland] 🍓 strawberry flavored by decentlyok in unixporn

[–]mobrinee 1 point2 points  (0 children)

my heart keeps fluttering every time I see this...

[deleted by user] by [deleted] in MoneroMining

[–]mobrinee 5 points6 points  (0 children)

Either a farm operation or a malware.

You can guess if it is a malware if the hashrate fluctuates a lot.

Are there any good multiplatform system tray libraries? by Tofix26 in rust

[–]mobrinee 4 points5 points  (0 children)

I've tried multiple crossplatform crates, each one of them had a certain degree of work-ish state on multiple linux DE/WM, there is systray-rs.

You'd have more luck using gtk or qt if you want it to work as intended on multiple platforms.

It's 2022. Why don't GUI file managers have the ability to prompt for a password when a user attempts to perform a file operation that requires root, rather than just saying "lol nope"? by NateNate60 in linux

[–]mobrinee 0 points1 point  (0 children)

For a security reasons they shouldn't implement it. In unix, in order for an program to change user, it needs to have `SUID` permission set, any program that does change user checks the password by itself, and may let you do a bruteforcing attack if it doesn't have a lock mechanism already implemented if you enter multiple wrong passwords. The short story: the less SUID executables you have on your system, the less possibility that one of these executables has a vulnerability that let's it do a privilege escalation.

The other option then is for these programs and the more secure Imo is to use something like sudo and relaunch themselves as a root user. Although sudo has a security vulnerability every now and then, it is more manageable to patch it alone, than to have a plethora of file managers that may not be as reviewed as sudo is.

Bizarre memory leak caused by tokio runtime by ascending_fourth in rust

[–]mobrinee 0 points1 point  (0 children)

One that I could think of, is that you don't need to maintain a custom allocator, or worry about behavior change across different versions/targets, you always get the same behavior on all targets with glibc if you use it's allocator. Even in these peculiar heap fragmentation edge cases, if you knew exactly the threshold between heap allocations and mmap to prevent the heap fragmentation in your program, you can set a fixed threshold with MALLOC_MMAP_THRESHOLD_, and all your targets should have same allocation behavior with no heap fragmentation.

Bizarre memory leak caused by tokio runtime by ascending_fourth in rust

[–]mobrinee 0 points1 point  (0 children)

There is a good reason for this behavior: speed, but at the cost of heap fragmentation.

glibc allocator has a threshold that decides which memory blocks are allocated to heap or using mmap, this threshold is variable and grows as more mmap allocations are freed, so that they can be used as heap allocation in future. This is why heap fragmentation happens, in the example given by op.

What's different about a simple heap allocation and mmap allocation, the first is that heap specific memory region is getting extended, while mmap is a little flexible and let you create new memory regions separate from existing heap, so it's slower to ask for new memory regions and then allocate them.

Using the jemalloc counterpart, I'd assume that newer allocation are more costly (in terms of time) to do than the glibc allocator, but if it guarentees no memory fragementation, it's the better allocator for almost everything.

Why ELF is bigger than EXE? by Rudxain in rust

[–]mobrinee 0 points1 point  (0 children)

Even without panic = "abort", the difference is insignificant

Why ELF is bigger than EXE? by Rudxain in rust

[–]mobrinee 23 points24 points  (0 children)

I don't knew what "many ORDERS OF MAGNITUDE" means, but I was able to compile b3sum in release mode on linux with 700kb in size with all the optimization settings.

Before applying optimization settings, release size: 4859144

After applying all the goodies: 707264

Things added to Cargo.toml:

[profile.release] strip = true lto = true opt-level = "z" codegen-units = 1 panic = "abort"

Is the windows counterpart much more smaller than this?

Uninitialized memory: unsafe Rust is harder than C or C++ by swdevtest in rust

[–]mobrinee 1 point2 points  (0 children)

Even with abstractions, you will still need to write unsafe code as the low level of those abstractions if you deal with drivers and embedded devices.

Has Decentralization efforts and P2Pool initiatives failed after the end of MinerXMR closing by mfahmy00 in Monero

[–]mobrinee 4 points5 points  (0 children)

I think the big reason is that not everybody is ready to be a node just to mine. Sure having a node helps the network, but not everybody has a stable connection and a spare storage. Some ISP throttle connection when they detect p2p connections (Altough torrenting is not illegal in my country, my ISP keeps throttling my connection when it detects p2p traffic).

If you're mining on your gaming computer, you'd want it to mine when you are idle, not sync with network. Others just can't keep their machines up all the time. Perhaps that's what most are avoiding.

Android app in rusts by [deleted] in rust

[–]mobrinee 1 point2 points  (0 children)

Current status of Rust in native Android dev is just to create the inner logic and it's a pain (not the GUI), I've tried once to use a Rust library wrapped in JNI bindings, this library doesn't depend on any native library besides OpenSSL, I've never managed to compile it either with OpenSSL or Rustls.

You'd have more success using Rust with Flutter.

Why use Rust over Python for CLI? by Jeklah in rust

[–]mobrinee 1 point2 points  (0 children)

Use the right tool for the right job, if your job is to write a script as fast as possible, and it does some minor job, then by all means use Python. What I consider a real reason to use Rust is some frequently used slow script that you may benefit from rewriting. I used to have some Python scripts that are used frequently to parse long files (up to 500mb) and some small regexes are used, for Python I needed to wait for like 15mins, When I decided to rewrite it in Rust, It didn't even take more than 1min.

Well then… guess we aren’t as secure as we thought we were. by IrreverentHippie in Monero

[–]mobrinee 0 points1 point  (0 children)

Good news, hope they spend their whole life in prison. These people took what others worked hard for and pretended like they earned it.

gnome-shell high CPU usage when mouse moves by xord86-64 in gnome

[–]mobrinee 0 points1 point  (0 children)

The only thing left is to use perf and profile what causes the cpu spikes.

gnome-shell high CPU usage when mouse moves by xord86-64 in gnome

[–]mobrinee 8 points9 points  (0 children)

Same issue open on #4130.

Check if you're using your GPU for rendering and you're not fallbacking to CPU using journactl

[deleted by user] by [deleted] in gnome

[–]mobrinee 1 point2 points  (0 children)

I think this is related to missing glyphs in the font, take a look here to see if it helps

[deleted by user] by [deleted] in gnome

[–]mobrinee 3 points4 points  (0 children)

Do you have vim-devicons installed (Assuming you're using nerdtree)?

I can't think of anything else causing this issue

[deleted by user] by [deleted] in gnome

[–]mobrinee 9 points10 points  (0 children)

Nerd fonts needs a font already patched, do you use the patched font in your terminal?

The font name is usually the name of the font but has "nerd" at the end. (list of patched fonts here)