Posted in Commentary on January 4th, 2020 by juan
I’ve grown up as a programmer. When I started, we coded pretty close to the metal. My first language was BASIC. Then it was assembly. Z80 to be specific. It taught me a lot about the low levels of computers. Stuff that has been incredibly useful throughout my career. But another aspect of my career has become increasingly important.
In programming we deal with levels of abstraction. It’s complicated but think of going from binary to assembler to low level languages to high level languages and beyond. That kind of ladder of abstraction has always been easy for me to follow. Don’t get me wrong, there’s effort in really understanding what each level represents, but in general they are logical and connected.
My struggle is that I also have to do a similar level of abstraction, but for a different reason. This is the other part of my career. How do I go from the individual contributor (binary or even assembler) to higher level contributor (beyond C, beyond Python, beyond Lisp, etc.) as a contributor to the organization. My abstraction level has to be more of a team and then a team of teams and then a team of loosely organized teams. It feels like I have to invent the higher level languages. But, I do see glimmers of it in the teachings and books that I read. I recognize moments of clarity and moments of utter failure. Is this something to be expected? I’m finding out as I go.
Leave A Comment »
Posted in Commentary on January 2nd, 2020 by juan
If you know me, you know that I play pool. As in billiards. Specifically, I play 8 ball. Much to my amazement, I’ve been on the same pool team for 28 years. Yeah. The same team. Well, the same treat because it’s got the same name and two of us have been on it continuously for the duration. There was a point in my life where 10 years was a long time. Then there was a time where 20 years seemed like a long time. Now that I’m approaching the third decade of doing this, I’m thinking 50 years is not a long time. In fact, I hope I keep playing and getting better. I don’t want to be that old guy that’s been playing forever that kids in their 20s can beat. So far, I’m not. But at some point, I might be. Here’s to making that far far into the future. And kids – remember, I’d much rather take age and wisdom over youth and enthusiasm. Said like a true curmudgeon.
Leave A Comment »
Posted in Commentary, Geekfest on December 26th, 2019 by juan
I found and loaded a copy of BBCBasic on the AltairDuino. This is a basic I never used when I was really running CP/M but it looked interesting. In the veins of the previous MBASIC post, I ran the sieve on it to see how well it ran:
[2019-12-25 10:45:15] >LIST
[2019-12-25 10:45:17] 5 PRINT "Start"
[2019-12-25 10:45:17] 10 DIM flag%(8191)
[2019-12-25 10:45:17] 20 count = 0
[2019-12-25 10:45:17] 30 FOR i = 1 TO 8191
[2019-12-25 10:45:17] 40 flag%(i)=1
[2019-12-25 10:45:17] 50 NEXT i
[2019-12-25 10:45:17] 60 FOR i = 0 TO 8190
[2019-12-25 10:45:17] 70 IF flag%(i+1)=0 THEN GOTO 150
[2019-12-25 10:45:17] 80 prime = i+i+3
[2019-12-25 10:45:17] 90 k=i+prime
[2019-12-25 10:45:17] 100 IF k > 8190 THEN GOTO 140
[2019-12-25 10:45:17] 110 flag%(k+1)=0
[2019-12-25 10:45:17] 120 k=k+prime
[2019-12-25 10:45:17] 130 GOTO 100
[2019-12-25 10:45:17] 140 count = count + 1
[2019-12-25 10:45:17] 150 NEXT i
[2019-12-25 10:45:17] 160 PRINT "End, Primes =", count
[2019-12-25 10:45:17] >RUN
[2019-12-25 10:45:19] Start
[2019-12-25 10:50:49] End, Primes = 1899
[2019-12-25 10:50:49] >
As you can see, the code is slightly different. The indentations are provided natively by BBCBasic. Interesting note is that I couldn’t LOAD
(yes, it all has to be caps) the code. This Basic is expecting a tokenized form. However, I did some sleuthing and found out you can *EXEC "FILENAME.TXT"
and it will import an ASCII file in.
Anyways, the result above is pretty clear. This basic runs the sieve in 5 minutes 30 seconds or roughly 21% faster. Cool. Wish I’d know about this back in the day.
Leave A Comment »
Posted in Commentary, Musings on December 25th, 2019 by juan
Santa has been extremely generous this year. The kids are super happy and the lovely Mrs was very surprised by her presents. That’s always a good thing.
For me, the presents were also very nice. However I’m excited about the revival of this blog. The tools available to post are just amazing compared to what I had back when I first did this. WordPress itself has evolved amazingly. Looking forward to playing with that. But the fact that I’m writing this on my phone and will soon be posted to the site is just … well cool. So cool.
Leave A Comment »