00:00:00 --- log: started forth/06.08.16 00:39:11 --- join: segher_ (n=segher@dslb-084-056-167-159.pools.arcor-ip.net) joined #forth 00:48:34 --- quit: segher (Read error: 110 (Connection timed out)) 01:40:24 I'm not too good at finding relevant examples, could someone show me an example of creating a word that would do something to this effect 01:40:55 : 10loop 10 0 do INSERTCODE_HERE loop ; 01:41:12 10loop "i ." 01:41:34 I hope it makes a little sense... 01:41:49 I would settle for a compromise too like 01:42:35 : 10loop_readnext2statements 10 0 do INSERT_NEXT_2_WORDS_HERE loop ; 01:42:49 10loop_read_next_2_words i . 01:43:52 0 1 2 3 4 5 6 7 8 9 ok 01:45:09 I just thought of something... see ." 01:54:26 better yet see see 01:54:44 I just love forth :D 02:25:13 egcelent 03:06:46 --- join: vatic (n=chatzill@pool-162-83-254-201.ny5030.east.verizon.net) joined #forth 03:07:00 morning 03:18:45 --- join: segher__ (n=segher@dslb-084-056-184-099.pools.arcor-ip.net) joined #forth 03:32:21 --- quit: segher_ (Read error: 110 (Connection timed out)) 04:11:20 --- join: PoppaVic (n=pete@0-1pool75-224.nas24.chicago4.il.us.da.qwest.net) joined #forth 04:27:17 --- quit: virl (Remote closed the connection) 04:40:29 --- join: Cheery (n=Cheery@a81-197-20-242.elisa-laajakaista.fi) joined #forth 04:48:26 --- quit: vatic (Remote closed the connection) 05:22:18 --- quit: Cheery (Read error: 110 (Connection timed out)) 05:23:15 --- join: Cheery (n=Cheery@a81-197-20-242.elisa-laajakaista.fi) joined #forth 06:00:18 --- join: timlarson_ (n=timlarso@65.116.199.19) joined #forth 08:09:37 --- quit: PoppaVic ("Pulls the pin...") 09:09:27 --- join: virl (n=virl@chello062178085149.1.12.vie.surfer.at) joined #forth 09:28:13 --- quit: virl (Remote closed the connection) 09:32:49 --- join: Ray_work (n=Raystm2@adsl-68-94-190-80.dsl.rcsntx.swbell.net) joined #forth 09:33:17 --- quit: Ray_work (Client Quit) 09:56:17 --- join: Quartus__ (n=Quartus_@209.167.5.1) joined #forth 10:52:43 --- join: virl (n=blah@metagw.funkfeuer.at) joined #forth 11:02:04 --- quit: AI_coder (Client Quit) 11:29:57 Update: -- now with compiler security 11:31:43 http://retroforth.net/paste/?id=135 11:50:11 --- quit: virl ("Leaving") 11:56:15 Speaking of security... http://geekz.co.uk/schneierfacts/fact/67 11:56:49 http://geekz.co.uk/schneierfacts/fact/51 Although this is my favorite. 12:01:33 Reminds me of the Road House list. 12:02:48 It's actually a take off on Chuck Norris Facts. 12:02:55 Although you probably figured that out. 12:03:12 I didn't know where the idea started, no. 12:04:12 http://www.chucknorrisfacts.com/ 12:05:50 Heh. 12:08:53 --- quit: Cheery (Excess Flood) 12:08:55 I really like this one: There is no theory of evolution. Just a list of creatures Chuck Norris has allowed to live. 12:09:30 --- join: Cheery (n=Cheery@a81-197-20-242.elisa-laajakaista.fi) joined #forth 12:16:48 Heh. 12:18:25 --- quit: Quartus__ (Read error: 60 (Operation timed out)) 12:20:25 --- join: Quartus__ (n=Quartus_@209.167.5.1) joined #forth 12:57:22 --- part: Cheery left #forth 12:57:36 --- join: snoopy_1711 (i=snoopy_1@dslb-084-058-103-120.pools.arcor-ip.net) joined #forth 12:59:16 --- join: I440r (n=mark4@63.163.143.188) joined #forth 13:00:44 --- quit: Snoopy42 (Nick collision from services.) 13:01:23 --- nick: snoopy_1711 -> Snoopy42 13:05:07 --- join: virl (n=virl@chello062178085149.1.12.vie.surfer.at) joined #forth 13:06:35 --- quit: I440r ("bbl") 13:10:31 --- nick: segher__ -> segher 13:29:54 --- quit: timlarson_ ("Leaving") 14:16:19 --- join: nighty_ (n=nighty@sushi.rural-networks.com) joined #forth 14:17:35 lo 14:19:28 hey. 14:20:05 its freakin' cold in france 14:20:43 warm here! 14:22:11 yes 14:22:39 well lucky u:) 14:22:46 heh 14:41:30 --- quit: nighty_ (Client Quit) 15:18:02 b00? 15:39:59 --- nick: Quiznos -> tr0ll 15:41:52 --- nick: tr0ll -> Quiznos 16:04:14 --- join: I440r (n=90a5b36e@24-177-235-246.dhcp.gnvl.sc.charter.com) joined #forth 16:04:23 I440r HELP!!! 16:04:31 --- mode: ChanServ set +o I440r 16:04:36 no one wants to chat 16:05:05 that's because you bring up Jesus at every opportunity. 16:05:35 ugh ok i cant use leafchat either. its crap 16:05:37 you have the liberty to ignore me 16:05:48 i hate terminals with graphics in teh background 16:05:53 but it's good to discuss him 16:05:56 specially if you cant turn that crap off 16:06:11 everybody has that liberty, and it seems most take advantage of it. 16:06:19 dont speak for others 16:06:23 or write 16:06:45 dont cast your hatred in proxy for others 16:07:06 I didn't, but that would take an unprecedented degree of comprehension for you to recognize. 16:07:22 and there's the ad hom. how troll of you. 16:07:46 ok you can get rid of teh background image 16:07:54 I440r good 16:08:14 i440r, you don't want a picture of Gates back there? :) 16:12:19 its a picture of a leaf 16:12:20 bleh 16:37:37 brb 16:37:38 --- quit: I440r ("leafChat IRC client: http://www.leafdigital.com/Software/leafChat/") 17:06:35 --- nick: Quiznos -> Quetzaquatl 17:07:12 --- nick: Quetzaquatl -> Quiznos 17:08:22 --- nick: Quiznos -> Quetzaquatl 17:09:23 --- nick: Quetzaquatl -> Quizaquatl 17:32:44 --- nick: Quizaquatl -> Ananias 17:36:07 --- nick: Ananias -> Quiznos 19:10:47 --- quit: uiuiuiu (Remote closed the connection) 19:10:49 --- join: uiuiuiu (i=ian@dslb-084-056-226-221.pools.arcor-ip.net) joined #forth 19:33:16 --- quit: virl (Remote closed the connection) 22:50:27 do most really use images in their terminals? 22:51:20 Maybe most screenshots have such, but those tend to look intentionally pretty. 22:55:10 I used to use translucent windows on a system that supported them. 22:58:07 I did that for a little bit on OSX, but haven't missed it. 22:58:42 At the time it was convenient. I haven't sought out the facility since, though. 23:04:00 http://retroforth.net/paste/?id=136 23:04:18 Something I re-wrote recently. It's a word to return an unbiased random value in a given range. 23:11:55 at the stort of rand-int , don't you mean >R ( ) ? 23:12:38 That comment indicates what I'm putting on the return-stack, actually; I can see that it'd be misleading. I'll have to amend that. 23:13:33 Nothing would be lost in simply removing that comment. 23:13:51 in second pass, it's not as confusing that your next stack comment refers to the data stack -- since R@ only modifies that 23:14:02 The other two will need amending too, as they are simply annotations to show what two items are being compared. 23:14:49 well, ( n -- 0..n-1 ) >r ( n ) looks at first like an error. The other two are fine. 23:15:24 I always put -- in stack comments, to differentiate them. 23:15:24 --- quit: madgarden (Read error: 104 (Connection reset by peer)) 23:16:34 sure, but ( n -- 0..n-1 ) >r ( n ) is equivalent to ( n ) >r ( n ) 23:16:54 I'm afraid I don't follow. 23:17:01 sorry I don't have the wherewithall to comment on what your code does, though. I'll hang on to it. 23:17:31 The technique is range (de-)coding, a cousin to arithmetic coding. 23:17:38 Simpler to implement. 23:18:53 Arithmetic coding is an optimal way to convert a stream of bits into arbitrary symbols. Range coding is nearly as efficient. 23:23:17 For instance, a base-10 symbol can be encoded in just over 3.32 bits. The rand-int routine averages 4.6 bits in my tests. 23:24:44 This equates to fewer calls to the PRNG, though that's just a benefit. The purpose is to return unbiased values. 23:29:59 rand-int collects successive random bits in k and left-shifts m (initialized at 1) until just enough bits have been collected in k to meet or just exceed the range n. 23:30:06 k returned by this step is always in the range of {0, ..., m-1}. 23:30:19 If k is less than the range n, we leave k on the stack and exit. 23:30:47 Otherwise, we subtract the range n from both m and k (k thus remains in the range of {0, ..., m-1}) and branch back to collect new bits until the exit condition is satisfied. 23:36:56 interesting 23:38:28 I prefer it to the common alternative of masking and discarding values until one shows up that is within range, as this method runs in log2(n)+1 time, whereas a discarding loop can be held up for an unknown amount of time. 23:42:25 --- join: AI_coder (n=AI@ip-209-124-242-76.dynamic.eatel.net) joined #forth 23:43:18 Does gforth provide a word that will put the data-stack size onto the datastack? 23:43:30 This routine can be made to run for an infinite length of time for most ranges if the PRNG is pegged to only return 1s. 23:43:50 i.e. put the number in greater than less than brackets when you enter .s 23:44:15 ai_coder - DEPTH 23:48:08 ayrnieu: Thank you, I've searched for 15 minutes now. 23:59:59 --- log: ended forth/06.08.16