00:00:00 --- log: started forth/18.01.16 00:03:50 --- join: koisoke (xef4@epilogue.org) joined #forth 00:55:19 --- join: dddddd (~dddddd@unaffiliated/dddddd) joined #forth 01:14:58 --- join: mtsd (4d6e3d64@gateway/web/freenode/ip.77.110.61.100) joined #forth 01:23:35 --- join: dys (~dys@2003:5b:203b:100:6af7:28ff:fe06:801) joined #forth 02:31:37 --- quit: mtsd (Ping timeout: 260 seconds) 03:19:57 --- join: _spt_ (~Jupiter-R@unaffiliated/-spt-/x-5624824) joined #forth 03:32:58 --- quit: nighty-- (Quit: Disappears in a puff of smoke) 05:06:39 --- join: lijero (~lijero@unaffiliated/lijero) joined #forth 05:13:34 --- join: Darksecond (~darksecon@a82-94-53-70.adsl.xs4all.nl) joined #forth 05:15:34 How would I go at making the S" word (in compile mode), I was thinking something like: LIT addr LIT length BRANCH length 05:55:15 --- join: ncv (~neceve@2a02:c7d:c5c9:a900:c792:a3e8:397d:b37) joined #forth 05:55:15 --- quit: ncv (Changing host) 05:55:15 --- join: ncv (~neceve@unaffiliated/neceve) joined #forth 06:06:18 --- quit: lonjil (Remote host closed the connection) 06:06:29 --- join: lonjil (~quassel@2a02:418:6050:ed15:ed15:ed15:e741:32d6) joined #forth 06:14:35 --- quit: lonjil (Remote host closed the connection) 06:14:43 --- join: lonjil (~quassel@2a02:418:6050:ed15:ed15:ed15:e741:32d6) joined #forth 06:36:40 S" should compile another word ( maybe called (S") ) which could be defined as something like : (S") PARAM R@ 2DUP + CELL ALIGNED R! ; 06:37:17 jonesforth as a LITSTRING code word 06:37:44 okay, so s/(S")/LITSTRING/g 06:37:57 right 06:38:44 thanks :) 06:38:54 building my own forth os experiment :) 06:38:59 going decently so far :p 06:40:24 just a tip (may or may not be a good idea), in my forth I've eliminated the "param" word and instead have @+ (which fetchs from the address on top of the return stack and then advances it by a cell), !+ (same thing but storing), and "@+ and "!+ (same thing but handling strings) 06:40:42 --- quit: ncv (Ping timeout: 256 seconds) 06:40:51 so in mine, (S") is literally just : (S") "@+ ; 06:41:13 https://github.com/darksecond/unx-forth is what I have so far, still working on it 06:41:18 (has to be compiled that way and not an alias, because nesting into (S") puts the address on the return stack which "@+ will fetch from) 06:41:21 but yeah, @+ is a decent idea 06:42:40 I've found it so useful for parsing things and for building strings or data structures piecemeal that next I'm thinking of eliminating , too and instead just having HERE>R and R>HERE words 06:42:57 and ALIGN would align the address on the return stack 06:43:24 hmm, for now i'll stick with ',' only a beginner still :p 06:43:44 sure, might be a good idea not to stray too far from tradition just yet 06:43:50 exactly my idea 06:45:09 just out of curiosity, is there a reason you use lea ebp, [ebp-4] instead of just sub ebp, 4 06:45:28 because I don't know assembler, and that's (probably) how jonesforth does it 06:45:34 oh, ok 06:46:11 using it as a learning excerside for 06:46:38 *exercize for x86 assembler and forth 06:47:27 cool, have fun 06:47:31 I am :) 06:48:02 trying to get some screen output working (.") 06:48:17 which has a bunch of moving parts because I get there 07:14:10 also just fyi, jonesforth gets some stuff wrong. like last time I looked at it, its implementation for the tick ' word really should have been ['] 07:15:01 I also started with jonesforth, and I think it has good explanations of things, but just be aware that when you start looking at other forth resources you may discover some inconsistencies 07:36:06 hmhm, I've noticed some oddities here and there 07:36:31 but it's not a big issue, I'm not trying to be completely standards compliant 07:36:54 sure, nor should you be 07:56:45 :) 08:07:36 --- quit: _spt_ (Remote host closed the connection) 08:16:27 --- mode: crc set +o koisoke 11:20:39 --- quit: dys (Ping timeout: 265 seconds) 12:48:47 --- quit: impomatic (Ping timeout: 256 seconds) 12:57:27 --- join: dys (~dys@tmo-103-68.customers.d1-online.com) joined #forth 13:56:00 --- join: Gromboli (~Gromboli@static-72-88-80-103.bflony.fios.verizon.net) joined #forth 15:40:20 --- join: wa5qjh (~Thunderbi@freebsd/user/wa5qjh) joined #forth 15:44:09 --- quit: malyn (Ping timeout: 255 seconds) 15:49:16 --- join: malyn (~malyn@unaffiliated/malyn) joined #forth 15:49:34 --- quit: wa5qjh (Remote host closed the connection) 15:49:50 --- join: wa5qjh (~Thunderbi@freebsd/user/wa5qjh) joined #forth 15:55:11 --- quit: wa5qjh (Remote host closed the connection) 16:04:41 --- join: wa5qjh (~Thunderbi@freebsd/user/wa5qjh) joined #forth 16:08:49 --- quit: wa5qjh (Ping timeout: 240 seconds) 16:09:19 --- quit: dys (Ping timeout: 240 seconds) 16:10:57 --- join: wa5qjh (~Thunderbi@freebsd/user/wa5qjh) joined #forth 16:19:23 --- quit: wa5qjh (Ping timeout: 256 seconds) 17:02:43 --- join: nighty-- (~nighty@kyotolabs.asahinet.com) joined #forth 17:19:19 --- join: test234234 (~Gromboli@static-72-88-80-103.bflony.fios.verizon.net) joined #forth 17:19:41 --- quit: test234234 (Read error: Connection reset by peer) 17:20:04 --- join: Gromboli_ (~Gromboli@static-72-88-80-103.bflony.fios.verizon.net) joined #forth 17:21:02 --- quit: Gromboli_ (Client Quit) 17:21:13 --- quit: Gromboli (Quit: Leaving) 17:21:32 --- join: Gromboli (~Gromboli@static-72-88-80-103.bflony.fios.verizon.net) joined #forth 17:22:32 --- join: Test234234 (~Gromboli@static-72-88-80-103.bflony.fios.verizon.net) joined #forth 17:22:39 --- quit: Test234234 (Read error: Connection reset by peer) 17:30:52 --- quit: dddddd (Remote host closed the connection) 17:42:09 /away 17:45:51 --- quit: Gromboli (Quit: Leaving) 18:01:11 tried r4 for android, amazing experiences 18:01:23 what's r4? 18:01:47 its a colorforth like impl 18:01:53 could be run on multiple platform 19:25:31 jn: https://github.com/phreda4/reda4 19:31:59 i only hope it could support to generate android apk on android itself 20:01:50 --- quit: cess11_ (Remote host closed the connection) 21:44:32 --- quit: lijero (Remote host closed the connection) 23:45:42 --- quit: bluekelp (Quit: Lost terminal) 23:59:59 --- log: ended forth/18.01.16