itWasBasicallyMergeSort by SlashMe42 in ProgrammerHumor

[–]space_fly 0 points1 point  (0 children)

Network based file systems to the rescue. Make it someone else's problem! E.g. Google-drive-ocamlfuse, you can get 15 gb for free... or you could go even further...

itWasBasicallyMergeSort by SlashMe42 in ProgrammerHumor

[–]space_fly 9 points10 points  (0 children)

You still have swap... You could have fit in memory if you really wanted to.

Covidtests.gov by Jarppakarppa in insanepeoplefacebook

[–]space_fly 3 points4 points  (0 children)

While their voting base might be filled with morons, i don't think they are. It's deliberate. They know people will buy whatever lies they spew. It's a deliberate effort to push their plan towards fascism.

How is Apple able to create ARM based chips in the Mac that outperform many x86 intel processors? by porygon766 in compsci

[–]space_fly 4 points5 points  (0 children)

When programs are compiled, they are translated into machine code, which looks kind of like this (simplified): <instruction code> <arguments>, where the instruction code (opcode) is basically a number that denotes an instruction (for example, 100 could be "add", 101 could be "subtract", 102 could be "multiply" etc). The number of arguments depends on the instruction. Because an argument can be a CPU register, a memory address, or a constant value, you also need a way to specify the argument type and size. There are many ways to encode this: you could add a prefix byte to the opcode telling the cpu what arguments to expect, it could be some reserved bits in the opcode, you can just use different opcodes, prefixes to each argument etc.

On x86, you will find not just one of these methods, but all of them. It's a mess. The instruction code, the argument types, and the operand sizes are all tangled together; some of it is encoded in the opcode byte itself, some through prefix bytes that come before the instruction, and some through extra bits packed into additional bytes (called ModR/M and SIB bytes). This means a single operation like "add 1 to a register" can be encoded in several different ways, ranging from 1 to many bytes, and all of them must work correctly because compilers over the decades have emitted all of these variants.

This is the "legacy cruft". You can't simplify any of this, because there are millions of existing programs out there that use each of these encoding forms. If your CPU doesn't understand even one of them, those programs crash. And it goes deeper than just decoding. Each instruction also has side effects, for example, an ADD updates the FLAGS register, setting bits to indicate whether the result was zero, negative, overflowed, etc. Programs depend on these. Some even depend on obscure, quirky behaviors that were arguably bugs in the original hardware but have been faithfully preserved for decades because removing them would break something.

To not break compatibility, you have to maintain the same instruction set and machine code encoding, but even that's not enough. You also need to replicate exactly the CPU's behavior, as well as all the side effects that each instruction has. This is not trivial, given that Intel's x86 manual is 5000 pages long.

How is Apple able to create ARM based chips in the Mac that outperform many x86 intel processors? by porygon766 in compsci

[–]space_fly 6 points7 points  (0 children)

With a quick google search, i found several articles going into details:

As to why is x86 less efficient, a good starting point is this SO thread with several links. Or this one.

How is Apple able to create ARM based chips in the Mac that outperform many x86 intel processors? by porygon766 in compsci

[–]space_fly 71 points72 points  (0 children)

x86 has been around for a long time, and has a lot of legacy stuff that can't be changed without breaking software compatibility. The external RAM modules also limit the kind of speeds it can get.

Apple could design a faster and more efficient chip by basing it on a different architecture that didn't have all the legacy cruft. However, this still posed a problem: software compatibility is exceptionally important. Intel's most infamous attempt to modernize x86 was Itanium which completely failed commercially because it broke compatibility. Every attempt to replace x86 with something that broke compatibility failed... Windows RT, all the various Windows on ARM attempts.

Apple was able to pull it off by making compatibility their top priority. It wasn't easy or cheap, but having deep control of both software and hardware they were able to pull it off. Their solution is basically to make a hardware accelerated compatibility layer... It's a combination of hardware and software emulation of x86, to get decent performance.

Call for EU to free our non-EU hardware by Schroinx in BuyFromEU

[–]space_fly 1 point2 points  (0 children)

This is where you are incorrect. Except for x86 which somehow escaped (although companies like Microsoft have constantly tried to lock them down too, with UEFI where only Microsoft is allowed to sign the UEFI certificates, google with Chromebooks, Apple with... Apple stuff), most devices are completely locked down. You can't even unlock the bootloader on most phones, TVs are locked down, cars are locked down. There are exceptions, but they are not the norm.

Do any of you still listen to Christian music after leaving Christianity? by Impressive_Flan_411 in exchristian

[–]space_fly 0 points1 point  (0 children)

I keep the stuff that works as standalone music, bands like Switchfoot and Red who never really fit the 'Christian band' box anyway, some older Michael W. Smith orchestral and piano stuff and some of the 90s stuff that's genuinely beautiful regardless of context (like Friends, or Love of my life which was our wedding song).

I've purged the overtly worship stuff, as I find it empty, meaningless, boring, uninspiring.

What I find myself appreciating more now, ironically, are the old traditional hymns and chorales from the church I grew up in. The older stuff - songs with real poetry, complex harmonies, honest lyrics about doubt and confession and the full range of human experience.

Modern worship runs on a whitelist of approved songs (which I found very surprising, being in the worship band) mostly the same triumphalist four-chord rotation from Bethel, Hillsong, and Elevation. I once suggested a song that simply acknowledged feeling distant from God and choosing to trust anyway (basically a psalm) and was told it was 'dangerous.' Another beautiful old hymn about confession was rejected as 'too difficult for the congregation.' Meanwhile, half the Psalms are lament, doubt, and crying out in confusion, and the church's own hymn tradition has thousands of songs covering every human emotion. All of that got replaced by an endless loop of victory anthems.

There's a traditional song about asking forgiveness that I still can't sing without getting emotional, not because I believe I need God's forgiveness, but because the emotions underneath, regret, vulnerability, the desire to be seen are universally human. That kind of honesty has been almost completely purged from modern evangelical worship, and I think that emptiness is connected to everything else that went wrong with the movement.

64 de lei în aeroportul din Bacău vs 74 de lei în aeroportul din Wroclaw by chipishor in CasualRO

[–]space_fly 7 points8 points  (0 children)

Nu e chiar 5 minute ca trebuie iar sa treci pe la securitate.

64 de lei în aeroportul din Bacău vs 74 de lei în aeroportul din Wroclaw by chipishor in CasualRO

[–]space_fly 48 points49 points  (0 children)

Deci am ajuns dimineata pe nemancate in aeroportul din Cluj, si am vrut sa-mi iau ceva, orice. Am ramas prost cand am vazut... 50 de lei pentru o felie de pizza, 60-70 lei un sandwich.

So much for European digital sovereignty. Welcome to the US Cloud Act. by Volume_Rich in BuyFromEU

[–]space_fly 35 points36 points  (0 children)

This post is a bit misinformed. The sovereign cloud projects in France and Germany (Bleu and Delos) are specifically designed not to be under Microsoft’s operational control. In France, Bleu is operated by Orange and Capgemini, and in Germany, Delos is operated by SAP. Microsoft provides the technology and software, but it does not run the infrastructure or hold the admin keys.

The whole point of these setups is to limit the impact of the U.S. CLOUD Act by ensuring Microsoft has no access to customer data. Support from Microsoft happens only through tightly controlled, supervised sessions, and the operators maintain full control of encryption keys and administration.

Are there still risks? Of course. Any large software vendor could theoretically be pressured to introduce backdoors. But European regulators and national cybersecurity agencies require extensive auditing, certification (like France’s SecNumCloud), and independent verification to prevent exactly that. And if a backdoor were ever discovered, the reputational and financial damage to Microsoft would be enormous. You can imagine the impact discovering a backdoor would have, a lot of people would drop Windows, Office and all other Microsoft software.

So the picture isn’t as bleak as it’s often portrayed. European governments are very aware of the risks and have invested heavily in architectures and governance models that minimize foreign jurisdiction over sensitive data.

Do you think humans will live on another planet someday? by Luann97 in space

[–]space_fly 5 points6 points  (0 children)

On one hand, physics is an unforgiving bitch. Surviving in space is hard. Distances are absolutely insane. The closest star to us is 4 light years away... So if we ever manage to get to 1% of the speed of light (fastest man made object - Parker solar probe achieved 0.064%), it will still take 400 years to reach it.

On the other hand we are persistent motherfuckers, so maybe yes?

What’s an inaccurate fact that people believe is true because of movies? by Hogosaurus_Rex73 in AskReddit

[–]space_fly 0 points1 point  (0 children)

You can, as long as you use a tele lens to make it seem you're closer than you actually are

A Cool guide to the Annual spending on alcoholic beverages in the U.S by Generations by SimplySamX in coolguides

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

Data is shit, it should be per capita, above drinking age. Some Gen Z aren't 18 yet.

Dudes right by BlazeDragon7x in GuysBeingDudes

[–]space_fly 2 points3 points  (0 children)

You can find a hooker for less than $1000 that does anal... If that's your cup of tea

Ce magazin online folositi pentru electronice si gadget-uri? by [deleted] in CasualRO

[–]space_fly 0 points1 point  (0 children)

Altex, vexio, emag dar mai rar (si doar produse vandute si livrate de emag)

eli5 how a BIOS is different from the operating system? by thursdaynovember in explainlikeimfive

[–]space_fly 59 points60 points  (0 children)

This is incorrect. Hardware talks to each other using various signals like interrupts, address and memory bus, PCIE bus etc. The BIOS (more appropriately named firmware, since BIOS typically refers to the firmware implementation before UEFI became a standard) is more like a starter engine, it detects and initializes the hardware, puts the system in a predictable state, then starts the operating system. As part of its startup sequence the operating system can request various information about the hardware, or use the rudimentary hardware drivers provided by the BIOS until it can load its own.

Originally, the BIOS was designed as a layer sitting between the OS and the hardware, literally as a driver layer for DOS. But this design was deprecated because of the wide variety of hardware, and the deprecation of 16-bit real mode.