Return Styles: Pseud0ch, Terminal, Valhalla, Blue Moon.

Pages: 1-

TTF Idiocy

Name: Cudder !cXCudderUE 2017-10-07 4:15

At first glance TTF looks like a reasonable format --- you can just read the various tables into memory and they'll line up nicely with their structure definitions...

...until you realise that all the fields are in big (i.e. backwards) endian, so you have to manually swap all the fucking bytes!

Name: Anonymous 2017-10-07 4:24

um no, intel has it backwards
what kind of wanker thought that little endian was a good idea?

imagine how many YEARS worth of processor cycles and electricity have been wasted since the dawn of computing over converting between big and little endian? Note that this happens EVERY time you send an IP packet over the network (htons and family).

our garbage protocols and conventions prevent us from reaching the maximum possible computing efficiency, not the technology itself. sad state of affairs, no?

Name: Cudder !cXCudderUE 2017-10-07 4:42

Big endian: increasing address, decreasing (width-dependent!) significance.
Little endian: increasing address, increasing significance.

Little endian is logical. Big endian is backwards.

Name: Anonymous 2017-10-07 20:22

Only big endian arranges binary, decimal, and string in the same order. One thousand two hundred thirty-four is 1234, not 4321 or 3412. Chinese numerals and Roman numerals are big endian too. Little endian isn't even reversing bits, it reverses octets within a word, chopping up the bits.

Name: Anonymous 2017-10-08 14:12

Big endian: The same for every system, consistent
Little endian: It depends on the size of the byte, inconstant

Name: Anonymous 2017-10-08 14:14

If it used shit endian instead then it would only make sense for JA86. Since it uses sane endian it makes sense for every other system in the world.

Name: !Ps1ivhrO6w 2017-10-08 14:31

map and reduce

Name: Anonymous 2017-10-08 14:32


Name: !Ps1ivhrO6w 2017-10-08 15:54

whereas you fold left and they fold right

you've gotta earn yourself some trouble

Name: !Ps1ivhrO6w 2017-10-08 17:12

the stability is brought by optimization in respect to time and expected architecture while at the cost of some spatial complexity to new implementers

Name: Cudder !cXCudderUE 2017-10-08 18:29


Name: Anonymous 2017-10-08 18:49

Increasing address, increasing significance
Do you also write one hundred as 001 you fucking idiot

Name: Anonymous 2017-10-08 18:53

Why do you hate consistency?

Name: Anonymous 2017-10-09 7:03

Cudder is all talk and no action!

Name: !Ps1ivhrO6w 2017-10-09 9:16

what you see as a string can also be better explained as a chain
a conditional logic chain
and the less conditions you need to check, the better

Name: Anonymous 2017-10-09 9:26

just like the old HAX MY ANUS program, the logic chain that drives Cudder's behavior has only one condition. and just like that program, it does the same thing regardless of its truth value, but instead of printing 'HAX MY ANUS' it complains that everyone is an idiot and claims to be the best programmer evar.

Name: Anonymous 2017-10-09 11:24

strings are better explained as ropes though

Name: !Ps1ivhrO6w 2017-10-09 14:02

yes, but you can program a string by adding nodes and such

Name: Anonymous 2017-10-09 14:41

You can't push a rope.

Name: Anonymous 2017-10-10 6:53

but given enough rope you can shoot yourself in the foot

Name: Anonymous 2017-10-10 18:02

byte swapping is basically free on modern systems unless you think reading large amounts of memory is how to make a high performance system

Name: Anonymous 2017-10-18 7:48


Don't change these.
Name: Email:
Entire Thread Thread List