00:00:00 --- log: started forth/09.09.23 00:04:06 I got it ... = =b... 00:04:13 heh 00:04:28 you found which config item it was that was making it fail? 00:04:44 I440r: URxvt*termName: rxvt-256color 00:05:13 comment out and work fine 00:05:32 ok. what that does is it basically changes what $TERM is when you run the terminal 00:05:52 how does the terminal report itself to the OS 00:06:13 this selects what terminfo file is associated with that terminal 00:06:26 it says use the rxvt-256color terminfo file 00:07:51 echo $TERM 00:07:52 rxvt-unicode 00:08:01 that word 00:08:01 hmm 00:08:06 work 00:08:15 yes it will 00:08:33 but if you put the URxvt*termName: rxvt-256color back in your config file 00:08:49 and launch urxvt again then echo $term 00:09:01 it should say rxvt-256color 00:09:25 ~/repos/isforth-1.22b/isforth 00:09:25 zsh: segmentation fault ~/repos/isforth-1.22b/isforth 00:09:25 gogonkt@thinkfly isforth-1.22b % echo $TERM 00:09:25 rxvt-256color 00:09:31 yup 00:09:44 isforth doesnt like that terminfo file. 00:09:55 theres a way to decompile terminfo files but i forget what it is erm 00:10:02 % echo $TERM 00:10:03 screen-256color 00:10:03 its part of the ncurses package 00:10:10 not work too 00:10:31 nope screen fails and i think 256 color is failing too 00:10:46 if i want to isForth run anywhere, just copy it to /usr/bin ? 00:10:55 it sould be 256 cause that? 00:11:07 dont know 00:11:12 flash__: yes 00:11:17 thx 00:11:21 ok do this 00:11:32 flash yes you could do that 00:11:43 /use/local/bin better place 00:11:54 gogonkt, with your urxvt-256color do this 00:11:58 infocmp 00:12:03 then paste the output for me 00:12:10 i made a : ln -s 00:12:24 :) 00:12:51 isforth-1.22b % ~/repos/isforth-1.22b/isforth 00:12:52 zsh: segmentation fault ~/repos/isforth-1.22b/isforth 00:13:12 gogonkt, yea it will fail i need to see your terminfo file for you urxvt-256color 00:13:17 run infocmp 00:13:18 % dmesg T 00:13:19 isforth[27384]: segfault at b7f96000 ip 080486b0 sp bfd933b4 error 4 in isforth[8048000+12000] 00:13:22 and paste its output 00:13:29 ok 00:13:34 its a terminfo thing i need to see what your terminfo looks like 00:14:19 % wgetpaste /tmp/infocmp.log 00:14:20 Your paste can be seen here: http://dpaste.com/97094/ 00:14:31 ln -s fails, back to cp isforth to /usr/bin , works 00:15:27 flash you were linking to the executable in a users dir? 00:15:31 erm hang on let me try 00:16:12 it works for me 00:16:44 cd /usr/bin then ln -s /home/username/isforth-version/isforth isforth 00:16:52 same terminfo? 00:16:52 then you can cd anywhere and run isforth 00:17:11 your terminfo is different to mine. im not sure where isforths terminal code is breaking on it yet 00:17:36 i do notice your terminfo has both the sgr and the sgr0 which MOST dont 00:17:42 which always annoyed me heh 00:18:21 mh.. 00:19:50 gogonkt, is your machine accessable from ssh? 00:20:23 --- join: madgarden (n=madgarde@CPE001d7e527f89-CM00159a65a870.cpe.net.cable.rogers.com) joined #forth 00:20:25 oh. erm this is the screen terminfo 00:20:34 isforth probably wont ever work inside a screen session 00:21:11 maybe 00:21:11 show me the terminfo for urxvt-256color 00:21:38 tho to tell the truth i didnt see anything in that terminfo that would be problematical 00:21:39 but there could still be a format string missing that i assume is present 00:21:42 this is urxvt-256color http://dpaste.com/97094/ 00:22:19 no. thats screen-256color 00:22:27 your running inside a screen session 00:22:28 flash you were linking to the executable in a users dir? <---yes i think , forget it. 00:22:59 flash__, i did that and it works for me 00:23:07 rxvt-unicode http://dpaste.com/97098/ 00:23:19 thats better heeh 00:23:29 oh... 00:23:44 i use a sudo to do this, maybe sudo is the key. I440r 00:23:52 :) 00:23:59 i never use sudo myself 00:25:10 % wgetpaste /tmp/infocmp_rxvt-256color.log 00:25:11 Your paste can be seen here: http://dpaste.com/97099/ 00:25:28 yea 00:26:11 im not seeing anything that jumps out at me but im 99% certain isforth is trying to interpret a format string thats not there 00:26:12 3 version all pasted 2 256 not work too 00:26:28 u6=\E[%i%d;%dR <--- thats a format string 00:27:32 i could debug this right down to the format string isforth expects to be there if i wasnt about to go to sleep 00:27:46 assuming that my assumption about this being the problem is right hehe 00:28:28 but i know isforth doesnt survive certain terminals because im assuming a format string exists 00:28:36 ones that SHOULD exist bleh 00:28:50 theres no standard for saying which strings can or cannot be left out 00:28:56 aha 00:29:25 like all terminals support both the SGR and the SGR0 escape sequences but MOST only give the sgr0 format string 00:30:31 sgr will turn off a given atrribute. like bold or underline etc 00:30:38 sgr0 will reset ALL attributes 00:30:51 including forground and background colors 00:31:20 had comment out rxvt-256 00:31:22 so to reliably turn off "bold" for example you first have to turn off ALL atrributes and then reinstate all the ones you didnt want to turn off 00:31:40 yes isforth will run within a normal rxvt 00:32:00 ill try find out what fails in the 256 color terms sometime 00:32:21 add it to bug list 00:33:14 do i have a bug list? hehe 00:33:23 :) 00:34:21 why handle format string? 00:34:54 because for example 00:35:14 the escape sequence in one terminal to set the forground color will not be the same one used in another terminal 00:35:24 what a format string gives you is the FORMAT of the escape sequence 00:36:03 to set the forground color in "any" (almost) terminal isforth reads the format string for your specific terminal and constructs the escape sequence from taht 00:36:37 moving the cursor to a specific location. advancing the cursor. deleting a char etc etc etc 00:36:58 ALL are done with escape sequences and every terminal uses vastly different escape sequences 00:37:54 but anyway, i have to sleep 00:38:02 nite 00:38:10 and i have to shut this computer off, it keeps my room too hot to sleep lol 00:38:26 --- quit: f[x] (Read error: 110 (Connection timed out)) 00:38:28 in fact. the rest of the house can be freezing and this room will still be TOO HOT grrr lol 00:38:31 nite :) 00:39:04 flash__, put together a client/server application and tomorrow ill help you make it either "better" or "work" heh 00:40:47 I440r, thx alot! I made it connected first:) 00:41:21 --- part: jauaor left #forth 00:43:40 --- join: ASau (n=user@host207-231-msk.microtest.ru) joined #forth 00:44:57 flash__, you already got client/server working? 00:45:01 cool :) 00:45:13 tomorrow i would like to see that code 00:45:24 but rite now i have to zzz heh 00:45:48 flash__, im not saying isforth will work for you but writing a MUD game is something ive wanted to do for a long time 00:46:06 i was thinking users connecting would literally be executing forth words like 00:46:11 we have a some goal.hehe 00:46:14 north south look etc etc 00:46:25 see you. 00:46:25 and they would be sealed within a user vocabulary 00:46:38 admins could have an admin directory allowing them more in game power 00:46:55 developers would have access to the entire forth development system allowing them to create new content 00:46:57 nice idea! 00:47:20 also. admins could use a "map editor" that users wouldnt have access too because they would be in a different voc 00:47:41 nod 00:47:59 this will split the user right with different dicts 00:48:15 --- quit: gogonkt ("leaving") 00:49:12 --- join: gogonkt (n=info@218.13.63.56) joined #forth 00:49:54 ok,it work now,comment out all about 256 colour :) 00:51:20 I440r: see you 00:55:12 --- quit: I440r ("Leaving") 01:22:06 --- quit: kar8nga (Read error: 104 (Connection reset by peer)) 02:00:14 --- join: GeDaMo (n=gedamo@212.225.115.96) joined #forth 02:44:08 --- join: gogonkt_ (n=info@218.13.54.46) joined #forth 02:57:19 --- quit: gogonkt (Read error: 110 (Connection timed out)) 03:08:43 --- quit: C0LTz (Remote closed the connection) 03:49:29 --- join: malyn_ (n=malyn@unaffiliated/malyn) joined #forth 03:49:38 --- quit: malyn (Read error: 104 (Connection reset by peer)) 03:50:27 --- nick: malyn_ -> malyn 04:34:53 --- quit: GeDaMo ("Leaving.") 05:00:57 --- nick: gogonkt_ -> gogonkt 05:05:11 --- join: f[x] (n=user@245-23-133-95.pool.ukrtel.net) joined #forth 05:25:58 --- part: KipIngram left #forth 06:14:49 --- join: dandersen (n=dkcl@58.66.218.87.dynamic.jazztel.es) joined #forth 07:16:55 --- quit: madgarden (Read error: 110 (Connection timed out)) 07:28:46 --- quit: dandersen ("leaving") 07:37:26 --- join: GeDaMo (n=gedamo@212.225.115.96) joined #forth 07:43:43 --- join: madgarden (n=madgarde@CPE001d7e527f89-CM00159a65a870.cpe.net.cable.rogers.com) joined #forth 08:02:27 --- quit: ASau ("bye") 08:18:26 --- quit: nighty_ (Remote closed the connection) 08:31:35 --- join: DrunkTomato (n=DEDULO@ext-gw.wellcom.tomsk.ru) joined #forth 08:32:54 --- join: nighty_ (n=nighty@x122091.ppp.asahi-net.or.jp) joined #forth 08:39:18 --- quit: k-man (Read error: 104 (Connection reset by peer)) 08:39:28 --- join: k-man (n=jason@unaffiliated/k-man) joined #forth 09:03:38 --- join: danieljames (n=danielja@94-193-7-241.zone7.bethere.co.uk) joined #forth 09:59:50 --- join: ASau (n=user@83.69.227.32) joined #forth 10:15:02 --- join: I440r (n=me@c-69-136-171-118.hsd1.in.comcast.net) joined #forth 10:16:22 --- quit: madgarden (Read error: 110 (Connection timed out)) 10:21:11 --- join: kar8nga (n=kar8nga@LRouen-152-83-15-79.w80-13.abo.wanadoo.fr) joined #forth 10:22:33 --- join: impomatic (n=John@nat66.mia.three.co.uk) joined #forth 10:22:59 Hi :-) 10:23:04 hi 10:24:14 Has anyone played a programming game with a Forth like language (or know the name of the game)? 10:25:40 --- join: madgarden (n=madgarde@CPE001d7e527f89-CM00159a65a870.cpe.net.cable.rogers.com) joined #forth 10:25:53 i heared that "Leasure Suit Larry in the Land of the Lounge Lizards" was programmed in forth 10:26:01 but i never played the game. too dumb 10:26:21 i once saw some code to a doom like game that was done in forth 10:26:27 "too dumb" - You or the game? :P 10:26:33 the game 10:27:44 Sorry, I mean a "programming game". Like Corewar or CROBOTS or RobotWar or P-Robots. 10:27:59 There's apparently one with a Forth-like language. 10:28:51 hmm never saw it 10:29:03 I remember hearing about it. Can't remember the name though. 10:31:11 http://en.wikipedia.org/wiki/RoboWar 10:31:11 IIRC it had robots, not a pure programming thing like Corewar 10:31:31 That's the one. 10:35:13 the ultimate game implemented in forth is, of course, "tt" 10:37:24 tt? 10:38:49 tetris-for-terminals 10:39:16 another dumb game :P 10:39:29 tetris is kind of fun for about 10 seconds. after that its a bit boring 10:39:54 i want to create an ultima 3 type game :) 10:41:08 --- nick: Quiznos -> PurpleSmurf 10:42:16 Hmmm... I never played Ultima 3. I think I have Ultima 7. 10:42:41 ultima 3 was better. ultima games kind of went down hill after 3 and 4 10:42:45 RoboWar. I'll try it. 10:44:29 I liked 7. :-) I hate games with a linear path to complete it, so Ultima was one of my favourites. 10:45:17 i loved wizardry on the apple ii 10:45:57 you could create 6 bishops, take each bishop into the dungeon and have him repeatedly try to identify item 9 in your EMPTY 8 item inventory 10:46:11 and if he succeeds (might take hundreds of tries) he instantly gets -1 experience 10:46:35 do that 6 times then take them all to the training grounds and train them all up to be max level ninjas with all spells in all classes heh 10:46:41 but that would be cheating! 10:46:55 I haven't got an Apple II in my collect. (yet) 10:48:02 me either 10:48:15 but i have a dos version of wizardry. the cheat doesnt work there tho 10:48:17 oh!!!!!! ha 10:48:33 the dos version of wizardry had a emulator to run the game 10:48:45 the emulator is written in a token threaded forth! 10:49:03 :-) 10:49:27 it was written by some japanese dood i think. i ferget the details 10:49:35 i was half heartedly reverse engineering it once 10:50:29 --- quit: ASau ("off") 10:58:40 --- join: ASau (n=user@83.69.227.32) joined #forth 11:08:38 --- quit: DrunkTomato () 11:43:56 --- join: neceve (n=ncv@unaffiliated/neceve) joined #forth 11:59:18 --- join: jauaor (n=araujo@gentoo/developer/araujo) joined #forth 11:59:20 hello 11:59:27 --- part: danieljames left #forth 12:01:26 * jauaor seems like he finally got it working 12:51:54 --- nick: Snoopy_1711 -> Snoopy_1611 12:51:59 --- join: Raystm2 (i=rastm2@24.8.232.212) joined #forth 12:59:03 --- quit: jauaor () 13:08:22 he keeps saying that. :) 13:09:37 Great group mail the other day, tathi. I'm glad you sent that. Well done! :) 13:09:51 Well said, in all. 13:10:25 I got to give my diatriabe about why I use it and why no one should. 13:11:54 Documenting it thru some future movies i'm doing should give people enough of the reality of it, enough experiance with it to be better informed. 13:13:24 Just wanted to know that I agree. Back to cygwin/info and to your regularly sheduled chat. :) 13:14:02 lol add a you in that first sentence somewhere apropriate. 13:14:25 --- quit: kleinjt (Remote closed the connection) 13:15:06 I'm gonna see if I can't remember or teach myself how to iirsi. Anybody got recomendations on unix irc clients. any forth ones? 13:15:44 You know, I don't recall seeing ANY forth stuff at cygwin. Have to look into this as well. 13:16:55 yikes swap first and sentence. shesh. 13:31:32 --- quit: impomatic ("mov.i #1,1") 13:43:33 --- quit: f[x] (Read error: 110 (Connection timed out)) 14:19:34 --- quit: kar8nga (Remote closed the connection) 14:32:02 --- quit: neceve (Remote closed the connection) 14:32:47 --- quit: GeDaMo ("Leaving.") 15:07:31 --- quit: gogonkt (Read error: 110 (Connection timed out)) 15:17:34 --- join: jauaor (n=araujo@gentoo/developer/araujo) joined #forth 15:20:37 --- nick: PurpleSmurf -> Quiznos 15:37:21 --- quit: segher (Read error: 60 (Operation timed out)) 15:53:32 * jauaor got it working! 15:55:56 * jauaor starts realizing how implementing some kind of object orientation in a stack based language isn't too ....... clear and easy :P 16:03:21 just use pointers 16:08:02 :) morning~ 16:10:19 no - evening! 16:10:55 I found isForth helped me understand forth well, and then, I figure out the problem of gforth :D 16:11:16 hehe, different timezone 16:11:29 I just woke up 16:12:40 7 pm here 16:13:59 7 am beijing , china 16:14:15 --- quit: madgarden ("Leaving") 16:15:49 flash if you USE gforth over isforth thats not a problem for me :) 16:16:01 that it helped you at all means i succeeded in my goals :) 16:16:10 flash your in china? 16:16:15 ni hao :) 16:16:23 hehe, ni ye hao 16:17:04 I440r, meet problem with isForth :) 16:17:04 met 16:17:19 i figured you might, the sockets code is a bit kludgy at the moment. its very high on my todo list to fix that but i cant wtihout the assembler 16:17:28 i am once again ATTEMPTING to solve that major issue 16:17:45 show me your todo list :D 16:17:52 1: fix assembler 16:18:05 2: rewrite the memory manager slightly to be more efficient 16:18:17 I see. 16:18:17 3: rewrite the terminal code to be more efficient and simpler to use 16:18:34 * crc notes that the assembler has been on #1 for a long time 16:18:37 4: complete the sockets code and make it an actual API not just a bunch of kludgy words 16:18:48 yup 16:18:49 haha, for a long time 16:19:30 flash i started writing isforth in about july of 2001. it was up and running by august of 2001. over the years ive made a few MINOR changes to the kernel and added quite a bit of extensions 16:19:36 I made the script connect to a server, but dont know how to send msg . 16:19:41 but ive never been able to get my head round the x86 assembler problem 16:19:51 dont know how to send them in isforth? 16:20:01 nod 16:20:10 erm hang on 16:20:18 dont understand your bot.f very well, i think. 16:20:23 --- quit: Elench (Read error: 104 (Connection reset by peer)) 16:20:43 yea its not that complex but it uses kludgy sockets code :) 16:20:44 hang on tho 16:21:22 ok you understand how emit and type work in forth yes>? 16:21:24 but the code of isForth is really easy to understand 16:21:35 my bot outputs strings on the cocket by executing bot-type which calls bot-emit 16:21:51 I see that calls 16:22:02 bot-emit just writes the char into a buffer till the entire string is in the buffer 16:22:23 basically bot-write is what does the socket write 16:22:44 it has a length and an address on the stack (of the data to send) and then puts the socket FD on the stack and calls send 16:22:51 send is what does the socket write 16:23:06 so basically you would have n1 a1 fd send 16:23:11 that would do the transmit 16:23:57 im not sure why thats not a1 n1 fd which looks more correct to me but looking at the code (which works) its length address fd in that order 16:24:50 the send function puts a 9 on the stack and then does a (sock) call 16:25:10 all socket operations happen in (sock) 16:25:26 ehmmm 16:25:28 be then tx, rx or connects or whatever 16:26:04 you could do langth addres fd 9 16 -rot 3 (sock) hehe 16:26:17 I fix a little of your bot-connect in io.f , it connected. 16:26:46 what was broken about it? 16:26:56 hang on 16:26:58 --- join: madgarden (n=madgarde@CPE001d7e527f89-CM00159a65a870.cpe.net.cable.rogers.com) joined #forth 16:27:45 connected 16:27:45 ok 16:27:45 .s 12 20 123 0 ok 16:28:01 I dont understand the data it leave on the stack 16:28:06 im leaving trash on the stack? 16:28:12 i dont think its supposed to lol 16:28:32 im sure once i start developing the sockets code for real ill get tot he bottom of that 16:28:32 haha, 16:29:23 im sure once i start developing the sockets code for real ill get tot he bottom of that <-- dont understan 16:29:24 d 16:30:07 it means when i have the assembler finished (if ever lol) ill be redoing the sockets code to be more of an API and if thers any bugs in it (im sure there are) ill find and fix them then 16:30:46 I see. so I give up trying on, and turn to make the bot of isForth working :D 16:31:11 :) 16:31:20 i know it needs work :) 16:31:42 I have 3 task do together: mud , cgi and irc-bot. I want to do them with forth, isforth is better 16:32:00 i know it needs work <--- never mind, just take your time. 16:32:30 it was actually the sockets code that made me stop developing any more code for isforth other than bug fixes 16:32:42 till i had the assembler i just couldnt do the sockets code justice 16:33:01 so, which one, do you think , i can do easier begin with isforth , of the three issue? 16:33:17 understand now. 16:34:04 i dont understand what your asking 16:35:01 I have 3 tasks do together: mud , cgi and irc-bot. I want to do them with forth, better with isForth 16:36:12 I think, start with irc-bot will make me know well about the basic of forth and get enough training 16:36:23 is that in right order? irc-bot, cgi , mud 16:36:56 yes i would say the bot would be a good place to start 16:37:10 define cgi 16:37:32 use isforth for web via cgi? 16:37:36 that would be interesting :) 16:38:09 nod, I wrote a manage system for a school with cgi. 16:38:17 cool :) 16:38:20 first with asp, then perl cgi. 16:38:50 but consider the complicate of lots of codes, I want to do with forth this time. 16:40:00 a simple cgi, which handle database, and some webpage i/o. 16:40:05 i would say become more familiar wtih forth before you did that 16:40:19 finally will work together with the MUD :) 16:40:26 for that you would need to have a means of interfacing iwth the database in forth 16:40:35 nod 16:40:37 yes. i can see how that would help :) 16:40:56 I did need practices , a lot :D 16:41:14 so, begin with irc-bot 16:41:20 yes 16:42:04 by the way. to write the sockets code i basically had to reverse engineer libc to see how IT did it 16:42:12 last night, i met the problem, your bot script can connect the server i changed, but cant join in the channel in channel list. 16:42:37 I440r, nod, you will 16:42:42 i mean. i wrote some c code then reverse engineered it to see what libc did low level. looking at the sources to libc would not have helped me :) 16:43:11 i need to get sendto and recvfrom working and then wrap the low level code in some usable API 16:43:16 and add the resolver of course 16:43:17 you are one another way ;D 16:44:34 I though, the irc-bot, cant join because it has not wait forth the motd msg, it input join command to early 16:45:54 yea it probaly can but im not sure 16:48:03 i also wasnt happy about building a HUGE case statement for the numeric input :) 16:48:34 :P 16:48:55 * crc used to pass the messages to the interpreter as words, and had the interpreter handle things 16:49:07 that was messy and error-prone though... 16:49:12 i had thought of that too 16:49:21 : 123 handle-numeric-123 ; 16:49:59 : 123 handle-numeric-123 ; <--- looks better. 16:58:38 soon or later , you will figure out the bottleneck of isForth, before that time, what you can do, is just keep doing lots of things about isforth :) 17:02:29 http://www.falvotech.com/blog2/blog.fs <---cool 17:02:41 yea thats kc5tja 17:05:16 know nothing about kc5tja 17:38:46 wrote an simple cgi with forth :) 17:40:01 http://forth.pastebin.ca/1577279 17:41:46 * ASau recalls the time of gforth 0.5.0. 17:42:34 It generates daily reports on mail server somewhere inside gov.ru. 18:03:35 http://forth.pastebin.ca/1577295 simple forth cgi, and has a nice view in html code too :) 18:04:24 --- join: nighty^ (n=nighty@210.188.173.245) joined #forth 18:06:18 --- quit: mathrick (Read error: 110 (Connection timed out)) 18:30:16 --- join: gogonkt (n=info@59.38.223.190) joined #forth 18:33:43 hi all 18:34:31 :) tarbo 18:34:36 :_ tathi 18:35:11 Sounds like you're making some progress. :) 18:35:31 met problem with get parameter like: index.fs?in=hello 18:35:40 tathi, nod :) rapid 18:36:20 I am trying on writing cgi script with gforth 18:37:00 if i wrote, index.fs in=hello. it's ok. but, on the side of webbrowser, it use index.fs?in=hello 18:38:44 --- join: gogonkt_ (n=info@59.39.12.69) joined #forth 18:42:50 http://forth.pastebin.ca/1577325 tathi 18:48:50 you could use 'spaces' for the tab words 18:49:03 '2 spaces', '4 spaces', etc. 18:49:59 Also, technically you're supposed to use CR/LF pairs to separate headers. So you might want : crlf 10 emit 13 emit ; or something 18:50:42 ok, changing to spaces 18:52:06 --- quit: gogonkt (Read error: 110 (Connection timed out)) 18:52:06 why cant just use CR ? 18:52:07 Oh, are you on DOS? 18:52:11 linux 18:52:26 Because on Linux CR will just be 10 emit. 18:52:50 And if you run into any software that's picky about parsing the HTTP responses, it might not work. 18:53:05 Then again, these days all browsers and such may very well allow you to be sloppy. 18:53:15 thx, changing it. 18:53:18 It only matters in your header word 18:53:29 nod 18:55:07 Other than that it looks great so far 18:55:32 :D 18:55:40 met problem with get parameter like: index.fs?in=hello 18:55:51 if i wrote, index.fs in=hello. it's ok. but, on the side of webbrowser, it use index.fs?in=hello 18:56:07 yeah 18:56:17 What's the problem? 18:57:48 how can i pick up the parameter from cgi links, such as: index.fs?in=hello 18:57:55 gforth seems cant. 18:58:13 it just know: index.fs in=hello 18:59:48 Oh, right. CGI doesn't send anything as command-line arguments. 18:59:56 it pretty much all goes in environment variables. 19:00:08 you want the environment variable QUERY_STRING if I recall correctly. 19:02:43 environment var.... 19:03:42 Do you actually know anything about the details of CGI? Or have you just used CGI libraries in other languages? 19:03:49 http://hoohoo.ncsa.illinois.edu/cgi/ 19:04:50 I know how cgi work,but dont know how forth get environment variable of system :( 19:04:56 --- nick: gogonkt_ -> gogonkt 19:05:11 Oh. Gforth has getenv ( c-addr1 u1 -- c-addr2 u2 ) 19:05:29 Other forths vary, of course. 19:05:32 flash__: try it 19:06:00 So for instance S" QUERY_STRING" getenv type 19:06:13 * jauaor got it working! 19:06:16 :D 19:06:22 ok 19:06:23 jauaor: what did you get working this time? 19:06:37 tathi: hah 19:06:50 You're always getting things working. :) 19:07:01 hahaha 19:07:07 except when they don't work as expect 19:07:12 expected* 19:07:12 haha 19:07:42 well.. I just got some kind of 'super' construct 19:07:57 so, now I got some 'self' and 'super' equivalent 19:08:19 and this allowed me to finally get some kind of object orientation 19:08:45 kind of ugly yet , but it could get improved 19:09:24 ah 19:09:32 Things can *always* be improved. :) 19:09:32 tathi, i did know a little about cgi, just use cgi lib write perl cgi for a scholl management . 19:10:05 tathi: and finally got some decent example to show 19:10:09 * jauaor will paste it in a while 19:10:47 flash__: gotcha. Libraries usually automate a bunch of the details. Nothing too serious, but in Forth there are some extra bits that you'll have to handle for yourself. 19:11:13 nod 19:12:14 Gah. On a completely unrelated note, lilypond can be *really* annoying sometimes. 19:13:08 you use lilypond for music score? 19:13:15 i cant even read music heh 19:14:04 yeah, sometimes 19:14:25 what instrument do you play? 19:14:26 Heh. I appreciate having parents who made me take 12 years of piano lessons. :) 19:14:34 Mostly piano 19:14:48 im currently learning to play H. Villa Lobos Prelude #1 19:15:07 my mother tried to get me interested in piano but i loved the guitar too much heh 19:16:04 I can get decent sounds out of a flute or a reed or brass instrument, but I don't really *play* any of them. :) 19:16:06 Haven't ever messed around with guitar much. Banjo and ukelele a little bit. 19:16:22 But mostly I play piano and/or sing. 19:17:20 Had six months or so of voice lessons before I went off to college, so I more-or-less know what I'm doing. 19:17:22 even mozzart said the guitar was the most beautiful sounding instrument 19:17:35 you dont want me to sing :P 19:17:59 :) 19:18:32 Aha. Line breaks can only happen at a bar, so I have to insert an invisible bar to put a line break in the middle of a measure. 19:18:37 Who thinks this stuff up? 19:19:30 guys 19:19:38 anyone knows a good site for paste? 19:19:49 probably with forth support? 19:20:30 http://www.youtube.com/watch?v=r0C_i89umo4 <-- thats not a bad rendition of it 19:20:40 though i think he rushes in certain parts 19:21:06 pick one. Can't think of any with forth support though. 19:21:07 pastebin.ca 19:21:14 A bunch of people seem to use paste.lisp.org 19:21:31 http://forth.pastebin.ca 19:22:21 http://paste2.org/p/434913 19:22:30 gogonkt: oh, thanks, i will check that one next time 19:22:49 ok, that is an example of how "structs" and "objects" feel like in the language 19:25:48 brb oh and hi :) 19:25:54 --- quit: Raystm2 ("User pushed the X - because it's Xtra, baby") 19:25:57 hi 19:29:04 jauaor: why 0 1 2 index, but 9 8 0 push ? 19:30:18 Mark, there are online help in isforth ? 19:30:46 tathi: the index lines .... they are the accessors functions 19:31:34 the, $t Trig.x 9 push 19:31:39 it is a way of saying: 19:32:06 "get the value Trig.x (index 0) of the stack $t and push 9 onto it" 19:32:18 gogonkt, define help 19:32:20 pretty much, everything you are seeing there is a stack object 19:32:30 theres www.isforth.com but thats not complete. 19:32:43 oh, 9/8/0 are just random values 19:32:48 gotcha 19:32:50 right now im working on giving a description of every word in the extensions. 19:32:50 hm 19:32:54 ive completed taht for the kernel 19:32:56 tathi: ooh, correct, yeah 19:32:58 but tahts not exactly a "help" 19:32:58 :) 19:33:05 just an example 19:33:09 so the plan is to also give alot of examples 19:33:15 * jauaor really needs to work in documentation now 19:33:27 been coding and coding without documenting anything so far ..... :P 19:33:35 well, just a few important details 19:33:41 Heh 19:33:47 yap, need example 19:34:20 Well, if you're not sure if the language is stable yet, it's hard to work up much enthusiasm for writing docs. 19:35:06 tathi: indeed 19:35:15 Been there, done that. :) 19:35:29 yeah?, nice ... this is pretty much my first serious attempt :P 19:36:00 and yes .. today something works in a way .. and tomorrow I change it to work differently 19:36:04 Oh, nothing serious. Just a bunch of little experiments. 19:36:20 nice, this is pretty much that .. an experiment too 19:36:30 so amazingly far from stable :P 19:36:34 hehe 19:37:07 tathi: CR is always decimal 13 emit. 19:37:11 It is standard. 19:37:17 Don't change names. 19:37:34 ...like our standardizers do. 19:37:48 since it is pretty much a new language, I spend plenty of time "designing" or better said ... "figuring out" how to get things done on it 19:37:54 ASau: I wasn't. The CR word in standard Forth (which was what I was talking about) emits a newline of some kind. 19:38:01 On linux it's usually 10. 19:38:10 * jauaor goes and eats something 19:38:11 I agree that the name is unfortunate, but what can you do? 19:38:14 brb 19:38:17 Well... 19:38:53 It is better to use some "newline" variable. 19:39:04 Like "create newline 13 c, 10 c," 19:39:20 Sure, but that is irrelevant to what we were discussing. 19:39:46 The HTTP spec (RFC2616 IIRC) says that headers need to be separated by a CR/LF pair. So you need a word for that. 19:39:50 It was mistake that unix chose non-canonical line separation. 19:40:05 everywhere else you can just use the CR word, because you don't really care, as long as they're consistent. 19:40:19 And if you *do* care, you can always redefine CR to do what you want before loading the code. 19:40:36 I think that you may use CR only when you output to tty. 19:40:48 What character or characters is "canonical line separation" 19:41:10 CR-LF pair. 19:41:13 That was around before UNIX? 19:41:16 It's part of earlier tty or ascii standard. 19:41:23 Yes. 19:41:34 Oh, I guess it was, because printers needed both. 19:42:54 Anyway, it's still irrelevant to the discussion I was having with flash__ 19:42:54 Alright, alright. 19:43:47 No problem. 19:43:47 Sorry, not trying to be testy. It's a good point. 19:44:19 :) found one : s" QUERY_STRING" environment? [if] ." qs:" type cr [else] ." nothing" [then] 19:44:25 OK, I need to go to bed. Good night all, have fun, may the Forth be with you, and all that. :) 19:44:28 --- quit: tathi ("leaving") 19:44:35 but, it often take back me : nothing 19:44:54 my link is: http://127.0.0.1/exam/cgi/index.fs?in=ok&out=no 19:45:25 flash__: ENVIRONMENT? is standard word, it doesn't do what you want. 19:45:47 .... 19:46:21 Use get-env or invent it yourself. 19:46:44 ok, tring... 19:46:48 Do you use gforth? 19:46:55 s" HOME" getenv type 19:47:03 gforth 19:47:47 s" HOME" getenv type <---works 19:47:57 flash__: http://127.0.0.1/ is good joke. 19:48:40 nod :D 19:48:59 it works! :D 19:49:29 refining the code 19:51:09 : params s" QUERY_STRING" getenv ; 19:51:43 now , i'm going to split it out. 20:18:55 * jauaor back 20:32:41 --- join: Raystm2 (i=rastm2@c-24-8-232-212.hsd1.co.comcast.net) joined #forth 21:06:04 --- join: ayc (n=ayc@rainbow.koenig.ru) joined #forth 21:06:20 --- quit: Raystm2 ("User pushed the X - because it's Xtra, baby") 21:09:57 --- part: ayc left #forth 21:28:12 --- join: DrunkTomato (n=DEDULO@217.18.135.36) joined #forth 22:15:54 --- quit: ASau ("off") 22:18:21 --- join: mathrick (n=mathrick@users177.kollegienet.dk) joined #forth 22:27:01 --- quit: gogonkt (Read error: 104 (Connection reset by peer)) 22:27:43 --- join: gogonkt (n=info@59.39.12.69) joined #forth 22:33:36 --- quit: mathrick (Read error: 54 (Connection reset by peer)) 22:37:39 --- join: mathrick (n=mathrick@users177.kollegienet.dk) joined #forth 22:41:26 --- quit: nighty^ ("Disappears in a puff of smoke") 22:41:40 --- join: nighty__ (n=nighty@210.188.173.245) joined #forth 22:43:12 --- quit: gogonkt (Remote closed the connection) 23:03:31 --- join: f[x] (n=user@95.132.190.11) joined #forth 23:06:21 --- join: neceve (n=ncv@unaffiliated/neceve) joined #forth 23:07:13 --- join: gogonkt (n=info@59.39.12.69) joined #forth 23:13:57 --- join: ASau (n=user@smtp.hosting.microtest.ru) joined #forth 23:22:47 libtool: ;ink: '/usr/lib/libpcre.la' is not a valid libtool archive 23:22:58 link even but i cant type :) 23:27:53 err damn wrong channel lol 23:29:59 --- join: kar8nga (n=kar8nga@LRouen-152-83-15-79.w80-13.abo.wanadoo.fr) joined #forth 23:30:32 libtool: ;ink: '/usr/lib/libpcre.la' is not a valid libtool archive and i HAVE libpcre installed 23:30:50 dammit i freekin switched to gentoo 23:31:01 X is messing with me 23:36:44 --- quit: neceve (Remote closed the connection) 23:38:05 I440r: try fixing it manually. 23:38:20 The problem is usually in extra space or line feed. 23:38:25 no emerge lafilefixer 23:38:34 then run lafilefixer --justfixit 23:38:40 Use ed, ed is standard unix editor. 23:38:43 --- quit: gogonkt (Read error: 145 (Connection timed out)) 23:38:50 this all looks like a kludge fix to me but what can i do 23:39:36 "libtool archive" is plain text file. 23:40:03 and there were hundreds of them on my system and a lot of them needed fixing according to lafilefixer 23:40:12 why were the files broken in the first place 23:40:25 I don't know and don't care of gentoo. 23:40:26 what ever broke them needs fixing, not just the files themselves 23:40:43 --- join: gogonkt (n=info@59.39.12.69) joined #forth 23:40:57 well searching for this problem found it for ubuntu AND fedora too for various packages 23:41:04 its nota gentoo issue 23:41:08 NetBSD libtool works fine. 23:41:39 Each recent breakage is tracked down to non-NetBSD libtools. %| 23:43:53 those problems are caused by packages no longer installing a library's libtool generated metadata(that is what the .la files contain), and you're specifically told to run lafilefixer when you emerge libpcre 23:44:33 my response was that if running lafilefixer was a requirement after emerging libpcre then the emerge for libpcre should DO IT 23:45:14 requiring me to watch, take note of and act on ONE message scrolling up my screen at 400 miles per hour as i emerge my system (and maybe go to sleep) is stupid 23:48:06 It is easier to fix libpcre to use libtool. 23:48:38 maybe they fixed it to NOT use it lol 23:48:40 i dunno 23:49:10 --- quit: DrunkTomato () 23:50:49 Unlikely. 23:51:06 GNU folks love wrappers too much. 23:59:59 --- log: ended forth/09.09.23