00:00:00 --- log: started forth/09.10.28 00:22:55 --- join: kar8nga (n=kar8nga@jol13-1-82-66-176-74.fbx.proxad.net) joined #forth 00:39:56 --- quit: segher ("This computer has gone to sleep") 00:54:26 --- join: foxLapto1 (i=flash@222.131.164.138) joined #forth 01:02:37 --- quit: foxLaptop (Read error: 145 (Connection timed out)) 01:08:42 --- join: DrunkTomato (n=DEDULO@ext-gw.wellcom.tomsk.ru) joined #forth 01:10:36 --- quit: foxes (Read error: 110 (Connection timed out)) 01:11:20 --- join: foxes (i=flash@222.131.164.138) joined #forth 01:19:05 --- part: TR2N left #forth 02:06:44 --- quit: grub_booter (Read error: 60 (Operation timed out)) 02:19:27 --- quit: probonono ("Arrgh.. box crashing again!") 02:22:33 --- join: grub_booter (n=charlie@d515301E0.static.telenet.be) joined #forth 03:08:22 --- quit: nighty_ (Client Quit) 03:09:22 --- join: H4ns (n=Hans@p57BBAFE6.dip0.t-ipconnect.de) joined #forth 04:34:53 --- quit: kar8nga (Remote closed the connection) 05:09:23 --- quit: uiu (wolfe.freenode.net irc.freenode.net) 05:09:57 --- join: uiu (n=ian@HSI-KBW-078-042-132-111.hsi3.kabel-badenwuerttemberg.de) joined #forth 05:27:43 --- join: kar8nga (n=kar8nga@jol13-1-82-66-176-74.fbx.proxad.net) joined #forth 07:48:12 --- join: TR2N (i=email@89.180.230.194) joined #forth 08:12:54 --- join: pgas (n=user@pdpc/supporter/active/pgas) joined #forth 08:20:08 --- join: probonono (n=User@unaffiliated/probonono) joined #forth 08:28:19 --- join: aguai_ (n=aguai@114-24-241-149.dynamic.hinet.net) joined #forth 08:46:10 --- quit: aguaithefreak (Read error: 110 (Connection timed out)) 09:10:05 --- join: dandersen (n=dkcl@metabug/dandersen) joined #forth 09:10:50 --- nick: dandersen -> dkcl 09:29:29 --- quit: kar8nga (wolfe.freenode.net irc.freenode.net) 09:29:34 --- join: GeDaMo (n=gedamo@212.225.108.57) joined #forth 09:29:40 --- join: kar8nga (n=kar8nga@jol13-1-82-66-176-74.fbx.proxad.net) joined #forth 09:53:24 --- join: segher (n=segher@84-105-60-153.cable.quicknet.nl) joined #forth 10:13:52 --- quit: dkcl ("leaving") 10:16:57 --- join: impomatic (n=John@217.171.129.66) joined #forth 10:23:39 --- quit: kar8nga (Remote closed the connection) 10:29:12 --- quit: DrunkTomato () 10:37:37 --- quit: nighty (Nick collision from services.) 10:37:49 --- join: nighty (n=nighty@122.249.122.91) joined #forth 10:49:02 --- join: neceve (n=neceve@unaffiliated/neceve) joined #forth 10:59:46 --- join: GoNoGo (n=GoNoGo@cro34-3-82-236-93-215.fbx.proxad.net) joined #forth 11:10:35 --- quit: impomatic (Read error: 145 (Connection timed out)) 11:11:56 --- join: X-Scale (i=email@89.180.164.119) joined #forth 11:24:07 --- quit: TR2N (Read error: 110 (Connection timed out)) 11:47:14 --- quit: nighty (Nick collision from services.) 11:47:26 --- join: nighty_ (n=nighty@x122091.ppp.asahi-net.or.jp) joined #forth 12:33:30 --- quit: pgas ("/quit") 12:42:48 --- quit: Raiford (Read error: 104 (Connection reset by peer)) 12:43:09 --- join: Raiford (n=Raiford@234.157-62-69.ftth.swbr.surewest.net) joined #forth 13:20:42 --- join: ygrek (i=user@gateway/gpg-tor/key-0x708D5A0C) joined #forth 14:21:44 --- quit: ygrek (Remote closed the connection) 14:26:00 --- join: Maki (n=Maki@dynamic-78-30-178-207.adsl.eunet.rs) joined #forth 14:41:24 --- quit: Snoopy_1611 () 14:42:20 --- join: Snoopy_1611 (i=Snoopy_1@dslb-088-068-203-139.pools.arcor-ip.net) joined #forth 14:44:43 --- quit: GoNoGo ("ChatZilla 0.9.85 [Firefox 3.5.3/20090824101458]") 15:19:43 --- quit: Maki ("Leaving") 16:18:30 --- join: aguai (n=aguai@98.142.211.123) joined #forth 16:18:51 --- join: forther (i=62d2faca@gateway/web/freenode/session) joined #forth 16:19:54 --- quit: forther (Client Quit) 16:24:28 --- join: aguaithefreak (n=aguai@114-36-122-186.dynamic.hinet.net) joined #forth 16:42:46 --- quit: aguai_ (Read error: 110 (Connection timed out)) 17:20:05 --- join: lowki (n=lowki@76-10-172-95.dsl.teksavvy.com) joined #forth 17:20:24 can i read a unix text file from pforth? 17:24:45 --- nick: aguai -> aguaithegeek 17:25:48 --- quit: GeDaMo ("Leaving.") 17:27:34 would you say that forth is simpler than C? 17:27:38 or easier to use? 17:34:55 --- quit: aguaithefreak (Nick collision from services.) 17:35:23 --- join: aguaithefreak (n=aguai@114-36-122-186.dynamic.hinet.net) joined #forth 17:35:53 --- quit: aguaithefreak (Nick collision from services.) 17:36:23 --- join: aguai_ (n=aguai@114-36-122-186.dynamic.hinet.net) joined #forth 17:44:18 forth is simpler than c, but not necessarily easier to use 17:45:11 --- quit: Al2O3 () 17:47:08 pforth supports the ANS file words 17:47:15 --- join: nighty__ (n=nighty@210.188.173.245) joined #forth 18:00:44 --- quit: neceve ("KVIrc Insomnia 4.0.0, revision: , sources date: 20090115, built on: 2009/03/07 02:39:30 UTC http://www.kvirc.net/") 18:09:35 lowki: see http://paste.lisp.org/display/89476 for an example of reading a text file into memory 18:09:54 tested on pforth V24 under OS X 18:14:08 wow thanks :) 18:19:48 no problem 18:20:28 i hope it helps 18:24:15 buffer s" file.txt" slurp 18:24:15 Segmentation fault 18:24:21 :( 18:24:27 how big is file.txt? 18:24:53 my example will only reliably work for files under 2k in size due to buffer size 18:25:23 oh nm 18:25:24 it works 18:25:43 oh i see 18:26:02 is there simple way to increase file size? 18:26:08 if pforth has allocate, you could dynamically allocate the buffer 18:26:12 * crc checks... 18:27:40 i'm just wondering, 18:27:44 don't need it right now 18:27:49 :) 18:27:54 thanks any how though :) 18:28:32 i remember seeing a page that talked about file input output, can you link to that content? I've had some trouble finding it 18:28:39 http://paste.lisp.org/display/89476#1 18:28:50 s" file.txt" slurp 18:29:15 this one dynamically allocates memory; you would need to call 'free' on the pointer to release it if you're worried about memory leaks 18:29:26 but it should work ok for most text files :) 18:29:52 http://forthworks.com/standards/DPANS/dpans11.htm 18:30:05 this is the ANS spec on file I/O supported by pforth 18:32:49 http://paste.lisp.org/display/89476#2 - same as my last one, but will throw any errors to the pforth error handler 18:34:15 is the http://forthworks.com/standards/DPANS/dpans.htm an ans forth refrence? 18:34:32 yes 18:34:42 cool :) 18:35:08 i'll just download it for offline use 18:35:40 there is an ascii text and pdf version as well on the main forthworks.com site 18:42:10 I've been thinking how best to go off the grid 18:42:31 * crc would love to go off the grid 18:42:40 in one easy to use console based package 18:43:02 do you know if forth will work with packet radio? like ax.25 supported by linux kernel 18:43:48 i'm not sure 18:44:25 packet radio, completly off grid, since you are your own ISP 18:44:32 the only guy I know who's done anything with ax.25 is sam falvo (falvotech.com), but I'm not sure if he did anything with forth and it 18:45:21 * crc wants to eliminate dependency on the power company someday 18:45:42 agreed 18:45:45 I get online either through a tethered cell phone or borrowed wifi connections 18:46:38 can make your own wind power, with some copper wire, magnets, wood and maybe some nails 18:46:50 cool 18:47:02 which are you on now? 18:47:06 wifi 18:47:13 I use wifi when possible for speed reasons 18:47:24 agreed 18:47:44 it's hard to build a generator capable of powering my computer and fridge without any spare $$$ 18:47:59 one day... 18:48:14 same here, 18:48:19 wind isn't reliable enough where I'm at 18:48:27 I'm not sure how much wire it would require 18:48:30 where's that? 18:48:33 and a solar package would cost about 30-40k 18:48:37 near philadelphia, pa 18:49:59 well there is wind just about everywhere above the tree tops 18:50:35 too many buildings to get reliable performance here :( 18:50:48 o 18:51:13 ya planning to move onto a remote west coast mountain 18:51:26 nope 18:51:38 one day I'll be moving to a rural area in new york state 18:51:58 cool 18:52:37 have you heard of any of the NWO conspiracies? 18:52:56 I don't follow conspiracies 18:53:11 what do you follow? 18:54:09 not much :) 18:54:26 * crc works, spends time with family, a little time coding, and lots of time reading 18:54:42 what you like to read? 18:54:48 anything 18:55:16 (except romance crap) 18:57:14 new age? spirituality? 18:57:24 sci fi, fantasy? 18:57:26 sure 18:58:06 simple to be happy :) 18:58:12 yup 19:17:03 --- quit: H4ns (Read error: 104 (Connection reset by peer)) 20:01:18 --- part: X-Scale left #forth 20:21:20 is there a way of seeing all the currents stacks or regisers? 20:21:27 i know the integer stack is .s 20:21:39 but there is also a float stack, and maybe some others? 20:24:20 are there any other stacks? 20:26:39 : truth ( current experience ) s" the current experience or truth be" type cr s" stack" type .s cr s" float stack" type f.s ; 20:26:47 :) 20:39:11 other stacks may be implementation dependent 20:39:31 * crc only has two stacks in his forth 20:39:49 and registers may or may not be visible, again depending on implementation 20:42:02 --- join: Al2O3 (n=Al2O3@71.31.157.184) joined #forth 20:50:33 k 20:50:38 cool :) 20:51:07 was just wondering if there is anything else the current experiences, 20:51:19 perhaps there's a list of running threads? 20:51:24 is forth multitasking? 20:51:30 some forths are 20:55:31 most are, even 20:56:19 * crc has his own cooperative multitasker 20:57:00 so how can i see the current "jobs" ? 20:57:08 in gforth or pforth 20:58:02 lowki: there is a return stack 21:00:00 I didn't see anything to list tasks in my /usr/local/share/gforth/0.7.0/tasker.fs 21:01:10 yah, i just checked as well 21:01:21 you can do single-tasking? though 21:02:09 agreed. 21:02:51 me interested in using forth as a unix shell. 21:05:37 use the ffi in gforth to fork/exec :) 21:07:27 hmmm, example or link 21:07:29 please 21:07:31 :) 21:08:17 http://www.complang.tuwien.ac.at/forth/gforth/Docs-html/C-Interface.html 21:08:27 I've not used this, so can't help further 21:10:21 how do you expand the acronym ffi ? 21:10:31 foreign function interface 21:10:38 oh 21:12:06 :) 21:34:57 --- join: forther (i=62d2faca@gateway/web/freenode/x-opswafpxxqicyuyp) joined #forth 21:35:10 hmmm, so how do i view the local stack, return stack, and data stack? 21:35:24 i now floating stack is f.s 21:35:33 --- quit: Al2O3 (Read error: 145 (Connection timed out)) 21:35:36 and one of them is .s 21:35:41 data stack is .s 21:36:00 float stack probably f.s 21:36:29 locals and return stack - you don't (the format of both is implementation dependent, and may be impossible to achieve without new primitives) 21:37:04 o 21:37:13 it would be good to know though 21:37:32 so local and returns are hidden truths 21:41:27 locals may not be implemented with a stack 21:43:54 k 21:47:46 --- quit: forther ("Page closed") 21:55:35 have a good night! 21:55:39 :) i'm off to bed 23:59:59 --- log: ended forth/09.10.28