00:00:00 --- log: started forth/16.06.10 00:12:21 --- quit: wa5qjh (Remote host closed the connection) 00:12:38 --- join: wa5qjh (~Thunderbi@203.111.224.63) joined #forth 00:17:54 --- quit: ASau (Read error: Connection reset by peer) 00:45:50 --- quit: Kumool (Read error: Connection reset by peer) 00:49:05 --- quit: Skuzzzy (Read error: Connection reset by peer) 00:50:13 --- join: Skuzzzy (~Skuzzzy@wsip-70-166-101-14.ph.ph.cox.net) joined #forth 01:26:58 --- join: ASau (~user@netbsd/developers/asau) joined #forth 01:49:37 --- quit: wa5qjh (Ping timeout: 244 seconds) 01:54:10 --- quit: mnemnion (Remote host closed the connection) 02:09:13 --- quit: dzho (Ping timeout: 264 seconds) 02:15:31 --- quit: nighty (Quit: Disappears in a puff of smoke) 02:34:28 --- join: wa5qjh (~Thunderbi@203.111.224.63) joined #forth 02:49:55 --- quit: ASau (Ping timeout: 240 seconds) 03:19:46 --- join: nighty (~nighty@s229123.ppp.asahi-net.or.jp) joined #forth 03:40:08 --- quit: wa5qjh (Read error: Connection reset by peer) 03:40:47 --- join: wa5qjh (~Thunderbi@203.111.224.41) joined #forth 03:44:28 --- join: dzho (~dzho@unaffiliated/dzho) joined #forth 04:31:14 --- mode: ChanServ set +v crc 04:33:04 --- quit: wa5qjh (Remote host closed the connection) 04:33:23 --- join: wa5qjh (~Thunderbi@203.111.224.41) joined #forth 05:06:59 --- quit: wa5qjh (Read error: Connection reset by peer) 05:07:05 --- join: leaverite (~Thunderbi@203.111.224.41) joined #forth 05:09:26 --- nick: leaverite -> wa5qjh 05:36:43 --- quit: wa5qjh (Ping timeout: 276 seconds) 06:24:14 afternoon 06:25:34 --- join: dys`` (~user@x5f737765.dyn.telefonica.de) joined #forth 06:27:23 --- join: vsg1990 (~vsg1990@pool-74-110-57-203.bflony.fios.verizon.net) joined #forth 08:32:21 the tutorial in the gforth manual gives an assignment "write min without if"; is there a better implementation than the one I came up with? 08:32:39 (typing) 08:33:01 : min 2dup > and dup 0= rot and or ; 08:36:01 also hi gordonjcp 09:24:11 --- join: true-grue (~true-grue@176.14.216.104) joined #forth 09:45:28 --- quit: karswell (Ping timeout: 244 seconds) 09:52:13 --- join: Zarutian (~zarutian@168-110-22-46.fiber.hringdu.is) joined #forth 10:15:16 5 0 min . 5 ok 10:15:36 oops :P 10:18:01 Gracana: your min implementation is wrong 10:18:42 oops! 10:26:38 the one I had before that was : min 2dup < dup 0= rot and -rot and or ; 10:26:43 which does not fail in that case 10:51:01 --- join: mnemnion (~mnemnion@2601:643:8103:f9d0:cd07:8085:b21c:29df) joined #forth 10:54:11 : min tuck - dup 0< and + ; 10:57:54 Gracana: got a smaller one 11:00:24 i use less stack 11:08:07 gforth uses two opcodes, cmp / cmovg 11:12:39 Oh I like that one. I had forgotten about tuck, and I like the addition at the end. 11:28:54 orzo: your solution is plain wrong. 11:28:58 It doesn't work. 11:36:48 oh? 11:37:20 it's working for me, what input are you giving it? 11:38:08 "It is working for me" doesn't entail correctness. 11:38:08 yeah, well help me reproduce 11:38:26 Any input that underflows or overflows in VM that implements saturation arithmetics gives wrong result. 11:38:49 what's saturation arithmetics 11:39:07 Look it up. 11:41:10 well, i'll just add a doc that this implementation does not support saturation arithmetic 11:41:21 you're not allowed to use if, right? 11:41:23 ... 11:41:38 is 0branch against the spirit or just the letter of the rules? 11:42:11 It doesn't exist. 11:42:17 haha yeah that would be against the spirit, I think the point was to avoid conditional branching 11:43:04 how about ?dup 11:45:09 --- join: JDat (JDat@89.248.91.5) joined #forth 11:45:35 --- join: bedah (~bedah@dyndsl-037-138-031-138.ewe-ip-backbone.de) joined #forth 12:16:16 --- quit: mnemnion (Read error: Connection reset by peer) 12:16:48 --- join: mnemnion (~mnemnion@2601:643:8103:f9d0:cd07:8085:b21c:29df) joined #forth 13:04:58 --- quit: bedah (Quit: Ex-Chat) 13:47:55 --- quit: JDat (Ping timeout: 240 seconds) 14:21:16 --- quit: mnemnion (Read error: Connection reset by peer) 14:21:49 --- join: mnemnion (~mnemnion@c-98-207-249-139.hsd1.ca.comcast.net) joined #forth 14:44:42 --- join: ASau (~user@netbsd/developers/asau) joined #forth 14:45:11 --- quit: proteusguy (Ping timeout: 250 seconds) 14:48:54 --- join: wa5qjh (~Thunderbi@121.54.58.130) joined #forth 14:57:25 --- join: proteusguy (~proteusgu@183.88.59.238) joined #forth 14:57:25 --- mode: ChanServ set +v proteusguy 15:39:33 --- quit: true-grue (Read error: Connection reset by peer) 15:52:49 --- join: Kumool (~kumool@adsl-64-237-234-227.prtc.net) joined #forth 16:14:39 --- join: leaverite (~Thunderbi@203.111.224.32) joined #forth 16:16:19 --- quit: wa5qjh (Ping timeout: 276 seconds) 16:16:19 --- nick: leaverite -> wa5qjh 16:27:46 --- quit: wa5qjh (Remote host closed the connection) 16:29:17 --- join: wa5qjh (~Thunderbi@203.111.224.32) joined #forth 16:37:55 avoiding conditional branching of control flow only or also conditional dataflow? 16:39:51 something like : :? ( conseq altern bool ) NOT IF SWAP THEN DROP ; in effect? 16:40:26 s/:?/?:/ 16:54:04 then : min 2DUP < ?: ; 16:54:18 this is pretty fun 17:31:07 --- quit: wa5qjh (Read error: Connection reset by peer) 17:31:32 --- join: wa5qjh (~Thunderbi@112.198.83.34) joined #forth 17:34:16 --- quit: Zarutian (Quit: Zarutian) 17:42:26 --- quit: wa5qjh (Ping timeout: 250 seconds) 17:42:27 --- join: leaverite (~Thunderbi@203.111.224.58) joined #forth 17:43:12 --- quit: leaverite (Read error: Connection reset by peer) 17:56:34 --- join: wa5qjh (~Thunderbi@203.111.224.52) joined #forth 18:07:59 --- join: leaverite (~Thunderbi@121.54.58.130) joined #forth 18:09:59 --- quit: wa5qjh (Ping timeout: 260 seconds) 18:10:00 --- nick: leaverite -> wa5qjh 20:11:02 --- join: Bahman (~Bahman@46.41.229.215) joined #forth 20:18:26 --- quit: Bahman (Quit: ave atque vale) 20:20:08 --- quit: nighty (Remote host closed the connection) 22:20:31 --- quit: wa5qjh (Read error: Connection reset by peer) 22:23:33 --- join: wa5qjh (~Thunderbi@121.54.58.130) joined #forth 23:13:58 --- quit: vsg1990 (Quit: Leaving) 23:49:22 --- quit: wa5qjh (Ping timeout: 276 seconds) 23:50:47 --- join: wa5qjh (~Thunderbi@121.54.58.130) joined #forth 23:59:59 --- log: ended forth/16.06.10