00:00:00 --- log: started forth/03.02.16 00:01:17 --- join: Kitanin (~clark@SCF61185.ab.hsia.telus.net) joined #forth 01:06:58 --- quit: Kitanin (Read error: 104 (Connection reset by peer)) 02:32:51 --- join: Kitanin (~clark@SCF61185.ab.hsia.telus.net) joined #forth 03:41:31 --- quit: skylan (Read error: 104 (Connection reset by peer)) 03:42:22 --- join: skylan (sjh@207.164.213.102) joined #forth 04:07:48 --- quit: Kitanin (Read error: 104 (Connection reset by peer)) 05:57:28 --- join: Kitanin (~clark@SCF61185.ab.hsia.telus.net) joined #forth 06:30:23 --- join: mur (jukka@baana-62-165-190-122.phnet.fi) joined #forth 06:49:40 --- join: Herkamire (~jason@ip68-9-59-91.ri.ri.cox.net) joined #forth 06:49:47 Herkamire, 06:50:15 mur: yo :) 06:51:12 what's up? 06:52:02 i improved the picture a bit more 07:01:26 you gunna make the text a bit bigger? I could barely read it 07:06:16 --- quit: Kitanin (Read error: 104 (Connection reset by peer)) 07:10:36 the white? 07:34:52 yeah, I think. 07:36:23 ok, now I can't read the text on the left at all. Are you supposed to be able to? 07:36:38 * Herkamire plays with PPC asm 07:42:42 I avoided learning asm for many years because I didn't think I'd like it. 07:42:46 but I think it's pretty cool :) 09:02:28 --- join: Kitanin (~clark@SCF61185.ab.hsia.telus.net) joined #forth 10:03:02 --- quit: Kitanin (Read error: 54 (Connection reset by peer)) 10:40:52 --- quit: mur ("MUR!") 11:13:43 last chance ... 11:13:51 * Speuler won't be around for some time 11:14:38 bye folks 11:14:49 --- quit: skylan (Read error: 104 (Connection reset by peer)) 11:14:57 --- quit: Speuler ("Client Exiting") 11:20:39 --- join: skylan (sjh@207.164.213.150) joined #forth 12:02:43 --- join: Kitanin (~clark@SCF61185.ab.hsia.telus.net) joined #forth 12:20:38 --- quit: Herkamire ("leaving") 12:32:30 --- join: Herkamire (~jason@ip68-9-59-91.ri.ri.cox.net) joined #forth 13:05:32 --- quit: Kitanin (Read error: 104 (Connection reset by peer)) 13:40:24 --- quit: Herkamire ("leaving") 14:32:30 --- join: tcn (tcn@tc4-login27.megatrondata.com) joined #forth 15:00:41 --- join: Kitanin (~clark@SCF61185.ab.hsia.telus.net) joined #forth 16:03:57 --- quit: Kitanin (Read error: 104 (Connection reset by peer)) 16:07:19 --- quit: tcn () 17:19:00 --- join: l (~l@mnch-d9ba43e1.pool.mediaWays.net) joined #forth 17:19:14 --- nick: l -> Speuler 17:19:41 'morning 18:01:34 --- join: Kitanin (~clark@SCF61185.ab.hsia.telus.net) joined #forth 18:42:07 --- join: proteusguy (~proteusgu@216.27.161.121) joined #forth 18:53:53 --- quit: proteusguy (Read error: 54 (Connection reset by peer)) 19:00:15 --- join: TheBlueWizard (TheBlueWiz@ip-216-25-202-66.vienna.va.fcc.net) joined #forth 19:00:22 hiya all 19:02:42 --- join: proteusguy (~proteusgu@216.27.161.121) joined #forth 19:03:29 hiya proteusguy 19:03:29 --- quit: Kitanin (Read error: 54 (Connection reset by peer)) 19:03:34 --- join: ramnull (~nicad@12-241-145-39.client.attbi.com) joined #forth 19:03:47 hiya ramnull 19:03:57 What's up? 19:04:17 nothing much...just chillin' 19:07:28 You know Forth? 19:08:08 yeah...though I'm "out of shape", so to speak 19:08:24 Learning how to work with strings. 19:08:35 but I can answer some Forth questions :) 19:08:49 ah... 19:09:13 I wanna check a string to see if it matches another... I'm doing it like this... 19:09:44 : Checkstr s" foo" = IF 0 else 1 then ; 19:09:48 Will that work? 19:10:15 no 19:11:04 it compares the addresses, and since it is a literal there which is of course unique, so the comparison always fail 19:11:25 s" foo" leaves the address on the stack 19:11:35 Aha. 19:12:17 So I gotta fetch the string and then compare it? 19:12:45 so, what you need is (racking my brain....darn, been so long time since I seriously hack on Forth)...some word that -FIND use... 19:13:04 no, not fetch... 19:13:37 fetch (@) just obtain a word pointed to by an address, which isn't what you want 19:14:44 lemme search for some appropriate word 19:14:57 to do exactly the job you're looking for 19:15:26 Looking at the documentation for "find" in the GForth manual. 19:17:13 I know I can create a variable with that string, but to just compare two strings all I should need is that stack. 19:17:23 Yes? 19:18:36 s/that/the 19:24:17 hmm...I located the Forth source code and looked at -FIND...it was coded in assembly language :-P I think you will have to write a string comparator yourself 19:24:45 just push two addresses on the stack and then compare 19:25:24 Do I have to compare each character individually, or with the compiler recognize each address as the start of string and then compare the whole string? 19:25:33 s/with/will 19:26:25 ramnull: there's compare to compare two strings 19:28:29 the (traditional) Forth compiler is completely typeless, so you have to specify the kind of comparison explicit;y....for example, if you want to compare two doublewords, you might type in D< instead of < , and comparing two floats might be done using, say F= , ans similarly with $< for string comparison....of course it is implementation dependent (both the naming and the actual coding) 19:28:46 Speuler: Yeah, it's all assembly code. 19:28:56 hi tbw 19:29:03 hiya Speuler 19:29:10 ramnull: doesn't matter, or ? 19:29:21 ramnull: even quicker then 19:29:33 Speuler: Just figuring out how to do it myself is all. 19:29:54 ramnull: ah 19:30:20 ramnull: stack of compare is ( a1 n1 a2 n2 -- n3 ) 19:30:30 ramnull: n3 can be -1 , 0 , 1 19:30:30 if you're familiar with C, it is a similar situation; C doesn't really "know" what a string is either 19:30:55 Actually, I'm more familiar with Ada. 19:31:10 ah...unusual background :) 19:32:24 It works well, but can be a bit frustrating at times. 19:32:38 Ada does know something about strings, as far as I can recall (actually, I am thinking in Pascal terms, cuz I really forgot Ada a lot lol) 19:33:08 yeah...Ada can be so damn picky at times 19:33:09 In Ada, strings and characters are two different types. 19:33:16 * TheBlueWizard nods 19:34:11 Nice thing is, you really gotta work hard to screw something up. 19:35:40 if i want to screw up, i want to do it the easy way :) 19:36:36 Ah, each language has it's good points and bad ones. Suitability depends on the task at hand. 19:37:03 I dont think Forth supports seperate compilation. 19:37:25 ramnull: you're with the army ? 19:37:29 hehe...true, in general...but it is also possible to continually failing to get it to compile it cleanly...I struggled to implemented the VAX cursor movement package with the code taken from the reference manual...I burned a lot of CPU "dollars" on that (back then, the college impose a CPU quota, measured in terms of "dollars") 19:38:35 turned out that I had to use some obscure command to get it to compile cleanly...and I had to ask for more "dollars" as a result lol 19:39:55 the project eventually ends in a failure (the course was Software Engineering Using Ada), but I really impressed the teacher...he said he never saw anyone who got the cursor stuff to actually work before! :) 19:40:04 The compilers have matured alot since then. And theres a free one now too. Probably embed a Forth compiler in one of my apps. 19:40:05 s/ends/ended/ 19:40:32 yeah 19:41:32 I hate language Nazis, specially the ones who chant "Heil Kernighan" "Heil Ritchie". 19:42:42 lol....C++ and Ada amost require one to be a language lawyer....don't wanna play that, or even have time for it! 19:42:52 s/amost/almost/ 19:43:01 --- quit: proteusguy (Connection timed out) 20:03:23 --- join: TreyB (~trey@cpe-66-87-192-27.tx.sprintbbd.net) joined #forth 20:03:33 hiya TreyB 20:03:59 Howdy TheBlueWizard. 20:11:55 --- quit: ramnull (Read error: 60 (Operation timed out)) 20:28:20 --- quit: sma (Ping timeout: 14400 seconds) 20:33:26 --- quit: Speuler (Read error: 110 (Connection timed out)) 20:41:37 gotta go...bye all 20:41:42 --- part: TheBlueWizard left #forth 21:02:47 --- join: Kitanin (~clark@SCF61185.ab.hsia.telus.net) joined #forth 21:22:02 --- quit: Kitanin (Read error: 104 (Connection reset by peer)) 21:43:17 --- join: ramnull (~nicad@12-241-145-39.client.attbi.com) joined #forth 22:34:58 --- quit: skylan ("Reconnecting") 22:35:01 --- join: skylan (sjh@207.164.213.65) joined #forth 22:43:29 --- quit: ramnull (Read error: 60 (Operation timed out)) 23:02:39 --- join: Serg_Penguin (~Z@nat-ch1.nat.comex.ru) joined #forth 23:02:58 --- join: Kitanin (~clark@SCF61185.ab.hsia.telus.net) joined #forth 23:26:40 --- join: ramnull (~nicad@12-241-145-39.client.attbi.com) joined #forth 23:27:05 Can I use boolean flags in a case statement, or do I have to use numbers? 23:37:46 --- quit: Serg_Penguin () 23:59:59 --- log: ended forth/03.02.16