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

Pages: 1-

How do you do ``?'' to create space

Name: Myrias 2011-11-08 1:02

Hi, i am learning C++ and i understund pretty well how it's working.

asigment, pointers, type and size in bits of different values, loop, mathematic operation, objets...

i can read the code and understund what it mean, what it do in mathematical ways.


what i did't understund, or perharps i just did't read this part is how you create the notion of space, angle, lenght.

easy to say, x=2 is 1 after x=1, but what about he is 1 meter more far in this direction
and those two are 2 vertice who make a edge, and those 3 vertice form 3 edge who form a face. and what look like a face.

near bottom (machine) i undertund, near top i understund, but betwen how you create the spatial mark, i did't find yet.

Name: Anonymous 2011-11-08 1:37

Units are implicit to the code. You decide on what unit to use and enforce it by convention. The code you write provides the semantics or meaning to the values. Computation in the end doesn't care about units, just that your input and output data is consistent.

Name: Anonymous 2011-11-08 1:43

how do you tell to the machine what is x, y, z.

you use it but how you create it.
how do you define what cartesian coordinate mean.

not in word to me i know what is it, but to the machine.

Name: Anonymous 2011-11-08 2:16

>>2
The machine doesn't care. Do you think the Universe cares about humans or human inventions like units? No. If all of humanity died tomorrow, the Universe would carry on as if we never existed. Same thing with computers.

All the computer knows about are binary digits--modern computers are what are known as register machines, which all essentially follow the Von Neumann architecture, in which the program is stored in the same memory as data, and program opcodes are just strings of binary digits themselves.

http://en.wikipedia.org/wiki/Von_Neumann_architecture

Memory is addressable, so for example you can distinguish the 0th byte from 8th byte in RAM, and addresses are also encoded as strings of binary digits.

All of this is possible by hardwiring the semantics of everything as physical digital circuits.

You can write your software so that tuple indices, like the x, y, z of a vector are implicitly mappable to memory address offsets.

C/C++ language constructs like struct or arrays allow you to do this.

Name: Anonymous 2011-11-08 4:10

>>1
Ditch C++ Read SICP

Name: Anonymous 2011-11-08 8:15

wow /prog/ you are so easy to troll it is not funny

Name: Anonymous 2011-11-09 0:13

>>5
have you read your SICP today, larval stage n00bcake
>>6

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