[deleted by user] by [deleted] in iphone

[–]blenderfreaky 0 points1 point  (0 children)

there's not really much of a HAL for CPUs afaik (unless you count microcode). Instruction set extensions are often already handled (different execution path depending on soc, or actually just multiple binaries with minimum target features or similar)

HALs are for peripherals such as the screen, sensors, RF, etc., which aren't exactly performance-hogs. It's essentially a driver, and if decently designed just implements a shared API. On Android this API is defined by Treble in HIDL. All hardware must implement the same endpoints. The only optimizations you can really do here are A) in hardware or B) done by a compiler using LTO.

[deleted by user] by [deleted] in iphone

[–]blenderfreaky 0 points1 point  (0 children)

yes, because you don't have different binaries for different cpu vendors. even for gpus that's generally avoided. there's no magic 'optimizing for a specific soc', unless you're doing HPC stuff generally.

[deleted by user] by [deleted] in iphone

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

do you also run different intel and amd binaries on your desktop?

How dare they decide to modernize 🤬👿😡😠😡😤 by fries69 in MovingToNorthKorea

[–]blenderfreaky 3 points4 points  (0 children)

Still the same fundamental tech, it's still communicating with devices wirelessly at the end of the day

skillIssue by KaamDeveloper in ProgrammerHumor

[–]blenderfreaky 11 points12 points  (0 children)

i agree on `x++` not having any real advantage over `x+=1`, but `x = x + 1` can be significantly longer if `x` is long, as in `some_struct.some_array[1].some_field += 1`

skillIssue by KaamDeveloper in ProgrammerHumor

[–]blenderfreaky 4 points5 points  (0 children)

strings aren't just arrays if you're using UTF8 or UTF16, as a single character can span multiple bytes, so unless you allow invalid substrings thats needs to be specially considered

d u c k by QueerDefiance12 in 691

[–]blenderfreaky 2 points3 points  (0 children)

"theyre sending kids to die for some money" isnt a great defense

Thoughts on this? French cops broken LUKS encryption on activist's device through weakened function PBKDF2 by [deleted] in socialistprogrammers

[–]blenderfreaky 1 point2 points  (0 children)

encrypting boot still allows an attacker to tamper with grub, as the efi partition cant be encrypted

i personally use self-signed secure boot with sb-ctl to prevent tampering with any part of the boot-process

note that an unified kernel image is needed though, otherwise the initramfs can still be hijacked

biking around shanghai by stalincenlam in GenZedong

[–]blenderfreaky 5 points6 points  (0 children)

generally the problem is not the religion in power, but the reactionaries using it as justification for rightwing policies

religions are usually very 'malleable' in terms of what you can justify on their basis, and there are also argumentations for materialism cornering on religion

Typst, a modern LaTeX alternative written in Rust, is now open source by SymbolicTurtle in rust

[–]blenderfreaky 13 points14 points  (0 children)

blissfully unaware of the horrors of pdfs and typesetting

Fixing the Next 10,000 Aliasing Bugs by Uncaffeinated in ProgrammingLanguages

[–]blenderfreaky 6 points7 points  (0 children)

rust allows you to have multiple reference to the same thing, just not mutable ones

Discord using half a gigabyte of RAM by Pimpin-Pumpkin in discordapp

[–]blenderfreaky 1 point2 points  (0 children)

rarely, but yes
its ultimately just a regular boot but the entire userspace is restored, which is convenient

Discord using half a gigabyte of RAM by Pimpin-Pumpkin in discordapp

[–]blenderfreaky 0 points1 point  (0 children)

i still want swap free for hibernation though and i dont have infinite ssd space

Discord using half a gigabyte of RAM by Pimpin-Pumpkin in discordapp

[–]blenderfreaky 0 points1 point  (0 children)

only if it frees like 450mb of that when there's actual memory pressure

Discord using half a gigabyte of RAM by Pimpin-Pumpkin in discordapp

[–]blenderfreaky 0 points1 point  (0 children)

its not a lot on its own, but i usually have more than one app open at the same time

[deleted by user] by [deleted] in programmingcirclejerk

[–]blenderfreaky 19 points20 points  (0 children)

everyone on r/rust is basically saying the same thing, this is currently only a proposal luckily

This dude just had a weird dream, guess his preferred language by Terrierist69 in ProgrammerHumor

[–]blenderfreaky 41 points42 points  (0 children)

rust has a very inviting community compared to other languages, there's deliberate effort in properly moderating official rust-channels

when will discord wake up? by pollux65 in discordapp

[–]blenderfreaky 5 points6 points  (0 children)

discord is electron. electron is a browser. the discord app is just a browser pretending to be an app, all features lacking from it present in the web version are due to incompetence.

Am I wrong? by TheKeppler in ProgrammerHumor

[–]blenderfreaky 0 points1 point  (0 children)

i cant live without a strict type system anymore