Posts

Meandering Thoughts on LLMs and Software Productivity

Yesterday a couple co-workers and I got into a conversation about how to use AI to develop our code. We are experimenting with an LLM provider that, like many LLM providers, charges us per token (basically per word that the LLM reads in and spits out, if I understand correctly). A cool thing about this particular provider is that it lets you choose from among all the commercial LLMs from OpenAI, Anthropic, Google, Meta, etc. It charges more or less per token depending on which LLM you choose. One co-worker argued that we should be efficient in our LLM use. If I understand correctly, he was urging us to use cheaper LLMs for easier tasks and save the more expensive LLMs for the tougher tasks. The other co-worker and I both pushed back saying we don't want to waste time trying to guess which LLM is appropriate and we don't want to waste our tokens using the cheaper LLMs. Basically. I pointed out what a crappy business model charging per token is for us customers. The prov...

Is this a game... or is it real? What's the difference?

People are absolutely obsessed and enamored by this new type of Artificial Intelligence (AI) we have. Generative AI. Large Language Models. Whatever you want to call them. When ChatGPT first came out it didn't seem that novel to me. I've played video games that seemingly conversed with me. I've chatted with ELIZA . But when I started playing with ChatGPT it was obvious that it was much better than those ever were. So, like David asked Joshua in War Games , I asked ChatGPT if it would like to play a game. I can't remember if it offered hangman or if I did, but it happily played hangman with me. And it happily told me letters I guessed were right or wrong until I was "hanged" and then it revealed the secret word. Letters I had been told were not in the word were indeed right there in the word. Thus began my trust issues with this new chatbot AI. Today I am very grateful for those trust issues as I watch others become completely enamored and enthr...

My New Favorite Phone Game: termux

 A lot of people when bored pull out their phone and play games.  Games just don't do it for me for some reason.  I mean, I played chess for a while, and recently I tried Shoot Bubble and 5 Dice (generic Yahtzee), but for some reason I always forget I even have them available and I end up just scrolling Twitter :-/  My feed is pretty good, if someone gets overly political or negative (usually its a combination of the two) I block them, but stuff still leaks in.  Usually if Twitter is holding my attention for a long time it's because it's making me angry.  I don't like that.  I think I've found a better solution for when I'm bored and pull out my phone: termux . Termux is a linux command-line environment for Android.  It's a kinda like wsl (or cygwin if you are old like me) or Terminal.app, but for your phone.  It's almost linux but not quite.  Normally I find that very frustrating, especially if I'm trying to get real work done (you may ...

Git Rebase Explained

Image
Introduction Rebase is a helpful git command that can be used to turn a branchy two-headed version history into an easy to follow linear one. A linear history is much easier for a human eye to follow and a human brain to understand. Rebase is a very safe command to use, despite some fear that people have about it. This post should explain how rebase works and clear up any misunderstandings about it. Rebase Basics The short summary of rebase is that it cuts commits out of the git history and reconnects them somewhere else. Let's say the common scenario comes up: you commit a change to the main branch of a repository, you then run  git fetch , and in come a couple changes that other people made on the main branch. If your commit is version 46f and the others that just came in on the fetch are versions ef9 and 4a2, your version history might look like this: The main branch now has two heads, 46f and 4a2. You can run  git rebase  to disconnect your commit from version d88 and...

My 2013 DVCon Paper and Poster

I just noticed that my 2013 DVCon paper and poster are no longer archived on the DVCon website.  So, for my records at least, here they are: The poster:  Poster: ASIC-Strength Verification in a Fast-Moving FPGA World The paper:  ASIC-Strength Verification in a Fast-Moving FPGA World Apologies for the PDF of the paper, but converting it to html requires more time than I have at the moment.

Zmodem File Transfer With GNU Screen

I've been using screen as my serial terminal (as opposed to minicom or picocom) for a long time now.  Today I had the need to transfer a file from my PC to the embedded device I was connected to with screen.  Networking was not working, and a co-worker reminded me that zmodem was a way to transfer a file over the serial port.  I googled for instructions on exactly how to use zmodem and I found stack overflow answers and blog entries all mentioning GNU screen for doing so, but none of them really explained it right.  Here's what worked for me today. To transfer a file from my PC to the embedded device: in screen hit ctrl-a : zmodem catch in screen, at the linux command-line on your device type: rz screen will prompt with an sz command, just append the filename to that command and hit enter Note that this works best if the file is in the same directory as you ran screen from.   To send a file from the embedded device to your PC: in screen hit ctrl-a : zmodem catc...

Giving Bitcoin as a Gift

 If you've been following along, you know I was considering giving bitcoin as a Christmas gift .  I did end up giving bitcoin to friends and family for Christmas.  I'm pretty happy with how it turned out.  I went with the HD Paper Wallet solution, and so I wrote some python code to generate paper wallets .  The code is open source, and instructions are in the README there on github.  You'll probably want to tweak the template to customize it for you instead of me.  Hopefully someday I can modify the code to make that easy, but I'm pretty new at generating images and PDFs.  The code I write for my day job doesn't involve pretty pictures, or words even :-)