00:00:00 --- log: started forth/06.01.27 00:16:50 --- quit: segher_ () 00:18:23 --- join: segher (n=segher@dslb-084-056-151-226.pools.arcor-ip.net) joined #forth 01:21:54 --- quit: JasonWoof ("off to bed") 01:40:29 --- join: amca (n=plump@as-bri-4-1-222.ozonline.com.au) joined #forth 01:42:13 Hello. Any excitement of late? 02:29:37 --- quit: amca (Read error: 113 (No route to host)) 02:35:14 --- join: amca (n=plump@as-bri-3-81.ozonline.com.au) joined #forth 03:05:47 --- join: charles` (n=charles@host-64-139-245-63.nctv.com) joined #forth 03:06:59 I can't seem to find anything on this.. how would I do this in forth: 2.12 ^ -2.1 03:08:09 heh 03:08:15 I was wondering the same thing today 03:08:20 Which Forth you using? 03:09:13 gforth 03:09:41 Do you know about using the floating point stack? 03:09:58 not really 03:10:29 Okay 03:10:42 Well the regular stack is only integer 03:11:05 So you have to put the numbers on the floating point stack 03:11:15 you can see what is on it with f.s 03:12:05 ok and to make sure they go on the floating stack 03:12:14 do you specify them a certain way? 03:13:09 yep 03:13:20 it has to have a e or E in the number 03:13:36 e.g. 2.12 is 212e-2 03:13:44 ah I see 03:14:18 and then all operations you want to perform have to be preceded by f right? 03:14:20 or 2.12e0 03:14:39 yep. 03:14:57 2.12e0 -2.1e0 f** 03:15:31 ahhh 03:15:33 awesome 03:15:49 is there a ** for the integer stack? 03:16:01 nope :/ 03:16:14 I was wodering about that this morn too. 03:16:20 (wondering) 03:16:37 how do I take a number from the floating stack and convert it to an integer and put it on the integer stack? 03:16:40 and vice versa 03:17:17 to go from integer stack to floating point you do s>d d>f 03:17:39 and you do f>d for the other way arounf 03:17:42 and you do f>d for the other way arouaround 03:18:20 so what really is d? 03:18:24 f>d d>s sorry 03:18:37 s is single integer precision, d is double integer precision 03:19:20 probably handy if you are only dealing with singles to create a s>f word (: s>f s>d d>f ;) 03:19:27 and f>s word 03:20:15 Cause Forth is mainly used for embedded stuff, Forth programmers usually use fixed point math rather than floating point 03:20:35 so why does s>d d>f work and not say s>f? 03:20:54 just cause a single precision float can't hold all possible ints? 03:21:28 cause s>f isnt defined 03:21:58 how do I just create a number on the d stack? 03:22:18 because 2.44589e3 will go on the f stackwhen I type it automatically right? 03:22:26 Forth stores double integers on the integer stack 03:23:20 so if you do 10 s>d .s you can see that it converts it from a single to a double on the one stack 03:23:57 oh ok, so a double is simply the first element is the main number, the second is the decimal? 03:24:48 no 03:25:07 a single in gforth is a 32 bit integer, a double is a 64 bit integer 03:26:46 do you have a recommended page for learning all this? 03:26:56 the gforth docs 03:27:06 * amca looks for the url 03:27:10 ah yeah that's what I was looking at earlier 03:27:21 Ill find you the page 03:27:55 I was looking here.. 03:27:56 http://www.ugcs.caltech.edu/manuals/lang/gforth-0.6.2/index.html#Top 03:28:09 I don't know if that is the same one or not 03:28:45 Try http://www.ugcs.caltech.edu/manuals/lang/gforth-0.6.2/Floating-Point.html 03:28:47 brb 03:29:05 thanks 03:30:54 bak 03:32:32 let me ask, why are you learning forth? 03:33:18 A couple of reasons 03:33:48 the first is cause I am making a stack based VM for gaming, and the second is I love the elegance of the language 03:33:57 Why are you learning Forth? 03:34:14 I'm taking a class where we have to make a compiler 03:34:26 Ah 03:34:29 but instead of turning code into assembly we just translate it to forth 03:34:54 Forth is kinda like a postfix, extendable assembly to me 03:35:17 yeah, the only assembly I have done is SPARC so it is a little foreign to me 03:35:27 as I understand it x86 is very similar to forth 03:35:30 SPARC is CISC? 03:35:34 Nope 03:35:58 x86 is just used to implement forth 03:36:24 To see processors that are similar to Forth, look at "Stack Computers" by Koopman 03:36:47 Looking for url now 03:36:55 http://www.ece.cmu.edu/~koopman/stack_computers/ 03:37:13 cool 03:37:37 are you guys having the output of the compiler gforth code? 03:38:17 What CPU does SPARC run? 03:39:28 oh no, we are just taking in a language that is pretty much lisp 03:39:48 in a /in code in a 03:39:59 and outputting code in forth 03:40:10 What type of Forth? 03:40:17 gforth 03:41:05 ok 03:41:21 How is it going? 03:41:22 I was just saying the only assembly I've learned was for sparc as an aside 03:41:34 well we just started pretty much 03:41:54 our first tiny assignment is just converting some infix math into forth code 03:42:12 Ah 03:42:33 our next thing will be automating it 03:42:42 Yeah, even though they arent targetting Forth as the output I heaqr most compilers convert infix to postfix 03:43:00 Which SPARC CPU did you learn asm for? 03:43:36 Any idea where I could go on the net to find the basic SPARC instruction set? 03:43:50 it was maybe SPARC version 9 03:44:20 (Im interested in different cpu instruction sets/implementations etc) 03:45:01 yeah... hmm I'm not even sure where online 03:45:31 we had a book that covered it if I remember correctly 03:45:57 everything is register based 03:46:04 * amca nods 03:46:11 you load into a register and do work on it and the store to memory 03:46:14 RISC architecture - been reading about it on wikip 03:46:19 yeah 03:46:22 very RISC 03:46:34 Very orthogonal? 03:47:29 yeah 03:47:52 cool :) 03:53:50 Ah, SPARC has similar instr. set to MIPS. You ever played with SPIM? 03:54:26 yes I think so 03:55:42 I had a class where we had to write some simulators of pipelining and stuff and I believe we may have used SPIM in there 03:59:28 cool 04:05:02 --- join: tathi (n=josh@pdpc/supporter/bronze/tathi) joined #forth 04:07:48 but yeah I think I'm gonna be writing the compiler in python so I'm gonna wind up learning 3 new languages 04:07:56 python lisp and forth 04:08:11 cool :) 04:08:32 Do you have things you like about lisp or forth? 04:12:38 I don't really know yet because I'm just starting 04:12:54 I hear with both of them you do a lot of bottom up design 04:13:04 which I think I'll like 04:13:46 * amca nods 04:44:49 --- join: amca_ (n=plump@as-bri-4-1-86.ozonline.com.au) joined #forth 05:03:18 --- quit: amca (Read error: 113 (No route to host)) 05:25:05 --- join: PoppaVic (n=pete@0-2pool236-67.nas22.chicago4.il.us.da.qwest.net) joined #forth 06:09:00 --- join: pierpa (i=bernardp@151.80.10.15) joined #forth 06:21:51 --- part: charles` left #forth 06:27:44 --- quit: tathi ("leaving") 07:18:23 --- quit: Ray_work ("User pushed the X - because it's Xtra, baby") 07:25:54 --- join: Ray_work (n=Raystm2@adsl-68-93-111-214.dsl.rcsntx.swbell.net) joined #forth 07:40:48 --- join: sproingie (n=chuck@64-121-2-59.c3-0.sfrn-ubr8.sfrn.ca.cable.rcn.com) joined #forth 08:05:22 --- quit: PoppaVic ("recycling ISP") 08:07:16 --- join: PoppaVic (n=pete@0-1pool46-13.nas30.chicago4.il.us.da.qwest.net) joined #forth 08:22:29 --- quit: pierpa (Read error: 104 (Connection reset by peer)) 09:01:45 --- quit: amca_ (Read error: 113 (No route to host)) 09:29:09 --- quit: PoppaVic ("Pulls the pin...") 09:54:21 --- join: virl (i=core@chello062178085149.1.12.vie.surfer.at) joined #forth 09:56:48 --- join: rsyncx (n=bob@CPE000c41aac435-CM00111ae4f4cc.cpe.net.cable.rogers.com) joined #forth 09:57:05 --- quit: madgarden (Read error: 104 (Connection reset by peer)) 10:21:02 --- join: madgarden (n=madgarde@London-HSE-ppp3546494.sympatico.ca) joined #forth 11:14:10 --- join: Raystm2_ (n=Raystm2@adsl-69-149-48-241.dsl.rcsntx.swbell.net) joined #forth 11:21:07 --- join: danniken- (i=CapStone@ppp-70-128-43-5.dsl.ltrkar.swbell.net) joined #forth 11:28:33 --- quit: Raystm2 (Read error: 110 (Connection timed out)) 11:37:26 --- quit: danniken (Read error: 110 (Connection timed out)) 11:39:39 --- join: JasonWoof (n=jason@pdpc/supporter/student/Herkamire) joined #forth 11:39:39 --- mode: ChanServ set +o JasonWoof 11:57:07 --- nick: Raystm2_ -> nanstm 11:58:26 --- quit: virl (Remote closed the connection) 12:13:39 --- join: snoopy_1711 (i=snoopy_1@dslb-084-058-190-071.pools.arcor-ip.net) joined #forth 12:21:58 --- quit: Snoopy42 (Read error: 145 (Connection timed out)) 12:22:12 --- nick: snoopy_1711 -> Snoopy42 13:03:57 --- quit: Cheery (Read error: 104 (Connection reset by peer)) 13:04:53 --- quit: abionnnn ("Leaving") 13:06:14 --- join: virl (n=virl@chello062178085149.1.12.vie.surfer.at) joined #forth 14:02:25 --- quit: segher (Read error: 104 (Connection reset by peer)) 14:06:28 --- join: segher (n=segher@dslb-084-056-165-109.pools.arcor-ip.net) joined #forth 14:55:26 --- join: tathi (n=josh@pdpc/supporter/bronze/tathi) joined #forth 15:30:54 --- quit: virl (Remote closed the connection) 16:33:20 hi everyone 16:34:19 Good morning. 16:35:06 Good morning both 16:37:19 Hi. 16:37:31 evening here :) 16:37:36 Here too. 17:02:22 Like Puff-n-Stuff says, it's morning somewhere in the world 17:15:03 --- quit: Lars_G ("Leaving") 17:48:53 --- quit: tathi ("leaving") 18:19:10 --- nick: nanstm -> Raystm2 20:27:29 --- join: jungledog (n=dschauer@adsl-64-219-100-33.dsl.lgvwtx.swbell.net) joined #forth 20:43:46 --- quit: jungledog ("Leaving") 20:52:00 --- quit: rsyncx ("Leaving") 21:06:28 --- join: Robert (n=robert@unaffiliated/robert) joined #forth 21:06:33 That is.. I do. 21:06:39 * Robert coughs and never left. 22:43:42 --- quit: sproingie (Remote closed the connection) 23:21:13 --- join: rsyncx (n=bob@70.29.131.39) joined #forth 23:22:38 --- join: jungledog (n=dschauer@adsl-64-219-100-33.dsl.lgvwtx.swbell.net) joined #forth 23:27:59 --- quit: jungledog (Read error: 104 (Connection reset by peer)) 23:59:59 --- log: ended forth/06.01.27