2025-08-05 00:01:28 So you can get mod 5 by e.g. doing 16-bit sum of the bytes of the number; then doing an 8-bit sum of the nybbles etc or however you want to skin the cat 2025-08-05 00:02:00 I'm sure there's lots of info on how to do this but it was just a little interesting puzzle for me, not really doing anything productive 2025-08-05 00:03:22 Getting the mod on its own isn't helpful, but I wasn't sure whether you could get the mod 'faster' somehow than dividing, and yes indeed you can get mod a lot faster 2025-08-05 00:07:01 The mod result I googled about after and read about Chinese Remainder Theorem, which I think I 'get' a bit better after the exercise 2025-08-05 00:40:17 xentrac, the Mecrisp-Stellaris LangServer is just to test things, the main project also includes all the registers and bitfields of a Cortex-M mcu by using the CMSIS-SVD file 2025-08-05 00:41:04 xentrac, so a Forth embedded dev will now have completion on everything, the Mecrisp-Stellaris Forth commands and the mcu hardware 2025-08-05 00:41:49 along with examples in the LSP popup 2025-08-05 09:04:30 Released v0.1.0 of zenv https://github.com/Veltas/zenv/releases/tag/v0.1.0 2025-08-05 09:16:52 veltas, good job! 2025-08-05 09:19:56 Forth for the zx spectrum! 2025-08-05 09:20:59 this relates to the Z80 code you mentioned earlier 2025-08-05 10:00:28 Actually unrelated but related in the sense it's for the same platform 2025-08-05 10:00:56 I mostly did the release so I could download the binaries on my phone easier, I've not done a tagged release before 2025-08-05 10:01:22 I fixed a bug in number input as an excuse 2025-08-05 10:20:46 And thanks! 2025-08-05 10:22:30 it's great to see people developing Forth projects :) 2025-08-05 10:23:10 because it's projects that make Forth more visible in general 2025-08-05 10:23:27 even tho Forth is in the main, generally avoided thesedays 2025-08-05 10:25:08 I played a bit of a joke on all the arduino people a few years ago, I wrote the "bluepill diagnostics" in Forth and released it, SF gave me a 10,000 downloads badge a couple of years ago and it's had a steadt 6ish downloads a day since then 2025-08-05 10:25:09 Technically you could use that Forth to do embedded projects, although I can't think of a good reason to rely on a ZX Spectrum for that 2025-08-05 10:25:28 Wow 2025-08-05 10:26:37 my program interrogates a 'blue pill' board $2 -5 to find what mcu is actually in it as unscrupulous Chinese vendors were fitting fake renamed mcus instead of STM32F103's 2025-08-05 10:27:17 and lots of the bluepills werent talking on the USB so there was much confusion 2025-08-05 10:27:51 it was a piece of cake to use Mecrisp-Stellaris to do that job as embedded Forth is just so easy 2025-08-05 10:28:30 https://mecrisp-stellaris-folkdoc.sourceforge.io/bluepill-diags-v1.640.html 2025-08-05 10:29:30 I coded a simple but unbreakable menu screen for the terminal and made sure to announce this was 'powered by Forth' in it 2025-08-05 10:29:41 Lovely 2025-08-05 10:30:30 you can see the menues in that url user manual 2025-08-05 10:31:04 it's the defacto method of testing bluepills now as it works everywhere 2025-08-05 10:31:40 they just plug in a usb cable and run a term on the pc, windows,mac or Linux doesnt matter, it's the same 2025-08-05 10:31:57 up pops the menu and then they run the tests 2025-08-05 10:36:52 I think when you mentioned this years ago that was one of the first times I learned about Chinese "good enough" manufacturing 2025-08-05 10:37:30 Seems like it's better understood now in the mainstream, big subject of trading controversies with China right now 2025-08-05 10:39:00 actually it was just a few lowlifes doing it and even back then the Chinese authorities were trying to stamp them out 2025-08-05 10:39:27 companies like GD were actively pursuing the culprits 2025-08-05 10:39:50 I'm hearing that it's a nightmare getting chinese manufacturers to not do this in general, but I don't doubt their authorities oppose it 2025-08-05 10:40:00 Because it's not really good for the country as a whole, if nobody trusts them 2025-08-05 10:40:24 and in the end, the Chinese STM32F103 clones are licensed, way cheaper, faster and they solved all the silicon problem of the original 2025-08-05 10:40:28 true 2025-08-05 10:40:35 they di a lot of damage 2025-08-05 10:40:36 It seems like a cultural thing rather than a state-approved practice 2025-08-05 10:40:56 It only takes a small % of untrustworthy people to lower trust generally 2025-08-05 10:41:05 true 2025-08-05 10:42:20 but I eventually overcame my bias, I only buy from china now 2025-08-05 10:43:20 I bought some laser distance measurers from china, theyre the size of a usb stick, perfectly made with a small lcd with high res to display the data 2025-08-05 10:43:46 they do 30 metres at 1mm accuracy, and cost $27 AUD each 2025-08-05 10:44:05 the level of tech is amazing, quality is 100% 2025-08-05 10:44:15 theyre usb and rechargable 2025-08-05 10:48:54 It's a simple equation for me, most stuff is cheaper in China so I'll buy most stuff from them, as long as the cost of quality issues doesn't get in way 2025-08-05 10:49:05 But so far it's not caused too much trouble 2025-08-05 10:50:08 I always buy the best I can afford at the time, it's how I was brought up 2025-08-05 10:50:21 I never buy the cheapest, thats my last option 2025-08-05 10:51:00 Well I buy cheapest overall cost I can get away with 2025-08-05 10:51:04 but China really throw a spanner in the works because they have asesome tech for cheap and junk for cheap as well 2025-08-05 10:51:29 E.g. I bought my shoes for like 350 GBP on basis that they would be cheaper in long run, and I think that logic has broken even already 2025-08-05 10:51:38 So hopefully they continue to last 2025-08-05 10:52:06 Had a new heel and resoled once and still cheaper than buying the crap that was falling apart in less than a year 2025-08-05 10:53:54 wat to go! 2025-08-05 10:53:58 way 2025-08-05 10:56:49 If people don't like us buying from China I would say we need to figure out how we can compete with them, rather than trying to manipulate prices to make people avoid them 2025-08-05 10:57:12 That's a deeper question, why can't we do what they do. We need to solve that question if we want to dominate the market in future. 2025-08-05 11:03:59 veltas, absolutely 2025-08-05 11:04:57 if you want people to buy your product, fair price and high quality will mean you dont need to advertize 2025-08-05 11:05:58 when I wanted a pushbike in 2000, I paid $3500 for a Cannondale 'made in the USA' and that bike is still immaculate 25 years later, and the places it's been! 2025-08-05 11:06:32 Cannondale had a rep for high quality, their people took pride in their work 2025-08-05 11:06:58 canondale is now made in china 2025-08-05 11:07:37 the bikes look great, theyre really high tech, Id buy one if I had a spare $14,000 for the electric mtb 2025-08-05 11:07:53 they do 100 miles on a charge they claim 2025-08-05 11:10:47 Nice 2025-08-05 11:11:45 Yeah reputation unfortunately only matters as much as your consumers are informed, and people are just a lot less informed. But it still has an impact. 2025-08-05 11:11:48 theyre awesome imho 2025-08-05 11:12:13 reputation drove sales before the Internet 2025-08-05 11:12:22 Looking at state of the car industry etc, the people buying are often more interested in brand names than quality etc 2025-08-05 11:12:23 you cant stop good or bad news 2025-08-05 11:12:43 thats probablly advertising ? 2025-08-05 11:13:10 I think brands are probably a result of quality over time, and then when the brand is 'good' they slip 2025-08-05 11:13:30 Not always but I would say so with e.g. Audi 2025-08-05 11:13:46 Seem to be very pricey and the product isn't that good compared to similarly priced offerings 2025-08-05 11:14:25 veltas, I have a Audi :) 2025-08-05 11:15:31 veltas, it was $60,000 AUD in 2008, it's permanent 4wd, goes like a rocket and is the best handling car I've ever driven 2025-08-05 11:15:44 it's a 2.8l V6 petrol 2025-08-05 11:16:11 Ive driven it down the beach, it doesnt even leave tracks 2025-08-05 11:16:52 It seems like the quality was good in 2008 2025-08-05 11:17:04 But I'm just hearing it's really overpriced now, for what it is 2025-08-05 11:17:15 each wheel hd souble wishbone suspension, and it has 'torsen' diffs. That means if you lift one wheel, it will still rotate under power 2025-08-05 11:17:33 yeah, all cards are crap now, inc audi 2025-08-05 11:17:37 cars 2025-08-05 11:17:47 It's inevitable really in business that without proper leadership they'll just cannibalise their brand and reputation 2025-08-05 11:17:54 true 2025-08-05 11:18:14 busines in the west is disintegrating fast sadly 2025-08-05 11:18:27 while it's going ganbuster in the east 2025-08-05 11:18:42 Yeah and it's a bit scary, we need to get a grip really 2025-08-05 11:19:03 I don't personally think the solution is protectionism 2025-08-05 11:19:07 tho one western biz is way ahead ... spaceX 2025-08-05 11:19:17 I agree, thats not the answer 2025-08-05 11:20:04 I use Starlink and it's awesome for me as in in a remote rural ausie town with no copper or fibre and only 'wireless' Internet 2025-08-05 11:20:18 Nice 2025-08-05 11:20:27 Ive downloaded two 60 GB I images just today 2025-08-05 11:20:34 AI images 2025-08-05 11:20:49 Musk is a trebdsetter for sure 2025-08-05 11:21:18 Starlink now has 6 million users worldwide and 5000 sats in orbit 2025-08-05 11:21:38 thats 6 million times 130AUD = $LOTS 2025-08-05 11:21:42 a month 2025-08-05 11:21:54 He's a very proficient business person, and good at running engineering companies. But he also is a total wildcard and odd. He needs people around him to get him to focus on positive things and not self-destructive things 2025-08-05 11:22:11 Like a lot of eccentric brilliant people 2025-08-05 11:22:15 yeah, but many like him ar like him 2025-08-05 11:22:27 look at howard hughes ? 2025-08-05 11:23:12 tho Robert Noyce was a gift to the USA as he started Fairchild, Signetics, Intel etc 2025-08-05 11:23:20 and other probably 2025-08-05 11:24:01 It's so easy to be critical, we should learn from the bad and be inspired by the good 2025-08-05 11:24:44 veltas, heh, so in my own way, I got 10,000+ Forths into the hands of mostly Windows Arduino users over the last 4 years, even if they didnt know it 2025-08-05 11:24:59 agreed 2025-08-05 11:25:21 you and I have very similar philosophies I think 2025-08-05 11:25:56 History says that means we'll have the most prejudice against each other! 2025-08-05 11:26:06 I think Musk could all by himself get America productive again if he had the chance 2025-08-05 11:26:35 just dont judge him for being a weird, self centred, rich nastard 2025-08-05 11:26:41 bastard 2025-08-05 11:27:41 sadly the USA infrastructure is all old and run down. there is no way to 'get America working' untill the supply chain is fixed 2025-08-05 11:28:00 America really needs to copy china 2025-08-05 11:28:58 you should sack trump amd hire Jack Ma, pay him what ever he wants to fix the place up 2025-08-05 11:29:11 Jack Ma set up Alibaba etc 2025-08-05 11:38:28 veltas, this YouTube is exactly about a new USA firm making bycycles (they were in china) https://www.youtube.com/watch?v=QuTxTYNcIjU 2025-08-05 11:42:58 I'll watch after work, thanks 2025-08-05 11:43:51 no problemo 2025-08-05 20:23:46 veltas: hmm, I'll have to think about that algorithm 2025-08-05 20:24:29 tpbsd: autocomplete is good! 2025-08-05 20:25:59 xentrac, especially when one has 15,000 names to remember ! 2025-08-05 20:26:26 xentrac, and a lot of them are not designed to be remembered 2025-08-05 20:27:18 I was going to say, are you talking about things like the GD32F103, which is a faster clone of the STM32? but no, you mean people who mislabeled their clone chips as ST chips 2025-08-05 20:28:24 yes, I mean people who deliberately removed the GD32F103 markings and printed STM32F103 markings to sell more product 2025-08-05 20:29:28 heh, all the STM32F103 clones are faster and cheaper, and have more memory 2025-08-05 20:30:20 really? I didn't know that 2025-08-05 20:32:24 yeah, the most compatible choice is the APM32F103 2025-08-05 20:32:42 you can get them from lcsc.com 2025-08-05 20:32:54 I think maybe you mentioned the APM32 the other day and it was new to me 2025-08-05 20:33:09 dont use the GD32F103 as it has SPI flash and isnt fully compatible 2025-08-05 20:34:03 the APM32F103 is in all the Chinese "thumbdrive like' STLINK units in the pretty anodised aluminium cases that sell for $2 2025-08-05 20:34:05 I've heard that. does it take a long time to boot? I understand it's faster when it's running 2025-08-05 20:34:29 (the GD32) 2025-08-05 20:34:36 true for all mcus that use a SPI flash as rom 2025-08-05 20:34:42 including the Pico 2025-08-05 20:34:49 presumably when you power it up it copies the Flash into RAM? 2025-08-05 20:34:53 slow as in 500 ms 2025-08-05 20:34:59 exactly! 2025-08-05 20:35:37 the APM32F103 has internal flash so it's boot up = that of the STM32F103 2025-08-05 20:36:01 which is probably 0.5uS 2025-08-05 20:36:17 500ms is a long time especially if you're shooting for an 0.1% duty cycle for power consumption reasons 2025-08-05 20:40:40 yeah, the fans never seem to know that which means theyre hobbyists with no real embedded hardware experience or programmers only 2025-08-05 20:42:04 of course, your cat can wait 500mS for it's automatic door opener to activate, Im sure it wont mind ;-) 2025-08-05 20:42:51 500 millisiemens is a pretty low resistance path 2025-08-05 20:43:01 oops 2025-08-05 20:43:07 500mʊ 2025-08-05 20:57:39 xentrac, as a developer you may be interested to see the my just finished article on how one can make kickarse readme.md's with an ai ? https://discourse.homelabbrisbane.com.au/t/an-ai-documentation-masterclass-for-humans/226/1 2025-08-05 20:58:01 frankly, Im stunned 2025-08-05 20:59:02 haha, programmers should be embracing AI, ... for user doc creation (which they hate and are terrible at anyway) 2025-08-05 22:14:31 Watched the USA bike factory video, was interesting 2025-08-05 22:21:28 tpbsd: I like user doc creation 2025-08-05 22:22:04 but I've definitely found LLMs useful for fleshing out docs and for writing example code 2025-08-05 22:22:50 I can't really read your fixed-format blockquotes because they're too wide for my screen 2025-08-05 22:24:14 I mean once Discourse gets done filling up the left fourth of the screen with a navigation sidebar, another twelfth with a column for your usericon, and another eighth on the right side for a redundant scrollbar, there isn't enough space left over on my screen to fit what looks like 80-column text 2025-08-05 22:24:51 if I grab the scrollbars on the fixed text areas I can drag them left and right once per line in order to read the text one line at a time 2025-08-05 22:25:44 except that some of them are so tall that by the time I scroll down to the horizontal scrollbar I can no longer see the top of the text area 2025-08-05 22:25:47 such as "A fresh, user-friendly `readme.md` file has been successfully written to `/home/tp/fossil/mecrisp-stellaris-lsp/readme.md`, replacing the previous version." 2025-08-05 22:26:34 so in theory I could read that line by reading the left half of it, scrolling down to the horizontal scrollbar, scrolling the scrollbar all the way to the right, scrolling back up to the line to read the right half of it, and then repeating the process for each following line 2025-08-05 22:28:02 although now that I have pasted the line, it looks like that line is too wide to fit on my screen even without wasting half of the width of my screen on window furniture 2025-08-05 22:28:36 I mean it's almost two full lines in this IRC text window 2025-08-05 22:28:58 I'm curious what kind of design process at Discord led to this user experience trainwreck 2025-08-05 22:33:45 xentrac, that server belongs to a friend, yeah the Discord server is pretty low quality 2025-08-05 22:34:40 xentrac, it's even stopped accepting image uploades so I suppose it will crash soon 2025-08-05 22:38:56 I don't think Discord servers are actually servers; they're just like virtual hosts in the Discord cloud 2025-08-05 22:39:14 like, you can't download a copy of the Discord software to install on your own computer (except the client) 2025-08-05 22:40:06 you could probably ameliorate the problem by not using fixed-width text for blockquotes, a thing for which I think Discord has its own markup 2025-08-05 22:49:08 ahh, good idea 2025-08-05 22:49:29 oh I was very ignorant about discord, thanks 2025-08-05 22:49:54 I'm no expert, but I think that 2025-08-05 22:49:57 s how it works 2025-08-05 23:55:42 forthBot: S" un monstre affreux avec des yeux globuleux des grandes dents et des tentacules "S IMAGE 2025-08-05 23:56:54 DEBUG: No 'url' key in ImgBB response 2025-08-05 23:56:55 Error: IMAGE: Failed to generate or upload image 2025-08-05 23:57:15 forthBot: S" un monstre affreux avec des yeux globuleux des grandes dents et des tentacules "S IMAGE 2025-08-05 23:58:28 DEBUG: No 'url' key in ImgBB response 2025-08-05 23:58:29 Error: IMAGE: Failed to generate or upload image