00:00:00 --- log: started forth/08.08.21 00:47:32 --- join: qFox (i=C00K13S@234pc222.sshunet.nl) joined #forth 00:53:32 --- join: DeforMobile (n=joe@c-68-62-76-160.hsd1.mi.comcast.net) joined #forth 00:53:47 Does the programmer have control over the return stack? 00:54:05 Or is it just handled by the compiler and the word definitions? 00:54:15 I mean, there isn't any builtin functions for manipulating it, are there? 00:56:47 Also, can words be passed on the stack similar to a function pointer as an argument in C? 00:57:45 In some systems return stack is real return stack. 00:57:51 I'd say, in most of them. 00:58:37 Meaning that the programmer doesn't manipulate it, it only holds the return address for procedures? 00:59:01 Real return stack means programmer has full control on it. 00:59:16 * DeforMobile scratches head. 00:59:23 Can you explain? 00:59:40 "Return stack" is just another stack in ANS Forth. 00:59:47 The name is historical. 01:00:01 In earlier standards it was real return stack. 01:00:19 In most systems this stays. 01:00:26 Return stack is real return stack. 01:00:40 But this isn't mandated by standard and thus is implementation-dependent. 01:00:57 If you know Lisp, cf. CAR and CDR. 01:01:55 They stand for historical Lisp implementation, there're no address and decrement registers in Lisp. 01:02:10 :someword other word; When someword is called, and then other is called, how does the compiler get back to word? 01:02:22 I thought it stored the return address in the return stack. 01:02:35 On _real_ return stack. 01:03:01 And, compiler doesn't go back easily. 01:03:35 Unless you instruct it to do otherwise, it is one-pass. 01:04:03 I think you should read some book on Forth. 01:04:12 Like "Starting Forth" modern edition. 01:04:20 I have read it. 01:04:44 Hm. 01:06:05 A long time ago though... 01:06:08 I thought it explains that rather well... 01:06:25 ASau: What about my other question? 01:06:26 I studied Forth with FIG Forth based book after Semjonov. 01:06:36 Long time ago too. 01:06:55 Can words be passed? 01:06:59 Sure. 01:07:06 Aright. 01:07:08 Read about execution tokens. 01:07:11 Are they often passed? 01:07:17 Yes. 01:07:27 I remember something like ".r" or something weird like that was used to pass words. 01:07:30 At least, I do. 01:07:44 ' and ['] 01:07:52 Ah, that's it I think. 01:08:01 To get execution token. 01:08:12 "execute" and "catch" to run it. 01:08:32 Listen, I have to run. 01:08:45 Aright, thanks, I will reread starting forth. 01:08:58 Will be off-line till the evening, probably. 01:09:24 When new questions arise, ask. 01:09:38 See you. 01:09:43 Yep. 01:09:44 o/ 01:23:50 Oh wow, this is all coming back. 01:23:57 ^^ 04:20:59 --- quit: aum ("Leaving") 05:30:50 --- quit: ygrek (Remote closed the connection) 05:41:03 --- nick: Malfermi1aKodo -> MalfermitaKodo 06:13:34 Hmm, I recently bought "Threaded Interpretive Languages". I haven't gotten around to reading it though. 06:24:48 --- join: kraant (n=kraant@CPE-58-161-130-41.nsw.bigpond.net.au) joined #forth 06:25:17 --- join: Jarvellis (n=Jarv@dsl-217-155-101-22.zen.co.uk) joined #forth 06:25:52 --- part: Jarvellis left #forth 06:37:45 --- part: kraant left #forth 07:07:43 * TreyB has more than one copy. 07:20:58 --- quit: Quartus` (Read error: 110 (Connection timed out)) 07:47:28 --- join: madwork (n=foo@204.138.110.15) joined #forth 09:25:33 --- join: Quartus` (n=Quartus`@74.198.12.2) joined #forth 09:41:00 --- join: forther (n=forther@207.47.34.100.static.nextweb.net) joined #forth 10:21:16 --- quit: MalfermitaKodo (Read error: 104 (Connection reset by peer)) 10:25:10 --- join: Quartus__ (n=Quartus`@74.198.12.2) joined #forth 10:26:20 --- join: MalfermitaKodo (n=kansu@xdsl-78-34-134-70.netcologne.de) joined #forth 10:44:22 --- join: BobFunk (n=mathiasc@146.pool85-54-160.dynamic.orange.es) joined #forth 11:15:43 --- part: BobFunk left #forth 11:33:43 --- join: BobFunk (n=mathiasc@146.pool85-54-160.dynamic.orange.es) joined #forth 11:56:11 --- quit: ramkrsna (Read error: 113 (No route to host)) 12:34:47 --- quit: BobFunk () 12:39:24 --- join: Maki_ (n=Maki@adsl-224-84.eunet.yu) joined #forth 12:45:03 --- join: BobFunk (n=mathiasc@146.pool85-54-160.dynamic.orange.es) joined #forth 13:15:21 --- quit: BobFunk () 13:37:57 --- quit: mathrick (Read error: 104 (Connection reset by peer)) 13:38:18 --- join: mathrick (n=mathrick@users177.kollegienet.dk) joined #forth 13:39:44 --- join: BobFunk (n=mathiasc@82.158.64.239.dyn.user.ono.com) joined #forth 13:52:04 --- quit: BobFunk () 13:54:08 --- join: BobFunk (n=mathiasc@82.158.64.239.dyn.user.ono.com) joined #forth 14:00:33 --- quit: BobFunk () 14:24:10 --- quit: Maki_ ("Leaving") 14:38:37 hi. 14:41:17 --- quit: Quartus__ ("used jmIrc") 14:41:37 --- join: Quartus__ (n=Quartus`@74.198.12.2) joined #forth 15:02:51 --- join: BobFunk (n=mathiasc@146.pool85-54-160.dynamic.orange.es) joined #forth 15:04:42 --- join: nighty^ (n=nighty@host217-37-109-17.in-addr.btopenworld.com) joined #forth 15:15:35 --- quit: BobFunk () 15:18:36 "Tick always goes to the next word in the input stream. " I do not understand that. 15:18:43 Can anyone clear it up for me? 15:19:04 The usage is this: ' word 15:19:16 I know that. 15:19:23 --- join: BobFunk (n=mathiasc@146.pool85-54-160.dynamic.orange.es) joined #forth 15:19:25 This example confuses me: 15:19:26 : SAY ' 'aloha ! ; 15:19:34 SAY HELLO 15:19:49 It bails out with error. 15:19:58 Why doesn't it take the xt of aloha? 15:20:05 Not according to starting forth chapter 9. 15:20:10 Because it isn't state-smart. 15:20:25 Huh? 15:20:31 You read the outdated Starting Forth. 15:20:38 Get a modern revision. 15:20:40 http://forth.com/starting-forth/sf9/sf9.html 15:20:44 I am reading that. 15:21:00 Since ANS-94 tick isn't state-smart. 15:21:18 It is regular, not immediate word, like it was before. 15:22:03 Original SF 2nd ed. referred to '79 and '83 Forths. 15:22:24 Oh. 15:22:26 Aright. 15:22:29 So that example fails now? 15:22:59 Your "say hello" tries to get xt of "hello". 15:23:13 And store it into 'aloha. 15:23:25 I don't know, if it is intended. 15:24:33 Hm. 15:24:35 Well... 15:24:49 The SF at your link is modern enough. 15:24:58 At least in that chapter. 15:25:47 : SAY ' 'aloha ! ; 15:26:04 I don't see why it doesn't take the xf of 'aloha 15:26:14 I don't understand why it takes the xf of hello instead. 15:27:10 Well, I need to go, I will be back in about an hour. 15:27:31 If you want, I would appreciate an answer regardless, I will read it when I get back. 15:27:36 Thanks. 15:27:38 o/ 15:31:09 --- join: tathi (n=josh@pdpc/supporter/bronze/tathi) joined #forth 15:31:09 --- mode: ChanServ set +o tathi 15:31:14 You seem to miss the main point. 15:31:33 Tick isn't immediate, it is executed when "say" is executed. 15:31:39 DeforMobile: ' is not immediate, so it is compiled into SAY 15:31:50 it doesn't actually happen until SAY is executed 15:31:50 At that time the next word is "hello", not 'aloha. 15:31:57 Heh. What ASau said. 15:37:07 --- join: warpzero (n=warpzero@208.74.136.141) joined #forth 15:41:10 --- join: JasonWoof (n=jason@cpe-72-227-80-103.maine.res.rr.com) joined #forth 15:41:10 --- mode: ChanServ set +o JasonWoof 15:54:45 --- quit: JasonWoof ("real world time") 16:00:33 --- quit: BobFunk () 16:01:42 --- join: BobFunk (n=mathiasc@146.pool85-54-160.dynamic.orange.es) joined #forth 16:22:09 --- quit: aph (zelazny.freenode.net irc.freenode.net) 16:22:10 --- quit: cmeme (zelazny.freenode.net irc.freenode.net) 16:22:10 --- quit: warpzero (zelazny.freenode.net irc.freenode.net) 16:22:10 --- quit: tathi (zelazny.freenode.net irc.freenode.net) 16:22:10 --- quit: forther (zelazny.freenode.net irc.freenode.net) 16:22:10 --- quit: DeforMobile (zelazny.freenode.net irc.freenode.net) 16:22:11 --- quit: segher (zelazny.freenode.net irc.freenode.net) 16:22:39 --- join: tathi (n=josh@pdpc/supporter/bronze/tathi) joined #forth 16:22:39 --- join: warpzero (n=warpzero@208.74.136.141) joined #forth 16:22:39 --- join: forther (n=forther@207.47.34.100.static.nextweb.net) joined #forth 16:22:39 --- join: DeforMobile (n=joe@c-68-62-76-160.hsd1.mi.comcast.net) joined #forth 16:22:39 --- join: cmeme (n=cmeme@boa.b9.com) joined #forth 16:22:39 --- join: aph (n=aph@cpc3-cmbg8-0-0-cust128.cmbg.cable.ntl.com) joined #forth 16:22:39 --- join: segher (n=segher@84-105-61-45.cable.quicknet.nl) joined #forth 16:22:39 --- mode: irc.freenode.net set +o tathi 16:22:47 --- quit: DeforMobile (Read error: 104 (Connection reset by peer)) 16:24:21 --- join: Snoopy_42 (i=Snoopy_1@dslb-088-068-216-121.pools.arcor-ip.net) joined #forth 16:26:02 --- join: DeforMobile (n=joe@c-68-62-76-160.hsd1.mi.comcast.net) joined #forth 16:37:38 ASau: Oh. 16:37:58 I see now. 16:38:01 And it's weird. 16:38:03 Heh. 16:38:19 The interpreter/compiler part of forth always trips me up. 16:38:34 Thanks tathi too. 16:39:12 i don't like the interpet/compile distinction 16:41:21 slava: Yeah, it's tricky. 16:44:53 Bah. 16:45:04 I would have understood if I would have read to ['] 16:49:48 --- quit: BobFunk () 16:51:00 Yeah, I can see why Chuck chose that distinction, but I don't like it much. 16:51:27 i think its better to always compile. 16:51:40 I agree. 16:53:22 Mostly. 17:06:22 So uhm. 17:06:38 "Nested Levels of Execution" is confusing me now. 17:06:44 Oh, never mind. 17:06:49 I think the next part will clear it up. 17:07:02 I wish that this book had complete thoughts in a single heading... 17:09:06 Do most forths have tail call optimization? 17:09:32 not sure 17:09:37 many do 17:09:54 since its trivial to implement and enables some useful programming styles 17:13:39 Yeah. 17:13:43 I am an optimization fanatic. 17:13:50 It is by far my favorite aspect of programming. 17:16:40 --- join: ASau` (n=user@79.111.21.155) joined #forth 17:22:20 --- quit: forther (Read error: 110 (Connection timed out)) 17:32:17 --- quit: ASau (Read error: 110 (Connection timed out)) 17:50:31 --- quit: ASau` (Remote closed the connection) 17:52:09 --- join: ASau` (n=user@79.111.21.155) joined #forth 18:55:57 --- join: madgarden (n=madgarde@CPE001d7e527f89-CM00159a65a870.cpe.net.cable.rogers.com) joined #forth 18:58:24 --- join: forther (n=forther@c-24-5-187-203.hsd1.ca.comcast.net) joined #forth 19:11:24 --- join: LOOP-HOG (n=jasondam@75-175-29-84.ptld.qwest.net) joined #forth 19:15:58 hi 19:30:03 --- quit: tathi ("leaving") 19:31:09 Hi. 19:37:28 hi 19:38:13 what is going on? 19:53:54 Not a ton. 19:54:46 I'm reading the VF_S24 Programmers Guide for kicks 19:54:54 I have no idea what I would do with this 19:55:18 the idea of owning a Forth chip on a thumb drive sounds neato to me, but then again, what would I actually do with it 19:55:45 supposedly if I could think of a great app for this thing, then I could maybe get an evaluation drive 19:56:05 but I don't know electronics, just programming. That pretty much limits my abilities here 19:56:22 LOOP-HOG: Eh, don't hold your breath. 19:56:26 I asked for one months ago. 19:56:31 And I never got one. 19:56:33 No one does. 19:56:36 oh 19:56:40 It has always been like that. 19:56:46 All forth chips are rarely distributed. 19:56:49 Vaporware. 19:56:51 what did you tell them that you wanted to do with it? 19:57:03 The only people who will ever really get them are employees. 19:57:18 I just said I was a hobbiest. 19:57:44 I think that you have to show them that you would actually put it into some real world product 19:57:57 my mind draws a blank though 19:58:07 That is full of shit. 19:58:19 No one can say they have a good plan for the chip if they have never tried it. 19:58:31 That is why real chip companies give away evaluation chips for FREE. 19:58:35 Free shipping and everything. 19:58:36 Try it, 19:58:39 Ask pic for some chips. 19:58:49 They sent me like $50 in chips, with overnight shipping. 19:58:53 and I didn't even pay a dime. 19:59:32 They say that just because they need ideas because they made these chips without any business plan or money to start the business. 19:59:41 That's my view on it anyway. 19:59:53 I got an email from them like two weeks after asking. 19:59:59 Then months without hearing a thing. 20:00:04 Also, if you did get a Forth chip somehow, it would be stuck inside of a thumb drive and then you would not have access to the pins, which would make it hard to really evaluate 20:00:14 And from the discussion in this channel, I deduct that it is very common for that to happen. 20:01:06 maybe they only got 50 chips or something, and they can't really just give them to us 20:01:25 That is roughly the situation. 20:01:47 A lot of good they are going to do with 50 chips, aye? 20:01:56 That has been the trend with all forth chips. 20:02:39 have you ever seen a real forth chip in real life? 20:02:49 No. 20:03:21 I did. I went to visit Greg Bailey when he had his office in downtown Portland Oregon and he took it out of a drawer and showed it to me, but it wasn't hooked up 20:03:46 I'm trying to remember 20:03:48 Heh, maybe some employees will show up in here again to verify that seaforth isn't vaporware. 20:03:53 That was funny. 20:04:19 I think it was an NC4000, but not sure 20:05:11 well unless regular nobodies like you and me can get ahold of one, then people like you will continue to think that they are vapor, so they should understand that 20:05:30 no insult intended 20:05:59 There are people who are much less of a nobody than I who agree. 20:06:22 may I ask what you do and what you might have used the chip for? 20:06:34 I am just a bored optimization freak sixteen year old. 20:06:38 A toy. 20:07:32 Maybe try some simulations or some weird parallel thing. 20:07:48 Not like that cannot be done the gpu. 20:08:03 But it would just be fun to fool with a unique instruction set like that. 20:08:07 Yhea, I'd probable just use it to blink some lights and use it to play back some sound samps using somebody elses code 20:08:34 do u know 4th? 20:08:58 I did. 20:09:06 I am rediscovering it. 20:09:22 I like SwiftForth 20:10:41 Well, if I had a forthdrive, it's would probably get most of it's use via someone other than I. 20:10:48 Over ssh or something. 20:10:49 Heh. 20:11:07 what have you written in Forth? 20:11:29 Not a ton. 20:11:35 I have just fooled around with it. 20:11:40 I never found it very practical. 20:11:56 I wrote video game for an old Atari computer before, it worked great 20:12:04 I will probably be a C person forever. 20:12:06 it even had a cartoon in it like pacman 20:12:12 if you won the game 20:12:30 the problem was I didn't have any playtesters, so it was super duper hard 20:12:31 --- quit: forther (Read error: 110 (Connection timed out)) 20:12:35 ofcourse I could beat it 20:12:41 nobody else could 20:12:49 even get past the 3rd level, ha ah 20:13:13 I started programming in Lisp, then I went to C and never really found something I would rather use. 20:13:18 which begs teh question, why are you hanging out here, not that I'm against it 20:13:46 Just because I don't use it, doesn't mean I don't find it interesting. 20:13:51 I actually tried to learn C in community college, and it just pissed me off, because I already knew Forth and couldn't think of a reason why this was better 20:14:37 like, why would I use a function which limits me to passing out one ( and always just one ) value 20:14:49 It's a weird perspective I guess 20:15:27 I realize that it is because of mathematics, and C and it's ilk are described in terms of conventional mathematics 20:15:41 Well. 20:16:04 I dunno. 20:16:33 I always fool around with making my own language. 20:16:35 Maybe it's because the computer department was heavily influenced by the mathematics department in the far past 20:16:38 Something I am constantly working on. 20:16:49 you make your own language in C? 20:16:50 New styles, new syntax, always writing specifications. 20:17:01 I usually write interpreters in D. 20:17:07 D? 20:17:13 wut is D? 20:17:21 It is like C++ 20:17:29 Just cleaner and less common. 20:17:42 http://www.digitalmars.com/ 20:17:46 make a language and call it :D pronounced smiley lol 20:17:48 Yep. 20:18:00 Heh, it's just something I am always doing. 20:18:02 Not sure why. 20:18:12 it beats smoking crack I suppose :) 20:18:26 or causing unwanted pregnancies 20:18:30 I have to have made at least 6 language specs in the past two years. 20:18:33 Just being a butthead 20:18:36 Only implemented two. 20:18:51 The one I am currently working on is very bizzare. 20:18:58 how so? 20:19:14 Eh, I am publishing some work on it. 20:19:20 So I cannot really explain until that goes through. 20:19:22 Sorry. :( 20:19:34 ok 20:20:52 how about SpamForth(tm) 20:21:19 a special Forth made just for harvesting emails and spamming people... lol 20:21:36 Heh. 20:23:08 I am also really interested in self modifying code and code that will generate code at runtime. 20:23:33 that's interesting 20:25:54 there is actually a book, just one book, on Forth at my local technical bookstore. I flipped through it but the quality of the code therein was so poor as to make the book uninteresting me to 20:26:01 I can't remember the title 20:26:18 I just thought to myself, why bother with Forth if you can't write elegant code in it 20:26:56 Heh. 20:27:11 no factoring 20:27:18 huge definitions 20:27:40 which makes your code look like big assembly listings 2 me 20:28:17 Hehe. 20:29:04 --- join: forther (n=forther@c-24-5-187-203.hsd1.ca.comcast.net) joined #forth 20:29:13 forther! 20:29:26 r u a forther? forther. 20:30:23 Forther works for intellasys. 20:30:29 He has a forthdrive. 20:30:48 If I remember correctly. 20:30:52 WOW 20:30:56 coral him!' 20:31:10 say.....forther....what about the Forth Drive? 20:32:25 hes hiding 20:40:49 I'm tempted to try Glypher 21:10:35 --- join: Deformative (n=joe@c-68-62-76-160.hsd1.mi.comcast.net) joined #forth 21:15:26 --- quit: forther (Read error: 110 (Connection timed out)) 21:32:03 --- join: forther (n=forther@c-24-5-187-203.hsd1.ca.comcast.net) joined #forth 21:44:54 --- quit: LOOP-HOG (Read error: 113 (No route to host)) 21:48:01 --- join: LOOP-HOG (n=jasondam@75-175-0-174.ptld.qwest.net) joined #forth 22:01:27 --- quit: forther (Read error: 110 (Connection timed out)) 22:09:13 --- join: Snoopy_43 (i=Snoopy_1@dslb-088-068-206-136.pools.arcor-ip.net) joined #forth 22:09:19 --- quit: LOOP-HOG (Read error: 113 (No route to host)) 22:27:43 --- quit: Snoopy_42 (Read error: 110 (Connection timed out)) 22:35:43 --- join: LOOP-HOG (n=jasondam@75-175-13-101.ptld.qwest.net) joined #forth 22:43:34 --- join: forther (n=forther@c-24-5-187-203.hsd1.ca.comcast.net) joined #forth 22:48:32 --- join: ramkrsna (n=ramkrsna@unaffiliated/ramkrsna) joined #forth 22:54:50 hi 23:20:46 --- join: Malfermi1aKodo (n=kansu@xdsl-78-34-145-28.netcologne.de) joined #forth 23:23:13 --- quit: nighty^ (Read error: 110 (Connection timed out)) 23:24:44 --- join: nighty^ (n=nighty@host217-37-109-17.in-addr.btopenworld.com) joined #forth 23:32:44 --- quit: MalfermitaKodo (Success) 23:39:28 --- quit: nighty^ (Read error: 104 (Connection reset by peer)) 23:59:59 --- log: ended forth/08.08.21