7 ms·
> I will be using x64 assembly with the AT&T syntax as it is objectively superior than the Intel syntax. This made me laugh because it must be a reference to t
by cgh 4y ago
> I will be using x64 assembly with the AT&T syntax as it is objectively superior than the Intel syntax.
This made me laugh because it must be a reference to this: https://news.ycombinator.com/item?id=33652023 https://news.ycombinator.com/item?id=33652023
> I contend that the AT&T syntax is harmful and bad, and should never be used, for any reason, under any circumstances, by anyone.
- _8j50 4y agoAT&T really is annoying but it feels like the big vs little endian debate. Fairly easy to convert between the two as well.
- sedatk 4y agoFor those who don't know, that's why big and little endian were called that, because the debate was so frivolous. It's a reference to the book Gulliver's Travels by Jonathan Swift in which an island folk was split about from which end you should crack a boiled egg. (I'm a big endian for example).
- classified 4y agoI'm firmly in the little-endian camp for eggs, but big-endian for CPUs.
- sedatk 4y agoFound my archnemesis.
- nurettin 4y agoDo you even care about CPUs anymore?
- classified 4y agoWell, boiled eggs definitely taste better.
- monocasa 4y agoWatch as every pitchfork gets pointed at you when you talk about middle endian. Which is a real thing. There are systems that would store, say, a 32-bit word as two 16-bit words that were big endian relative to each other, but little endian within the 16-bit word.
- account42 4y agoYes, but which order are the bits stored in each byte?
- quelsolaar 4y agoI used to be big endian. Then i changed my mind. Have a look at the following: -123 -12 -1 Here are three numbers. If we read them from left to right, they all begin with 1, but we cant tell what the 1 means, in one case it means 100, in one it means 10 and in one it means 1. We need to parse the entire number to know what the first number means. If we parse from right to left, each number always means the same thing. the first is how many once, the second how many 10s and so on. So it makes sense to store the smallest first. In a big endian architecture, if i want to read an 8, 16, 32 or 64 bit word each byte will always mean the same, if we pad out the type with zeros. So little endian is right, and Arabic numerals are wrong.
- rags2riches 4y agoArabic numerals are little endian when writing right-to-left. Like Arabic is written.
- quelsolaar 4y agoYes, you are right!
- mananaysiempre 4y agoIndic scripts are LTR, and so stayed the big-endian numerals when they were borrowed by medieval Islamic mathematicians. Numerals in modern spoken Arabic are big endian (mostly, with an exception for the teens that also exists in English).
- quietbritishjim 4y agoIt looks like the comment you're replying to was talking about eggs. I'm little endian by the way.
- dekhn 4y agoWait, hasn't everybody learned about inside-out endian? The highest order bit is in the middle, then proceeds along a hilbert path to the edges
- sedatk 4y agoNo, but that's how I peel an egg.
- userbinator 4y agoTry to find (or even better, write) a big-endian arbitrary-precision arithmetic implementation if you're convinced that the difference is frivolous. You'll easily see why one is sometimes called "logical endian" and the other "backwards endian".
- comex 4y agoOr try to read numbers in a hex editor, and quickly obtain the opposite conclusion. :)
- nmilo 4y agoGenuinely curious, what are any advantages of big endian other than "it's how we write numbers in base 10?"
- efficax 4y agoexcept now that everything depends on the internet, and words that go over networks are big endian, it seems insane to throw away millions and millions of cpu cycles every year converting them to little endian to be processed by our little endian cpus. sure, it's a single cpu instruction, but between every computer in the world, almost all of them being little endian arm or intel, that's billions and billions and billions of instructions wasted.
- tux3 4y ago>I will be using x64 assembly with the AT&T syntax as it is objectively superior than the Intel syntax. Them's fighting words.
- EarlKing 4y agoI immediately stopped reading the minute I read that in the text. I can't take anything they say seriously after reading that.