2025-02-17 00:13:29 crc: Is there a graphics demo that uses ilo-x in the standard konilo distribution? 2025-02-17 00:19:45 Also has the 3D stuff gone anywhere, do you want a second (or third?) pair of eyes on that? 2025-02-17 01:38:40 old (dynamically-scoped shallow-bound) Lisps had one stack per variable 2025-02-17 10:02:50 It's really easy to create a stack for a given task, so I do often create a stack when it makes sense 2025-02-17 10:02:58 And often stacks make sense 2025-02-17 10:03:35 But if you can put it on parameter or return, then it makes more sense to put it there, so e.g. QUIT/ABORT work 2025-02-17 12:40:46 veltas: there are a couple of small test programs (I think in blocks 653 & 654) 2025-02-17 12:41:14 I have a few others that will be added to the example blocks in the near future 2025-02-17 12:41:46 3D stuff has been on pause for a while; my son is doing most of the work on that, and he's been busy with other things lately 2025-02-17 15:55:59 crc: I'm slightly interested in doing an SDL port of ilo-x.c and/or milo-x.c 2025-02-17 15:56:06 Do you use milo a lot? 2025-02-17 16:06:22 about half the time 2025-02-17 16:11:17 I generally prefer to use one of the simpler implementations unless I know I'll need to be switching between activities frequently 2025-02-17 16:37:47 I was looking at kilo ( https://github.com/antirez/kilo ) and thought that maybe integrating a forth with an editor could be very neat, not exactly sure what it'll end up as -- ideas or suggestions? Even "don't do it" is fine :) 2025-02-17 16:39:22 IIRC they talk about an editor in Starting FORTH and I'll read it after food 2025-02-17 16:40:52 traditionally forth had a block editor 2025-02-17 16:50:52 user51: I've done that in the past; it was fun to work on 2025-02-17 16:52:34 Yes, block editors are fun, and actually can be surprisingly usable. 2025-02-17 16:52:52 I've done both line and screen versions. 2025-02-17 16:54:46 Most recently I've started beginning with a word led or ledit (line edit) that gets a lightweight wrapper around it to make EXPECT (which gets wrapped to make QUERY), but underneath that light wrapper it works in a way that makes it really easy to put it in an outer loop that handles vertical cursor k eys to build a screen editor. So led pretty much boxes up everything you need for line editing. 2025-02-17 17:01:47 Actually though, since someone mentioned SDL, I think that handling text fields in SDL will be quite different from the usual console input operation, so the code structure would likely be fairly different too. I can imagine having numerous text fields on screen at once, and you'd be able to click around among them. So instead of putting parameters on the stack I think each of those would likely 2025-02-17 17:01:49 have its own "internal state." 2025-02-17 17:02:35 And I guess there would be someway to indicate you were "done" with one, or with a bunch, or whatever suited the application. 2025-02-17 17:18:37 Well I was looking at adapting the ilo-x implementation 2025-02-17 17:21:41 veltas: http://fossils.retroforth.org:8000/ilo/file?name=vm/ilo-sdl-1bpp.c&ci=tip was my attempt at this (note: I'm not good with SDL), bas 2025-02-17 18:03:31 Thanks I'll have a look 2025-02-17 18:03:36 bas? 2025-02-17 18:49:03 sorry, was an incomplete posting; "basic tests of the implementaton worked, but it doesn't have good performance" 2025-02-17 18:56:37 Yes that's how it seems, runs but is slow 2025-02-17 18:57:02 Well that's a bit of fun to profile and optimise it then 2025-02-17 19:20:54 Ugh. The more I learn about Wayland the less I like it. 2025-02-17 19:31:31 KipIngram: To me, Wayland is in the same place as systemd. I've seen lots of discussions about them but I sure as heck don't know what to believe. 2025-02-17 19:32:19 My basic beef is that as far as I can tell Wayland just won't let me tell it what I want and give me exactly that. 2025-02-17 19:33:01 My impression was that maybe it'll let me maximize or minimize a window, but it won't let me say "I want my window X wide and Y tall and with it's top left corner right HERE." 2025-02-17 19:33:19 Precisely. 2025-02-17 19:34:24 KipIngram: And I'll be frank, I don't even know what they do, or don't, or how they compare with what they're replacing. I get the feeling that if I dig into it I'll get lots of technical arguments which can be extremely fun and rewarding if done properly, but they can also quite often miss the bigger picture. 2025-02-17 19:40:01 user51: You're right about the bottles of beer Forth program 2025-02-17 19:40:19 You posted a while ago and said it was too factored 2025-02-17 19:40:26 The best I can figure they're twisted up over the possibility that someone might open a window right on top of another window and middle-man the user's input. 2025-02-17 19:40:54 But I have to wonder if that's actually something that has been a widespread problem with X (which will let you do these things). 2025-02-17 19:41:09 It is a problem when it happens by accident in X and Windows 2025-02-17 19:41:27 It's a thing that's been abused by viruses in Windows (and X probably too, but obviously less viruses target X) 2025-02-17 19:42:02 Why do you want to programmatically move the window? 2025-02-17 19:42:21 It sounds like in Wayland if you want to do that you need to ask the window manager nicely 2025-02-17 19:42:30 I first ran into this when tinkering with SDL2, with an eye toward eventually linking it into my Forth. 2025-02-17 19:42:43 I want to own the whole screen and carve it up precisely the way I please. 2025-02-17 19:43:28 Just in the name of working at the lowest possible level, like I often do. 2025-02-17 19:43:41 I guess you'd need to write a window manager in wayland's world 2025-02-17 19:44:03 Which makes sense because what you're describing could be a window manager 2025-02-17 19:44:31 Same as I do with the keyboard currently - my whole termios dance is basically me saying "get out of my way and give me the KEYBOARD - not the keyboard with a convenience layer on top of it." 2025-02-17 19:45:20 It actually still has a convenenience layer - just as thin as I could make it. If I could really have my way I'd just get scan codes and "up/down" events. 2025-02-17 19:45:22 veltas: Yeah, my main issue with that kind of factoring is that it requires the programmer to string everything correctly, and that's on top of making sure the arguments on the stack are passed in the right order. 2025-02-17 19:46:31 Honestly I've got a lot of complaints about that code 2025-02-17 19:46:43 It's just harder to read than if they hadn't tried to get every line to be a def 2025-02-17 19:46:44 So same thing here - get out of my way and give me the display. 2025-02-17 19:47:18 KipIngram: I'm planning to get a new monitor this year -- I'm gonna use that sentence :) 2025-02-17 19:56:14 :-)