00:00:00 --- log: started forth/02.11.04 00:00:01 --- log: started forth/02.11.04 00:00:01 : connect-unix ( str len fd --) 00:00:09 >r >sockaddr_unix dup r> ( adr adr fd) 00:00:09 swap $6e connect 0< abort" bad connect()" 00:00:09 free throw 00:00:09 ; 00:00:09 :c) 00:00:14 seems we have a winner 00:00:38 you gotta love interactive testing. 00:00:50 : I.RX? IRfd @ key?-file ; \ -- ? ; test receiver ready 00:00:53 this will be the true test 00:01:29 I.RX? . 0 ok 00:01:29 now i push my remote control button and see if it goes high 00:01:47 I.RX? . -1 ok 00:01:48 bingo 00:01:52 :c) 00:01:56 ah 00:02:33 for some reason read-line barfs on the unix socket but its ok i dont mind scanning the stream 00:02:47 This has been fun, but I really have to hit the sack for a few hours. 00:02:55 ok thanks for the help 00:03:02 maybe ill catch you here another day.. 00:03:05 no problem. bye all 00:03:14 --- quit: joonas ("ircII2.8.2-EPIC3.004+Kasi --- Bloatware at its finest.") 00:11:29 Morning all. 00:13:01 hwdy 00:13:30 :) 00:18:38 he probalby wont agree with that change but it seems so much cleaner :c) 00:23:10 Who won't agree with what change? 00:24:58 was working with joonas on some code 00:25:14 made a slight change to the final version 00:25:20 Oh, okay. 00:26:28 his intentions were good to pass in the path to the socket to open ie /dev/lircd but in reality its not needed because that will never change on any system its a constant so no need to pass just hard code into the open-ir word 00:28:39 What Forth are you working with? 00:29:38 gforth 00:31:08 Ok. 00:31:54 Hrm. Got to talk to I440r later. In his Forth you can use the open() syscall, and I really think it would be a good idea to define the constants used by it ;) 00:32:25 Well, school time. 00:32:28 See you later. 00:32:56 ok have fun. 00:42:32 --- quit: Soap- (Read error: 54 (Connection reset by peer)) 01:06:56 any good existing functions for spliting a string like splice or token 01:47:45 No idea... I don't really use ANS. 02:27:33 --- join: h2wo (~ababincho@tk0008-202x210x244x10.ap-TK.usen.ad.jp) joined #forth 02:28:34 --- quit: h2wo (Client Quit) 06:09:12 --- quit: Fractal (benford.freenode.net irc.freenode.net) 06:09:12 --- quit: XeF4 (benford.freenode.net irc.freenode.net) 06:09:24 --- join: tathi (~josh@ip68-9-58-207.ri.ri.cox.net) joined #forth 06:09:28 --- join: XeF4 (xef4@lowfidelity.org) joined #forth 06:09:28 --- join: Fractal (tvteac@h24-77-171-228.ok.shawcable.net) joined #forth 10:04:26 didnt have much luck lastnight searching around must be some good tokenizers or something 10:05:57 --- join: thin (thin@68.146.166.145) joined #forth 10:18:50 Dr{Who}: I think you want to look at a couple of the string handling packages mentioned in the news groups. If you want something fancier, search for the BNF and/or Grey parsers. 10:21:06 what do you want to handle strings for? 10:21:08 or parse for? 10:22:40 Hi thin. 10:31:30 sorry was afk 10:31:34 simple stuff like given 10:31:38 "HI MY NAME IS SALLY" 10:31:48 break it out into "HI" "MY" "NAME" "ETC" 10:31:57 so a tokenizer 10:33:37 I think I wrote a simple one a couple of weeks ago. 10:33:56 That's not very hard to write, right? 10:34:10 nope 10:34:17 you just parse for the spaces 10:34:25 Yes.. 10:35:34 --- join: highlaender (~a@mnch-d9ba40de.pool.mediaWays.net) joined #forth 10:35:43 hi lander ;) 10:35:50 hi 10:36:11 i got a priv whois from u in the prev days... 10:36:29 yo 10:36:39 Hi highlaender :) 10:37:02 hi 10:41:42 : tokenizer space word hhere string ; 10:41:48 (fake code here) 10:56:22 --- join: gilbertbsd (~gilbertbs@67.97.122.120) joined #forth 10:56:29 hullo 10:56:48 Hi :) 10:56:56 sup robert? 10:57:07 is there some way of bypassing BIOS? 10:57:13 of course 10:57:19 you just don't use the bios 10:57:30 and don't use the int 10:57:33 how? 10:57:43 well if you want to write something on the monitor 10:57:54 instead of $21 int, you can just write the stuff directly to the video buffer 10:58:02 Build your own computer. 10:58:14 so is there a way of skipping the hole POST thing? 10:58:21 what's POST? 10:58:26 Power On Self Test 10:58:32 uggg! 10:58:34 oh 10:58:43 rip out the bios then ;P 10:58:48 or flash it with your own code 10:58:55 but things will go atwitter! 10:59:31 flashing it with your own code shouldn't do that if you understand what code you need to flash 11:00:13 hmmm. 11:00:23 and can I unflash it or is it always permanent? 11:00:33 um good way to get knee deep in intel spec books for about 3 years 11:00:55 heheh. I don't read INTEL docs thank you.\ 11:01:31 you can unflash it, but more likely, you'll be forced to get an EPROM programmer or whatever tool that lets you flash the bios, and flash it with a saved copy 11:01:39 or just get a spare bios chip 11:01:47 and just plug that in when your done with the old one 11:02:23 All I want to do is to bypass the POST thingamabob. 11:02:25 the process that a processor takes to fire up the board they usualy sit on is very comples would be better to just get some microprocessor board with initialization sampes in asm 11:02:37 complex that is 11:02:42 gilbertbsd: bios settings might let you turn it off? 11:02:50 nope. 11:03:13 I have an hp hand held computer (620 lx) and it has no POST! 11:03:22 ahh 11:03:27 you turn it off, and it goes off, you turn it back on and it comes right back to where you were. 11:03:38 why can't that be for the PC? 11:03:47 because the PC is lame? 11:04:02 hmmm might be. I don't recall a POST for the mac. 11:04:04 hmmmm. 11:04:19 the thing is gilbert it does not realy turn off 11:04:32 the processor and system go into a sleep mode 11:04:34 the battery dies ... my word, I could take out the battery! 11:04:39 hmm 11:05:01 internal backup memory batter probably 11:05:08 so you can swap out battery and not loose everything 11:05:26 oh I got nothing to lose. 11:05:34 something has to keep all the current memory intack or it would have to restart 11:05:47 unless it flushes it somewhere perminent like a drive 11:05:56 there are two batteries, one large watch battery and a 'wand like' main battery. 11:06:17 the watch batter keeps it alive in memory suspended just enough not to loose the bits 11:06:20 cylindrical battery? 11:06:37 yep 11:06:44 there is probably a cap. to that keeps just a few more seconds of life 11:08:20 pc's dont have this because they were not designed to have a battery go dead while working and need to save stuff thats what big UPS's are for :c) 11:08:31 heheh. 11:08:38 but the POST is quite outdated. 11:08:56 on the hp? 11:08:59 or pc? 11:09:03 for all pcs 11:09:09 ya very true. 11:09:32 there are some new ones out for some boxes that have more advanced stuff but most pc's dont.. laptops have much more advanced stuff 11:10:06 but it is a diagnostic thing that should only turn on sometimes not every freaking time you reboot or turn off the computer. 11:10:09 again to deal with the complex nature of things like batteries and removable devices 11:10:15 but the general bios code for a pc has not changed much over the years 11:10:40 my 286 did the same freaking thing as this Pentium NNN does when you turn it on. 11:10:48 describe. 11:11:21 re: POST. 11:11:56 um does it require human intervention to continue? 11:11:59 there should be an override switch. When my 70 year old turns on the computer, no matter what the POST says to her, it means zilch. 11:12:04 nno it doesn't. 11:12:27 iit just does it and can be intervened. but I believe it doesn't need to be there EVERY freaking time, unless something goes wrong. 11:13:02 I don't know of a calculator which has a POST. 11:13:03 ok as far as i know every pc in the world needs to run through some tests during boot some even allow you to upload flash images into them to see a picture of your choice on the monitor duing this phase 11:13:21 yes, I am saying that process is unnecessary. 11:13:29 true enough. 11:13:30 It should be completely optional. 11:13:48 wont get me to argue on that one. but its been that way since um my first z80 system 11:13:57 a few decades ago 11:14:17 going afk.. bbiab 11:14:21 if there is something wrong, with say the harddisk or ram or anything the POST reports (except for no OS), you are gonna have to open the damned thing, so why not keep its switch INSIDE? 11:22:02 Any idea how I could print a number with a fixed size of characrers (e.g. 8 hex digits) in IsForth? 11:24:56 how would you do it in isn'tForth? 11:25:52 robert: don't understand your question 11:26:21 is the binary number less than 8 bits or something? 11:27:47 It's a 32-bit word. 11:28:06 Could range from 0 to 2^32-1 :) 11:28:13 I want it like.. 11:28:17 If it's 0: 00000000 11:28:27 If it's 0xabcd: 0000abcd 11:28:29 etc. 11:28:40 Just wondering if you knew of any built-in function. 11:28:53 btw, I'm learning to factor, mister thin :P 11:29:12 This whole project I'm working with consists of one-liners so far. 11:33:10 robert have you seen joy? 11:33:32 I've read the page, but I still don't see what lists are good for. 11:34:17 lists? they are good for creating lisp interpreters :D 11:34:21 robert: hmm.. have you checked out the <# # #> words? 11:34:39 dunno if isforth has those 11:35:25 what are those words thin? 11:36:02 Maybe... 11:36:12 Well, I'm too lazy to do anything about itr. 11:36:18 * Robert leaves it in its current state,. 11:42:01 --- quit: gilbertbsd (Remote closed the connection) 11:46:20 --- mode: ChanServ set +o thin 13:50:57 --- topic: set to 'IsForth: runs on linux, coded in x86 asm - http://isforth.clss.net | home of forth - http://www.ultratechnology.com/forth.htm' by thin 13:55:05 --- topic: set to 'IsForth: runs on linux, coded in x86 asm - http://isforth.clss.net | official forth sites: http://www.ultratechnology.com/forth.htm & http://www.colorforth.cm' by thin 13:55:08 --- topic: set to 'IsForth: runs on linux, coded in x86 asm - http://isforth.clss.net | official forth sites: http://www.ultratechnology.com/forth.htm & http://www.colorforth.com' by thin 13:57:03 Some forth code for you: http://robert.zizi.org/~tinyvm/tinier.tgz 13:57:11 Just to check how my Forth code looks today :P 13:58:20 : i_and ( a b -- a and b ) 13:58:20 spop spop and spush ; 13:58:20 : i_or ( a b -- a or b ) 13:58:20 spop spop or spush ; 13:58:20 : i_xor ( a b -- a xor b ) 13:58:20 spop spop xor spush ; 13:58:26 factor out what those have in common :P 13:58:44 yeah, it seems better, but you're also coding for a different problem 13:58:52 Yeah. 13:59:03 It's quite simple.- 13:59:14 But imagine writing e.g. asm.f in C. 13:59:19 That wouldn't be quite as simple. 13:59:32 yeah 14:01:01 one teeny little suggestion, you might want to find ways to reduce the vocabulary (the number of words that exist in your code) somehow.. while trying to keep the words 1/2 liners 14:01:06 1 to 2 liners 14:01:30 Uhm.. how would I do that? 14:01:35 dunno 14:01:36 :P 14:01:37 magic? 14:01:38 ;) 14:01:38 Heh! 14:01:49 i don't know what you are trying to do 14:01:51 I mean, I can't see many things I could put in the same word. 14:01:54 only briefly looked at it 14:01:58 Maybe one or two things, but nothing big. 14:02:11 It's an assembler/disassembler/simulator for a VM project. 14:02:21 32 words? 14:02:24 er 14:02:27 32 primitives? 14:02:31 Yes. 14:02:55 you had to find a use for the 5 extra spots? ;) 14:02:55 The instruction set is slightly inspirated by machineforth ;) 14:03:07 Well, it's just inspirated. 14:03:13 Not an exact copy. 14:06:32 google.com is so stupid 14:06:50 Hm? 14:06:50 it doesn't search for special characters like # even when you put them in quotes 14:06:55 Heh. 14:08:06 probably because it builds a big word database for quick indexing 14:08:12 it can't search for Finnish properly either 14:08:42 since it takes a 'word' to be anything delimited by non-alphanumerics 14:09:03 hmm 14:09:14 but it's a lot better than what was around before 14:09:31 --- quit: Dr{Who} (Read error: 113 (No route to host)) 14:09:58 except when you want to search for files 14:10:02 and certain other things 14:10:05 that i can't remember 14:10:12 then you go to a different search engine 14:10:48 but as you said.. forth.zip wouldn't work very well :) 14:11:07 "forth.zip" will work more likely than not 14:11:22 you will get some false hits of "that forth zipfile I sent you last week" and whatnot 14:18:16 xef4: you know finnish? 14:19:56 thin: mmhmm 14:20:44 Now learn Swedish :) 14:25:45 =P 14:26:12 * Robert leaves for bed. Night all. 14:30:51 night 14:33:27 wanna guess why this doesn't work? 14:33:28 : countletters 14:33:28 0 do 14:33:28 inbuff i + c@ dup 14:33:28 dup 'a' > swap 'z' < and if incr> #letters else 14:33:28 dup 'A' > swap 'Z' < and if incr> #letters then then 14:33:30 loop 14:33:32 cr ." Number of letters: " #letters . ; 14:35:42 the number of letters is ALWAYS 10, and it leaves a whole bunch of stuff on the stack, which is weird, cause i tested it in interactive 14:35:58 * thin probably should've factored the word heh 14:38:35 actually 14:38:40 i don't need two gay if statements 14:56:40 weird 15:11:32 * thin xef4 recently over the last 3 days i've conversed with him about itv's demise and such, and while i have a willingness to believe some stuff, i get the feeling of incongruence 15:15:31 how so? 15:18:21 : countletters 15:18:21 0 do 15:18:21 inbuff i + c@ 15:18:21 ?alphabetical 15:18:21 if incr> #letters then 15:18:21 loop ; 15:18:40 anybody see why #letters is 28 when there is 16 letters 15:18:48 and why #letters is 12 when there is 12 letters 15:18:58 (i.e. it is corret when there are only 12 letters) 15:19:58 ? 15:21:16 is ?alphabetical sane? 15:22:05 yep 15:22:19 : ?lowalpha dup 'a' > swap 'z' < and ; 15:22:20 : ?highalpha dup 'A' > swap 'Z' < and ; 15:22:20 : ?alphabetical dup ?lowalpha ?highalpha or ; 15:23:13 ?alphabetical isn't important, i'm pretty sure it's not where the problem is 15:23:15 because 15:23:25 i pass SPAN @ to countletters 15:23:41 and the loop only loops that many times 15:23:48 for example, i type blahblahblahblah 15:23:56 ?alphabetical is bugged though 15:24:02 and the countletters loops 16 times 15:24:13 but #letters ends up as 28 15:24:22 : ?alphabetical dup ?lowalpha swap ?highalpha or ; 15:24:23 even tho the loop only loops 16 times.. 15:24:32 ooh 15:38:36 heh 15:38:38 figured it out 15:38:45 dup 'a' >= 15:38:49 instead of dup 'a' > 15:38:55 or else i cut out the a 15:40:18 'a' - 26 < 15:52:14 : ?printable dup 33 - 0> swap 126 - 0< and ; 15:52:25 that works just fine 15:52:36 unfortunately, ?alphabetical doesn't .. 15:52:52 : ?lowalpha dup 'a' - 0> swap 'z' - 0< and ; 15:52:52 : ?highalpha dup 'A' - 0> swap 'Z' - 0< and ; 15:52:52 : ?alphabetical dup ?lowalpha swap ?highalpha or ; 15:54:04 doh 15:54:16 heh 15:54:23 0> is the same problem :P 15:58:04 there we go 16:13:31 --- quit: jammi (Read error: 104 (Connection reset by peer)) 16:31:23 --- topic: set to 'Hey! Forth is 42 years old! Something special may happen this year! | IsForth: runs on linux, coded in x86 asm - http://isforth.clss.net | official forth sites: http://www.ultratechnology.com/forth.htm & http://www.colorforth.com' by thin 16:33:01 www.colorforth.com was updated, more pictures added to biography and stuff, neato 16:37:48 --- topic: set to 'IsForth: runs on linux, coded in x86 asm - http://isforth.clss.net | official forth sites: http://www.ultratechnology.com/forth.htm & http://www.colorforth.com' by thin 16:40:17 wow! 16:40:21 more material on www.colorforth.com 16:40:33 including a copy of the 1980 byte issue!! 16:40:39 online!! 17:33:32 --- quit: skylan (Read error: 104 (Connection reset by peer)) 17:42:05 --- join: skylan (sjh@Raith92.tbaytel.net) joined #forth 18:57:33 --- quit: highlaender (Read error: 110 (Connection timed out)) 21:10:25 --- quit: tathi ("leaving") 23:59:59 --- log: ended forth/02.11.04