2024-06-10 01:03:47 zelgomer, dunno, rand.pop_alphabet is used in python, and somewhere else 2024-06-10 01:50:44 if you like _ then use _ 2024-06-10 01:52:11 i'm used to it because i'm primarily a c guy, but tbh when i really think about it, i tend to convince myself that i prefer - when it's an option 2024-06-10 02:56:50 You know, I knew the joysticks on game controllers were analog inputs, but I didn't realize that the lower triggers on the front were as well. 2024-06-10 11:38:41 The terminal stuff has been so much in C damn. I mean it explains since the origin was with the UNIX. 2024-06-10 12:03:06 What do you mean 'so much in C'? 2024-06-10 12:04:46 Every library seems to have been in C. 2024-06-10 12:08:14 Oh yeah 2024-06-10 12:08:29 C is the defacto standard systems language 2024-06-10 12:08:32 That and C++ 2024-06-10 12:08:44 So all low-level OS / systems stuff is in C or C++ 2024-06-10 12:09:01 Yeah, but I feel they could be done better in Forth, no? 2024-06-10 12:09:04 Doesn't mean you can't use Forth 2024-06-10 12:09:57 The ABI on all platforms is defined for architectures so you can use any language, even assembly, with the system functions 2024-06-10 12:10:02 Even if they're implemented in C 2024-06-10 12:10:21 C is a good way of presenting that interface 2024-06-10 12:10:33 If Forth is really a good choice for the system then that's on Forth programmers to prove by implementing a system 2024-06-10 12:11:06 Hmm, so I should use the C ABI. I guess gForth already does have C FFI 2024-06-10 12:12:05 You don't need to use the C ABI for all your words, by the way 2024-06-10 12:12:11 Just need a FFI 2024-06-10 12:12:28 Like gforth yeah 2024-06-10 12:13:57 Hmm would reimplementation be of anything better? 2024-06-10 12:19:38 Depends what you're trying to do 2024-06-10 12:19:49 If you want to write applications for an OS, then reimplementing the libraries seems a bit pointless 2024-06-10 12:20:06 As the OS is sort of like a big library anyway 2024-06-10 12:21:00 But you can do what you want, most of us are just doing this recreationally 2024-06-10 12:28:31 Hmm 2024-06-10 12:51:59 divya: Forth could do all of that, but you're biting off an awful lot of work. I think part of the problem is that the really ideal approach is a completely different setup (i.e., not just "implement the existing interface in Forth"), so when you're done with it what do you have? You've got a terminal interface, but nothing that knows how to talk to it. 2024-06-10 12:52:27 If you do emulate the current interface to it all, then you're not really doing things the way Chuck says to - you're "overdesigning" to some extent. 2024-06-10 12:52:38 Not solving the problem in the simplest possible way. 2024-06-10 13:14:17 Well you can bind to C interface or define another binary interface that's easy to port to different platforms 2024-06-10 13:14:49 But defining that tastefully is not too easy 2024-06-10 13:25:11 KipIngram: That seems fair. 2024-06-10 14:47:54 what language a library is written in shouldn't matter so much to you, what matters is the abi. if you're targetting a platform with a c ecosystem, then it makes sense to deliver your lib with a c abi. 2024-06-10 15:16:57 I am just targetting to make some applications for the UNIX/Linux terminals mostly 2024-06-10 15:20:58 yeah, sorry, i meant the royal "you". what i was trying to say was that yes, libraries you find on unix-like OSes should have C abis regardless of what language they're written in. it is the native and lowest common denominator interface that all applications can bind with. 2024-06-10 15:29:48 Indeed. 2024-06-10 16:05:30 I'm hoping someday to build a system from scratch (processor in FPGA, my own graphics and storage hardware, etc.) And part of that will be to write all the software, so I'd be doing some sort of terminal package at some point, in Forth. And then I'd need to write the apps that use it. 2024-06-10 16:05:43 I probably won't even try to start, other than thinking about it, until I'm retired. 2024-06-10 16:06:11 Obviously such a thing won't rival modern processors in speed, but if I can get it "good enough to pleasantly use," for a variety of activities I'll be really happy. 2024-06-10 16:06:22 how close are you to retirement? 2024-06-10 16:06:26 Doing IRC would likely be an early application, since it's console. 2024-06-10 16:06:42 I'm 61. I'm thinking 5-6 more years. 2024-06-10 16:57:57 KipIngram, if are you even planning a retirement trip in Italy let me know! :) 2024-06-10 17:02:22 :-) I will. 2024-06-10 17:02:31 There are a few places I'd like to see potentially. 2024-06-10 17:02:41 which ones? 2024-06-10 17:02:55 Historically significant first world countries? 2024-06-10 17:03:01 Italy would qualify. 2024-06-10 17:03:09 cool 2024-06-10 17:04:01 we can eat the best pizza + pasta you ever had in your life and test my Forth! 2024-06-10 17:06:32 :-) Sounds groovy. What part of the country do you live in? 2024-06-10 21:14:56 Pizza, pasta and forth, think I'll invite myself along to that