00:00:00 --- log: started forth/05.03.19 00:51:52 --- quit: sproingie (Read error: 110 (Connection timed out)) 00:52:36 --- join: qFox (C00K13S@82-169-140-229-mx.xdsl.tiscali.nl) joined #forth 01:05:16 --- join: Baughn (~svein@cloud.brage.info) joined #forth 01:12:35 --- quit: Sonarman ("leaving") 03:29:17 --- quit: Baughn (Nick collision from services.) 03:29:40 --- join: Baughn (~svein@cloud.brage.info) joined #forth 04:58:18 --- join: ecraven (nex@A-036.AHL.Uni-Linz.AC.AT) joined #forth 04:58:21 good morning 05:20:11 --- quit: ecraven ("brb") 06:17:11 --- quit: docl (Remote closed the connection) 06:53:08 --- join: saon (1000@c-24-129-95-50.se.client2.attbi.com) joined #forth 07:00:48 --- join: Mavros (~slash@sc395.trin.cam.ac.uk) joined #forth 07:01:06 --- part: Mavros left #forth 08:27:59 --- join: Topaz (~top@spc1-horn1-6-0-cust219.cosh.broadband.ntl.com) joined #forth 08:49:28 --- join: Herkamire (~jason@h000094d30ba2.ne.client2.attbi.com) joined #forth 08:49:28 --- mode: ChanServ set +o Herkamire 09:10:14 --- quit: Baughn (Read error: 113 (No route to host)) 10:14:45 --- join: sproingie (~chatzilla@64-121-15-14.c3-0.sfrn-ubr8.sfrn.ca.cable.rcn.com) joined #forth 11:09:56 --- quit: sproingie ("Chatzilla 0.9.67 [Firefox 1.0.1/20050225]") 11:24:31 --- join: Serg[GPRS] (~z@193.201.231.126) joined #forth 12:14:52 --- join: Baughn (~svein@cloud.brage.info) joined #forth 12:37:19 --- quit: Serg[GPRS] (Read error: 110 (Connection timed out)) 12:44:06 --- join: raystm22 (~color4th@adsl-68-93-42-192.dsl.rcsntx.swbell.net) joined #forth 12:46:11 --- nick: raystm22 -> mall_rat 12:57:52 --- nick: mall_rat -> rastm22 12:59:00 --- quit: rastm22 ("User pushed the X - because it's Xtra, baby") 13:01:15 is there something wrong with this C: 13:01:16 typedef struct { 13:01:16 static void (draw)(void*, int, int) = 0; 13:01:16 int x; 13:01:16 int y; 13:01:18 } widget; 13:01:26 gcc doesn't like that seccond line 13:01:58 is that a C++ only thing? 13:02:02 you can't have a static in a struct 13:02:04 afak 13:02:14 err 13:02:25 oh 13:02:30 take out the =0 and see if that works 13:03:05 no difference. 13:03:10 says parse error before static 13:03:44 o.O 13:03:52 what happens if you take the static out, same? 13:04:07 * arke is confused... 13:04:48 you can't declare a function inside a structure in C. You can declare a pointer to a function though. 13:05:02 --- join: raystm22 (~color4th@adsl-68-93-42-192.dsl.rcsntx.swbell.net) joined #forth 13:05:13 and I don't think you can may a default assignment either 13:05:33 must be c++ you can do that 13:05:51 it works without the statics and =s 13:05:52 yah, you can in c++ 13:05:57 ok 13:06:01 it's been a long time 13:06:29 --- nick: raystm22 -> strong-man 13:07:33 strong-man? you going to beat us up for talking c/c++? :) 13:09:29 --- nick: strong-man -> mall_rat 13:25:20 --- join: zardon (~zardon@S0106000d6151238b.gv.shawcable.net) joined #forth 13:28:15 --- quit: mall_rat (Read error: 104 (Connection reset by peer)) 13:29:08 --- join: raystm22 (~color4th@adsl-68-93-42-192.dsl.rcsntx.swbell.net) joined #forth 13:30:32 --- nick: raystm22 -> mall_rat 13:59:29 --- join: TheBlueWizard (TheBlueWiz@ts001d0549.wdc-dc.xod.concentric.net) joined #forth 15:14:10 --- join: aum (~aum@60-234-138-239.bitstream.orcon.net.nz) joined #forth 15:15:44 --- quit: saon ("Lost terminal") 15:39:24 is it possible to have if structures without "else" 15:39:40 somthing like "0 5 > if 5 5 * then" 15:39:51 yes 15:39:56 else is optional 15:40:21 some forths (like mine) don't even have "else" 15:40:23 oki thinks 15:40:30 n/p 15:41:53 djo: why did you ask? just curious 15:43:20 I have a school project to make a forth compiler/interpreter and it's the first time I meet forth... 15:43:44 heh 15:43:51 lucky you 15:43:59 not so 15:44:09 i wrote a FORTH cross-compiler before i wrote my first useful FORTH program ;) 15:44:09 i have to make it with haskell 15:44:18 ergh! 15:44:22 sounds fun :D 15:44:29 cool school 15:44:31 soooo funnn 15:44:57 better than being a java queen at the end 15:44:58 it's the first time I meet the tow languages 15:45:16 a recent school project foolishly said we could use any language we wanted 15:45:19 two very different language types 15:45:20 i'm sooooooo tempted to use FORTH 15:45:25 they're not going to understand it in the slightest 15:48:36 and then feel threatened and flunk you :) 15:48:50 haha 15:49:20 java is the one true language of instruction 15:49:36 don't know what a loop is? no problem this is an abstract class 15:51:46 java is one of those languages where newbies never have to spend hours finding fiddly segfault-causing pointer bugs 15:52:14 so people never have any experience at finding fiddly segfault-causing pointer bugs, and freak when they meet the RealWorld(tm) ;) 15:52:24 and have no concept of memory 15:52:40 yeah, that doesn't really help 15:53:05 djo: the IF ... [ ELSE ...] THEN construct can be implemented like this: IF pushes the address of offset to be fixed....ELSE fixes that offset and pushes the address of the branch offset....THEN fixes the offset (note that it works on either IF or ELSE's branch offset) 15:53:22 no matter how lame pascal may be, its better than java for 1st year intro programming i reckon 15:53:29 that's how you can have an optional ELSE part :) 15:53:35 i really should try pascal 15:53:43 i've written lots of VHDL, which is very pascal-like, i understand 15:53:52 but never anything properly procedural 15:55:01 classic Pascal is properly procedural (no OO) 15:56:08 TheBlueWizard, what do you mean by "the offeset to be fixed" ? 15:57:26 the oen thing about FORTH that will forever confuse you (as it does me) is the difference between compile and run time 15:57:28 do you know the BRANCH? 15:57:46 the THEN part is a forward reference, so you don't know the displacement when you hit IF or ELSE 15:57:49 like...BRANCH 15:58:39 uhh....THEN just resolves the offset (actually, THEN is better thought of as END-IF, but old habit die hard ;) 15:59:30 e.g. .... IF ( do true case stuff ) ELSE ( do false case stuff ) THEN .... 16:00:17 djo: anyway, that for either BRANCH or 0BRANCH is what I was talking...these have to be resolved 16:03:56 TheBlueWizard, I don't understand what is "BRANCH" :( 16:04:30 ok back 16:04:31 * arke took a nice nap 16:04:38 its a jump 16:05:02 it is a hidden word compiled by IF and ELSE (and certain other words) that changes the IP.... 16:05:17 a jump, yeah 16:05:25 concrete example: 16:06:26 suppose we are compiling : foo IF 5 * ELSE 7 + THEN ; into some usual threaded based format, like this: 16:08:53 TheBlueWizard, i'm listning :) 16:09:21 --- quit: Topaz ("Leaving") 16:09:24 FOO (DOCOL) 0BRANCH LITERAL 5 STAR BRANCH ( ELSE makes the first offset point to here ) LITERAL 7 PLUS ( THEN makes the second offset point to here) 16:09:43 )DOSEMI) 16:09:49 (DOSEMI) even 16:10:12 that's what it may look like in the resulting "code" 16:10:58 when IF compiles 0BRANCH, it usually also put in a stub for offset usually 0...) 16:12:03 in fact the Forth word for IF might look like this: : IF COMPILE 0BRANCH HERE 0 , ; 16:12:15 see how it works? 16:13:01 yeah 16:13:16 hummmm 16:14:28 heh 16:20:24 thinks TheBlueWizard 16:38:19 --- join: slava (~slava@CPE00096ba44261-CM000e5cdfda14.cpe.net.cable.rogers.com) joined #forth 16:44:47 djo: you might want to look at MARK RESOLVE words that some Forths use to implement this offset resolving machinery 17:59:19 --- quit: Baughn (Read error: 113 (No route to host)) 18:03:39 --- quit: qFox ("this quit is sponsored by somebody!") 18:03:48 --- quit: TheBlueWizard (Read error: 60 (Operation timed out)) 18:33:42 --- join: I440r (mark4@rrcs-24-242-160-169.sw.biz.rr.com) joined #forth 18:39:45 hi I440r 18:47:00 hi 18:53:44 'sup? 18:57:11 I440r, i've been working on a powerpc factor compiler in the last few days 19:30:23 cool! 19:30:34 not much, trying to get my head back into coding 20:15:37 --- quit: aum () 20:54:48 --- quit: Fractal (Read error: 60 (Operation timed out)) 20:54:52 --- join: Fractal (jah@selling.kernels.to.linus.torvalds.at.hcsw.org) joined #forth 21:44:23 --- quit: mall_rat (Read error: 60 (Operation timed out)) 22:06:39 --- join: saon (1000@c-24-129-95-50.se.client2.attbi.com) joined #forth 22:16:18 --- part: slava left #forth 23:59:59 --- log: ended forth/05.03.19