[00:10:29] * earl [earl!~earl@pdpc/supporter/active/earl] has quit (Ping timeout: 272 seconds). [00:18:01] * earl [earl!~earl@pdpc/supporter/active/earl] has joined the channel. [01:06:13] * fuzzyhorns [fuzzyhorns!~fuzzyhorn@c-73-38-57-191.hsd1.ma.comcast.net] has joined the channel. [01:29:17] * fuzzyhorns [fuzzyhorns!~fuzzyhorn@c-73-38-57-191.hsd1.ma.comcast.net] has quit (Quit: Leaving.). [01:44:58] * fuzzyhorns [fuzzyhorns!~fuzzyhorn@c-73-38-57-191.hsd1.ma.comcast.net] has joined the channel. [02:00:41] * fuzzyhorns [fuzzyhorns!~fuzzyhorn@c-73-38-57-191.hsd1.ma.comcast.net] has quit (Quit: Leaving.). [02:52:45] * groovy2shoes [groovy2shoes!~groovy2sh@unaffiliated/groovebot] has joined the channel. [03:18:10] * fuzzyhorns [fuzzyhorns!~fuzzyhorn@c-73-38-57-191.hsd1.ma.comcast.net] has joined the channel. [03:22:04] * rgrinberg [rgrinberg!~rgrinberg@172-97-147-148.cpe.distributel.net] has joined the channel. [03:32:06] * rgrinberg [rgrinberg!~rgrinberg@172-97-147-148.cpe.distributel.net] has quit (Ping timeout: 244 seconds). [03:40:32] * fuzzyhorns [fuzzyhorns!~fuzzyhorn@c-73-38-57-191.hsd1.ma.comcast.net] has quit (Quit: Leaving.). [04:00:07] if reversing unit-tests makes it easier later, fine with me too, althoug haven't really used factor in a while [04:00:30] erg: any particular reason why you'd like to use # instead of ! for comments? also fine either way, but curious if there was a driving motivation [04:16:05] just butting in here - but # is quite ubiquitous. ! is kind of ugly to me [05:06:04] agreed [05:09:13] * groovy2shoes [groovy2shoes!~groovy2sh@unaffiliated/groovebot] has quit (Remote host closed the connection). [05:09:23] * mykespb [mykespb!~myke@213.141.133.133] has quit (Quit: Leaving). [05:09:38] * groovy2shoes [groovy2shoes!~groovy2sh@unaffiliated/groovebot] has joined the channel. [05:25:20] * kssreeram [kssreeram!~kssreeram@49.207.188.151] has joined the channel. [05:36:10] * kssreeram [kssreeram!~kssreeram@49.207.188.151] has quit (Quit: My Mac has gone to sleep. ZZZzzz…). [07:44:57] * kssreeram [kssreeram!~kssreeram@115.242.195.238] has joined the channel. [07:59:46] I sometimes wonder if even the classic forth ":" for word definitions is too ugly. it is short though :D [08:17:10] # is good for shell scripts. ! is used for mutable/state and is basically an afterthought i think [08:17:40] * delvinj [delvinj!~Miranda@2601:449:4001:5400:8160:ed30:9c:7756] has quit (Quit: it's the end). [08:17:47] i've come to see : ; as much a matching pair as ( ) { } [ ] [08:19:39] erg: I experimented with a few different ideas just idly typing in the text editor. I even considered having all "Grouping words" have ( in them. so you'd have "def( square dup * )" and "array( 1 2 3)". but that's pretty ugly too :D [08:20:16] for a while I just started a new definition whenever I saw a new identifier, so "square dup * ;" worked. but then I realised I wanted multimethods down the road and it would be ambiguous [08:24:43] LACampbell: not sure if you read my email about the parser, but i'm trying "tagged things". so data{ 1 2 3 } code[ 1 2 3 ] and call( a b ) [08:25:18] if that makes sense. [09:07:56] erg: is it the factor mailing list? [11:49:42] bed time [12:21:41] * kssreeram [kssreeram!~kssreeram@115.242.195.238] has quit (Ping timeout: 276 seconds). [12:34:50] * rgrinberg [rgrinberg!~rgrinberg@24-246-56-85.cable.teksavvy.com] has joined the channel. [12:58:21] * LACampbell [LACampbell!~lewis@121-75-239-167.dyn.vf.net.nz] has left the channel ("WeeChat 1.4"). [13:42:36] * kssreeram [kssreeram!~kssreeram@183.83.51.69] has joined the channel. [15:12:50] * fuzzyhorns [fuzzyhorns!~fuzzyhorn@c-73-38-57-191.hsd1.ma.comcast.net] has joined the channel. [15:40:18] early riser challenge. 5am :D [15:42:45] [ 1 obj% ] { } make . [15:42:48] { 1 } [16:42:43] * rgrinberg [rgrinberg!~rgrinberg@24-246-56-85.cable.teksavvy.com] has quit (Ping timeout: 260 seconds). [16:55:55] * cantstanya is now known as cartwright [16:56:55] * cartwright is now known as frank [16:57:04] * frank is now known as Frank [17:13:41] ok another brain fart , (as I look around for the Beano), How do I make a word : ?dup ( n - quote ) such that if the value on top of stack is 0 it will return [ f ] and if non-zero will return [ dup ] to be used by an if ? [17:15:38] BTW: Lets please keep the : word ; form as my old Forth brain simply likes it like that [17:17:12] tgunr: : ; is definitely staying in :) [17:17:26] * tgunr cheers loudly [17:19:27] tgunr: something like : ?dup ( n -- quot ) 0 = [ f ] [ dup ] ? ; inline [17:20:04] i thought i tried that, trying again [17:20:48] tgunr: it's tricky though, if you try to use it for metaprogramming the stack-checker has to understand it [17:21:43] not quite right, just got up and coffee has not yet penetrated the cells [17:22:37] what i really want is the good ole Forth ?dup such that 0 ?dup = 0 while 1 ?dup = 1 1 [17:23:39] yes the stack checker is driving it bananas which is why i thought returning a quote might work [17:23:57] ?dup is a very handy word [17:25:21] n ?dup [ "value = " . ] [ "nil value] if [17:25:48] I tried MACRO: to little effect [17:32:50] This kind of works but how to make it a word [17:32:51] 1 dup number? [ dup zero? [ [ ] call ] [ dup ] if ] [ [ ] ] if [17:33:06] 0 dup number? [ dup zero? [ [ ] call ] [ dup ] if ] [ [ ] ] if [17:35:28] is there a way to turn off the stack checker temporarily? :) [17:54:28] * fuzzyhorns [fuzzyhorns!~fuzzyhorn@c-73-38-57-191.hsd1.ma.comcast.net] has quit (Quit: Leaving.). [18:08:06] * rgrinberg [rgrinberg!~rgrinberg@205.189.187.4] has joined the channel. [18:17:45] * fuzzyhorns [fuzzyhorns!~fuzzyhorn@c-73-38-57-191.hsd1.ma.comcast.net] has joined the channel. [18:42:38] * kssreeram [kssreeram!~kssreeram@183.83.51.69] has quit (Quit: My Mac has gone to sleep. ZZZzzz…). [18:58:29] all-words [ name>> ] [ "," tail? ] map-filter dup natural-sort ... [ [ ] [ but-last "%" append ] bi ] map>alist rename-words-in-all-paths [18:58:54] this renames all the foo, words to foo% in all 4400+ files in about 5s :p [19:00:33] tgunr: you can't have unbalanced stack effects. the way to turn of the stack-checker for your purpopses might be `inline` [19:01:47] i dont really know what you're trying to do with just that snippet, sorry [20:28:42] * fuzzyhorns [fuzzyhorns!~fuzzyhorn@c-73-38-57-191.hsd1.ma.comcast.net] has quit (Quit: Leaving.). [21:27:16] * fuzzyhorns [fuzzyhorns!~fuzzyhorn@c-73-38-57-191.hsd1.ma.comcast.net] has joined the channel. [21:37:53] * rgrinberg [rgrinberg!~rgrinberg@205.189.187.4] has quit (Ping timeout: 260 seconds). [22:11:13] * bb010g [bb010g!uid21050@gateway/web/irccloud.com/x-tftwewjgrgfvtofo] has joined the channel. [22:43:58] * rgrinberg [rgrinberg!~rgrinberg@24-246-56-85.cable.teksavvy.com] has joined the channel. [23:08:42] * fuzzyhorns [fuzzyhorns!~fuzzyhorn@c-73-38-57-191.hsd1.ma.comcast.net] has quit (Quit: Leaving.).