2025-06-02 00:06:24 veltas, thanks! 2025-06-02 00:07:17 it's a lot like using C instead of Assembler with no includes file 2025-06-02 00:08:04 and it saves space in small embedded because it doesnt use constants to link the labels to the absolute addresses 2025-06-02 00:09:51 so the programmer gets all the easy stuff like alphanumeric labels that are CMSIS-SVD compatible, and the mcu gets 'magic numbers' which are a no-no for maintainable small embeddedForth code 2025-06-02 00:10:17 the mcu doesnt understand or want all the human stuff 2025-06-02 00:29:26 Very true 2025-06-02 00:31:27 I tried converting that source to absolute addresses manually using my other project "svd2db" and it's horrendous, I gave up after 1/2 hr as it was very tiresome 2025-06-02 00:32:18 I wanted to obtain a memory usage reading for Plang2 and manual coding, but it's just too hard 2025-06-02 10:56:45 morning 2025-06-02 10:57:20 thanks for the editor, veltas 2025-06-02 10:57:38 I'm so fed up of the pfe block support that I use forth-scr to convert text files into blocks 2025-06-02 10:58:15 ttps://github.com/ablevm/forth-scr 2025-06-02 10:58:17 https://github.com/ablevm/forth-scr 2025-06-02 10:58:34 I did a template with unix sh and that's it, just two for loops redirecting to a text file 2025-06-02 10:59:13 https://termbin.com/9emw 2025-06-02 11:07:21 anthk_: [[ ]] is bash, not sh 2025-06-02 11:09:01 it works under ksh 2025-06-02 11:09:54 well, some gcc extensions work under clang too 2025-06-02 11:10:09 but thanks, I fixed it 2025-06-02 11:19:01 also I forgot about -lt | -gt instead of redirecting commands, I'm dumb 2025-06-02 11:19:05 it's monday :p 2025-06-02 11:20:44 https://termbin.com/pp68 2025-06-02 11:21:20 I must confess that I alternate between Forth and Lisp in order to not get bored with either 2025-06-02 11:22:15 not scheme nor common lisp, but zenlisp from http://t3x.org, because scheme it's fine but I've got bored with the "Concrete Abastraction book", at least with one chapter 2025-06-02 11:22:38 and Common Lisp has cool stuff but the 'loop' construction can be more complex than the whole Forth itself 2025-06-02 11:22:41 I am not kidding 2025-06-02 11:23:00 'loop' might be Turing complete by itself 2025-06-02 11:23:55 lisp, the bad parts: loop and format 2025-06-02 11:24:32 identity: common lisp, yes; scheme it's easier 2025-06-02 12:29:14 anthk_: I'm the same, I alternate mostly to C 2025-06-02 12:35:33 CL is so bloated compared to Scheme. 2025-06-02 15:12:46 anthk_: Shame zelgomer's not in here because he had some good tips for using shell to convert between blocks/files 2025-06-02 15:14:18 he got too enthusiastic about politics and death threats 2025-06-02 15:15:22 Leave off dead horses 2025-06-02 15:16:42 as long as it's only dead horses and not dead people, we're doing fine 2025-06-02 15:17:31 I'd just as soon not have people around who are threatening other channel members with death based on their guesses about political alignment 2025-06-02 15:28:04 good morning 2025-06-02 15:29:12 hiya 2025-06-02 15:30:09 hooray, dpans is back! 2025-06-02 15:30:57 sorry, forgot to restart it after the openbsd 7.7 upgrade completed :( 2025-06-02 15:34:06 it's probably unusual to put IRC bots in /etc/rc and family 2025-06-02 15:37:44 I'll probably set them up as proper daemons at some point 2025-06-02 15:47:21 veltas: I just use forth-scr for that 2025-06-02 15:47:39 altough maybe dd would suffice, or xxd, or plain printf 2025-06-02 15:47:47 or sed/awk 2025-06-02 15:49:47 how it was to use the dpans bot? 2025-06-02 15:50:03 I wrote http://canonical.org/~kragen/sw/dev3/blk2unix.py for converting in one direction 2025-06-02 15:50:13 anthk_: Try fold command maybe, for converting a block to file 2025-06-02 15:50:29 I seem to remember that was one of the good suggestions 2025-06-02 15:50:54 dd does have some options that seem relevant but I don't remember if I was able to get it to provide useful output 2025-06-02 15:51:18 but I wanted the shadow screens alongside 2025-06-02 15:51:23 https://github.com/ablevm/forth-scr 2025-06-02 15:51:26 and dd definitely can't do that 2025-06-02 15:51:54 dd is rightly hated 2025-06-02 15:52:41 I had the great idea of using dd for modifying binary files once, and after a big rabbit hole it turns out that it claims to modify one byte and then just modifies loads after that as well 2025-06-02 15:52:55 really? I'd never heard of that 2025-06-02 15:53:05 So don't use 1 byte at a time, it claims to support it and doesn't 2025-06-02 15:53:29 And if it can't do that what can it do, I need to trust the commands I use with my important data 2025-06-02 15:53:37 which dd? gnu dd or bsd? 2025-06-02 15:53:57 also bear in mind dd has many options for files with holes and such 2025-06-02 15:54:03 GNU I think 2025-06-02 15:54:11 But it's a POSIX standard so should be same everywhere 2025-06-02 15:54:14 Unfortunately it's not 2025-06-02 15:54:43 conv=notrunc maybe? 2025-06-02 15:55:02 dd cbs=64 conv=unblock if=hanoi.blk seems to do the right thing 2025-06-02 15:55:18 anthk_: Maybe yeah 2025-06-02 15:55:58 I'd never heard of anyone having problems using dd but generally people only use it for writing disks 2025-06-02 15:56:11 Certainly that's what it's *for* 2025-06-02 15:56:37 it's also for converting between EBCDIC and ASCII or swapping bytes apparently 2025-06-02 15:56:47 today I learn 2025-06-02 17:36:47 uhm, after some thinkering, I'll use eforth under subleq/muxleq for starting forth exercises 2025-06-02 17:37:36 as I enabled do...loop, it might work for the 99% of the online book 2025-06-02 17:38:00 on blocks, I have them... but in subleq's RMA 2025-06-02 17:38:01 RAM 2025-06-02 17:38:13 but well, I can fill them with the 'editor' word, so it's fine 2025-06-02 17:38:57 You could modify the VM so it automatically saves the image on exit 2025-06-02 17:42:16 I think colorForth did something similar, "BLOCK" was defined as ": BLOCK 1024 * ;" (or whatever the colorForth equivalent is) 2025-06-02 17:42:37 And you would just save everything at the end 2025-06-02 17:44:33 hello-operator: https://github.com/howerj/muxleq 2025-06-02 17:44:40 it's that, nothing fancy, subleq but with multiplex 2025-06-02 17:45:21 altough with a custom DEC image, not the base; I enabled float (altough I don't use it a lot), do...loop and a better 'see' 2025-06-02 17:45:48 at the muxleq.fth file, at the top, there are variables 2025-06-02 17:45:58 then: pforth < muxleq.fth > muxleq2.dec 2025-06-02 17:46:07 sorry, not pforth, pfe 2025-06-02 17:49:07 ah, muxleq must be created from itslef. Long wait for older machines, but much faster than subleq. 2025-06-02 17:49:11 Hmmm, if you combine https://github.com/howerj/muxleq/blob/master/muxleq.c with https://github.com/howerj/ffs/blob/master/subleq.c you'll get what you want 2025-06-02 17:49:23 yes, I did that, but I dpn't need a whole FS 2025-06-02 17:49:42 You only need the different subleq.c VM 2025-06-02 17:49:50 It saves the image 2025-06-02 17:50:30 The makefile shows how to use it 2025-06-02 17:51:24 uhm wait 2025-06-02 17:52:03 Sorry, you only need the different subleq.c not the entire ffs thing, take the code from that and add the muxleq stuff 2025-06-02 17:52:38 I could add the same to muxleq, it's just open a file at argv 2 right? 2025-06-02 17:53:22 muxleq it's just subleq with the mux if added 2025-06-02 17:53:47 Not quite, it dumps the memory to the final file in the argv list so long as there is at least one file 2025-06-02 17:54:07 "./subleq file.dec" would not save anything 2025-06-02 17:54:40 ./muxleq new.dec disk.dec 2025-06-02 17:54:40 but "./subleq file.dec new.dec" would, as would "./subleq file-1.dec file-2.dec new.dec" 2025-06-02 17:54:52 and then reuse disk.dec as the normal muxleq file? 2025-06-02 17:55:04 yeah, that's what's in the makefile 2025-06-02 17:55:09 ah interesting 2025-06-02 17:55:39 I guess it's because if it is running andd you hit CTRL-C it will not save as the mv command is never run 2025-06-02 17:55:44 it's kafkesque, eforth under subleq working more 'reliabily' than pfe 2025-06-02 17:55:59 brb 2025-06-02 17:58:12 anthk_: subleq is simple; consequently you'd expect it to be reliable, wouldn't you? 2025-06-02 18:02:01 as muxleq has two instructions, logically it must be twice as unreliable :D 2025-06-02 18:03:23 you laugh, but it works 2025-06-02 18:05:54 what problems are you having with pfe? 2025-06-02 18:07:08 i've never used it, so i don't know how it compares 2025-06-02 18:08:15 sometimes the open block get lost after editing 2025-06-02 18:08:24 pfe tells me that I can't find my file anymore 2025-06-02 18:08:45 ok, muxleq working with the HD file 2025-06-02 18:09:00 this like a zen or something 2025-06-02 18:10:44 ah right, so it's just the block layer that is the problem? 2025-06-02 18:11:02 that's good it works 2025-06-02 18:12:30 I mean, I use open-blockfile foo.blk 2025-06-02 18:12:32 I launch 2025-06-02 18:12:37 edit-blockfile foo.blk 2025-06-02 18:12:48 I edit something, I run flush 2025-06-02 18:13:16 and later I run edit-blockfile foo.blk and pfe tells me that I can't open it, even by using open-blockfile 2025-06-02 18:14:17 it tells me 'non-existent file' 2025-06-02 18:21:38 I can't even get it to compile (PFE) at the moment, not that I'm making a huge effort 2025-06-02 18:48:50 OS? 2025-06-02 19:02:55 Ubuntu x86_64, ugghhh, now which version... 2025-06-02 19:15:16 forthBot: LOAD ini.fth 2025-06-02 19:15:16 File ini.fth with date loaded 2025-06-02 19:15:24 forthBot: DATE 2025-06-02 19:15:24 Mon June 2 19:15:24 CEST 2025 2025-06-02 19:18:21 forthBot: PRINT-TIME 2025-06-02 19:18:26 forthBot: PRINT-TIME CR 2025-06-02 19:18:26 19:18:2119:18:26 2025-06-02 19:18:30 forthBot: PRINT-TIME CR 2025-06-02 19:18:31 19:18:31 2025-06-02 19:23:30 I mentioned the channel on Character Assassination News today: https://news.ycombinator.com/item?id=44155635#44157519 2025-06-02 19:26:51 xentrac: might be good to edit to ##forth; some irc clients don't handle the redirection from #forth properly 2025-06-02 20:27:37 forthBot: LOAD "ini.fth" 2025-06-02 20:27:37 File ini.fth with moon loaded 2025-06-02 20:27:45 forthBot: MOON 2025-06-02 20:27:45 Phase de la lune pour Mon June 2 2025 2025-06-02 20:27:45 🌓 Premier quartier 2025-06-02 20:27:46 Premier quartier, la lune guide vos soirées ! 2025-06-02 20:41:53 forth: LOAD "ini.fth" 2025-06-02 20:41:56 forth: MOON 2025-06-02 21:22:08 forthBot: QUIT 2025-06-02 21:22:08 Environment for cleobuline has been freed. 2025-06-02 21:22:20 forthBot: LOAD ini.fth 2025-06-02 21:22:20 File ini.fth with moon loaded 2025-06-02 21:22:25 forthBot: MOON 2025-06-02 21:22:26 Phase de la lune pour Mon June 2 2025 2025-06-02 21:22:26 🌒 Croissant montant 2025-06-02 21:22:26 Une jeune lune, un nouveau depart a Paris ! 2025-06-02 21:22:27 45% illuminee 2025-06-02 21:25:36 crc: sorry, too late to edit 2025-06-02 21:27:00 ok, wasn't sure what the limits are on hn 2025-06-02 21:35:44 xentrac what are you talking about re character assassination 2025-06-02 21:36:30 I've said before anyone in the UK, or who can work for the UK, who isn't Russian, Chinese etc can send CVs to me 2025-06-02 21:38:04 I work in embedded mostly writing firmware for embedded controllers, Intel and ARM SoCs; can potentially refer you if you're good 2025-06-02 21:38:14 That said I don't think we have any openings at the moment 2025-06-02 21:43:37 2 hours 2025-06-02 21:43:56 veltas: oh, that's just what I call the site 2025-06-02 21:44:28 because three or four comments down in any thread you can always find people calling each other "disingenuous", "trolls", "LLMs", etc. 2025-06-02 21:46:07 it's unusual to see things like "commie" 2025-06-02 22:02:13 I've noticed the most prolific HN users tend to deride the site the most, personally I think the site's pretty good despite some bad users 2025-06-02 22:02:41 Then again I've frequented 4chan for many years so my benchmarks might be different 2025-06-02 22:09:06 The content's often interesting/insightful, but for some reason there's a competition to be as negative as possible about the site and talk about it in euphamisms 2025-06-02 22:31:48 veltas, don't discounts attempts by certain groups to 'cancel' this ch 2025-06-02 22:32:18 veltas, some people just hate everything they dont own 2025-06-02 22:32:41 in the olf days we used to call them 'trolls' 2025-06-02 22:35:38 To add context tpbsd, I am talking about the website news.ycombinator.com, not this channel 2025-06-02 22:36:45 oops 2025-06-02 22:37:53 apologies for talking out of turn 2025-06-02 22:45:00 No need to apologise 2025-06-02 22:52:25 veltas, well my Neovim Mecrisp-Stellaris IDE is working very well and I've found a bug in my Plang2 system already, looks like a character escape problem which I would not have found so easily were the IDE not based on nvim 2025-06-02 22:54:04 Plang intelligently creates Forth statements based on the cmsis-svd bitfield 'Access Rights' as theyre one of three types as youd know 2025-06-02 22:54:38 ie no point creating a read statement for a write only bitfield 2025-06-02 22:55:41 Have you got any projects planned to test this IDE? 2025-06-02 22:55:51 Maybe you should upload a video demo to YouTube 2025-06-02 23:02:15 veltas, yes all the above 2025-06-02 23:02:50 Ive made a thermoter using the LMT01 two term digital sensor chip using it 2025-06-02 23:02:56 thermometer 2025-06-02 23:09:03 this pic shows it reading the thermometer in the terminal https://sourceforge.net/projects/mecrisp-stellaris-folkdoc/files/plang2-lmt01-5.png 2025-06-02 23:22:13 Nice 2025-06-02 23:22:26 Environment for cleobuline inactive, freeing... 2025-06-02 23:47:45 Programming is actually quite hard, don't let anyone say otherwise 2025-06-02 23:58:08 veltas, it does get interesting when one is building advanced software tools for development use 2025-06-02 23:59:19 so now I will have to raise a trouble ticket on this bug, I think one of my parsers is deleting the appending '@' on a transform