Zarutian_HTC has quit [Read error: Connection reset by peer]
Zarutian_HTC1 is now known as Zarutian_HTC
sts-q has joined #forth
jedb_ is now known as jedb
gravicappa has joined #forth
WickedShell has joined #forth
_whitelogger has joined #forth
WickedShell has quit [Remote host closed the connection]
[1]MrMobius has joined #forth
MrMobius has quit [Ping timeout: 246 seconds]
[1]MrMobius is now known as MrMobius
irsol_ has joined #forth
irsol has quit [Read error: No route to host]
irsol_ is now known as irsol
jsoft has quit [Ping timeout: 272 seconds]
_whitelogger has joined #forth
f-a has joined #forth
X-Scale` has joined #forth
X-Scale has quit [Ping timeout: 264 seconds]
X-Scale` is now known as X-Scale
f-a has quit [Ping timeout: 246 seconds]
proteusguy has joined #forth
TCZ has joined #forth
f-a has joined #forth
jsoft has joined #forth
Lord_Nightmare has quit [Ping timeout: 260 seconds]
TCZ has quit [Quit: Leaving]
Zarutian_HTC has quit [Remote host closed the connection]
TCZ has joined #forth
Doob has joined #forth
<Doob>
Hello all. Is the number of bits in a Forth-number dependent on the processor or the standard?
<Doob>
Just i read old books about Forth, where they work with 16 bits everywhere, and then they expand to 32 and 64 by the Forth itself.
jsoft has quit [Quit: Leaving]
<sts-q>
Doob: Well, what i think is, it depends on the implementer. If you implement a Forth, you start with what the machine provides and build what you need. Then extend further.
<sts-q>
Doob: In the good old time ( ;) ) this might be a 8-bit machine, implementing 16-bit Forth in assembly. Then if needed 32-bit Forth in Forth.
<Doob>
sts-q: Ok. This means that if I make a fort in a high-level language with 64-bit numbers, then I do not need to lower the precision and expand the set of words to 16 bits.
<Doob>
Can I use a data stack for floating point numbers? Or is it necessary to work with them in a special float-stack?
f-a has left #forth [#forth]
<sts-q>
Doob: Floats are data and therefore go on the data-stack, that's fine.
<sts-q>
Doob: I think there are Forth standards: ANSI-something and others. I think, it is a good idea, to start with these, if only for the sake of readability.
<Doob>
I didn't find anything about the bit length, only about memory alignment.
<sts-q>
Doob: In many languages '+' is '+', no matter if int, int32, float, whatever. Forth needs an operator for each type, there are a lot of them.