Tag: programming
-
Further thoughts on Forth (and Riscyforth in particular) and Life
It’s now two years since I began my Riscyforth project of writing a Forth for RISC-V single board computers. But it wasn’t until yesterday that I wrote my first serious/useful (if you like this sort of thing) program for it, a version of Conway’s Game of Life. (This program wasn’t as long as the unit…
-
Game of Life animation
I’ve made some improvements to the program and so here’s an animation of the output.
-
Write-only? A simple program translated from C to Forth
The old joke is that Forth is a “write-only language”. in other words, you can write this stuff but you cannot understand it (and hence maintain it). Of course, any endorsement of this view is regarded as a heresy amongst many in the Forth community, but I have to admit that sometimes the Forth-bashers have…
-
Does “coding” have a future?
Today is, for me, the last working day of the year and I was able to finish with a small triumph – successfully solving several programming conundrums that have eaten into my time over a number of weeks. The technology involved – Python – is not one I have had much experience with, and only…
-
This summer’s to-do list
It’s easier to produce this list than it is fo do them, but producing the list is also a means of holding myself to account: Complete the code to translate a string into an IEEE754 floating point number in Riscyforth: I am now pretty clear in my own head what the algorithmic steps to do…
-
Adding dynamic linking to Riscyforth
This is one of those blogs one writes to clarify inchoate thoughts, so it’s sorry-not-sorry if it starts to wander around… Last week I got to an important point with Riscyforth, my Forth for RISC-V single board computers: I tagged my first release (v0.1). I did that because I had, finally, managed to cover all…
-
Getting the POSTPONE word to work in Forth
I have struggled with this issue for several weeks now and I didn’t find the explanations in Starting Forth or the 2012 Forth standard or even the GForth documentation particularly enlightening, so I wanted to write this to – hopefully – add some clarity to anyone else trying to get this right in their own…
-
More on the Riscyforth versus Gforth shootout
This is a further post about optimising Riscyforth, my Forth language for RISC-V single board computers. Riscyforth is a 64-bit Forth which runs on top of Linux – my test system is the Sipeed Nezha SBC – which runs a 1 GHz single core CPU (so 1 cycle is one nano-second). I’m testing it against…
-
A book recommendation
Lying in the bath this morning – relaxing into the Christmas holiday (despite the raging epidemic of omicron-variant Covid that is currently rampaging through London in an increasingly frightening manner), I had thoughts about several blog posts to write over the break, and this is the first… It’s a book recommendation: Ian Stewart‘s Concepts of…
-
Riscyforth: an update
Last Christmas I started work on a Forth for RISC-V single board computers (SBCs): Riscyforth. Riscyforth is written in RISC-V assembly, with the aim of providing a good balance between the ease of use that comes from a programming language that can both be run in an interpreted “immediate” mode and compiled if speed is…