[-] sudo@programming.dev 2 points 1 week ago

Its possible that is YouTube isn't building a profile of the user but a profile of that specific invidious instance which is all of its users collectively. Its also possible that invidious is leaking some browser info like User-Agent to YouTube. That way switching IP doesn't matter as long as its the same invidious instance.

Switching invidious instances should clear that up. If not then you've got a serious problem with invidious.

[-] sudo@programming.dev 2 points 10 months ago

Future President.

[-] sudo@programming.dev 2 points 2 years ago* (last edited 2 years ago)

Please read Letter From Birmingham Jail because its meant for people like you. You are not of the process of liberation. You are a drag on it.

[-] sudo@programming.dev 2 points 2 years ago

Hey did you forget the dems are supporting a genocide? Better vote for them anways! Hey did you forget the dems are supporting a genocide? Better vote for them anways! Hey did you forget the dems are supporting a genocide? Better vote for them anways!

Like fucking clockwork.

[-] sudo@programming.dev 2 points 2 years ago

That makes sense only if identity politics is the entire political discourse to you.

[-] sudo@programming.dev 2 points 2 years ago

The chart shows democratic party voter opinion, not their politician's opinions. Kamala basically ran on Trump's 2016 border policy and earned zero votes because of it.

[-] sudo@programming.dev 2 points 2 years ago

SpaceCowboy? He's blindly calling everyone who criticizes him a bot in some other comm. Ironically, he's using copy pasted responses to do this.

Anyways, good to know. I'll actually report people then. Less stressful.

[-] sudo@programming.dev 2 points 2 years ago

The US has been playing with these kinds of lasers for over a decade now. Last I saw a demonstration, the laser wasn't powerful enough to just zap something. It had to focus on a warhead and heat it up until it exploded. It wouldn't work on a missile in flight. Maybe they improved it, but I suspect the introduction of slow drones like the Iranian Shahed made it feasible.

The cost per shot was pennies a decade ago. But how fast can they shoot these? It must be able to shoot fast and constantly if you want to deal with swarms.

[-] sudo@programming.dev 2 points 2 years ago* (last edited 2 years ago)

Fish, no plugins. The POSIX differences are to your advantage when using interactively. Its amazing how much larger expressions you can construct in the repl before you start moving to a proper file. Its like moving from pure mysql or psql to mycli or pgcli.

When you add it all up, the amount of effort you'll expend to learn fish are small compared to the amount of effort you'll save by trying to recreate the UX with plugins and custom scripts.

[-] sudo@programming.dev 2 points 2 years ago

No. Persistent Data Structures are not mutable. The memory space of an older version is not rewritten, it is referenced by the newer version as a part of its definition. ie via composition. It can only safely do this if the data it references is guaranteed to not change.

x = 2 :: 1 :: Nil -- [2, 1]
y = 3 :: x -- [3, 2, 1]

In this example both x and y are single linked lists. y is a node with value 3 and a pointer to x. If x was mutable then changing x would change y. That's bad™ so its not allowed.

If you want to learn more about functional programming I suggest reading Structures and Interpretation of Computer Programs or Learn You a Haskell for Great Good

[-] sudo@programming.dev 2 points 2 years ago* (last edited 2 years ago)

Very standard use case for a fold or reduce function with an immutable Map as the accumulator

val ints = List(1, 2, 2, 3, 3, 3)
val sum = ints.foldLeft(0)(_ + _) // 14
val counts = ints.foldLeft(Map.empty[Int, Int])((c, x) => {
  c.updated(x , c.getOrElse(x, 0) + 1)
})

foldLeft is a classic higher order function. Every functional programming language will have this plus multiple variants of it in their standard library. Newer non-functional programing languages will have it too. Writing implementations of foldLeft and foldRight is standard for learning recursive functions.

The lambda is applied to the initial value (0 or Map.empty[Int, Int]) and the first item in the list. The return type of the lambda must be the same type as the initial value. It then repeats the processes on the second value in the list, but using the previous result, and so on until theres no more items.

In the example above, c will change like you'd expect a mutable solution would but its a new Map each time. This might sound inefficient but its not really. Because each Map is immutable it can be optimized to share memory of the past Maps it was constructed from. Thats something you absolutely cannot do if your structures are mutable.

[-] sudo@programming.dev 2 points 2 years ago

Please elaborate. Is Hamas now Iran? Are the WCK workers now Iran?

view more: ‹ prev next ›

sudo

0 post score
0 comment score
joined 3 years ago