• 0 Posts
  • 237 Comments
Joined 2 years ago
cake
Cake day: December 26th, 2023

help-circle



  • I’ve used it a fair amount for memory mapped IO where the hardware defined bitfields. It is also useful when you have a data format with bitfields. I’d say it is also useful when your data does not respect byte boundaries, but the only time I’ve run into that involved the bit order being “backwards”, which means that I still had to bittwidle things back together.

    From a performance perspective, a cache line is only 64 bytes. Space in registers, low level memory caches, and memory throughout are all limited as well.







  • I think the image assumes that the viewer is familiar with merge sort, which is something you will learn in basically every undegraduate CS program, then never use.

    To answer your first question, it helps to have something to compare it against. I think the most obvious way of sorting a list would be “insertion sort”, where you look through the unsorted list, find the smallest element, put that in the sorted list, then repeat for the second smallest element. If the list has N elements, this requires you to loop through it N times. Since every loop involves looking at N elements, this means you end up taking N * N time to sort the list.

    With merge sort, the critical observation is that if you have 2 sublists that are sorted you know the smallest element is at the start of one of the two input lists, so you can skip the inner loop where you would search for the smallest element. The means that each layer in merge sort takes only about N operations. However, each layer halves the number of lists, so you only need about log_2(N) layers, so the entire sort can be done in around N * log(N) time.

    Since NlogN is smaller then N^2, this makes merge sort theoretically better.





  • Zionism is an ethnonationalist Ideology that says that Israel should exist as a Jewish state. Like all ethnonationalist movements, Zionism also has a strong component of territorial expansionism.

    Israel’s founding was absolutely a Zionist project. And Zionism has been a large part of Israeli politics since then. However, there is another school of thought that goes “I don’t care how we got here, but it is 2025, and the state of Israel is a thing that exists, and I support the right of that entity and it’s citizens”.

    This is a bit muddled in today’s climate, because the current Israeli leadership has been thoroughly captured by ultra Zionist. As in, Netenyahu’s government is only holding on to power by forming a coalition with far right fringe parties that until a few years ago were a third rail in Israeli politics. Back in 2007, their c now current Minister of National Security, Ben Gvir, was convicted of supporting a terrorist organization.

    However, as with every country, people can have a different view towards the country as a whole, and it’s current political state.


  • homura1650@lemm.eetoAsklemmy@lemmy.ml*Permanently Deleted*
    link
    fedilink
    arrow-up
    5
    ·
    edit-2
    4 months ago

    I was shopping for a new vacuum cleaner when a saw a portable carpet cleaner. Basically a vacuum with a precision nozel bolted to a water sprayer. It has been a complete game danger for cleaning up the mess my cats would sometimes leave. Although it is still not as effective as the course of dewormer their vet prescribed.


  • I don’t see it discussed in this article. But I recall reading another article suggesting that US Christianity is becoming more fundamentalist, which has been a driving force in pushing many people out, while leaving those that remain more extreme. The net effect is that while Christianity is shrinking, fundamentalism is growing. Coupled with fundamentalism becoming an increasingly political movement [0], and you see the current US.

    Being Jewish, I’ve noticed a similar thing. Overall, people I grew up with have mostly shifted away from the religion (although still tend to consider them Jewish as a cultural marker). But those who are still actuvely religious tend to be more religious then their parents are.

    [0] In the sense of governmental electoral politics.



  • Not really. Looking at the presidential races, we have:

    • 1788-1792: George Washington
    • 1796-1816: Democratic-Republican v Federalist. Other than the 1796 election, a Democratic-Republican won every presidency.
    • 1820-1824: Democratic-Republican v Democratic-Republican - Monroe ran away with 80% popular vote and 218/232 electors in 1820. In 1824, the Democratic-Republican splintered into 4 factions netting a total 97% of the popular vote.
    • 1828-1832: Democratic v National Republican. Notably, this is really a splintering of the Democratic-Republican party.
    • 1836 - 1852: Democratic v Whig - I’ll give you this one. After a 40 year run, the Federalists were replaced by the Whigs
    • 1856 - Present: Democratic v Republican - And 20 years after that, the Whigs were replaced by the Democratic party

    There has been a couple of strong showings by third parties since then, but for the most part, US politics has been Democrats vs Republicans since 1856.

    Congress followed a very simmilar tragectory.

    In short, of today’s current 2 political parties, one of them goes all the way back to Washington stepping down, and the other one showed up in the first 70 years. Both parties survived the Civil War.

    During the time since 1856, there has been several massive political realignments, but the two parties remain dominant.



  • homura1650@lemm.eetome_irl@lemmy.worldme_irl
    link
    fedilink
    arrow-up
    6
    ·
    5 months ago

    Or that you are self aware about being bad at punctuality.

    If we are diagnosing people over the Internet based on their memes, my first instinct is to say that OP suffers from time blindness, likely caused by ADHD.

    Not to say that there are not people who are late as a narcissistic power play. But it is far more common for people to simply not be good at being on time.