00:00:00 --- log: started forth/18.02.16 00:10:48 --- quit: wa5qjh (Remote host closed the connection) 00:11:27 bb是什麼 00:14:31 --- join: wa5qjh (~quassel@175.158.225.199) joined #forth 00:14:31 --- quit: wa5qjh (Changing host) 00:14:31 --- join: wa5qjh (~quassel@freebsd/user/wa5qjh) joined #forth 00:53:59 --- join: mtsd (4d6e3d64@gateway/web/freenode/ip.77.110.61.100) joined #forth 00:54:33 --- join: dys (~dys@2003:5b:203b:100:6af7:28ff:fe06:801) joined #forth 02:07:03 --- join: ncv (~neceve@2a02:c7d:c5c9:a900:1ec6:932f:1b02:d27e) joined #forth 02:07:03 --- quit: ncv (Changing host) 02:07:04 --- join: ncv (~neceve@unaffiliated/neceve) joined #forth 02:13:45 --- quit: ncv (Remote host closed the connection) 02:17:05 --- join: ncv (~neceve@2a02:c7d:c5c9:a900:1ec6:932f:1b02:d27e) joined #forth 02:17:05 --- quit: ncv (Changing host) 02:17:05 --- join: ncv (~neceve@unaffiliated/neceve) joined #forth 02:45:36 --- quit: nighty- (Quit: Disappears in a puff of smoke) 02:52:47 --- quit: mtsd (Ping timeout: 260 seconds) 03:15:01 --- quit: wa5qjh (Remote host closed the connection) 03:39:50 --- join: tomlukeywood (~quassel@host-92-19-232-58.static.as13285.net) joined #forth 03:58:24 --- quit: tomlukeywood (Remote host closed the connection) 03:59:19 --- join: Zarutian_PI (~3.1415@173-133-17-89.fiber.hringdu.is) joined #forth 04:26:14 --- join: dddddd (~dddddd@unaffiliated/dddddd) joined #forth 05:32:45 --- quit: bedah (Ping timeout: 256 seconds) 05:43:09 --- join: bedah (~bedah@2a02:810d:1c0:3608:24ed:d402:d709:ca4c) joined #forth 06:08:22 --- join: Gromboli (~Gromboli@static-72-88-80-103.bflony.fios.verizon.net) joined #forth 06:26:55 --- quit: smokeink (Quit: Leaving) 07:09:10 --- join: EvanCarroll (~ecarroll@172.58.99.137) joined #forth 07:24:45 --- join: lijero (~lijero@unaffiliated/lijero) joined #forth 07:32:19 --- quit: Zarutian_PI (Read error: Connection reset by peer) 07:32:54 --- join: Zarutian_PI (~3.1415@173-133-17-89.fiber.hringdu.is) joined #forth 07:52:52 --- join: smokeink (~smokeink@59-125-75-78.HINET-IP.hinet.net) joined #forth 08:00:48 --- quit: smokeink (Ping timeout: 255 seconds) 08:26:43 --- quit: johnmark_ (Ping timeout: 256 seconds) 08:54:02 --- join: johnmark_ (~johnmark@d53-64-121-247.nap.wideopenwest.com) joined #forth 10:12:10 --- join: yuiop (9f7f20fe@gateway/web/freenode/ip.159.127.32.254) joined #forth 10:40:02 --- join: tomlukeywood (~quassel@host-92-19-232-58.static.as13285.net) joined #forth 10:43:42 --- quit: dys (Ping timeout: 255 seconds) 11:26:53 --- join: Mat4 (~Claude@ip5b409e5e.dynamic.kabel-deutschland.de) joined #forth 11:47:00 --- quit: Mat4 (Ping timeout: 256 seconds) 12:21:41 --- quit: tomlukeywood (Remote host closed the connection) 12:30:02 --- join: gravicappa (~gravicapp@ppp83-237-162-152.pppoe.mtu-net.ru) joined #forth 13:45:07 --- quit: gravicappa (Ping timeout: 260 seconds) 14:00:31 --- quit: yuiop (Quit: Page closed) 14:06:10 i'm struggling to figure out how >number is supposed to be used 14:06:58 i would expect that »1 s" 1234" >number 2drop . 14:08:00 « results in 11234, but instead i get 10000 in yforth and the javascript for at https://repl.it/, and an error in gforth 14:08:31 --- join: tomlukeywood (~quassel@host-92-19-232-58.static.as13285.net) joined #forth 14:08:31 (gforth gives me a stack underflow) 14:08:56 as if every digit was converted to zero… 14:09:51 I don't think it's wise to assume all forths behave the same. I'd pick one (iirc yforth was fairly easy to understand) and focus on it 14:09:56 but what do I know? 14:11:05 i'm trying to follow ANS'94 and implement my own forth based on it (at least that's my main goal) 14:11:34 and i assumed (or hoped) that gforth and/or yforth would implement ANS'94 14:17:26 I think there are as many ANS'94s as there are ANS'94 compatible forths (>_<) 14:18:40 the spec should (?) indicate what the word does (I'm guessing based on context, here) so I don't think it would be hard to verify w/another 14:19:16 IIRC gforth tries to be ANS compatible but I personally have never used it more than briefly. but the underflow indicates it's obviously not perfect. sorry. 14:19:38 well, my reading of the spec tells me that i should get 11234 in my example above :/ 14:20:14 i'll look around in both implementations' documentation to figure out to which extend they try to follow which standards :) 14:22:38 > yForth? is based on the draft of ANS Forth, but it's NOT complete. 14:22:42 hmm, ok 14:23:10 but the code looks readable if i read it slowly. good :) 14:25:11 I get 0 after >number and it leaves the pointer (but not length) on the stack 14:25:16 --- quit: tomlukeywood (Remote host closed the connection) 14:25:16 ooooh, the signature of >number is ( ud1 c-addr1 u1 -- ud2 c-addr2 u2 ) and i assumed the "d" meant decimal or something, but it means double-cell! 14:25:24 I do not know what >>1 is supposed to do (in yforth) 14:26:08 --- quit: Zarutian_PI (Read error: Connection reset by peer) 14:26:14 --- join: Zarutian_PI2 (~3.1415@173-133-17-89.fiber.hringdu.is) joined #forth 14:26:33 what's >>1? 14:26:48 --- quit: ncv (Ping timeout: 256 seconds) 14:28:04 1 s>d s" 1234" >number 2drop d. 14:28:04 11234 ok 14:28:06 you said: "14:06 < jn> i would expect that >>1 s" 1234" >number 2drop ." 14:28:22 yes. I think you used >><< to quote and I did not interpred it correctly 14:28:32 ah, the » was meant as a quotation mark because it's not in ascii 14:28:53 (and i accidentally inserted a newline) 14:29:01 (due to copy/paste) 14:29:45 anyway, now everything makes sense :) 14:29:50 understood. I'm glad you figured out the s>d solution 15:04:18 --- join: karswell_ (~user@cust125-dsl91-135-5.idnet.net) joined #forth 15:15:08 --- join: smokeink (~smokeink@59-125-75-78.HINET-IP.hinet.net) joined #forth 15:15:54 --- nick: karswell_ -> karswell 15:45:15 --- join: wa5qjh (~quassel@freebsd/user/wa5qjh) joined #forth 16:05:57 --- nick: Zarutian_PI2 -> Zarutian_PI 16:17:21 https://stackoverflow.com/q/48836613/124486 16:31:01 ab is 1*2 16:32:21 6 is the right answer, isn't it ? 16:33:43 when a=1 , b=2, c=3 , 6 is the correct result 16:33:51 6 is correct 16:34:18 zomfg my bad 16:34:47 "over + *" just factored out a from the first two terms so that it only has to multiply once 16:37:30 I guess I don't get why we're doing over + 16:38:02 if a = 1, b = 2, c = 3; a**2 + ab + c 16:38:39 why are we adding 2 and 1 together. 16:39:17 I see the comment though 16:39:35 a(a+b) + c 16:39:38 what a weird example 16:39:58 a**2 + a*b + c = 1**2 + 1*2 + 3 = 1 + 2 + 3 = 6 16:43:01 EvanCarroll, over is there because they want to add a and b but still keep a copy of a around for the multiplication 17:42:54 Thanks for the help =) 17:43:11 I got another one I'm not sure if you want me to ask them here or not? A good chance to grow the coverage on SO though. 17:43:17 https://stackoverflow.com/q/48837115/124486 17:43:25 If they get annoying, tell me and I'll leave them on SO 17:44:16 the most annoying part (IMHO) is that i have to look up the question outside of my irc client 17:45:09 ah, ok well that's understandable if that's where the community is at. I was just thinking I'm probably not the only person to run into these questions while reading the book 17:45:22 I'm wondering why `L` doesn't work after `180 LIST` in gforth 17:47:19 i think gforth just doesn't implement that word 17:47:51 Are these editor things? 17:48:13 i guess so 18:25:58 --- quit: clog (^C) 18:25:58 --- log: stopped forth/18.02.16 18:26:09 --- log: started forth/18.02.16 18:26:09 --- join: clog (~nef@bespin.org) joined #forth 18:26:09 --- topic: 'Forth Programming | logged by clog at http://bit.ly/91toWN | Forth Standards at http://forthworks.com/forth | www.greenarraychips.com | https://github.com/mark4th' 18:26:09 --- topic: set by crc!sid2647@gateway/web/irccloud.com/x-bvbpvizerlziiwww on [Wed Apr 19 13:11:34 2017] 18:26:09 --- names: list (clog wa5qjh smokeink karswell Zarutian_PI johnmark_ lijero Gromboli bedah dddddd djinni +proteusguy reepca` groovy2shoes jedb phadthai FatalNIX rodarmor proteus-guy rgrinberg ggherdov` @crc Darksecond_ M-jimt pointfree1 bb010g a3f sigjuice ovf backer yunfan pointfree jeremyheiler impomatic xek cheater rpcope bavier` bluekelp dograt nerfur rprimus cess11 @koisoke ecraven dzho diginet2 malyn carc lugh fiddlerwoaroof zy]x[yz APic irsol izabera jn) 18:26:50 jn: so do i :D 19:19:45 wow, this game actually contains forth source code 19:21:30 (but not much) 20:32:02 --- quit: Gromboli (Quit: Leaving) 20:35:12 --- join: EvanCarroll (~ecarroll@108-205-218-177.lightspeed.hstntx.sbcglobal.net) joined #forth 21:07:19 --- quit: dddddd (Remote host closed the connection) 23:28:05 --- quit: Zarutian_PI (Ping timeout: 256 seconds) 23:44:51 --- quit: smokeink (Remote host closed the connection) 23:57:29 --- join: dys (~dys@tmo-106-255.customers.d1-online.com) joined #forth 23:59:59 --- log: ended forth/18.02.16