modeler

joined 3 years ago
[–] modeler@lemmy.world 0 points 3 months ago

I C (and most other languages) you can enter a value like thirty-two using many different number bases: ‘ ‘ as a char, 32 in decimal, 0x20 is hex, 040 in octal or 0b00010000. All of these mean thirty-two, just written differently using different characters.

Note that each of these representations use different digits and/or letters to specify the same number - the mathematical entity thirty-two. These letters and digits are characters stored as numbers, eg the digit zero (0) is coded in ASCII as 48.

In the end, the C compiler will compile the text ‘32’, ‘0x40’ or ‘0b00010000’ into binary and store it in memory the single byte where the 5th bit set to 1 and the others to 0. This is the way computer memory is used to represent the number, and it’s linked to the way the electric circuits do things like add numbers together.

The compiler is the thing that understands that the characters like ‘3’, ‘+’ or ‘F’ and works out what they represent (a number, a variable name or a sum). When it understands that, it will turn the code into bits that the CPU can work with, for example passing it to the compare instruction CMP used to test whether the input is less than the number thirty-two.

This is very meta, and I hope this clarifies rather than confuses. Compilers are notoriously confusing, such as the thought ‘the compiler compiles the compiler code into an executable that can compile itself’.

[–] modeler@lemmy.world 4 points 1 year ago

There's another factor - days where thr earth is orbiting faster, eg on the closer side of the ellipse - are a different length midday to midday from when we are on the far side of the ellipse.

You can convince yourself of this when you consider that the area of the arc we traverse each day is the same (Kepler's law). On the short side of our eliptical orbit, since the orbital distance is shorter, the arc must have a larger angle that we travel. That means the amount a point on the earth rotates to have the sun come back directly overhead must be different in different parts of the year.

This difference, summed day over day, results in a +/- 20 min movement of actual midday to 12pm. The 'mean' in Greenwich Mean Time refers to averaging this difference over the whole orbit.

[–] modeler@lemmy.world 3 points 1 year ago

BASIC DATA statement? Wow you were so lucky. On my ZX81 we had to enter them as characters in a REM statement that was the first line of code so we knew their address so that we could execute it. Address Space Layout Randomization? Couldn't work on the ZX81!

[–] modeler@lemmy.world 13 points 1 year ago (3 children)

That looked like machine code on a 8-bit micro, perhaps the Commodore 64 or VIC-20 (based on the screenshot and 40x20 text). So that would be the 6502. Child's play compared to what you'd need to do on a modern chip.

[–] modeler@lemmy.world 2 points 1 year ago

You had 100% of my attention with the cat and mouse game.

History is often much more interesting looking up from the average guy than looking down with all the majesty (and bureaucracy) of the nobles. This card has great insight into the common man.

[–] modeler@lemmy.world 14 points 1 year ago (2 children)

You're in luck!

Why would you carry an Axe over the should opposite the hand you're holding it with?

That's not an axe, it's a bindle - exactly what a fool (in french, le fou) would carry.

What is up with his pants

He's wearing medieval trousers - that is in fact two 'hose'

These trousers, which we would today call tights but which were still called hose or sometimes joined hose at the time, emerged late in the fifteenth century and were conspicuous by their open crotch which was covered by an independently fastening front panel, the codpiece.

And again le fou is so stupid, his junk is out and all over the place.

See: https://en.m.wikipedia.org/wiki/Trousers

[–] modeler@lemmy.world 0 points 1 year ago

Where else could the energy go?

It could be absorbed by the material and converted to either

  • a lower wavelength (i.e. uv fluorescence) or
  • heat (eg black cars are hotter than white cars in the sun)

In both cases the wearer is protected from uv, but the the spf will be found to be artificially low.

[–] modeler@lemmy.world 16 points 1 year ago (2 children)

Many people do not hear as they read. In fact the skill of speed-reading depends on turning the auditory experience off:

There are three types of reading:

  • Subvocalization: sounding out each word internally, as reading to oneself. This is the slowest form of reading.
  • Auditory reading: hearing out the read words. This is a faster process.
  • Visual reading: understanding the meaning of the word, rather than sounding or hearing. This is the fastest process.

Subvocalization readers (Mental readers) generally read at approximately 250 words per minute, auditory readers at approximately 450 words per minute and visual readers at approximately 700 words per minute. Proficient readers are able to read 280–350 wpm without compromising comprehension.

From https://en.wikipedia.org/wiki/Speed_reading

[–] modeler@lemmy.world 2 points 1 year ago* (last edited 1 year ago)

That's 2376 barleycorns, or a small bag of grain if you will.

[–] modeler@lemmy.world 9 points 1 year ago (2 children)

Or a barleycorn that's one barleycorn long? Or a really large foot that's a foot long. Or a chain that's a chain long?

[–] modeler@lemmy.world 2 points 1 year ago

Islam, just like Christianity, has many different groups that believe the same basic doctrine but disagree on many points. The main splits in Islam (that echo some aspects of the Catholic vs. Protestant split) as Sunni and Shia. Each divides and divides again into small communities centred on one mosque (just as, eg, Protestantism divides and divides down to individual congregations).

The big question is: how do groups of people decide which parts of the religious documents, history and practice are more relevant or even correct?

Some groups are quite 'secular' (like the Church of England) while others are quite 'fundamental', meaning that they much more strictly follow whatever the group decides are the foundation of the religion.

Is it possible to be able so say which of these groups is right? It seems to me that we have been fighting over this since before records began, so we most definitely do not have a way to do this that any majority agrees with. I don't think anyone can say:

Islamist groups purposely ... twist actual Islamic ideology while the Christian Right just doesn’t understand the religious text they claim to follow.

[–] modeler@lemmy.world 11 points 1 year ago (1 children)

Danny Boyd wrote an excellent video essay on A Knight's Tale. I too always wonder why there's always someone cutting onions when I choose to watch.

 

Spotted an owl in the woods in Bishan Park in central Singapore early in the evening. Logically this makes it a spotted wood owl.

Sorry for the low quality - it was at the limits of my Pixel 6 camera.

view more: next ›