2025-02-25 08:56:22 It used to be that I was the way to get the top of return stack 2025-02-25 08:56:32 Before R@ 2025-02-25 08:56:58 And I don't see a lot of compelling reasons to change this, unless you're going to put indices in registers 2025-02-25 08:57:18 And then J could be R@ 2025-02-25 08:57:57 The optimisation F83 makes is probably not worth it, but I understand people don't like to trade performance for anything 2025-02-25 09:27:24 May or may not be a basic embedded Software Engineer job using C opening, UK midlands, PM me if you're interested for more details 2025-02-25 11:59:14 any more solutions to https://rosettacode.org/wiki/Determine_if_a_string_has_all_the_same_characters#Forth? 2025-02-25 12:01:25 i'm focused only on determining if all the characters are the same, not interested in any fancy output 2025-02-25 12:03:44 If the first two characters are the same then you're looking for a character which is different from them 2025-02-25 12:03:58 If the first two are different then you need to look at the third to determine which is the different character 2025-02-25 12:07:00 If the length is less than three then you can't determine a different character 2025-02-25 12:07:17 i've got a few ideas like a recursive version, a hacky comparison one where one of the strings isn't being incremented, and another one which focuses on comparing two characters, specifically s1==s2 && s2 == s3 ... which takes advanage of the fact == commutes and && short circuits. but i haven't started writing any for now, no time. 2025-02-25 12:07:50 they all feel fun but fancy.. new word: funcy 2025-02-25 12:08:18 That's what it sounds like when I say 'fancy' :P 2025-02-25 12:08:41 https://doricphrases.com/Fly-Cup-Funcy-Piece.php 2025-02-25 14:20:36 user51: for just that, I'd probably use something like http://forth.works/temp/410.txt 2025-02-25 18:46:01 hello 2025-02-25 18:46:44 you may like to play with this tiny-forth with arbitrary precision https://github.com/cleobuline/some-c-sources/blob/main/forth_gmp.c 2025-02-25 18:47:14 yay arbitrary precision 2025-02-25 18:47:22 i'm working on it it's not finished but it works fine 2025-02-25 18:48:17 do you know about Minsky's two-counter machine? 2025-02-25 18:48:44 it turns out that with arbitrary precision your machine only needs two registers to be Turing-complete 2025-02-25 18:48:48 nope 2025-02-25 18:49:03 because you can store an unbounded amount of data in an arbitrary-precision counter 2025-02-25 18:49:59 https://en.wikipedia.org/wiki/Counter_machine 2025-02-25 18:50:51 > 200 FACT 2025-02-25 18:50:52 Stack: 788657867364790503552363213932185062295135977687173263294742533244359449963403342920304284011984623904177212138919638830257642790242637105061926624952829931113462857270763317237396988943922445621451664240254033291864131227428294853277524242407573903240321257405579568660226031904170324062351700858796178922222789623703897374720000000000000000000000000000000000000000000000000 2025-02-25 18:50:52 it works :) 2025-02-25 18:53:49 Very nice cleobuline 2025-02-25 18:54:04 congratulations! 2025-02-25 18:54:39 That's a nice repo generally 2025-02-25 18:54:41 thank you i'm planning to do a forth irc bot next 2025-02-25 18:55:01 What are you planning for that? 2025-02-25 18:55:31 a forth irc bot to play wth created words 2025-02-25 18:56:05 on irc channel 2025-02-25 18:56:44 first i have to finish this one , it may be somme memory leagages 2025-02-25 18:56:52 leakages 2025-02-25 18:58:02 i began with forth cartrige on commodore 64 2025-02-25 19:00:34 I suppose my questions are: will it retain state between prompts, or per-user, or have storage? How will you sandbox it? 2025-02-25 19:00:40 I'd rather just set up ii in a jail pipe the log to awk, shell ulimits everything so it wont go crazy on mem size or cpu. 2025-02-25 19:01:21 veltas: yes each users will have his own context of course 2025-02-25 19:01:43 how? 2025-02-25 19:02:24 Yeah, per nick, or nick+host, or nick+host sessions with login? 2025-02-25 19:03:04 See this is something I've thought about already, I have done some design for a Forth IRC bot 2025-02-25 19:03:14 yes each ick will have its own memory space on my bot 2025-02-25 19:03:24 ghodawalaaman has made a basic locked-down gforth bot without state 2025-02-25 19:03:28 or not :) 2025-02-25 19:03:47 So if I take someone's nick then I can play with their data? 2025-02-25 19:04:16 It's quite easy to check if someone's authenticated, might be worth doing that 2025-02-25 19:04:23 yes 2025-02-25 19:04:37 There's an IRC2 feature on libera.chat to show authentication status on every PRIVMSG 2025-02-25 19:04:50 nice 2025-02-25 19:04:57 Some optional thing you can request, forget the name 2025-02-25 19:05:25 How much space will you allocate per-user? 2025-02-25 19:05:45 i will try to do a basic tiny-forth on irc i will see ... 2025-02-25 19:06:55 may be every one will share the same dictionnary 2025-02-25 19:07:22 so every one may append his own creations to the bot :) 2025-02-25 19:07:29 you could probably allocate 10 megabytes per user 2025-02-25 19:07:35 a collaborative forth ... 2025-02-25 19:08:29 forth words do not use a big space 2025-02-25 19:08:38 usually not 2025-02-25 19:09:58 it may be funny :) 2025-02-25 19:11:35 just as funny as using the big space in Makefile 2025-02-25 19:13:14 i will implement the word forget 2025-02-25 19:17:15 ACTION should finish his konilo irc interface sometime 2025-02-25 19:17:45 A sandboxed ilo would be realistic to write 2025-02-25 19:17:52 Without a whole container/jail 2025-02-25 19:18:03 But could put in jail anyway just to be sure 2025-02-25 19:24:07 I have it about half done; still working on some things w/the block storage for separate users 2025-02-25 19:25:26 locking down isn't a problem. I have it pledged so only the core few system calls it needs can be used, and unveil only the block store so no outside file system access is allowed, even if someone was to find an exploit :) 2025-02-25 19:26:21 cleobuline: I'm looking forward to seeing your bot when it's ready 2025-02-25 19:26:49 :) 2025-02-25 19:29:04 Yeah sounds pretty locked down 2025-02-25 19:29:09 OpenBSD for the win 2025-02-25 19:38:26 my plan is to have the vm allow read-only access to the basic blocks for the standard library of extensions & documentation, and then 64 semi-private read/write blocks for each user. Each user gets a separate instance in ram. (separation done by irc nick) 2025-02-25 19:39:55 Nice 2025-02-25 19:40:19 I recommend doing it so that the 64 constant can be tweaked, so you're not locked into that size 2025-02-25 19:40:27 Because depending on usage that could be too little 2025-02-25 19:41:46 it'll be flexible. I'm not sure how much use mine will get, given that it's pretty different from typical systems 2025-02-25 19:41:47 How much will the Elite support package be? 2025-02-25 19:42:57 Honestly while the novelty hasn't worn off it will probably get a lot of usage, especially if there's long term state 2025-02-25 19:43:17 I'll set up my own little corner of konirc 2025-02-25 19:44:00 I wonder if a shared interpreter with per-user namespaces could itself be an adequate chat server. I mean, that's sort of what a MUD is, isn't it? 2025-02-25 19:45:26 The space isn't a big issue. I have capacity to provide up to 2048 blocks per user if everyone here was to use it & needed the space 2025-02-25 20:01:10 A shared space for everyone would be good too 2025-02-25 20:01:27 And/or a space for users that's read-only for other users 2025-02-25 20:01:41 Because then we can communicate, klog, etc 2025-02-25 20:01:55 konilo social media 2025-02-25 20:02:45 konilocities 2025-02-25 20:07:38 This all just sounds so much better than the web 2025-02-25 20:08:17 Can someone pen a BLOCK+UDP/IP RFC? 2025-02-25 20:12:01 I used to run a public access block-over-gopher server, but it never got any use other than by me 2025-02-25 20:12:20 It will be good at first and then we'll devolve into BLOCK 2.0 and MyKonilo / faceblock 2025-02-25 20:12:46 I promise I will actually learn konilo and use it to host something if you do it 2025-02-25 20:13:08 Also for this one I would recommend having it join a separate bot channel as well for less noise 2025-02-25 20:13:33 as well as ##forth and #retro or whatever the channel is 2025-02-25 20:36:46 I'll provide updates here once I have time to get back to working on it :) 2025-02-25 20:54:37 ;)