2021-06-20 00:00:13 maw 2021-06-20 05:23:23 b 2021-06-20 10:35:08 hey guys 2021-06-20 10:35:16 i made it to liber.chat : D 2021-06-20 10:35:55 ApleG: congrats 2021-06-20 10:36:44 im looking to make a forth (interpeter? compiler?) on a ti84plus calculator in asm 2021-06-20 10:38:01 Shalom 2021-06-20 10:41:37 that sounds like a really fun project. 2021-06-20 10:58:45 brainfunnel, this is my first time looking at forth 2021-06-20 10:58:49 i dont know the most about it 2021-06-20 10:58:59 ive read its compiled and interpreted but what does that mean? 2021-06-20 11:06:17 ApleG: I'm also very new to forth. from what I understand, forth is interpreted. but it has two interpreters, an inner and outer one. the inner interpreter is able to compile new words into 2021-06-20 11:08:17 what does the outer interpreter do? 2021-06-20 11:09:02 what does it convert the sub routines into? 2021-06-20 11:09:08 sincei know it doesnt use bytecode 2021-06-20 11:10:42 the outer interpreter afaik is what takes input and executes it 2021-06-20 11:12:22 ApleG: http://galileo.phys.virginia.edu/classes/551.jvn.fall01/primer.htm what I read to get up to speed on how forth works 2021-06-20 11:12:38 thanks, will check it out 2021-06-20 11:12:43 and I've been peeking at other resources to try and get a handle on how the dictionary is structured 2021-06-20 11:12:51 any ideas for any cool spins to spice up my project? 2021-06-20 11:13:17 hmm, i think the project will shape itself as you work on it to the specs you've got in mind. 2021-06-20 11:13:57 alright, how long do you think it could take? 2021-06-20 11:15:45 not sure! it seems you can spin up a forth to bootstrap itself with in, well, however long you feel like. there's bootstrap forth that's like 400loc of C + the mental capacity required to un 2021-06-20 11:16:18 if you're doing a forth in assembly, I'd suggest looking at jonesforth. the thing is literate x86. I haven't sat down and read it as I should, but it's supposed to be very good. 2021-06-20 11:17:16 okay thanks 2021-06-20 11:17:25 i think my calculator uses z80 asm 2021-06-20 11:17:34 luckily ive worked with similar asm on the gameboy :p 2021-06-20 11:18:08 oh thats awesome you've done gameboy stuff. im sure there's a z80 forth you could study out there too. 2021-06-20 11:20:16 "400loc of C + the mental capacity required to understand why it uses sed in the makefile" 2021-06-20 11:20:17 lol 2021-06-20 11:20:31 why tf does it use sed in the makefile 2021-06-20 11:21:04 unix programmers will literally use sed in their makefiles rather than going to therapy 2021-06-20 11:22:45 nihilazo: i have no clue frankly. it does a really wacky thing to build the dictionary. it has a macro for defining words and their associated symbols and then when it builds the dictionary 2021-06-20 11:23:23 you'd have to read it https://forth.neocities.org/bootstrap/ 2021-06-20 11:24:00 idk if it's a prank or something. there's no contact information anywhere for this thing. 2021-06-20 11:24:05 but it works 2021-06-20 11:29:38 ApleG: which calculator do you have? 2021-06-20 11:41:58 ti-84 plus 2021-06-20 11:43:43 ApleG: well, you're in luck1 2021-06-20 11:43:46 luck! 2021-06-20 11:44:07 I wrote a Forth that runs on the TI-84+ https://github.com/siraben/ti84-forth 2021-06-20 11:44:21 Or even to replace to OS with a Forth-based one https://github.com/siraben/zkeme80 2021-06-20 11:44:49 direct download link for the Forth: https://github.com/siraben/ti84-forth/releases/download/1.1.1/forth.8xp 2021-06-20 12:22:59 siraben, does it have floats? 2021-06-20 12:58:29 MrMobius: "Note that floating point routines are commented out by default to save on space"; it has them, but disabled by default 2021-06-20 13:12:48 yeah, it uses the TI-OS's floating point stack 2021-06-20 13:12:56 good enough for basic stuff that I've tried 2021-06-20 13:13:24 but you cannot visualize the FP stack, the commented out words are just doing syscalls 2021-06-20 13:21:46 siraben, cool 2021-06-20 13:35:06 Hmm. The bridge seems down. 2021-06-20 13:35:22 siraben: Yes, it is indeed horribly hot down here right now. 2021-06-20 13:36:00 I have to be careful about how I exercise - I had a minor "heat stroke" like episode back around 2010, and ever since the heat tends to come upon me quickly after I've been out a while. 2021-06-20 13:36:20 I have to be careful not to have that happen when I'm well away from home - it can be hard to get back. 2021-06-20 13:36:44 And the worst thing I can do is sit down to rest - if I do that I can hardly stand back up without it getting difficult. 2021-06-20 13:36:51 KipIngram: you do have a water bottle with you? 2021-06-20 13:36:58 Oh yes. 2021-06-20 13:37:10 And I bought a cooling vest, and a neck wrap I can pack ice in. 2021-06-20 13:37:14 Those things help a lot. 2021-06-20 13:38:04 I've managed to exercise regularly through this, at least "reasonably." 2021-06-20 13:38:18 Today is an off day, though. 2021-06-20 13:38:36 It's paying off - my weight is down to about 194, which I'm pretty happy about. 2021-06-20 13:38:47 A year ago or so I weighed 235-240. 2021-06-20 13:39:03 I regard 180-ish as my "best weight." 2021-06-20 13:39:35 you have a temperture app in your phone? it seems that they are putting more and more sensors in these things nowdays 2021-06-20 13:39:56 pounds or kgs? 2021-06-20 13:40:23 Hahahahahahahah. 2021-06-20 13:40:26 POUNDS. 2021-06-20 13:40:35 Thank god... 2021-06-20 13:43:22 So last winter we had that god awful cold snap, and everyone lost their electricity. 2021-06-20 13:43:57 Now we're having this hot spell, and sure enough a few days ago the "authorities" requested that everyone conserve electricity. :-| 2021-06-20 13:44:23 Those guys have always bragged about how "Texas has its own independent power grid." Well, given how the winter went I don't think they have anything to brag about. 2021-06-20 13:44:28 They totally screwed the pooch. 2021-06-20 13:45:17 After the freeze I said I was going to wait for summer and then shop for a generator - I probably ought to start looking around for that now. 2021-06-20 13:45:31 Immediately after the freeze was a bad time - it was very much a seller's market then. 2021-06-20 13:47:13 wasn't Texas freezing a few months ago, now it's under a sever heatwave? 2021-06-20 13:47:17 severe* 2021-06-20 13:47:47 oh just read the chat, yeah the weather's crazy these days 2021-06-20 16:33:47 The standards don't dictate how the inner and outer interpreter should work right? 2021-06-20 16:34:55 Not certified on the outer, but definitely not in the inner 2021-06-20 16:37:49 the standards are so surprising to me. they're like 80% optional word lists and only 20% standard lol. 2021-06-20 16:37:50 Unrelated, I made a quick test with Z80 for direct, indirect and subroutine threaded code. It seems to be the subroutine method is faster than others at the cost of a bit increased c 2021-06-20 16:39:19 After seeing the overhead of stack operations, I was having second thoughts about: "what about a Forth without stacks?" it made me giggle. 2021-06-20 16:39:36 >I wrote a Forth that runs on the TI-84+ https://github.com/siraben/ti84-forth 2021-06-20 16:39:36 This is actually what partially inspired me, I was meaning to start a fun project 2021-06-20 16:39:53 Never realised you made an OS also, I thought I'd do :p 2021-06-20 16:40:11 I've done direct and subroutine implementations; I prefer to use subroutine if code density isn't a concern as it allows for more flexibility in that you can easily inline machine code where it ma 2021-06-20 16:40:53 siraben, the project is really cool but i personally dont find it interesting creating something already out there, any ideas for twists which I could add to it? 2021-06-20 16:41:44 "inline machine code": that's what I was thinking too, and it overall seems to be simpler. But switching stack pointer between parameter and return stack is annoying. 2021-06-20 16:41:48 neuro`: wordless forth when 2021-06-20 16:41:51 whitespace w/ stacks 2021-06-20 16:45:22 That sounds like it would be far from practically usefull, but Forth execution model without stack still somehow almost makes sense to me (not sure how exactly). Before I discovered 2021-06-20 16:45:55 Even though I'm more at ease with using stack now, I figured it's more about how to avoid using stack when writing Forth. 2021-06-20 16:46:49 Perhaps the stack is not at the center of what I find interesting about Forth, but I observe that it's the most frustrating and annoying, and also off-puttin gaspect of Forth for mos 2021-06-20 16:48:17 to me the stacks very logically follow from everything else about it. but I don't have much experience *using* it it's just conceptually balanced in my mind. 2021-06-20 16:50:50 I like the low level simplicity of it, that it doesn't require layers and layers of abstraction and tooling and other peripheral software bloat to make useful things with a computer. 2021-06-20 16:53:58 Not sure what date this is from, but this interview with Chuck Moore was nice to read: https://www.oreilly.com/library/view/masterminds-of-programming/9780596801670/ch04.html 2021-06-20 16:56:01 > "Chuck: I’ve never been in favor of software patents." 2021-06-20 16:56:37 Funnily I came across a list of patents by Charles Moore when I was searching for efficient use of registers to emulate stack, and there were several patents. 2021-06-20 16:56:45 Although I think they were hardware patents. 2021-06-20 16:58:09 > Chuck: Compilers are probably the worst code ever written. They are written by someone who has never written a compiler before and will never do so again. 2021-06-20 16:59:30 chuck sure has some spicy programming opinions. like the stuff he wrote about being able to write a million line C program in only 1% of that in colorforth 2021-06-20 17:00:54 I think he's making hidden/inside jokes sometimes, and doesn't care if the joke doesn't go across. 2021-06-20 17:01:47 I wonder if that one was meant to include the lines of code required to make C compiler chain work (the c preprocessor, the compiler, the linker, etc...). 2021-06-20 17:02:26 I think it's more in terms of precisely defining the problem, then solving just that 2021-06-20 17:02:37 "Many simple programs encourage thoughtful design of each. And requiring perhaps only 1% the code that would otherwise be written." 2021-06-20 17:06:33 I tend to agree with the compilers opinion. They are kind of like GUI systems, they require tons of code under the hood, so that the user (in the case of language compilers, the prog 2021-06-20 17:08:05 I like prefix and postfix a lot but the more I look at infix the less I like it lol 2021-06-20 17:08:36 I read a paper on that topic recently, let me see if I can find it. 2021-06-20 17:09:35 https://hashingit.com/elements/research-resources/1994-03-ForthStack.pdf 2021-06-20 17:10:26 "The few remaining mathematical expressions— e.g., the quadratic formula—can be computed, but require a more processoriented description. In such a description, we must first mak 2021-06-20 17:10:26 trivial task while greatly increasing the costs for everything else." 2021-06-20 17:10:34 The last sentence was funny. 2021-06-20 17:15:11 I was thinking of comparing the prefix, postfix and infix notation with respect to natural languages a few days ago. Incidentally my native language is postfix (like Forth), but Engl 2021-06-20 17:17:51 But it's such a trivial problem that trying to solve this with the compiler/language is unnecessary complexity. All programmers get fluent with any syntax you throw at them. I think 2021-06-20 17:18:50 s/any syntax/any of the three notations/ 2021-06-20 17:46:55 ApleG, what about making a stack based OS like HP calculators have that runs on a TI? 2021-06-20 17:47:12 I guess I can mess with the OS stuff 2021-06-20 19:04:32 maw 2021-06-20 19:30:29 anybody seen the Uxn stuff by 100 rabbits? 2021-06-20 19:47:56 I've looked at it a little 2021-06-20 22:14:02 > siraben, the project is really cool but i personally dont find it interesting creating something already out there, any ideas for twists which I could add to it? 2021-06-20 22:14:33 sure, you can build Forth programs on top of it, there's a bunch of interesting things that you can do with reading/writing RAM and the I/O port 2021-06-20 22:14:49 maybe a Forth in BASIC would be possible (but very slow) 2021-06-20 22:23:40 the first Forth I wrote was in BASIC... 2021-06-20 22:54:01 maw 2021-06-20 22:58:04 maw 2021-06-20 23:52:13 crc: haha 2021-06-20 23:52:28 TI-BASIC is terrible though 2021-06-20 23:53:51 I had a ti83 in college, but didn't do much coding on it 2021-06-20 23:54:35 The TI-84+ is the only 8-bit system I've programmed on