2024-11-17 13:08:26 i'm just putting toghether some example code in gforth as part of presentation about stack based languages - trying to clean up a larger script so that it looks a bit sane :) - starting with https://pastebin.com/arf7cssX (tagged as C to get some syntax coloring) 2024-11-17 13:09:10 is this a reasonable way to layout the code? is it reinventing wheels? 2024-11-17 13:15:09 lilo_booter: it looks nice! 2024-11-17 13:15:22 cool :) thanks 2024-11-17 13:15:27 lilo_booter: you could do a little ascii art with that :-) 2024-11-17 13:15:59 indeed :) - that's what the rest does - well, sorta - lines, circles, plots points of equations and stuff 2024-11-17 13:16:13 i call it plotify 2024-11-17 13:19:07 nice :-) 2024-11-17 15:21:57 still work in progress - https://pastebin.com/9jqk1Vz3 - still need to fix my implentation of bresenham's line drawing algorithm (so points are plotted only at the moment), xy-circle and i need to ensure we only plot if the coords are actually part of the presentation 2024-11-17 15:27:32 examples of use at end of file should also move to top i guess - any/all suggestions/criticisms/derision welcome :) 2024-11-17 15:58:12 lilo_booter: nice! 2024-11-17 15:59:15 a thing to keep in mind is that the '[' thing was only added to standard Forth very recently, like 15 years ago, so there are a lot of nominally standard Forths that don't support it 2024-11-17 16:00:48 also I don't think you're using Bresenham's algorithm 2024-11-17 16:20:52 thanks :) - and yeah, i didn't include my implementation of that algorithm in what i dumped there (on account of what i have being as hokey as hell :)) - don't feel like do the refactoring necessary to do that today - maybe some time during the week if i can be arsed 2024-11-17 16:22:29 ah - the '[' being the character on the stack - gotcha - okidoke - will keep that in mind for a later clean up 2024-11-17 20:50:54 guys. is there actually a good reason for me to use forth, or do i only like it for the hipster appeal? 2024-11-17 20:52:55 outlook good 2024-11-17 21:03:31 zelgomer: well, i don't use forth directly for professional reasons, but i do use stack evaluation and forth like grammars pretty much everywhere (i work in the field of video and audio processing) so i'd say it's worth understanding at some level at least - has worked well for me at least :) 2024-11-17 21:05:40 i think it's safe to say i understand it 2024-11-17 21:08:23 so do you normally find it appealing to hipsters? :) 2024-11-17 21:09:17 well i don't know anybody in person who has ever even heard of it, so maybe? 2024-11-17 21:09:39 i think my problem is i need a realy hobby 2024-11-17 21:09:59 stamp collecting? 2024-11-17 21:10:55 maybe! 2024-11-17 21:19:05 actually here's my problem 2024-11-17 21:19:24 i really don't want to be in the compiler business 2024-11-17 21:19:44 i'm only here because i hate the tools that are available 2024-11-17 21:20:19 somebody help me get over that please 2024-11-17 21:20:58 someone else is unlikely to write tools tailored to what you want? 2024-11-17 21:37:51 i'm not sure what you're asking 2024-11-17 22:22:58 My perspective on Forth oscillates between a hobby/interest, and some kind of personality disorder 2024-11-17 22:23:31 yes, it very much feels like a personality disorder 2024-11-17 22:24:04 As for whether there's a good reason, the question is what your goal is, because rarely is 'Forth' the goal itself 2024-11-17 22:26:58 All hobbies have the potential to be unhealthy, it's good to strike a balance with however you're going to waste your time 2024-11-17 22:27:59 Have you played with TinyCC? 2024-11-17 22:28:30 i looked at the code once and had to avert my eyes when i started smelling smoke 2024-11-17 22:31:22 A good question to think about is: hypothetically, if you had an ideal programming language and environment, then what would you work on? 2024-11-17 22:32:13 yeah, i don't know! 2024-11-17 22:32:38 veltas: that's kinda backwards 2024-11-17 22:32:48 a programming language can only be ideal for a specific task 2024-11-17 22:33:06 so if you have an ideal language you already know what you're doing 2024-11-17 22:34:36 Essentially I'm trying to help think about what problems are interesting to zelgomer outside of programming languages/environments 2024-11-17 22:37:53 I'd probably want to write games, office software, all sorts of copycatting with what I've seen 2024-11-17 22:38:23 Or maybe software to solve some sort of business niche 2024-11-17 22:40:25 Or apply this to my actual job 2024-11-17 23:22:59 obvious i would use it to amass wealth and attract beautiful women 2024-11-17 23:23:02 obviously 2024-11-17 23:23:07 just after i learn to spell