00:00:00 --- log: started retro/06.07.09 06:23:03 --- join: neceve (n=claudiu@unaffiliated/neceve) joined #retro 07:14:55 good morning 07:35:24 good morning 07:48:24 the gtk+ bindings work properly under suse :) 07:49:07 now I can start working on a compatible set of gtk 1.2 bindings 08:11:48 and it works :) 08:11:59 hi crc :) 08:13:13 hi nighty 08:16:15 the current bindings for gtk1.2 and gtk2 are on the contribs section now 08:51:06 --- join: Cheery (n=Henri@a81-197-20-242.elisa-laajakaista.fi) joined #retro 08:58:19 --- quit: crc (Remote closed the connection) 08:59:16 --- join: crc (n=crc@pool-70-110-215-240.phil.east.verizon.net) joined #retro 09:02:04 --- mode: ChanServ set +o crc 09:05:02 --- mode: ChanServ set -bb *!*@gprs-pool*.mobnet.ru *!*@*modnet.ru 09:05:02 --- mode: ChanServ set -bb *!*modnet.ru@* dom--2!*@* 09:08:07 Hi. 09:08:13 hi ray 09:08:46 I've been trying to keep up with your changes. You have worded very well lately :) 09:09:14 worded-- worked = interchangeable in that last sentence. 09:11:27 thanks 09:15:27 What is on your plan for today? 09:15:59 finish setting up my local development environment under suse linux, then I don't know 09:16:19 Oh yes, new HD and new OS, right? 09:16:28 yeah 09:16:31 develope a giant big *woosh* application 09:16:41 :) 09:16:44 hi virl. 09:18:37 * Raystm2 is reading many things currently... Thinking Forth, Glenn B. Haydon's "The Forth Guide", and Threaded Interpretive Languages. 09:22:52 virl: can you send me or pastebin the latest x11 bindings? 09:24:27 ok, I changed not much. 09:29:28 http://retroforth.net/paste/?id=16 09:30:22 import takes the number of args? 09:30:29 yes 09:30:34 cool. 09:30:46 if you need a variable number of args, you can use map: and invoke 09:34:08 virl: thanks 09:36:05 virl, that is very well done work there! 09:40:41 I have my local source trees, fasm, darcs, and such in place now 09:41:33 --- quit: docl (Remote closed the connection) 09:47:59 Raystm2, is it understandable? 09:52:12 Yes, so far, I believe I can understand what each and every def does. 09:52:19 very well done. :) 09:54:20 of course, the usage word helps greatly.. 09:55:20 which reminds me, crc: the doc header pointer, what a marvelous idea. puts me in mind of what Python does. 09:57:48 if the doc pointer points to an area where the docString is kept, and the docString is a quick one-liner of the description of the word, and the docString had a pointer itself to the deeper, manual discussion of the word... That would seem like a very efficient way to document in full, every word. 09:58:11 it's pretty handy :) 09:58:46 I am exploring several useage options 09:59:46 --- quit: Cheery ("Leaving") 10:00:40 hmm, depth of the docString in the docString memory area could be matched with the depth of the word in the manual, and that could be a handy way to get to either. 10:01:39 of course, I don't know what implications that has for maintaining code... 10:02:05 it'd take a lot of time to keep the manual and docstring pointers in sync 10:03:14 I imagine you are correct. I was assuming that in an alphabetical listing of both, the docString and the manual entry, they would always be at the same depth. But that depends on always maintaining both. 10:03:34 easy to get off track. 10:05:08 except in the case where the docString is always part of the manual doc, like a synopsis or Usage string. 10:05:41 and the doc pointer points to that. 10:06:59 yeah 10:07:07 * crc is working on retrospect a bit more 10:12:40 it's working very well for my needs :) 10:13:25 and that's all that counts. :) 10:14:06 is the darcs ready for me to update my copy? 10:14:06 the single primary thing it adds is "inspect" which gives lots of useful information about a word 10:14:39 length, class, whether or not is a vector, and a hex dump 10:14:52 excellent! 10:15:40 the only thing that stumps it is vocabularies :) 10:15:53 :) 10:17:12 http://retroforth.net/paste/?id=17 10:17:17 Is the Darc's ready for me to update? Or should I wait abit? 10:17:29 it's ready 10:17:57 okay thanks. 10:18:34 http://retroforth.org/newlib.tar.gz for the work-in-progress library of code to go along with 9.2 10:19:10 okay, just download that and add to the proper directory? 10:19:33 that'll decompress to a "library" directory 10:20:23 I'm still organizing it, but it has goodies like syntax highlighting for the block editor, the assembler, retrospect, gtk, x11 (thanks to virl), and some other stuff too 10:20:45 cool. 10:20:57 * Raystm2 wondering where I put my darcs... 10:21:01 searching... 10:21:33 found. 10:21:57 darcs get http://retroforth.org/repos/902 10:22:16 or download http://retroforth.org/902-beta.tar.gz for a binary snapshot of the repo 10:23:31 I haven't figured out how to do a "getretro" type thing for Windows yet :( 10:24:13 no prob, time i learned how to do it like ya'll do. 10:25:24 on linux/bsd systems, I have this nice script that will download, link, and put the retro binary in the proper place automatically 10:25:47 set it as a cron job, and it can be updated every 24 hours, with no user interaction :) 10:25:56 * crc needs to do that here 10:26:13 I hope that someday, I will be competent enough to help you do such things for the windows ports. 10:30:36 darcs: MODULES-0: renameFile: permisson denied. 10:30:42 not sure what that means. 10:30:55 hmm 10:31:00 looks like darcs tryed to rename a file during update and could not. 10:31:03 what version of darcs do you have? 10:31:08 1.0.3 10:31:17 upgrade :) 10:31:21 yes sir. 10:31:22 * crc is using 1.0.7 10:31:26 upgrading... 10:32:35 http://glozer.net/darcs/ 10:32:51 oh thank you . :) 10:37:19 I have to initialize a new repo, no? 10:38:16 no 10:38:27 just do darcs get http://retroforth.org/repos/902 10:39:13 initializing is only needed to create a completely new repo, not to obtain one 10:39:48 hmm then i failed somewhere. :( 10:40:15 still getting the error? 10:40:45 I downloaded darcs 1.0.8, and put in it's own directory in the windows folder. 10:41:13 then called darcs get http://retroforth.org/repos/902 and got this error. 10:41:29 libcurl HTTP error (404?) 10:41:34 what's that, not found? 10:41:40 yes 10:41:51 but it's there... I just pulled from that location 10:42:10 in this case, I'd recommend just downloading the binary package 10:42:14 okay. 10:42:25 http://retroforth.org/902-beta.tar.gz 10:47:54 that worked :) 10:48:16 good ;) 10:50:46 O 10:50:50 i 10:50:52 doh. 10:51:09 i've got the newlib now, Put in it's own folder? 10:53:25 yes 10:53:56 at what level? side by side with 'extras' folder? 10:54:03 that's a good place 10:54:08 okay , thanks 10:54:11 np 10:56:47 where do i find the documentation to load my progy files? 10:56:57 --- join: docl (n=docl@70-101-145-1.br1.mcl.id.frontiernet.net) joined #retro 10:57:02 load \f 10:57:03 hi docl :) 10:57:07 hiya guys 10:57:12 wb docl 10:57:16 thanks crc. 10:57:24 * docl just got back from church 11:00:04 include or -f also works 11:00:16 -f is not in the windows version 11:00:34 * Raystm2 learned that -f was not avialable recently. 11:00:38 darn 11:01:03 ya, darn that i won't get off lazy and put up a linux on one of these boxen I have lying about. 11:02:22 my poor daughter is waiting for me to update all the drivers in her box so that directX 10 will work and she can play latest SIMS 11:02:46 heh 11:02:53 is DX10 even out yet? 11:03:01 or 9 i think. 11:03:15 latest one, at any rate. 11:03:17 9 11:03:19 ya. 11:03:21 10 is coming with vista 11:03:43 and then i'll have to do it again... 11:04:20 a new system for vista :) 11:04:34 docl: I will look into adding -f and include back to the windows port 11:04:51 * crc removed them when he dropped the (buggy) command line support 11:05:03 cool 11:07:05 cool load worked. 11:07:27 retroChessB18Board codeing has commenced. 11:07:33 sweet! :) 11:08:02 should take acouple weeks to re-write this in the retroForth language... will be fun. :) 11:10:24 * docl considers writing networking support for it 11:11:23 crc: is there a way the interpreter could sense control keys and evaluate them immediately? 11:12:00 not portably 11:12:10 darn 11:12:25 You can turn off buffering and interpret raw keycodes, but it gets messy quick 11:14:33 well, there's lots of potential apps where instant evaluation of keys is desirable 11:17:03 I know 11:17:17 is there a command line load? 11:17:58 Raystm2: not for windows 11:18:21 okay. 11:18:48 that may change, but no guarantees 11:19:37 requires arg passing? 11:20:29 Windows returns the command line in a way that is completely different than than Linux/BSD/BeOS/etc 11:20:46 I'm sure it does. :( 11:27:22 Raystm2: I just upload a new patch and binary snapshot that may allow the command line to be recognize 11:27:31 *if there are no spaces in the path* 11:27:49 e.g., c:\retroforth\rf-windows words 11:27:52 will work 11:27:54 but 11:28:10 c:\documents and settings\crc\Desktop\rf-windows words 11:28:12 will not 11:29:14 * Raystm2 knows how to handle the path when long path names need to be converted to 8.3, so thank you :) 11:29:15 with quotes or backslashes? 11:29:48 docl: the command line parser will not handles quotes 11:29:52 * Raystm2 will test immediately. 11:29:57 and backslashes are the path separator on windows 11:30:44 it'd be like: c:\docume~1\crc\Desktop\rf-windows words 11:33:30 will relative paths work or do I have to start from c:\ 11:33:56 relative should work 11:34:11 exellent, shall try that first. 11:41:53 now clicking rf-windows.exe causes an error ( not critical as far as I can tell) that repeats the path that starts the windows port. 11:42:16 try putting it in c:\retroforth 11:42:43 that will help much :) 11:43:28 and it does. 11:44:24 good 11:44:44 * crc will have to make a note of this to include in the manual 11:45:36 I don't think i'm doing this correctly. 11:46:10 C:\retroforth>rf-windows C:\retrof~1\rcb18.fs 11:46:24 *** ERROR: "path" not found. 11:46:48 c:\retroforth\rf-windows -f c:\retroforth\rcb18.fs 11:46:54 no > in the path.... 11:49:49 sorry the part west of > is the prompt. 11:50:14 ok 11:50:17 but I wasn't using the -f switch. :) 11:50:30 retro interprets the command line 11:50:46 not just loads files 11:50:52 :) 11:50:58 rf-windows ." hello world!" cr bye 11:50:59 that works :) 11:51:13 it loaded and executed the file. 11:51:25 good :) 11:51:49 now I can create a .bat that will do such a thing and the two chessboards will be functionally equiv. 11:52:41 * Raystm2 tests this 11:55:21 :) 11:55:45 * Raystm2 cleans up bat file but it works great. 11:58:19 hehe retroforth echos the "echo off" command in the .bat :) 11:58:59 BUT does not echo the rem that the echo off is turning off, so that's cool. 12:00:22 wait that's prob'ly the command prompt doing that. 12:00:34 I think I know how to quash that. 12:05:19 hehe first command to retroforth must need to be clear. 12:07:38 added cls command after echo off and this fixes it. 12:07:46 in the bat file that is. 12:08:45 so now i have a bat file that loads the chess file and only displays the test of 8 stars at the top of the screen. this is optimal for the chess game. 12:09:34 I only need to convert all of my case statements, do to for/next, and use the better if statments included with retroforth. 12:09:45 or so I think. 12:12:58 coded carefully, I may end up with a version that runs in retroforth, gforth and win32forth. 12:18:52 all supporting codeing files have been created, the work begins. 12:24:11 @echo off 12:24:34 that will prevent the "echo off" from being displayed by command.com/cmd.exe 12:25:02 retro does have traditional if, =, <, >, and <> now 12:25:21 in addition to herkforth style =if tryed the @echo off but let me try it again. 12:30:17 ya, you are correct, cls not needed now. 12:30:50 thanks for conditionals :) 12:43:21 please, how does one access the stack pointer for creating a 'depth' def? 12:49:50 crc, how exactly does netclient.f work? 12:52:39 * Raystm2 looking into rx docs for the stack pointer. 12:56:54 and doesn't find it. 13:03:21 virl: it is a thin set of wrappers over the socket syscalls 13:04:29 it uses poll to check the keyboard and opened socket, and you can use the provided words to read/write to the socket 13:04:42 it's just barely abstracted above the syscall level 13:05:01 Raystm2: see http://retroforth.net/board/index.php/topic,230.0.html 13:05:14 ok, with server: 123.34.50.12 I can open a server and how do I read from it? 13:06:01 net.read 13:06:09 ah, ok. sry 13:06:12 returns the next byte from the socket buffer 13:06:25 does it take any args? 13:06:37 and what's that the server: word puts on the stack? 13:06:48 no 13:07:44 and what's that number that server: puts? 13:07:51 crc: are dump inspect show and see all supposed to do different things. ( for me they are either inspecting or not doing anything) 13:08:22 inspect and see are dumping and dump and show are doing nothing. 13:08:24 Raystm2: yes 13:08:28 inspect 13:08:33 see 13:08:36 ya 13:08:40 dump takes an xt and a count 13:08:44 ' words 100 dump 13:08:45 ah 13:08:52 okay makes sence doh! 13:11:41 virl: add a port after the ip 13:11:49 server: 123.34.50.12 13:12:21 I can't seem to call this in my working file... 13:12:36 load library\debugging\retrospect -f 13:12:40 no 13:12:43 \f 13:12:54 ah okay will try... 13:12:58 load library\debugging\retrospect \f 13:13:00 OR 13:13:05 -f library\debugging\retrospect 13:13:32 trying second recommendation... 13:15:33 second recommendation just locks up the interpreter. 13:15:45 first = several not found errors. 13:15:55 hmm 13:16:10 make sure i'm reporting this correctly... 13:16:52 wait my fault so far.... 13:18:23 it should work... I am having no problem with it :( 13:18:31 -f library\debugging\retrospect 13:18:40 thanks crc 13:18:51 virl: np 13:19:28 that is the first line in my file and on start of the progy that just inspects something ... trying to determine what. 13:19:43 in the file? 13:19:51 replace -f with include then 13:20:11 oh okay :) 13:20:37 haha! now I think I could write a retro program for something someone wrote a python program 13:20:38 --- join: crc2 (n=crc2@pool-70-110-215-240.phil.east.verizon.net) joined #retro 13:20:38 --- quit: crc2 (Broken pipe) 13:20:53 WORKS :) 13:21:06 --- join: crc2 (n=crc2@pool-70-110-215-240.phil.east.verizon.net) joined #retro 13:21:06 --- quit: crc2 (Broken pipe) 13:21:27 --- join: crc2 (n=crc2@pool-70-110-215-240.phil.east.verizon.net) joined #retro 13:21:27 --- quit: crc2 (Broken pipe) 13:22:18 --- join: crc2 (n=crc2@pool-70-110-215-240.phil.east.verizon.net) joined #retro 13:22:18 --- quit: crc2 (Broken pipe) 13:22:28 see seems to have the same output as inspect only inspect has more detail. see is not the see that i'm used to, is it? 13:22:57 nope 13:23:06 --- join: crc2 (n=crc2@pool-70-110-215-240.phil.east.verizon.net) joined #retro 13:23:06 --- quit: crc2 (Broken pipe) 13:23:08 see is a hex dump, of the length of the word 13:23:09 okay /me is fine with that. 13:23:35 it's a pain to decompile subroutine threaded code with any optimizations (like retro) 13:24:35 i don't have see in colorforth, I think I will manage :) 13:25:16 dump should be fine. 13:30:09 is the stack pointer visible anywhere? /me needs to create a depth word? 13:35:59 doh! /me finds the referance that you left me, thanks 13:40:10 cool 'depth' becomes sp@ @ 13:42:59 interesting, when I couple netclient and my xbinds and create a word which reads a number from a ip:port and prints it with 'text' then the second time I use that word it produces an 'invalid opcode' error 13:43:12 wait no it doesn't . 13:44:18 I should set a variable from the return of sp@ at the start of the program and then calculate the distance from that address when calling depth. 13:46:51 http://retroforth.net/paste/?id=18 13:47:12 * crc is going to eat, bbl 13:47:40 (virl, pastebin the problematic code, and I'll take a look when I get back) 13:49:39 --- join: Icefall (n=Miranda@de4.tcompressor.com) joined #retro 14:00:10 --- quit: neceve (clarke.freenode.net irc.freenode.net) 14:13:57 --- join: neceve (n=claudiu@unaffiliated/neceve) joined #retro 14:15:27 * Raystm2 needs to hide the words e and f to make the base 18 work. 14:26:03 oh and d as well. 14:30:37 okay that's done. 14:37:59 we lost 14:38:03 bummer! 14:40:01 Oh France lost?!? 14:40:40 * Raystm2 hungry 14:40:49 * Raystm2 raids kitchen. 14:40:59 Raystm2: yes 14:41:04 Raystm2: penalty kicks 14:41:14 Raystm2: and zidane went bezerk 14:41:45 --- quit: Icefall (";-)") 15:01:25 * Raystm2 goes to espn.com to look for highlights 15:02:53 I bet it was an awesome game. 15:08:47 * Raystm2 sorry he missed it. :( 15:09:44 I can't believe the French captain head butting the chest of an opponant for the Red card. What is wrong with that thinking? 15:30:28 Raystm2: how is it going? 15:59:58 hi crc: going well, 16:00:15 I've got all of the variables constants buffers and arrays in, 16:00:35 i'm about to work out how to write and read the save-game file. 16:00:48 As you may or may not know... 16:01:21 the persistance is handled by writeing out a save-game file with every move. 16:01:27 two players share this file. 16:02:32 when the command s ( for show, save, send, or start) is called the save-game file is read in and the board executes every move. 16:04:29 --- quit: docl ("leaving") 16:04:44 I had to redefine 3 retroforth words: d e and f to turn them into board numbers with the : b-18 18 base ! ; word. 16:05:46 I take it that the word value in other forths is variable: in retroforth? 16:06:41 crc: http://retroforth.net/paste/?id=19 16:07:08 http://retroforth.net/paste/?id=20 16:08:25 * Raystm2 notices in my paste that the backslash is not handled properly in the paste. 16:08:53 ooh virl, I can't wait to add your server stuff to the chess :) 16:09:38 my server stuff? that's crcs server stuff 16:10:52 cool. 16:11:06 you know: netclient.f 16:12:20 I see. 16:12:34 thanks, i'm not aware of that netclient yet. 16:17:04 --- join: docl (n=docl@70-101-145-1.br1.mcl.id.frontiernet.net) joined #retro 16:18:55 hi docl. :) 16:21:56 hi Raystm2 16:23:47 Supper. :) 16:24:27 * Raystm2 is eating spagetti and codeing RetroChessB18Board. 16:24:40 :) 16:25:07 * docl is experimenting with screen, a linux console manager 16:26:06 docl: do you know the way that retro opens/reads/writes files? 16:26:12 somewhat 16:26:44 load I know 16:26:59 new blanks out the edit buffer 16:27:20 what do you need to know? 16:28:32 http://retroforth.net/paste/?id=21 this is how gforth/win32forth does it. 16:28:45 I suppose i'm looking for something similar. 16:33:02 to load a file from a string, ' "filename " choose reload ' 16:35:16 at least that works in linux. the windows code looks similar 16:36:10 another alternative is use the { } words 16:36:18 { load save-game } 16:37:20 to put the data from a string into the file, you can use the move command 16:37:44 mystring 0 block swap move 16:38:16 '0 block' goes to the beginning of the file currently in the block editor 16:39:18 mystring would be a counted string pair (addr count) 16:41:55 okay, hmm. 16:42:23 I won't be using the editor, all of this save-file reading and writeing will be happening programmatically. 16:42:46 but let me experiment with what you have told me :) 16:43:14 the editor is really built into the fabric, at least the way I see it :) 16:43:59 you can see the first block with 'v' at any time 16:44:47 that will mostlikely show me the file that is the program and not the save-file. 16:45:47 it's kind of neat that in the editor you're seeing an actual block of memory, in ascii form 16:45:48 i'm loading in a file that is adds an extention to the interpreter to parse a save-file that has chess algebra stored as data in english. 16:47:01 the result is that the parsed data will move the pieces on the board and then display two boards, current and last moves and a list of all of the last twenty moves made on the baord. 16:48:03 that is cool. 16:48:29 I've seen that when I called edit while my progy file was loaded. 16:48:32 pretty neat. 16:50:36 the thing is once you have run the program, you don't need it loaded in the editor block any more 16:50:54 right, i'm not going to be using edit at all. 16:51:22 the editor block is the only way I know how to load files though 16:51:31 oh okay. 16:51:40 load/save, etc. 16:51:53 save hmm... 16:52:04 where do I find these words documented. 16:52:20 in the source code :) 16:52:32 also I think there's some docs 16:52:43 okay that's my problem, I don't have rf-windows source 16:54:35 http://retroforth.net/doc/handbook/rx/ 16:55:13 hmm, there's no editor docs in there 16:55:16 okay /me looking at rf-generic and has found the libc stuff. 16:56:16 http://retroforth.net/wiki/?id=editorReference 16:56:27 use looks like one of the words I need. 16:56:46 use is part of the load word 16:58:37 ok, "there" is the same as "0 block" 16:58:47 so use it instead :) 16:59:05 ya looks like i need to ' use save-game.txt' and then hmmm... 16:59:58 i'm gonna wanna put that info into a line-buffer and back out to the save-game.txt. 17:00:10 for persistance. 17:00:30 ' load save-game.txt' might be just as well 17:00:33 but see, that's for block files, and I just need file laoding. 17:00:37 loading even 17:00:38 ya. 17:01:01 but to put that inside a function will need curly braces, because load is a parsing word (so is use) 17:01:24 thanks, that will help. 17:01:29 loading is loading :P 17:01:30 * Raystm2 = confused. :) 17:02:23 load will put it in memory where you can get at it (starting at 'there' = '0 block') 17:03:02 save will save any info from that memory block to the filename that was loaded 17:03:32 (choose is what selects this filename, and use calls choose.) 17:05:37 these "editor" functions are just simplified syscalls, the edit command is just a fancy ui loop 17:06:14 I won't be using the editor tho. 17:06:34 i'll be doing this programatically. 17:07:26 load and save just deal with a block of memory, which the editor happens to use when it is run 17:07:53 oh wait then i'm not going to beable to do this. :( 17:08:08 there 512 <-- a string of bytes 17:08:12 why not? 17:08:17 I need more then a block just to add the program in . 17:08:43 you can access the file after the program is loaded 17:08:53 the program file is much bigger then 512 bytes 17:09:11 that's fine 17:09:16 there's multiple blocks 17:11:22 read the source of http://retroforth.org/contrib/files/mf.f 17:12:56 note how it has a load command embedded into one of the functions. this isn't executed until a time where all the words of the program are compiled into memory. 17:13:03 thanks :) 17:29:30 that's a cool progy. 17:29:49 I like the way that it's all included in the same file. 17:30:11 yeah, the created file is intended to be extended 17:30:44 by inserting with i ? 17:30:52 yeah 17:30:57 you just do something like : 17:31:12 you can load aff.b and use the editor 17:31:29 oh you do have to load the editor then? 17:31:34 okay. 17:31:57 you only run 'example' the first time, after that it reuses the file that was created 17:32:00 well raymond of course how else are you going to use editer commands. 17:32:19 ya. I see that and that's cool. 17:32:21 actually there is an alternative that I wrote last week :) 17:32:24 I like that part. 17:32:25 bdump 17:32:35 is there a paste? 17:32:47 b = bytes? 17:32:54 binary? 17:33:10 blockfile dump 17:33:16 ah. 17:33:30 it takes a number of blocks as an argument 17:34:25 crc: bdump goes into an infinite loop without an argument, perhaps 0; would stop this. 17:34:52 2 bdump shows 2 screens of blockfile, in a pastable form 17:35:12 you can use i, d, etc. without running edit 17:38:30 whups, missed your question. bdump is currently in retro 9.2 by default 17:40:16 see modules/edit-ext 17:40:44 docl: the infinite loop problem is fixed with the latest patch 17:41:01 cool, I'll get it :) 17:50:21 virl: try this: http://retroforth.net/paste/?id=22 17:51:05 Raystm2: use constants for d, e, and so on; they will be more efficient when compiled 17:59:35 :) okay 17:59:58 * Raystm2 is just floored reading rf-generic. 18:02:58 * Raystm2 just loves this " here is xt-name ] other words that define the function ; " aliases. 18:05:54 yeah that's awesome :) 18:16:54 * Raystm2 makes recommend changes to constants per crc. 18:33:37 okay I think i'm begining to see the way use load save choose work. 18:34:29 do I set-perm in windows? 18:36:45 choose limits the filename to 256 chars 18:37:14 but it moves the new file name into fname 18:39:01 I see how reload works. and I see how save works. 18:39:19 and now I know how load works. okay 18:40:44 oh but I don't know where read puts the file read in. 18:42:47 generic or windows? 18:44:38 I'll be on windows, but I don't see where generic puts the read-in file. 18:45:43 I think it's in the read-contents word 18:46:09 (read-mode in the windows port) 18:46:27 it places the read-in file at a location called "there" 18:46:37 * Raystm2 wonders where to see that source for windows port. 18:46:53 this is a value stored at the variable b0, btw 18:47:11 OH block 0. 18:47:15 similar to how "here" is stored at h0 18:47:17 yeah 18:47:23 doh! :) 18:47:35 slap me with an obvious fish! :) 18:48:22 so I can load the file and then just offset to the distance of each consecutive datum as I parse them? 18:48:33 as to the windows code, do you have the darcs repo of 902? 18:48:54 yeah, that's how it goes 18:48:58 Darcs 1.0.8 failed to retrieve. 18:49:20 I actually had one program where I changed the value of b0 temporarily 18:49:21 failed to get that is . 18:49:26 darn 18:50:07 you tried "darcs get http://retroforth.org/repos/902" ? 18:50:20 I shall try again. 18:50:40 alternatively, point your browser to http://retroforth.org/repos/902/ 18:55:54 failed to download the inventory. 18:56:24 libcurl: HTTP error (404?) 19:07:53 I assume there is something wrong with the inventories file in the repo, or that my version of darcs can't handle getting the inventory or I don't know really. 19:08:14 oh ya the browser :) 19:23:35 okay looks like include is my answer. this gives me the data at an offset from b0. 19:24:21 * Raystm2 tries this. 19:25:01 --- join: snoopy_1711 (i=snoopy_1@dslb-084-058-137-133.pools.arcor-ip.net) joined #retro 19:32:40 --- quit: Snoopy42 (Read error: 145 (Connection timed out)) 19:32:49 --- nick: snoopy_1711 -> Snoopy42 19:33:49 oh man this may work better in retroforth then I ever imagined. 19:34:58 good :) 19:35:53 include does something sweet with my savegame file. 19:36:11 include save-game.txt and all of the datum are on the stack. 19:36:16 sweet. 19:37:16 I think i can eliminate my old line-buffer and just translate the moves into the execution-buffer directly from the stack. 19:47:36 but how to save them back to the save-game.txt 19:49:21 whoa conflict. :) 19:49:58 cool tho. I loaded the save-game.txt and then I saved and my save-game.txt was save but also included the program file right with it. 19:57:26 when you 'include' a file, it does a temporary relocate of b0 ("there"), this can have interesting side effects.... 19:59:20 can I clear the editor before loading the save-game.txt file? 20:00:01 yes 20:00:03 'new' 20:00:10 should do it 20:00:14 okay thanks /me tries this. 20:06:31 * docl didn't realise that about include, that's cool 20:07:14 --- quit: nighty (Read error: 113 (No route to host)) 20:07:36 okay thats working. 20:08:11 I get the moves from save-game.txt into the editor block by itself. 20:08:21 Now to just edit this block from the program. 20:08:28 then save back. 20:09:01 looks like part of the game loop will do this regularly. 20:12:46 whoa I can vector into eval and treat the block file as the execution-buffer, eliminating another array in my old design. 22:37:15 --- quit: neceve (Remote closed the connection) 23:59:59 --- log: ended retro/06.07.09