2023-09-13 01:20:01 KipIngram: Forth dictionary doesn't really play well with growable data, right? Something like `A←1 0 1 ⋄ A←1e6⍴A` would probably need to create a whole new A. 2023-09-13 01:22:45 I wonder if it should be turned on its head. Probably easier to emulate a stack as an APL array than the other way around. 2023-09-13 01:23:58 Should we, instead, be thinking how bootstrap an APL minimalistically a la Forth spirit? 2023-09-13 06:36:46 I'm not talking about the data - talking about the header. 2023-09-13 06:37:43 I'll need some kind of "management of RAM I'm sure. 2023-09-13 06:38:16 I was talking there just about the name. 2023-09-13 06:38:51 I feel sure I'll need a heap of some kind. 2023-09-13 06:44:04 a heap of trouble? 2023-09-13 07:00:24 Heh. Yeah, likely. :-) 2023-09-13 07:01:46 Anyway, I think being "type aware" and having the kind of dynamics I expect from a scientific computing facility will require a heap, and the stack will only ever contain pointers into the heap. And likely named variables will also only hold pointers. 2023-09-13 07:02:55 You wouldn't technically have to handle integers that way - they could still be "native" integers, but my guess is that a totally consistent approach over all data types will be desirable. 2023-09-13 07:08:37 historically Forth used kebab-case or lisp-case? e.g. `1 2 3 my-word` ? 2023-09-13 07:21:13 Yeah 2023-09-13 07:21:41 KipIngram: I suppose I'm not a novice but I'm not an oldie or an expert 2023-09-13 07:22:19 Part of reason I seem more knowledgeable is because Forth is simple and approachable 2023-09-13 10:06:16 rendar: I don't really associate that sort of "case discussion" with Forth very much. The main naming advice I've seen is "try to choose names that lead you to a 'lexicon' for your application." 2023-09-13 10:06:42 Running your application should be almost like "talking about the application." 2023-09-13 10:06:56 So you'd use words that were already familiar in that particular area and so on. 2023-09-13 10:07:10 Make the application seem intuitive to people familiar with the field. 2023-09-13 10:07:43 Personally I tend toward short names, all lower case, and often feature symbols. 2023-09-13 10:08:12 I like an almost mathematical notation. 2023-09-13 10:08:31 KipIngram, yeah i agree 2023-09-13 10:09:08 So I'm still watching Wildberger videos. He's going through Bernoulli's approach to summing powers, which has use in evaluating slowly converging power series and so on. 2023-09-13 10:09:21 It feels like another topic that "should be taught routinely and isn't." 2023-09-13 10:09:34 I've really begun to notice how "minimalist" our public education has become. 2023-09-13 10:09:43 They just set a really, really low bar. 2023-09-13 10:09:56 https://i.imgur.io/mKyVTnL_d.webp?maxwidth=640&shape=thumb&fidelity=medium 2023-09-13 10:10:01 ahahahahaha 2023-09-13 10:10:37 My cat is nice too. 2023-09-13 10:11:28 i did not know my lang supported emojis 2023-09-13 10:11:33 We have two cats and two dogs, and I like all of them, but I'm just particularly sweet on one of the cats. 2023-09-13 10:11:42 :o 2023-09-13 10:11:47 i want a cat 2023-09-13 10:11:53 Cats are awesome. 2023-09-13 10:12:30 He had a whole pile of medical difficulties his first couple of years - I think taking care of him through all that made me feel more strongly toward him. 2023-09-13 10:12:49 note how the word redefinition affects other words btw 2023-09-13 10:13:31 And the story of how we got him is really good. My wife found him on the neighborhood Facebook page. A guy who works in downtown Houston (like 30 - 40 minutes away) left work one day and headed home on the interstate. 2023-09-13 10:13:34 It was winter. 2023-09-13 10:13:46 After a few minutes he started to hear mewling / screaming. 2023-09-13 10:13:58 💦 returned a list, but later was redefined to return 1 2 3 2023-09-13 10:14:02 The kitten had crawled up into his truck engine, no doubt because it was warm. 2023-09-13 10:14:09 and was still there when the guy started driving. 2023-09-13 10:14:18 It's a miracle he survived it. 2023-09-13 10:14:29 oh did not change it's definition, but just uses the last definition as the other no longer exists 2023-09-13 10:14:32 Anyway, it got hot and he started to cry - his little foot pads were burned etc. 2023-09-13 10:14:45 We took him in, and he's been terrific. 2023-09-13 10:14:48 Apollo. 2023-09-13 10:15:16 He's almost four. 2023-09-13 10:15:24 it's a bit sad actually 2023-09-13 10:16:02 that's why you say you are sweet with this one 2023-09-13 10:16:15 Anyway, the other education thing this made me think of was dimensional analysis, which just really isn't taught SERIOUSLY in engineering curricula anymore. 2023-09-13 10:16:33 The may mention it, but what they're talking about is in no way as sophisticated as the subject gets. 2023-09-13 10:16:55 I found a good paper on it one day and all while reading it I was just thinking WHY DO THEY NOT TEACH THIS????? 2023-09-13 10:17:24 It's almost as though the attitude is "If we can find a way to avoid it, we will." 2023-09-13 10:21:13 i wouldn't expect too much from university 2023-09-13 10:26:53 I think there's an aversion these days to having "differences" show between the best and worst students. They want a "homogeneity." 2023-09-13 10:31:45 i wonder about representing statements as objects 2023-09-13 10:31:58 like you have a loop object 2023-09-13 10:32:09 or iterator object 2023-09-13 10:40:18 That HP RPL lets you store code strings in variables. 2023-09-13 10:40:34 In fact that seems to be its primary way of storing code. 2023-09-13 10:50:31 i use lists as code 2023-09-13 10:50:43 like a colon word 2023-09-13 10:51:10 i'm wondering lately if making ( execute actual lisp code 2023-09-13 10:51:34 i could have a way to get an element from the stack 2023-09-13 10:51:55 and it would use the same environments so variables would be available there 2023-09-13 10:52:40 i always wanted to have a word like 'lisp' that takes a list and executes it as lisp code 2023-09-13 10:53:06 but optional arguments and alike make it a bit hard to blend with a stack based lang 2023-09-13 10:53:14 well it's not 2023-09-13 10:53:39 a lot of languages use a stack internally 2023-09-13 11:05:39 KipIngram: This is a thing I've heard of before, cats crawling into enginers 2023-09-13 11:05:44 engines* 2023-09-13 11:05:53 Apparently if you park with wheels straight they can't get in (as easy) 2023-09-13 12:07:42 Interesting. Anyway, that guy's family didn't feel like they could add a cat, so they posted and my wife just saw him and decided we needed him. We had just lost our family dog a few months before - she first said "No more pets," but I think by the time of these events she'd gotten through part of the mourning process. 2023-09-13 12:09:49 cats aren't pets, they have staff 2023-09-13 12:14:50 :-) 2023-09-13 12:14:55 Or maybe we're their pets. 2023-09-13 12:15:04 They graciously share their home with us. 2023-09-13 12:15:26 My wife read me a joke once. I probably won't get it quite right, but it ran like this: 2023-09-13 12:16:14 Dog: "They feed me. They take care of me. They play with me. They must be gods." Cat: "They feed me. They take care of me. They play with me. I must be a god." 2023-09-13 17:43:16 Oooo. Dimensional analysis. It dawned on me not too long ago that it's essentially a kind of type inference. 2023-09-13 17:44:19 I read about someone who, brilliantly, goes a step farther and elaborates beyond the standard types/units. 2023-09-13 17:56:28 so i guess that also words like "ispos?" "isnan?" ">0" "isnil?" should consume the value and put a bool in the stack, right? 2023-09-13 18:00:13 0 or -1 traditionally 2023-09-13 18:06:17 I mean, lots of my professors stressed the importance of checking unis, using units working out as a way of having confidence in your answer, and that kind of thing. Before finding that paper I'd have told you that's what dimensional analysis *was*. But it turns out that hardly scratches the surface. 2023-09-13 18:06:52 You can simplify the numerical complexity of a problem (for simulation purposes and what not) by systematically reformulating in terms of dimensionless parameters, etc. I was just blown away. 2023-09-13 18:08:18 xelxebar: You ever hear of bond graphs? 2023-09-13 18:42:55 Never heard of them! Related at all to dimensional analysis? 2023-09-13 18:58:52 super dimensional analysis, meanwhile, looks into the properties of Macross fortresses 2023-09-13 19:46:22 Not specifically, but... a little. bond graphs are "domain independent" method for expressing the dynamical equations of a system. They're particularly good when you have pieces in a system from different areas of technology, like electrical circuit mixed with pneumatics mixed with mechanical stuff etc. 2023-09-13 19:47:02 The idea is that you don't have voltage and current, force and motion, etc. You have "through variables" and "across variables." Through*across is always power, regardless of the underlying tech. 2023-09-13 19:47:37 It's really just the usual business of writing down differential equations from a model of a system, just with care given to not 'focus in' on a particular type of system. 2023-09-13 19:48:02 The dimensional analysis discussion made me think of it, since it's a sort of "specific units independent" thing. 2023-09-13 19:48:58 Voltage is an across variable, so is pressure. Current is a through variable, so is flow rate. 2023-09-13 19:49:42 I've never actually done much with it, but I learned about it from a colleague in the UT Austin research lab I worked in in the early 1990's. 2023-09-13 19:50:08 I just always thought it seemed like a cool idea. 2023-09-13 20:30:42 Wait. You're located in Texas? I grew up in Corpus Christi. 2023-09-13 20:51:54 Oh, cool. 2023-09-13 20:52:24 Yes, I live a bit west of the metro Houston area. Technically in a little town called Fulshear, but the other nearby small town Katy is a lot more well known. 2023-09-13 20:52:40 I lived in Austin from 1981 through 1996. 2023-09-13 20:53:00 Went there in 1981 to go to school. 2023-09-13 20:53:06 I grew up in Alabama. 2023-09-13 20:57:41 It's been several years since I've been down to Corpus. 2023-09-13 20:58:01 Long enough drive to "notice," you know? 2023-09-13 20:59:15 Ugh. You know, I actually do see Norman Wildberger's points re: his concerns about irrationals. But some aspects of it seems overly pedantic to me. 2023-09-13 21:00:02 He takes hte position that not just ANY quadratic ax^2 + bx + c = 0 can be factored into (x-r1)(x-r2)=0 form, because r1 and r2 don't necessarily exist (i.e., if they're irrational). 2023-09-13 21:00:17 But... I can get as close them as I want to, without limit. 2023-09-13 21:01:03 I think he should just propose that we replace ax^2+bx+c=0 with |ax^2+bx+c| Because you can ALWAYS find rational solutions that satisfy that. 2023-09-13 21:01:47 That makes it a completely rigorous problem AND still leaves you able to find solutions to any equation. 2023-09-13 21:04:12 I mean, that's basically how we approach it anyway. Because if r1 and r2 are irratoinal then you never write them down and you never store them in your computer's RAM. 2023-09-13 21:04:25 We're "effectively" solving the epsilon problem as it is. 2023-09-13 21:04:51 So this would just be saying "state the problem the way we actually can solve it." Instead of leaving to just kind of hum and look the other way. 2023-09-13 21:05:02 leaving "us" 2023-09-13 21:13:17 is there a common forth word to select from two values? 2023-09-13 21:13:40 : FOO IF SWAP THEN DROP ; 2023-09-13 21:25:15 MrMobius: in 2016, Zarutian suggested a :? word: : :? ( conseq altern bool ) NOT IF SWAP THEN DROP ; 2023-09-13 21:26:15 that's the only thing I see in the logs matching this 2023-09-13 21:29:15 MAX and MIN usually are around as special cases of that. 2023-09-13 21:30:59 That seems like something easy to do if you code a word that "contains" your criterion. Somehow passing a generic criterion in to a general purpose word seems harder. 2023-09-13 21:36:03 Oh, I switched my phone's calculator ap from WP34S to Plus42. 2023-09-13 21:36:44 https://www.thomasokken.com/plus42/images/plus42-iphone.png 2023-09-13 22:17:53 KipIngram: Dang. My parents now live in Huntsville, which sounds like it mike be close to you. 2023-09-13 22:30:22 Yes, Huntsville is an hour or so north on I45. One of my daughters went to college there. 2023-09-13 22:30:59 She's in grad school in North Carolina now. 2023-09-13 23:16:31 That's nuts. My mom worked for Sam Houston for 10+ years in admissions. Not unlikely that your daughter spoke with her. 2023-09-13 23:19:03 small something something world something after all