00:00:00 --- log: started retro/17.11.04 03:22:19 --- quit: FreeFull (Ping timeout: 260 seconds) 03:23:59 --- join: FreeFull (~freefull@defocus/sausage-lover) joined #retro 03:52:57 --- quit: FreeFull (Ping timeout: 240 seconds) 05:23:55 --- join: FreeFull (~freefull@defocus/sausage-lover) joined #retro 06:07:11 Is there a standard way to call an external program from inside RetroForth12? 06:15:31 gforth has the system function which does not work on retro forth 06:15:39 --- nick: Guest75729 -> wuehlmaus 06:16:01 good question 06:17:33 retro does not currently have this; I can likely add it for the next release if it would be helpful 06:17:54 it would be great 06:18:05 That would be very helpful! 06:18:54 ok, I'll work on it :) 06:20:52 great 06:34:59 is it better to use e.g. github to be current with retro or latest.tar.gz ? 06:35:25 i would like to use github 06:35:40 latest.tar.gz currently; 06:35:48 but it seems to be different from latest.tar.gz 06:35:58 okay 06:36:50 I actually use a fossil repository for the main development and uodate the git with the main changes periodically 06:37:50 what's the url then? 06:37:55 installed fossil 06:38:40 http://forthworks.com:8000 06:39:26 thanks 06:40:23 no problem 06:44:07 and then i use ``fossil clone'' ? 06:45:25 fossil clone http://forthworks.com:8000 retro.fossil 06:45:45 mkdir retro 06:45:45 ah, thank you! 06:46:08 cd retro && fossil open ../retro.fossil 06:46:38 I'll add cloning instructions to the pages later today 06:47:04 great 06:57:47 another question of a newbie: why does Retro use -1 to tell one that an expression is true? 06:58:08 did forth do that from the beginning? 06:58:29 it's quite different from c 07:03:20 traditionally in forth non-zero was considered true; use of -1 has benefits with the and/or/xor operations 07:07:25 ah 07:07:30 good to know 07:27:11 the fossil repo now has a `sys:system` word in the rre interface; not well tested yet (only a couple of quick things on my FreeBSD box) 07:48:40 That was very quick, I'll give it a shot. 07:57:11 So far it has worked as expected with every command I've tried. 08:10:10 good :) 11:20:50 crc: is it e.g. 'ls sys:system ? 11:32:55 yes 11:34:46 doesn't do anything for me right now but i might be just mistaken 11:34:59 after all i am newbie 11:35:24 and it does not work in the repl , only with a file and rre 11:35:37 which i tried 11:38:53 [this is on linux ] 11:41:59 i am not used to rre yet 11:45:14 in the bin directory is a listener script that is similar to the repl, but using rre (so provides the additional functionality from rre) 11:46:32 yes, works 11:46:42 great, thanks so much, crc 11:47:01 it is wonderful to have a wish granted so early 12:10:12 workd with apple, too 12:10:19 works 12:14:54 good 12:17:30 I should probably do a unix: namespace with more of the standard system functions as words (fork, exec, etc) 12:30:02 great idea 14:24:25 latest commit renames `sys:system` to `unix:system` and adds `unix:fork`, `unix:getpid`, `unix:exit`, `unix:exec0`, `unix:exec1`, `unix:exec2`, and `unix:exec3`. 14:24:59 `unix:exit` takes a return code from the stack; the exec forms take multiple arguments. E.g., 14:25:24 `'/bin/cat '/etc/motd unix:exec1` 14:25:42 `'/usr/bin/cal '1 '2019 unix:exec2` 14:25:55 (paths will need to be adjusted for your system) 14:26:41 if an exec word fails, it'll return the err code (see errno.h on your system's standard include files for a list of these) 20:00:31 I've also added `unix:wait` and `unix:kill`, and some notes to interfaces/rre.forth on the words in the unix: namespace. 20:57:49 --- quit: wuehlmaus (Quit: Lost terminal) 23:59:59 --- log: ended retro/17.11.04