[colorforth] All sorts of´things
- Subject: [colorforth] All sorts of´things
- From: Jimmy Söderman <hiraganagos@xxxxxxxxxxx>
- Date: Fri, 15 Nov 2002 20:12:23 +0000
- Bcc:
G´day !
I have a wundering that i hope maybe someone could answer here, how come the
(okadfont.jpg on chucks site, the chart of chars.
As it has rows 0..8..10..18..20..28..30..38), "skipping" every other with 2,
and every other with 10.., whats the deal with that? (often you add even
steps all along).
ok, about my thinking a about block & binary types earlier ;
Having to resort to do binary type in the editor sound like a bad idea alone
as the need is to represent the type in sourcecode aswell (as hex/dec is
now).
I now realised, that despite BLOCKs are important part of CF its not
vital to have as a type.
As yellow-green transition makes it able to do complex calculations, keep so
easy to read not need to waste as much comments, and still have all the
speed?
Great thing to have, really.
I think its so great, that ive tried hard to do a solution allready for
other things in the same manner but with a twist, as you will see further
down"
My old idea was to use block as type so you effeciently could use blocks in
green with no tradeoffs), but i reliase you use it in the situations where
either use some trick and add comments, or you execute it as above.
But i still want to be able to have large amount of tables with numbers
wich take no more place than themself should a stored data binary file.
So my questions and wunderings are and will be:
- How to do it huge tables with hex or dec numbers?
- How to make them not tak more room than needed a binary file
- How to do solve to be able this with binary aswell?
- A way to store somthing compressed, and watch it uncompressed? (sourcecode
is compressed, why not certain data wich is large in tables maybe have a
compressing algo for applying to tables as whole)
- And if so, a nice way to control various layouts, eg. number of bits, per
row, and the like?
Now..., i´ve implemented a binary type, to share :)
Im hope it gives some new ideas too for other things to be made.
<red> B <green> 0;
<red> 1 <green> 2* 1 + ;
<red> 0 <green> 2* ;
Example:
<yellow> B 1 1 0 0 1 0 1 0 <green> use as a "normal number" now.
NOTE: Pentium got multishift possibility, wich could be used if wanted.
; Uses: general:see databits, gfx: visual storage (maybe a way work with
compression too), music: visual storage (same goes here). And proabbly
gives lots of other ideas too.
; One idea would be to use editied icons instead of numbers, making for a
very visual storage for certain things, let the imagination go wild!
; O 0 ;
: 0 2* 2* 2* 0 + ;
: 1 2* 2* 2* 1 + ;
: 2 2* 2* 2* 2 + ;
: 3 2* 2* 2* 3 + ;
: 4 2* 2* 2* 4 + ;
: 5 2* 2* 2* 5 + ;
: 6 2* 2* 2* 6 + ;
: 7 2* 2* 2* 7 + ;
Ok now have a good one everyone, Cya!
And please pop by #c4th channel on IRCnet if you´ve got the chance.
Sincerly
Jimmy Söderman
PS.
- opcode#12 in the primitive-list, listed as macro in block 26 wich compiles
assemblercode that makes it impossible to use it directly before IF, as it
dosnt sets flags on the Pentium.
I think i would have the solve... (posted this earlier but i wasnt too clear
when i came to think about it)
By change the "-" macro in block 26, (the code would be "XOR EAX,-1" in
assembler)
i will get the colorforth code equlivalent soon for you, this will makes it
possible to use as you wish directly before IF, and, is also more effecient
in terms of speed on pentium).
(im not sure if maybe the flags isn´t SUPPOSED to change on this chip
primitive?
please enlighten me.
_________________________________________________________________
Fynda på nätet! Handla på MSN Shopping http://www.msn.se/shopping
---------------------------------------------------------------------
To unsubscribe, e-mail: colorforth-unsubscribe@xxxxxxxxxxxxxxxxxx
For additional commands, e-mail: colorforth-help@xxxxxxxxxxxxxxxxxx