00:00:00 --- log: started forth/11.10.30 00:03:22 --- quit: tathi (Ping timeout: 258 seconds) 00:04:58 --- join: tathi (~josh@dsl-216-227-118-184.fairpoint.net) joined #forth 00:31:41 --- join: ttmrichter (~ttmrichte@61.184.206.145) joined #forth 00:37:20 --- quit: nighty^ (Ping timeout: 256 seconds) 00:37:32 --- join: nighty^ (~nighty@69-165-220-105.dsl.teksavvy.com) joined #forth 00:49:14 --- join: ygrek (~user@gateway/tor-sasl/ygrek) joined #forth 02:13:41 --- quit: tathi (Ping timeout: 245 seconds) 03:00:13 --- quit: MoALTz (Ping timeout: 255 seconds) 03:06:58 --- quit: karswell (Ping timeout: 255 seconds) 03:08:51 --- join: karswell (~coat@93-97-29-243.zone5.bethere.co.uk) joined #forth 03:20:34 --- quit: ygrek (Ping timeout: 248 seconds) 03:28:15 --- join: Bahman (02929769@gateway/web/freenode/ip.2.146.151.105) joined #forth 03:28:31 Hi all! 03:52:24 --- join: ygrek (~user@gateway/tor-sasl/ygrek) joined #forth 04:01:58 --- quit: karswell (Ping timeout: 240 seconds) 04:04:00 --- join: karswell (~coat@93-97-29-243.zone5.bethere.co.uk) joined #forth 04:09:06 --- quit: karswell (Ping timeout: 252 seconds) 04:31:42 --- quit: ttmrichter (Ping timeout: 252 seconds) 04:32:20 --- join: ttmrichter (~ttmrichte@61.184.205.202) joined #forth 04:37:29 --- join: karswell (~coat@93-97-29-243.zone5.bethere.co.uk) joined #forth 04:44:42 Would anyone please tell me what does COUNT do? 04:49:54 It counts things, obviously! :D 04:50:06 To my understanding, it pushes the character count from a buffer filled with WORD onto the stack, is that right? 04:50:17 filled with = filled by 04:52:50 http://www.taygeta.com/forth/dpans6.htm#6.1.0980 04:52:59 That's the official definition there. 04:55:57 --- quit: angstrom (Ping timeout: 258 seconds) 04:57:32 --- join: angstrom (~Unknown@unaffiliated/angstrom) joined #forth 04:57:49 Does the definition help or would you like an example? 04:58:18 I'll assume the example… 04:58:27 Let's assume this definition: 04:58:42 : HELLO$ C" Hello, world!" ; 04:58:46 That's a counted string. 04:59:04 If I execute the HELLO$ world, the address of the count is placed on the stack. 04:59:24 COUNT will modify that into the address of the first character and the length of the string. 04:59:34 So watch this (executed in gforth): 05:00:15 HELLO$ .S <1> 140028990857992 ok 05:00:26 Executing HELLO$ points only to a single address. 05:00:40 COUNT .S <2> 140028990857993 13 ok 05:01:10 Executing COUNT now puts the address one away from the original (i.e. right after the count byte) and the length onto the stack. 05:01:44 TYPE Hello, world! ok 05:01:54 Now I can type the string. 05:02:05 Does that make sense, Bahman? 05:02:36 --- join: MayDaniel (~MayDaniel@unaffiliated/maydaniel) joined #forth 05:09:41 --- quit: karswell (Remote host closed the connection) 05:10:29 --- join: karswell (~coat@93-97-29-243.zone5.bethere.co.uk) joined #forth 05:13:11 Sorry was one the phone. 05:13:19 Thanks that makes perfect sense ttmrichter. 05:13:57 And thank your for that link...that's what I really need. 06:03:07 ud1 is the final result when using >NUMBER am I right? 06:04:48 Oops...silly mistake...I was wrong obviously. 06:04:54 ud2 is the answer. 06:11:14 --- join: Gmind (~nevermind@113.190.233.60) joined #forth 06:11:19 hi 06:11:42 I'm wondering why I can't make jonesForth work 06:11:55 on Ubuntu 11.10 06:15:23 Gmind: I had it working on Ubuntu 10.04 and I have it working now on Linux Mint (an Ubuntu derivative) at the latest version. 06:15:28 What's the problem you're having? 06:15:45 And which version of Jonesforth are you using? I took the fork off Github. 06:21:32 mine is 47 06:22:07 ok , i solved with -Ttext removed 06:23:55 before that, it keep Killed 06:24:11 before that, it keep getting Killed 06:29:31 Would anyone please tell me what does /STRING do? 06:32:34 did you look at Forth reference ? 06:42:35 17.6.1.0245 /STRING slash-string STRING 06:52:15 Gmind, crc: thanks I got it. 06:52:27 Now there's this one: 2DROP< :-D 06:53:35 easy enough; removes two values from the data stack. 06:55:00 crc: It seems so but what is 2DROP then? Also 2DROP< is undefined in gForth. Any alternative? 06:55:24 I missed the < 06:57:30 --- quit: nighty^ (Ping timeout: 240 seconds) 06:58:03 --- join: nighty^ (~nighty@69-165-220-105.dsl.teksavvy.com) joined #forth 07:00:11 2DROP< isn't a standardized word 07:06:15 I think that's a typo in the starting forth; http://home.iae.nl/users/mhx/sf10/sf10.html has a copy with just plain 2DROP in the listing 07:26:59 crc: That makes sense. Thanks. 07:32:22 --- quit: Gmind (Ping timeout: 255 seconds) 07:35:07 --- join: Gmind (~nevermind@113.190.233.60) joined #forth 07:37:52 what's "cld" do in jonesForth ? 07:40:32 in the assembly? 07:41:33 (assuming so, it's the instruction to clear the direction flag: see http://en.wikipedia.org/wiki/Direction_flag ) 07:45:56 --- join: MoALTz (~no@host-92-18-4-73.as13285.net) joined #forth 07:50:02 --- quit: ttmrichter (Quit: Leaving) 07:54:14 ýe 07:54:15 yep 07:55:20 thanks 07:55:23 crc 07:55:26 no problem 08:10:16 fairly helpful when I'm learning both GAS and Forth 08:23:55 --- quit: MayDaniel (Read error: Connection reset by peer) 08:24:02 anyone tried some forth for android? 08:29:26 there's not a lot of options for forth on android at this point. 08:29:26 1) https://market.android.com/details?id=hu.gusthy.android.forth [based on SFI, crashes on my CM7 devices] 08:29:26 2) https://market.android.com/details?id=com.idedroidfree [I didn't try this. Doesn't actually run on-device; submits to a server to run, then returns the results] 08:29:27 would be nice if anyone make one FORTH for ARM :P 08:31:23 there's also my Retro (https://market.android.com/details?id=com.forthworks.retro), but it's not strictly a Forth implementation; the language differs from standard Forth in a number of significant places 08:32:39 Gmind: see http://pygmy.utoh.org/riscy/ 08:36:18 I've built and run a reduced-functionality 16-bit retro implementation on the mbed.org (ARM-based LPC1768) microcontroller boards, but the limited RAM prevents me from being able to load a full system 08:36:22 Retro seem to be potential 08:38:41 crc, sorry that I haven't had any Android or ARM device right now to test. 08:54:49 I didn't have any ARM or Android hardware until this year. Now I do, but not enough time to invest in making the most from it :( 09:03:01 I'm a bit of Java Hatress 09:03:27 so I'm confused about buying Android ( I like the Motorola Defy but ... ) 09:25:51 I got Huawei Ideos for $80, not bad for a fully-fledged Android phone 09:30:04 80 $ ? 09:30:06 =.= 09:30:26 that's ARM powered Phone ? 09:31:02 I just can get a Motorola EX115 at that price and I don't know What OS it has =( 09:33:03 http://www.gsmarena.com/huawei_u8150_ideos-3513.php - 528MHz ARM 11 processor 09:34:09 I looked at the Ideos, but ended up getting an LG G2x instead 09:56:31 Nokia is telling smt about giveaway their window phone to developer 10:02:00 there is http://sourceforge.net/projects/androidforth/ as well 10:08:24 crc, nice :P 10:10:19 saper: if it's not in the market, then there are a fair number of users who can't (easily) install and try it 10:18:34 any idea on hack motorola EX115 firmware ? 10:30:36 crc probably not on the market. But I like retro very much. 10:32:26 I only don't like how android virtual keyboard obscures the input box on my little display 10:33:24 I originally developed it for a tablet-sized display, still working on improving it for smaller displays 11:06:50 --- join: MayDaniel (~MayDaniel@unaffiliated/maydaniel) joined #forth 11:16:10 --- quit: karswell (Write error: Connection reset by peer) 11:16:20 --- quit: MayDaniel (Read error: Connection reset by peer) 11:17:12 --- join: karswell (~coat@93-97-29-243.zone5.bethere.co.uk) joined #forth 11:21:53 Did anyone try converting JonesForth to Window ? 11:22:10 crc: the output canvas adjusts itself somehow, but not always 11:22:30 but the language seems great 11:46:07 --- join: MayDaniel (~MayDaniel@91.84.41.221) joined #forth 11:46:10 --- quit: MayDaniel (Changing host) 11:46:10 --- join: MayDaniel (~MayDaniel@unaffiliated/maydaniel) joined #forth 12:01:14 most of you guys are using Linux , right ?most of you guys are using Linux , right ? 12:09:37 --- part: Gmind left #forth 12:16:23 --- quit: MayDaniel (Read error: Connection reset by peer) 12:39:25 --- quit: MoALTz (Ping timeout: 244 seconds) 12:57:45 --- join: MoALTz (~no@host-92-18-28-68.as13285.net) joined #forth 13:22:42 --- quit: neena (Ping timeout: 276 seconds) 13:23:27 --- join: neena (~neena@76.73.121.203) joined #forth 13:51:24 --- join: Snoopy_1611 (Snoopy_161@dslb-088-068-020-144.pools.arcor-ip.net) joined #forth 13:51:56 --- join: Snoopy_1711 (Snoopy_161@dslb-088-068-020-144.pools.arcor-ip.net) joined #forth 13:52:01 --- quit: Snoopy_1711 (Client Quit) 13:52:23 --- join: Snoopy_1711 (Snoopy_161@dslb-088-068-020-144.pools.arcor-ip.net) joined #forth 13:52:28 --- quit: Snoopy_1711 (Client Quit) 13:55:09 --- quit: neena (Read error: Operation timed out) 13:56:08 --- join: MayDaniel (~MayDaniel@unaffiliated/maydaniel) joined #forth 14:00:38 --- quit: MoALTz (Ping timeout: 258 seconds) 14:01:33 --- join: neena (~neena@76.73.121.203) joined #forth 14:14:44 --- join: Gmind (~nevermind@113.190.165.174) joined #forth 14:25:36 --- quit: Snoopy_1611 () 14:33:19 Is it possible to use USE SOMEFILE inside a word? 14:33:44 I have a word like below: 14:33:57 : CHANGE ( from-char to-char -- ) USE quote.txt .... ; 14:34:31 When I INCLUDE it, I get 14:34:32 chapter10.fs:2: Undefined word USE >>>quote.txt<<< Backtrace: $7F20C9DB4A08 throw $7F20C9DCAC08 no.extensions $7F20C9DB8340 compiler-notfound1 14:41:42 --- join: tathi (~josh@dsl-216-227-97-177.fairpoint.net) joined #forth 14:42:57 USE isn't a standard word -- what does it do? 14:43:32 Looks like it's trying to parse a filename. That's probably the problem. 14:44:09 You're compiling it into a word so it doesn't parse the name until CHANGE runs. 14:44:29 I'm reading "Starting Forth"... USE "instructs disk memory to come from some file" 14:44:36 Ah. 14:45:02 gforth? 14:45:06 Yes. 14:45:30 Probably your best bet is to look at the definition of USE 14:45:41 If I enter USE SOMEFILE at the prompt, it works fine...but using it inside a word is the problem. 14:45:43 and use the factor which takes a string on the stack instead 14:46:10 tathi: Good idea :-) 14:46:21 Right, because you're compiling USE into CHANGE. So it doesn't look for a filename until CHANGE runs. 14:46:26 Does that make sense? 14:47:15 Yes. I see your point. But still wondering how can I pass the filename to USE? 14:47:37 see use : use parse-name open-blocks ; ok 14:48:27 Yeah, there's not really a good way to do it in general, since Forth separates "compile-time" from "run-time" instead of parsing from semantics. 14:48:39 So in this case you can use S" quote.txt" open-blocks 14:49:56 gforth also has execute-parsing which is like EXECUTE but also passes a string as the input stream. So you could do: 14:50:20 s" quote.txt" ['] use execute-parsing 14:51:27 Often words will have a separate version which works inside a definition, like ' and ['] ("tick" and "bracket-tick") or CHAR and [CHAR] just to get around this problem. 14:51:52 S" is special and works either place. 14:52:07 Is that more than you wanted to know yet? :) 14:53:29 tathi: Thank you very much...I'm just a rookie yet :-) 14:53:50 Just one more silly question: 14:54:03 Sure. Forth has lots of quirky bits. :) 14:54:17 What is the convention of case in Forth? Everything in captial or small? 14:54:39 And what's the traditional size of indentation? 14:54:40 Most people these days use lowercase. 14:55:09 Nothing specific about indentation -- some people like to use very little, like two spaces. 14:55:30 I use tabs and set them to 4 spaces in my editor... 14:55:41 Same here :-) 14:55:47 Most people try not to nest very much, so it probably doesn't matter. 14:56:04 Thanks again for your time and help. 14:56:41 Most systems are case insensitive, BTW. 14:57:48 That's right...I just wanted to know the convention. 14:58:40 I gather in the early days many terminals only had uppercase. 14:59:13 So to be really technical, the standard only says words *have* to be available in uppercase. 14:59:25 But I don't think much of anybody actually writes code like that anymore... 14:59:31 Aha...so that's why old Forth books have everything in uppercase. 15:00:06 Yeah, though I could be wrong about that; I'm not a Forth history buff. 15:00:17 (or old enough to have been there) :) 15:00:42 Food is done, BBIAB. 15:05:14 Enjoy. 15:20:10 --- quit: Gmind (Quit: Leaving.) 15:35:25 --- quit: neena (Ping timeout: 252 seconds) 15:35:40 --- join: neena (~neena@76.73.121.203) joined #forth 16:29:36 --- quit: ygrek (Ping timeout: 248 seconds) 17:22:43 --- quit: MayDaniel (Read error: Connection reset by peer) 18:39:21 --- quit: neena (Read error: Operation timed out) 18:40:56 --- join: neena (~neena@76.73.121.203) joined #forth 18:48:21 --- quit: neena (Ping timeout: 260 seconds) 18:53:35 --- join: neena (~neena@76.73.121.203) joined #forth 19:39:07 --- join: Gmind (~nevermind@113.190.189.202) joined #forth 19:49:43 --- join: ttmrichter (~ttmrichte@58.55.124.245) joined #forth 20:33:30 --- quit: Bahman (Quit: Page closed) 20:44:35 Forth is orbiting Saturn on the Cassini spacecraft. 20:44:37 :O 22:03:24 --- join: MoALTz (~no@host-92-18-28-68.as13285.net) joined #forth 22:06:27 --- join: Snoopy_1611 (Snoopy_161@dslb-178-004-022-162.pools.arcor-ip.net) joined #forth 22:10:15 Gmind: Forth is orbiting many heavenly bodies. 22:35:30 --- quit: ttmrichter (Quit: Leaving) 22:38:13 --- quit: MoALTz (Ping timeout: 252 seconds) 23:00:13 --- quit: karswell (Excess Flood) 23:02:08 --- join: karswell (~coat@93-97-29-243.zone5.bethere.co.uk) joined #forth 23:25:21 :O 23:28:19 --- join: ygrek (~user@gateway/tor-sasl/ygrek) joined #forth 23:59:59 --- log: ended forth/11.10.30