2024-11-20 05:13:40 hey, it looks like the three-cent microcontroller now only costs two cents: https://www.lcsc.com/product-detail/Microcontrollers-MCU-MPU-SOC_PADAUK-Tech-PMS150G-S08_C2909819.html 2024-11-20 10:20:00 lilo_booter: Okay now I've started watching a series on vacuum tubes when I should be doing some work ... 2024-11-20 10:39:36 https://chipwits.com/2024/11/16/chipwits-40th-birthday-original-forth-code-open-sourced/ 2024-11-20 10:47:33 TactfulCitrus: enjoy :D - he's a nice chap and does lots of happy dances when things actually start working 2024-11-20 10:47:58 .. i can relate 2024-11-20 11:08:03 I can also relate to the happy dancing! 2024-11-20 11:10:53 :D 2024-11-20 15:06:50 a newish Forth? https://hackaday.com/2024/11/15/risc-v-pushes-400-million-forth-words-per-second/ 2024-11-20 15:07:37 that's not the original Forth code. it's the original ChipWits Forth code. the original Forth code is https://github.com/monsonite/1968-FORTH 2024-11-20 15:15:02 oh, apparently the Forths running on the MILK-V in the video are Pygmy Forth and Mecrisp 2024-11-20 17:27:04 General question, if i'm storing matricies in arrays would it be bad practice to store the data as [M, N, data, ... ] where M and N are the numbers of rows and columns the matrix has followed by the actual data or would I be better off handling those separately? 2024-11-20 17:37:28 i don't see anything wrong with that 2024-11-20 17:38:25 if for some reason you want to pass an address around that you can treat directly as data, you could even store M and N at negative indices 2024-11-20 17:39:10 What do you mean by that? Sorry very new to Forth 2024-11-20 17:39:50 M N data, ... 2024-11-20 17:39:50 ^ pointer 2024-11-20 17:40:00 Ah I get you! 2024-11-20 17:40:06 Thanks very much 2024-11-20 22:33:05 TactfulCitrus: I once toyed with that idea for storing strings (and had a null at the end, as well as a count byte one byte back from the pointer). The idea of course was to be able to treat it either way. But after playing with it a bit I gave it up - decided it really wasn't beneficial. In certain instances I do still put a null byte after a counted string, but I point to the count byte. 2024-11-20 22:33:45 What are your matrices representing? Long term I'm interested in scientific computing, which will involve matrices; just curious. 2024-11-20 22:39:28 I've been working on a tiny subset of python I can run on a microcontroller and ran into this recently. to economize on RAM, I store the starting point and length of a symbol (function or variable name, keyword, etc) but then need a way to compare that to known symbol names which are zero terminated. to save space, there's just one strcmp that works with either format 2024-11-20 22:43:42 TactfulCitrus: I'd recommend [rowstride, rowlength, colstride, collength, pointer] so you can transpose without copying 2024-11-20 23:22:51 ACTION is one step closer to implementing line drawing - implemented cohen sutherland's line clipping algorithm :) - bresenham tomorrow 2024-11-20 23:24:50 nice! 2024-11-20 23:25:14 squeezed in at a readable (to me anyway) 39 lines