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

IEEE 754 Representation

Name: Anonymous 2014-09-13 5:48

Is it okay to use lower bits for a type tag?

Name: Anonymous 2014-09-13 5:49

It is perfectly okay to use lower butts for a tight tap.

Name: Anonymous 2014-09-13 6:16

-0.0 is retarded.

Name: Anonymous 2014-09-13 6:43

You mean a class tag, or a runtime classification tag. Types don't need runtime tags.

Name: Anonymous 2014-09-13 7:07

>>4

You're wrong. Outside of silly academic papers, types do need tags.
http://en.wikipedia.org/wiki/Tagged_pointer

Name: Anonymous 2014-09-13 7:13

>>5
How retarded do you need to get to confuse tags on values with tags on types?

Name: Anonymous 2014-09-13 7:27

>>6

1. Type is a value.
2. Value can reference it's own type.

Name: Anonymous 2014-09-13 7:40

>>7
1. No it's not.
2. It's possible but it still doesn't mean class tags are type tags.

For example for the type

data Either a b = Left a | Right b

there might be a value

Left "testicle"

that has a tag but this tag does not specify its type. We know that it's a Either String b value but we can't tell the b from the tag. It's a classification tag and can of course be encoded various ways, but it's in no way a type tag.

Likewise you might have a type like

Numeric = I Int | D Double

and encode the class tags (I or D) in the lowest bits of its representation, but it still wouldn't make them type tags. There's no way to find out at runtime if the value D 2.71 has the type Numeric or maybe some other type

Asswipe = I Int | D Double | C Char Char Char Char Char Char

Name: Anonymous 2014-09-13 8:09

>>8

1. Yes it is. If it ranges of some bits in memory, so it is a value.
2. Stop dividing computation into compile-time and run-time. It is a false dichotomy.

Name: Anonymous 2014-09-13 8:22

>>9
1. Types can be represented by values but are not values any more than number "tau" is a (computer) value. Number "tau" is a concept wholly independent from any computing device, though it can be represented in various ways on such devices. Likewise, a type is a mathematical concept that was invented way before the age of computers and does not depend on any device with "bits in memory".

2. It is a very real and useful dichotomy since types are a form of specification and can exist independently of any runtime, of evaluation, or indeed of any computer. You can typecheck a program with just pencil and paper, without ever running it. Now, of course typechecking and compilation can happen during runtime via a full compiler embedded into the runtime, but just because two things are coterminous doesn't mean they are the same thing. You can take a shit and eat at the same time, too.

Name: Anonymous 2014-09-13 8:35

>>10
tau
stopped reading right there.

Name: Anonymous 2014-09-13 8:51

>>11
Stop repyling to >>10-kun, YHBTC.

Name: Anonymous 2014-09-13 8:55

>>12
Why? He doesn't look like a troll.

Name: Anonymous 2014-09-13 13:00

IEEE 754 sucks cummin testicles

Name: Cudder !MhMRSATORI 2014-09-13 13:54

Yes if you don't need the precision... which is probably the case if you're using floating-point anyway.

>>2
You can typecheck a program with just pencil and paper, without ever running it.
You can also "run" the program with pencil and paper. (What do you mean you need a computer...? What the fuck are they teaching kids these days...!?)

2. Stop dividing computation into compile-time and run-time. It is a false dichotomy.
For me, anything that needs input is run-time, and anything else is compile-time. (You academic intellectual masturbators are probably going to disagree but that's how it works in practice.)

Name: Anonymous 2014-09-13 14:08

>>15
You mean >>10

Name: Anonymous 2014-09-13 17:24

>>15
You can also "run" the program with pencil and paper
But then you would be running it. Whereas if you typecheck it on paper, you won't be running it. Feel the difference? In one case you run it (doesn't matter the hardware: laptop, workstation, cluster, brain), in the other you don't run it. That's why typechecking is a logically phase logically separated from runtime. Even if it might happen at the same time.

Name: Anonymous 2014-09-13 18:54

lol atheists suck at math
what's new

Name: Anonymous 2014-09-13 19:21

>>15
You can also "run" the program with pencil and paper. (What do you mean you need a computer...? What the fuck are they teaching kids these days...!?)
Yeah. Back then people literally debugged code by manually evaluating it, because computer time priced more than human.

Name: Anonymous 2014-09-13 19:50

>>17
if you typecheck it on paper, you won't be running it.
typechecking = partial evaluation.

Name: Anonymous 2014-09-13 19:57

>>19
Are there any books or articles on how to do such a thing?

Name: Anonymous 2014-09-13 20:58

>>21

Dunno. But I've seen some crazy programmers carefully following the code, making notes, instead of just pressing "run" in IDE.

Name: Anonymous 2014-09-13 22:42

I've written out big ol' state tables as a proof by tautology back when I was learning VHDL.

Name: Anonymous 2014-09-14 1:53

I don't test my programs. I just commit and let others tell me if I broke the build.

Name: Anonymous 2014-09-14 15:40

>>24
Hey, I just wanted to let you know the your crap code broke the build again.

Name: Anonymous 2014-09-15 0:12

I don't work with other, so I do everything in "master" and no one tells me a shit

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