I have been curious about WebAssembly for a couple years. WebAssembly compiles to a bytecode file (WASM) that can be interperted at near native speeds within a browser. I saw Rick Battigline's The Art of WebAssembly at the library and borrowed it. I wanted to be able to run the examples without using nodejs. I find that nodejs installs hundreds of little packages and it sometimes seems like clutter. I also decided to rely on chatGPT for help. My first prompt was just to get a workflow to got from a WebAssembly Text (WAT) file to a working web page.
How do I run a webassembly WAT file in a browser?
I was provided with a workflow that was illustrated with a simple program, a suggestion to use the WABT package to compile, the matching webpage that could be run with a simple python server. So far so good. I installed WABT and compiled the WAT example and ran it using the webpage. The workflow and example worked as advertised. The code supplied with the book provided
I was interested in the concept of levels of intentionality as discussed in Robin Dunbar Evolutionary Psychology.
My inital prompt was to see if chatGPT could describe the concept:
Are you familiar with levels of intentionality?
chatGPT responded:
Yes, I'm familiar with levels of intentionality, which are concepts used in various fields such as philosophy, psychology, and cognitive science to describe the complexity of thought processes regarding beliefs, intentions, and understanding others' minds.
I read an article recently that based a Turing test on comparing the behaviour of a LLM to that of a person for some standard games - such as the "Prisoner's Dilemma". I think the choice of domain is too rote - which is convenient for making statistical measures - to be revealing. I decided to play the "Prisoner's Dilemma" with chatGPT to see what happened.
I started with a simple prompt:
Are you familiar with the prisoner's dilemma?
It provided a good explanation including a payoff matrix.
with a couple more prompts we played a few rounds:
-
For each round we will use the payoff matrix you provided initially. What is your move?
I enjoy Larry Gonick's Cartoon Guides. A combination of an amazing repertoire of dad jokes with insites into the material expresed graphically. Unfortunately most of them do not have problems or quizzes. I decided to try chatGPT as a way to customize testing my comprehension. I am familiar with the material as I have taken courses in the subject. I wanted to share what I did, the issues I ran into and how I addressed them. Let's get started.
My first prompt was to set up a course outline:
I am an adult learner and I would like to create a course outline in environmental science based on the following headings:
1. Forests and Water
2. More Cycles
3. Evolving Systems, struggling Individuals
4. Communities Wet
5. ... And Dry
I have tried a couple times to get chatGPT to find a path thru a "Choose Your Own Adventure" book. It does a poor job of exploring and building a model of the book. I am going to treat the book as a directed graph. A page forms a node and the option of which page to go to next froms and edge of the graph. With some experimentation I determined that chatGPT was deleting edges that it was not using. I specifically instruct chatGPT, but I am still having issues in getting chatGPT to both provide a list and select a next page. Once again I will use Leibold's "Grand Canyon Odyssey.
My first prompt was to describe a directed graph and to task chatGPT with keeping a running list of all edges:
We are going to explore a directed graph. We will start at node 1. At each prompt I will give the available edges in the format 1 -> 2. This means you can go from node 1 to node 2. Answer the prompt with a complete list of all edges. Keep an edge even if you do not use it Based on the edges presented
I ran across a classic "Choose Your Own Adventure" book at a local Little Free Library. I was curious if chatGPT could navigate "branched narative fiction. My previous attempt went poorly.
My first prompt was to describe how the book was organized and to set the task:
Jay Leibold's "Grand Canyon Odyssey" is a `Choose Your Own Adventure Book`. After each section you are give one or more pages you can go to next. I will use the following notation: 1 -> 2. This means you can go from page 1 to page 2. I will give you a list of options and I need you to provide a shorter list that gives a path from "1" to "END". Do you understand the task?
chatGPT responded:
Yes, I understand the task. Please provide me with the list of options, and I will help you find a shorter list that gives a path from page "1" to "END".
I read Dennis Yi Tenen's "Literary Theory for Robots". It gives examples of previous tools for generating texts algorithmacally. Amoung these is "Plotto" written by William W. Cook, released in 1928. It provides a number of short sentences that can be combined to create the skeleton for a story. Can chatGPT write meaningfully from a prompt derived from Plotto. I will use the following:
Plotto: 681
A, happy and optimistic, undergoes a critical illness which makes of him a morbid, melancholy, superstitious pessimist
I create my prompt by replacing the "A" with the character name:
write a story outline about "Tom , happy and optimistic, undergoes a critical illness which makes of him a morbid, melancholy, superstitious pessimist" in the style of H.P. Lovecraft.
Title: The Shadows Within
I ran across a recent "Choose Your Own Adventure" book at a local Little Free Library. I was curious if chatGPT could navigate "branched narative fiction". I used the book I found to make an attempt. With this type of book you often wind up going back to a previous chapter and taking a different branch. I wanted to see if it would remember the available options and if it adjusted to reach a goal.
My first prompt was to describe how the book was organized and to set the task:
Kazim Ali's "The Citadel of Whispers" is a `Choose Your Own Adventure Book`. The book has 110 sections. The first time we visit a section I will tell you what sections that you can go to next. I will prompt you to tell me your choice of next section. If you choose to go to a section that is not correct I will send you back to the previous correct section. The goal is to reach section 33. We will start at section 1 and if we reach a dead end you will go back to section 1. Do you understand the task?
I enjoy Larry Gonick's Cartoon Guides. A combination of an amazing repertoire of dad jokes with insites into the material expresed graphically. Unfortunately most of them do not have problems or quizzes. I decided to try chatGPT as a way to customize testing my comprehension. I am familiar with the material as I have taken courses in the subject. I wanted to share what I did, the issues I ran into and how I addressed them. Let's get started.
My first prompt was to set up a course outline:
I am an adult learner and I would like to create a course outline in statistics based on the following headings:
1. What is statistics
2. Data Description
3. Probability
4. Random Variables
#! /bin/bash | |
set -e | |
trap 'previous_command=$this_command; this_command=$BASH_COMMAND' DEBUG | |
trap 'echo FAILED COMMAND: $previous_command' EXIT | |
#------------------------------------------------------------------------------------------- | |
# This script will download packages for, configure, build and install a GCC cross-compiler. | |
# Customize the variables (INSTALL_PATH, TARGET, etc.) to your liking before running. | |
# If you get an error and need to resume the script from some point in the middle, | |
# just delete/comment the preceding lines before running it again. |