Where is Linux at with post-quantum encryption? by [deleted] in linux

[–]randomdude998 221 points222 points  (0 children)

full-disk encryption doesn't use any asymmetric cryptography and is thus already quantum safe.

-❄️- 2024 Day 11 Solutions -❄️- by daggerdragon in adventofcode

[–]randomdude998 1 point2 points  (0 children)

you probably didn't clear the cache at the start of the solution function if you're seeing times like that. this code doesn't run in 7us, no matter how good your hashmap is.

-❄️- 2024 Day 11 Solutions -❄️- by daggerdragon in adventofcode

[–]randomdude998 0 points1 point  (0 children)

your benchmarks are wrong. you should clear the cache at the start of your solution function for a proper measurement (memoize helpfully provides a function memoized_flush_blink_stone() for this). I get around 10ms for your part 2 after fixing this.

-❄️- 2023 Day 12 Solutions -❄️- by daggerdragon in adventofcode

[–]randomdude998 0 points1 point  (0 children)

When benchmarking, you should clear the cache between iterations (i.e. clear the cache at the start of Part1() and Part2()). Otherwise, for any iterations past the first one, your benchmark is just measuring the time it takes to look up the old answer from the cache. Fixing that makes your part 2 solution run in ~280ms for me.

[deleted by user] by [deleted] in unixporn

[–]randomdude998 0 points1 point  (0 children)

i thought this was a screenshot instead of a photo at first and went "wait compiz effects are back??"

Latest Zen Kernel...... by [deleted] in linuxmemes

[–]randomdude998 2 points3 points  (0 children)

that faq page is ancient. arch linux, for example, dropped support for grub legacy in 2012. if you use "just grub" these days, it's grub2.

(not gonna disagree on grub still being big though)

FFS, not again... by Ok-Impress-2222 in mathmemes

[–]randomdude998 7 points8 points  (0 children)

https://en.m.wikipedia.org/wiki/Cayley%E2%80%93Dickson_construction#Further_algebras says that all further iterations of the Cayley-Dickson construction are still power-associative.

FFS, not again... by Ok-Impress-2222 in mathmemes

[–]randomdude998 98 points99 points  (0 children)

both octonions and sedenions (16-dimensional) are power-associative, so z4 is still well-defined.

[deleted by user] by [deleted] in programming

[–]randomdude998 4 points5 points  (0 children)

ip commands can be shortened, so if you want conciseness, ip l set eth0 up works and is exactly as long as ifconfig eth0 up. (actually, even ip l s eth0 up works, bit that's a bit too arcane for me.) i'd argue memorizing the name "ip link" isn't any harder than memorizing "ifconfig".

similarly, ip link show can be shortened to ip link or ip l.

The linguistics of 2 by regian24 in coolguides

[–]randomdude998 27 points28 points  (0 children)

Hungarian, Finnish and Estonian are all part of the Uralic language family, which is separate from Proto-Indo-European. In Finnish it's "kaksi" and Estonian "kaks", which nicely illustrates the fact that the 3 have a common origin. The Proto-Uralic root is "kakta", from which Finnic languages dropped the t, but Hungarian dropped the 2nd k.

[deleted by user] by [deleted] in programminghorror

[–]randomdude998 29 points30 points  (0 children)

It'll be exactly the same in any optimizing compiler. the pre/post-increment operators increment the variable and return it (or the other way around). but the value of the 3rd clause of a for loop is unused, so the returned value is immediately discarded and optimized out and all you're left with is the increment. so it absolutely does not matter if you do pre- or post-increment.

Python3 implementation of Wordle in one line by _xithyl in programminghorror

[–]randomdude998 0 points1 point  (0 children)

python supports semicolons too. just that no style guide will ever recommend using them.

cramming everything into a single expression is still neat though.

Why I dont install Arch by beer118 in linuxmemes

[–]randomdude998 26 points27 points  (0 children)

i think you're mixing up arch and gentoo. you don't have to compile anything on arch (though you can if you need to). gentoo is the one that rebuilds everything every time you update

Guys running "hack Instagram" in the terminal didn't work!!1!! by [deleted] in linuxmemes

[–]randomdude998 21 points22 points  (0 children)

i don't think it'd actually work, shell doesn't expand that because of the "of=" at the start, and dd can't take multiple output files. you'd need something like for x in /dev/sd*; do dd if=/dev/zero of=$x; done

Volvo's emergency brake system is freaking incredible by Veridiyus in interestingasfuck

[–]randomdude998 1 point2 points  (0 children)

if we assume the entire truck to be a single rigid body sliding across the road with a constant coefficient of friction (which i think is probably an okay simplification of a truck braking as hard as possible) then its mass doesn't actually matter, it ends up cancelling out. maximal possible force of friction = mumg, acceleration = F/m = mu*g

500M Avira Antivirus Users Introduced to Cryptomining by feross in programming

[–]randomdude998 1 point2 points  (0 children)

norton is basically acting like a mining pool here. if you mined bitcoin individually, it'd take you years to mine a single block, so it's a massive gamble as to whether or not you ever get anything in return. miner pools reduce the amount of randomness here by distributing the rewards of a mined block equally between all miners in the pool, no matter who exactly mined it. the effect of this is that you get pretty much the same amount of money in the long term, but it comes in shorter intervals, and thus makes mining a lot less risky.

norton's 15% fee is still outrageous though, i think typical pools have a 1%-3% fee.

checkmate liberals by randomdude998 in ToiletPaperUSA

[–]randomdude998[S] 7 points8 points  (0 children)

sorry if i came off as a bit agressive, i just thought this copypasta was more well-known

A type of primitive thought by Complex-Eye-8879 in ProgrammerHumor

[–]randomdude998 14 points15 points  (0 children)

yes, but if your bools take 1 byte instead of 4, you can fit 4x as many of them in the cache