00:00:00 --- log: started forth/07.02.17 00:01:44 --- quit: slava () 00:07:29 --- quit: warpzero (Read error: 128 (Network is unreachable)) 00:15:56 --- join: warpzero (n=warpzero@wza.us) joined #forth 00:22:52 --- quit: warpzero (Read error: 104 (Connection reset by peer)) 00:22:55 --- join: warpzero (n=warpzero@wza.us) joined #forth 00:25:20 --- nick: arke_ -> arke 00:25:20 --- mode: ChanServ set +o arke 00:51:22 --- join: geckosenator (n=sean@71-208-204-50.hlrn.qwest.net) joined #forth 01:13:25 --- join: Raystm2 (n=NanRay@adsl-68-95-253-106.dsl.rcsntx.swbell.net) joined #forth 02:34:05 --- join: Raystm2- (n=NanRay@adsl-68-95-253-106.dsl.rcsntx.swbell.net) joined #forth 02:47:47 --- join: Raystm2_ (n=NanRay@adsl-68-95-253-106.dsl.rcsntx.swbell.net) joined #forth 02:48:44 --- quit: Raystm2 (Read error: 110 (Connection timed out)) 03:04:22 --- quit: Raystm2- (Read error: 110 (Connection timed out)) 03:06:34 --- quit: Raystm2_ (Read error: 110 (Connection timed out)) 03:25:45 --- quit: Snoopy42 (Read error: 145 (Connection timed out)) 04:08:37 --- quit: arke ("Konversation terminated!") 04:18:14 --- join: crest_ (n=crest@p54897545.dip.t-dialin.net) joined #forth 04:26:56 --- quit: Crest (Read error: 110 (Connection timed out)) 04:30:45 --- join: tathi (n=josh@pdpc/supporter/bronze/tathi) joined #forth 04:30:45 --- mode: ChanServ set +o tathi 04:53:55 --- join: Raystm2 (n=NanRay@adsl-68-95-251-170.dsl.rcsntx.swbell.net) joined #forth 05:01:24 --- quit: azekeprofit (Read error: 104 (Connection reset by peer)) 05:05:20 --- join: oudeis (n=oudeis@bzq-82-81-176-24.red.bezeqint.net) joined #forth 05:11:40 --- join: ygrek (i=user@gateway/tor/x-443f731428de89b7) joined #forth 05:19:12 --- join: edrx (n=Eduardo@201.5.12.244) joined #forth 05:27:45 --- quit: JasonWoof (Read error: 60 (Operation timed out)) 05:49:21 --- quit: tathi ("leaving") 05:57:16 --- quit: Raystm2 (Read error: 104 (Connection reset by peer)) 06:07:40 --- join: Raystm2 (n=NanRay@adsl-69-149-56-233.dsl.rcsntx.swbell.net) joined #forth 06:22:47 --- quit: neceve (Remote closed the connection) 06:24:52 --- join: neceve (n=Clau@unaffiliated/neceve) joined #forth 07:02:09 --- nick: crest_ -> Crest 07:04:37 --- join: exsample (n=spf@221-40-124-91.pool.ukrtel.net) joined #forth 07:04:45 --- quit: exsample (Client Quit) 07:06:43 --- quit: gnomon (Read error: 110 (Connection timed out)) 07:21:31 --- part: edrx left #forth 09:23:46 --- join: N-Dex (n=gentoo@c-67-182-177-156.hsd1.ca.comcast.net) joined #forth 09:37:44 Hi everyone. Hey, does anybody have volume 14 of FD magazine available for scanning into forth.org's archive? There's some interesting articles in there but they are missing. 09:38:28 --- join: Raystm2- (n=NanRay@adsl-69-149-33-22.dsl.rcsntx.swbell.net) joined #forth 09:54:43 --- quit: Raystm2 (Read error: 110 (Connection timed out)) 10:11:45 --- join: vatic (n=chatzill@ool-45740b1c.dyn.optonline.net) joined #forth 10:49:06 good morning 10:49:17 Good morning. 10:56:00 hi crc 11:00:52 hi virl. 11:01:30 --- quit: ygrek (Remote closed the connection) 11:06:55 --- join: Jules__ (n=jjacobs@cp550544-a.landg1.lb.home.nl) joined #forth 11:24:31 --- join: JasonWoof (n=jason@c-71-192-30-169.hsd1.ma.comcast.net) joined #forth 11:24:32 --- mode: ChanServ set +o JasonWoof 11:28:11 --- quit: Jules__ ("Leaving") 11:40:35 --- join: ygrek (i=user@gateway/tor/x-b16de57b3d73e66d) joined #forth 12:15:34 --- quit: ygrek () 12:22:20 --- join: nighty^ (n=nighty@sushi.rural-networks.com) joined #forth 12:28:35 --- join: tathi (n=josh@pdpc/supporter/bronze/tathi) joined #forth 12:28:35 --- mode: ChanServ set +o tathi 12:30:20 --- join: nighty^^ (n=nighty@sushi.rural-networks.com) joined #forth 12:39:38 --- join: ecraven (n=nex@eutyche.swe.uni-linz.ac.at) joined #forth 12:42:51 --- quit: nighty^ (Connection timed out) 13:12:39 --- quit: ecraven ("bbl") 13:19:16 --- join: Raystm2 (n=NanRay@adsl-68-95-255-162.dsl.rcsntx.swbell.net) joined #forth 13:25:03 --- quit: Raystm2- (Read error: 145 (Connection timed out)) 13:29:26 --- quit: Raystm2 (Read error: 104 (Connection reset by peer)) 13:57:45 --- join: Raystm2 (n=NanRay@adsl-69-149-55-3.dsl.rcsntx.swbell.net) joined #forth 14:00:29 --- join: ecraven (n=nex@eutyche.swe.uni-linz.ac.at) joined #forth 14:06:27 --- join: edrx (n=Eduardo@200.217.105.16) joined #forth 14:17:19 --- quit: ecraven ("bbl") 14:34:36 --- quit: vatic ("*poof*") 15:09:21 --- quit: madgarden ("?OUT OF DATA ERROR") 15:45:44 --- join: erider (n=erider@unaffiliated/erider) joined #forth 15:50:02 question I'm trying to use ffi in gforth. I'm trying to use "puts" I have tried "library libc libc.so.6 1 (int) libc puts puts" next I'm trying to call it and that is where the issue lays. I'm trying to call it like this: ." test! " puts any suggestions? 16:04:17 what's happening when you do that? 16:04:29 oh. not ." 16:04:30 try s" 16:04:42 or...actually, you need it to be zero terminated 16:05:38 --- join: madgarden (n=madgarde@bas2-kitchener06-1096668571.dsl.bell.ca) joined #forth 16:09:50 tathi: Stack underflow 16:09:50 s" test!" puts 16:09:50 ^^^^ Backtrace: $2AAAAB0B8990 icall20 16:10:46 are you sure you're defining puts correctly? 16:11:28 I'm not positive 16:11:44 libc puts ptr (int) puts 16:11:51 I think that's how it should go... 16:12:01 library libc libc.so.6 16:14:08 tathi: libc puts ptr (int) puts 16:14:08 ^^^ 16:14:08 Backtrace: 16:14:08 $2AAAAB087A28 throw 16:14:08 $2AAAAB0B8D78 c(abort") 16:14:09 $2AAAAB0B8F18 @proc 16:14:11 $2AAAAB0B9230 proc, $2AAAAB0B9640 vproc: 16:14:42 oh, sorry. you're on Windows, aren't you? 16:16:04 no linux 16:16:09 hrm. 16:17:25 it seems to like 1 (int) libc puts puts 16:17:42 yeah, guess you're right there. 16:17:48 funny that you get a stack underflow though. 16:19:18 weird 16:19:52 1 (int) libc puts puts redefined puts ok 16:20:15 tathi: but I can't seem to call it 16:21:07 : z" [char] " parse swap over here swap move here swap chars allot 0 c, ; 16:21:23 that produces zero-terminated strings 16:22:04 dunno why you can't call it though. 16:23:30 that worked 16:23:53 cool 16:24:18 but I'm not should why it can't just call it 16:25:13 --- quit: madgarden (Read error: 131 (Connection reset by peer)) 16:25:52 yeah. I could see getting a segfault or invalid address or something. 16:25:58 But stack underflow seems like a weird error. 16:27:00 shouldn't it be able to just print the string thats left on the stack 16:27:54 brb 16:28:20 well, s" leaves address and length. 16:28:32 puts is a C function, it takes an address of a zero-terminated string. 16:30:48 --- join: madgarden (n=madgarde@bas2-kitchener06-1096668571.dsl.bell.ca) joined #forth 16:32:00 tathi: what do you mean but zero-terminated string? 16:33:11 tathi: if I swap the stack it prints 16:33:36 erider: sure, if you swap or drop, it should print. just might not stop at the end of your string. 16:33:38 s" this is a test " swap puts works 16:33:51 brb 16:34:24 in C, strings have a zero byte at the end. 16:37:05 "foo" would be stored as 'f', 'o', 'o', 0 16:52:41 --- quit: neceve (Remote closed the connection) 16:53:17 --- quit: virl ("Verlassend") 16:54:03 tathi: ah ok 16:54:47 so the z" " puts a 0 at the end 16:56:08 yeah 16:58:47 weird 16:59:52 tathi: doesn't puts add a trailing newline to strings? 17:00:04 it prints a trailing newline, yes. 17:00:12 doesn't actually touch the string. 17:00:22 int puts(const char *s); 17:00:26 but it doesn't add '\0' 17:00:34 If interfacing Forth to C, it's helpful to know both Forth, and C. 17:00:43 no, it prints all characters up to the '\0' 17:00:48 and then a '\n' 17:01:34 well I'm trying to learn forth 17:02:38 what do you need the ffi stuff for? 17:03:18 to help with coding my bot in forth 17:04:01 IRC bot? 17:04:15 I need to gain access to some string libraries and yes IRC bot 17:04:53 what kind of string stuff are you doing that you need an external library? 17:05:11 the IRC protocol itself isn't that complex 17:05:38 str comparing and token matching 17:05:53 and you could use tcpserver or something to avoid using sockets for a while. 17:07:51 forth has COMPARE to compare strings 17:08:07 and you could use a wordlist and the forth interpreter to do token matching 17:08:18 (if I understand what you mean by that) 17:09:21 hmm I have a look see in the gforth manual on those words 17:12:19 --- part: erider left #forth 17:13:41 --- join: erider (n=erider@unaffiliated/erider) joined #forth 18:42:36 --- quit: Quartus_ (zelazny.freenode.net irc.freenode.net) 18:42:36 --- quit: geckosenator (zelazny.freenode.net irc.freenode.net) 18:42:36 --- quit: virsys (zelazny.freenode.net irc.freenode.net) 18:43:33 --- join: Quartus_ (n=Quartus_@209.167.5.2) joined #forth 18:43:33 --- join: geckosenator (n=sean@71-208-204-50.hlrn.qwest.net) joined #forth 18:43:33 --- join: virsys (n=virsys@or-71-54-194-74.dhcp.embarqhsd.net) joined #forth 18:43:33 --- mode: irc.freenode.net set +o Quartus_ 19:38:33 I have here a brainfuck to forth compiler 19:47:45 --- quit: Quartus (Read error: 110 (Connection timed out)) 19:48:47 --- join: Quartus (n=trailer@CPE0001023f6e4f-CM013349902843.cpe.net.cable.rogers.com) joined #forth 19:48:47 --- mode: ChanServ set +o Quartus 19:53:35 --- part: edrx left #forth 20:25:00 --- quit: tathi ("leaving") 21:13:19 --- join: Raystm2- (n=NanRay@adsl-69-149-42-236.dsl.rcsntx.swbell.net) joined #forth 21:26:06 --- quit: Raystm2 (Read error: 110 (Connection timed out)) 22:03:43 --- join: azekeprofit (i=azekePro@82.200.250.71) joined #forth 22:41:27 --- quit: Quartus (Read error: 110 (Connection timed out)) 22:54:49 --- join: imaginator (n=George@georgeps.dsl.xmission.com) joined #forth 23:59:59 --- log: ended forth/07.02.17