00:00:00 --- log: started forth/15.04.20 00:02:09 --- join: Bahman (~Bahman@85.133.140.118) joined #forth 00:48:51 --- quit: Bahman (Ping timeout: 250 seconds) 01:01:54 --- join: Bahman (~Bahman@85.133.140.118) joined #forth 01:17:15 is joneshf-laptop the author of jonesforth? 01:53:28 --- join: proteusguy (~proteusgu@180.183.112.202) joined #forth 01:53:28 --- mode: ChanServ set +v proteusguy 01:57:13 * joneshf-laptop wishes 01:58:57 --- join: true-grue (~grue@95-27-148-133.broadband.corbina.ru) joined #forth 02:46:14 --- join: nighty^ (~nighty@hokuriku.rural-networks.com) joined #forth 02:48:51 --- join: nighty-_ (~nighty@hokuriku.rural-networks.com) joined #forth 02:53:37 --- quit: nighty^ (Quit: Disappears in a puff of smoke) 03:06:50 --- quit: atommann (Quit: Leaving) 03:21:23 --- quit: Bahman (Ping timeout: 250 seconds) 03:30:42 --- quit: xyh (Remote host closed the connection) 03:38:23 --- quit: true-grue (Read error: Connection reset by peer) 03:39:26 --- join: GeDaMo (~GeDaMo@212.225.93.112) joined #forth 04:15:12 --- quit: mnemnion (Remote host closed the connection) 04:20:04 --- join: vsg1990 (~vsg1990@cpe-67-241-148-119.buffalo.res.rr.com) joined #forth 05:17:07 --- join: MrMobius_ (~MrMobius@50.141.73.137) joined #forth 05:44:01 --- quit: MrMobius_ (Ping timeout: 255 seconds) 05:52:51 --- join: nighty^ (~nighty@static-68-179-124-161.ptr.terago.net) joined #forth 06:04:21 --- join: MrMobius_ (~MrMobius@50.141.73.137) joined #forth 06:19:28 --- quit: MrMobius_ (Ping timeout: 244 seconds) 06:42:44 --- join: MrMobius_ (~MrMobius@2601:f:400:1241:ed3e:7905:ca15:6e04) joined #forth 06:54:27 --- join: true-grue (~grue@95-27-145-184.broadband.corbina.ru) joined #forth 07:27:47 --- quit: MrMobius_ (Ping timeout: 252 seconds) 07:52:39 --- quit: darkf (Quit: Leaving) 07:55:26 --- join: xyh (~xyh@2001:250:3002:5550:6ea1:cc0f:bcb2:b187) joined #forth 07:59:30 --- join: pointfree-w530 (~awagner@pool-108-7-155-178.bstnma.east.verizon.net) joined #forth 08:09:14 --- quit: xyh (Remote host closed the connection) 08:15:44 --- join: mnemnion (~mnemnion@c-98-210-219-91.hsd1.ca.comcast.net) joined #forth 08:20:22 --- quit: mnemnion (Ping timeout: 244 seconds) 08:37:08 --- join: xyh (~xyh@2001:250:3002:5550:6ea1:cc0f:bcb2:b187) joined #forth 08:43:01 --- join: mnemnion (~mnemnion@c-98-210-219-91.hsd1.ca.comcast.net) joined #forth 09:56:51 --- join: demonview (~jf@75.94.26.174) joined #forth 10:18:59 http://minimaltype.com/innerloops.txt - evolution of the inner loop of some ARM assembler experiments. 10:19:04 --- nick: demonview -> dview 10:24:55 not writing a forth. just trying to learn enough arm to port one. 10:25:16 http://minimaltype.com/11.txt is what the code actually looks like, that used that 'dothread' stuff 10:27:15 (.word CODE , .word FAIL is commented out as having both GREET and FAIL leads to a segfault. they both work on their own. together, they segfault. no idea why.) 10:29:48 dview: in your CODE word, shouldn't you push IP before loading? 10:30:39 if I did that, IP would still point to the address after .word CODE 10:31:01 ldm IP! ... updates IP again, to skip the address that CODE is setting to the IP 10:35:41 you can duplicate .word CODE .word GREET to have it say hello multiple times, so it doesn't seem to be that GREET leaves things broken somehow 10:36:19 Hmmm ... I was wondering if the problem was calling multiple words 10:53:11 --- quit: xyh (Remote host closed the connection) 10:54:42 dview: I'm not sure about your align operation in LITSTRING 10:58:18 --- join: xyh (~xyh@2001:250:3002:5550:6ea1:cc0f:bcb2:b187) joined #forth 11:07:12 --- quit: pointfree-w530 (Quit: leaving) 11:09:43 --- join: MrMobius_ (~MrMobius@50.141.75.15) joined #forth 11:11:36 I don't think that's it... but it is wrong 11:11:52 I should be calculating r2 after adding r0, not before 11:11:59 as it is, r2 will always be 0 11:13:40 what it's supposed to do is: add the length of the string to IP, then add ( newIP invert 3 and 1+ ) to it... which is also wrong. it needs another 3 and after the 1+ 11:15:00 (I meant r1 when I said 'adding r0', above) 11:15:45 (wait, no I didn't.) 11:16:09 It should be addr + 3 & ~3 11:17:56 --- quit: xyh (Remote host closed the connection) 11:18:23 http://minimaltype.com/11.txt has been updated 11:19:29 --- quit: MrMobius_ (Ping timeout: 272 seconds) 11:19:35 r2=~IP, r2++, r2&=3, IP+=r2. after the length of the string is added to IP. if you'll forgive the psuedoC 11:22:53 if the last two bits of IP are 11, I want to add 1. IP 3 and invert 1+ 3 and IP +! in forth. or optimized to IP invert 1+ 3 and IP +! 11:23:39 00 -> 0 (because 11 + 1 = 00), 01 -> 11 (10 + 1), 10 -> 10 ( 01+1) 11:24:36 Yeah, it seems to work, it just seems like more effort than ADD and AND 11:27:01 if IP is #111, and I add three, then I get #1010 when I only wanted #1000 11:27:39 what does the AND do in the ADD/AND method? 11:28:49 It masks off the low bits 11:28:54 --- join: xyh (~xyh@2001:250:3002:5550:6ea1:cc0f:bcb2:b187) joined #forth 11:29:31 oh, so always zero them 11:29:35 Yes 11:29:48 yeah, that would be less work :p 11:32:41 It looks like ARM has an instruction BIC which does AND NOT 11:38:11 --- quit: xyh (Remote host closed the connection) 11:44:29 --- join: Zarutian (~Adium@168-110-22-46.fiber.hringdu.is) joined #forth 11:46:44 --- quit: mnemnion (Remote host closed the connection) 11:49:07 --- join: MrMobius_ (~MrMobius@149.160.207.86) joined #forth 12:04:52 --- join: mnemnion (~mnemnion@c-98-210-219-91.hsd1.ca.comcast.net) joined #forth 12:08:51 http://minimaltype.com/11.txt has been updated. alignment's now: add length, add 3, bic 3 12:09:02 and the output is now: hello, hello, hello, Segmentation fault 12:09:22 bafflement intensifies. 12:12:14 what 12:12:18 it's getting out of alignment somehow 12:12:32 I noticed when I switched it to do WORLD three times, it segfaulted immediately 12:12:51 putting .align 4 in front of each, uh, colon definition, fixes the segfaults 12:15:35 I don't how a straight sequence of .words, or an immediately aligned ascii, causes subsequent .words to not be word-aligned 12:15:59 Check how .align works in the documentation 12:17:46 I assume that align n means next multiple of n but some work as next 2^n 12:17:58 Not that that should cause the problem you seem to have 12:20:48 yeah, .align behaves that way on arm, with gas 12:20:59 Which way? 12:21:33 it takes as "the number of low-order zero bits the location counter must have after advacement" 12:21:50 and actually, changing that to 2 does completely fix the segfaulting 12:21:55 with only the aligns I had originally 12:22:14 one at the beginning of the data section, and then an align after each litstring 12:22:23 That's because your litstring was aligning to multiple of 4 but the .aligns were 2^4 12:22:33 yeah... 12:22:37 it must have only ever worked accidently 12:23:01 Presumably depends on the padding data used by .align 12:34:27 --- quit: vsg1990 (Quit: Leaving) 12:45:24 --- join: ASau (~user@46.115.168.68) joined #forth 12:51:48 http://minimaltype.com/11.txt has been updated. thanks for the help :) I added some macros to make the 'forth' definitions a little more readable. 12:52:39 :) 12:56:52 Hmm... assembly listing. Again %) 12:58:51 C is portable assembler. Even JavaScript may be called nowadays as a portable assembler for a web! %) 13:00:05 funny thing about that, I'm learning arm asm because I figured it'd be easier to port x86 to arm than to deal with compiling gforth for arm 13:07:16 Well, you may be right with this approach :) 13:07:39 Gforth is ... mostly anti-Forth %) 13:07:52 it's that using C doesn't *automatically* give you a build system shaped like a fractal 13:08:42 dview: What do You mean? 13:10:21 I just mean that you can make a C forth that's very easy to compile. 13:11:37 does anyone here like gforth? seems it's a common punching bag. 13:12:00 --- quit: joneshf-laptop (Remote host closed the connection) 13:12:23 I like it. The android port is quite good, and I used to use it quite a lot on more typical linux systems. 13:12:50 :) I like it enough. I haven't seen it's source yet. 13:13:40 but it's remarkably deficient in some ways, in contrast with other forths like (IME) SwiftForth and lina 13:15:28 for example you can't drop build gforth and drop it in your home directory on a webhost, and have it work. it's set up to expect that it's been installed properly. meanwhile lina looks for a single file to load, and you can rebuild it with a different path. swiftforth looks in paths relative to the binary location, and that mostly only matters for LOCATE 13:16:00 Gforth is not so bad. Yes, it's C-based with GNU ideology... But, imagine, if it was Java-based! Enterprise ideology! XML everywhere! :) 13:16:09 and of course you can't build it on a webhost that doesn't give you a C compiler and tons of extra stuff like swig 13:16:38 yeah I've done java development on android, after ignoring the language for years, and it's shocking how much java is off in its own world, doing its own things. 13:26:05 --- join: saml_ (~saml@cpe-24-102-97-97.nyc.res.rr.com) joined #forth 13:32:21 started reading AvdH's yourforth.fas , which uses fasm for x86. he has a one-liner that just downloads fasm and uses it to build yourforth. with the note that, if gas had been used instead, the oneliner would involve a 1GB download 13:34:24 I'm using gas on android as kbox2 has a convenient distribution of gcc that includes it. but is there a light forth assembler like fasm for arm? asm.flatassembler.net doesn't actually have arm/linux binaries of fasm 13:37:43 alternatively, is there a document that can explain metacompiling and porting forths with forths? gforth even has an arm assembler that might be used. 13:38:38 I remember reading something a long time ago 13:41:14 There's this but I don't think this is what I read http://www.ultratechnology.com/meta.html 13:45:36 "MAF builds itself from a small kernel of 48 words and provides all the words from the Core word set together with 25 from extension word sets which are used in the building process." ftp://ftp.taygeta.com/pub/Forth/Applications/ANS/maf1v02.zip 13:45:57 ty, looking through those 13:53:27 --- quit: proteusguy (Remote host closed the connection) 14:03:08 --- quit: GeDaMo (Remote host closed the connection) 14:07:57 --- quit: MrMobius_ (Ping timeout: 272 seconds) 14:56:31 --- quit: true-grue (Read error: Connection reset by peer) 15:38:37 --- quit: nighty-_ (Quit: Disappears in a puff of smoke) 15:46:39 * Zarutian has ported eForth as it is built with using a few primitives in mind then you can add to it. 15:47:46 for fun I eliminated UM+ (calling, XOR, AND and SHIFTLEFT were needed though) 16:17:53 --- join: johnmark_ (~johnmark@c-73-51-235-57.hsd1.il.comcast.net) joined #forth 16:18:02 --- nick: johnmark_ -> JohnMarkM 16:26:16 --- join: joneshf-laptop (~joneshf@campus-043-038.ucdavis.edu) joined #forth 16:39:05 --- join: nighty-_ (~nighty@hokuriku.rural-networks.com) joined #forth 16:42:40 --- quit: nighty-_ (Remote host closed the connection) 17:01:19 --- quit: Zarutian (Quit: Leaving.) 17:51:31 --- quit: JohnMarkM (Ping timeout: 264 seconds) 17:54:18 --- join: JohnMarkM (~johnmark@c-73-51-235-57.hsd1.il.comcast.net) joined #forth 18:35:28 --- join: webstrand (~webstrand@adsl-76-235-172-180.dsl.klmzmi.sbcglobal.net) joined #forth 18:43:49 --- quit: saml_ (Remote host closed the connection) 19:12:18 --- quit: joneshf-laptop (Remote host closed the connection) 19:28:21 --- join: atommann (~atommann@58.251.2.94) joined #forth 19:38:05 --- join: Yunfan-phone (~jyfl987@211.140.18.111) joined #forth 19:41:01 --- join: darkf (~darkf___@unaffiliated/darkf) joined #forth 19:58:42 --- join: joneshf-laptop (~joneshf@98.208.35.89) joined #forth 20:26:16 --- quit: JohnMarkM (Quit: Leaving) 20:33:43 --- quit: webstrand (Ping timeout: 255 seconds) 22:06:58 --- quit: Yunfan-phone (Ping timeout: 245 seconds) 22:09:51 --- join: Yunfan-phone (~jyfl987@183.247.164.181) joined #forth 22:28:46 --- quit: atommann (Ping timeout: 256 seconds) 22:44:08 --- quit: Yunfan-phone (Ping timeout: 252 seconds) 22:46:32 --- join: Yunfan-phone (~jyfl987@183.247.164.181) joined #forth 22:54:28 --- quit: Yunfan-phone (Ping timeout: 245 seconds) 22:57:18 --- join: Yunfan-phone (~jyfl987@183.247.164.181) joined #forth 22:57:19 --- quit: Yunfan-phone (Client Quit) 23:06:35 --- join: proteusguy (~proteusgu@49.230.121.145) joined #forth 23:06:35 --- mode: ChanServ set +v proteusguy 23:11:51 --- quit: ASau (Ping timeout: 256 seconds) 23:15:29 --- quit: proteusguy (Quit: Leaving) 23:25:28 --- join: atommann (~atommann@58.251.2.94) joined #forth 23:59:59 --- log: ended forth/15.04.20