Week 2
Building the website
I had practiced building a simple website for the class and wanted to demo it during the class but didn’t really have time to do that. So instead I started looking into how I would really want to maintain my log. And one of the things I wanted to do is really use this as an opportunity to do both continuous documentation as well as interactive visualization that shows the progression of a project. And this is somewhat related to an idea I’ve been throwing around recently about how the way in which we communicate science can be improved right now. It might even have to change the role that journals play is an important piece, but is the format of how we actually present this research still the best way to do so.
Tbh for something like this even a plain html write would be fine but, hey! This is fun with AI right?One tool that I’ve used in the past that is pretty cool is called Quarto (example project). Quarto has this really nice feature of how you can basically have code in-line that then gets executed and figures generated as the page is built or you can have the code along with what you’re actually doing as well. This makes things very reproducible. It doesn’t natively make it easy to insert Javascript interactive elements and things like that though. You also have to fight a lot with some of the style sheets to have fine grained control. I think that’s the better tool to maintain something like this log tbh, but this is also an opportunity for me to learn new things. So I’m going to try building a custom workflow based on this tool that Ian told me about called Astro.
Initial design choices
2026-06-10 (Wed, 10th Jun)
After a series of discussions, I decided to experiment and try something quickly that I definitely wouldn’t have done if I was writing all the code myself. I decided that I was going to let Claude build for me a very minimal, but ground up1 I was very hesitant initially because people have done things like this. Julia has a whole framework called ModelingToolkit, which is a generalizable package that uses symbolics to do a lot of smart things like reduce the system symbolically before actually computing the Jacobians using auto diff or symbolic differentiation as well. However, the problem with something like this is that because it needs to fit everybody’s use case, it actually ends up having a lot of machinery behind it. This resonated with an idea that I’ve been playing around with in my head about how we could have hyper-specialized code now for individual projects because the cost of writing new code is come down dramatically. So I decided to run with it here., version of the system that can then be given to a nonlinear solver. The key question here is how do you go from an individual component to composing many of them into the residual matrix of Jacobians (which ends up being sparse for the typical engine solves).
I decided to use a test-driven development approach via a skill I modified from Matt Pocock’s typecript focused skill to something more relevant to Julia and Python. the model did pretty well actually. It did follow the test-driven development approach of creating the tests first, making sure they fail and then writing only the minimal amount of code that is required to make those tests pass. Doing this sequentially means that you actually build up nicely without a lot of code bloat. Some of the tests are a bit iffy and… yes, they’re technically tests, but they don’t actually have very high quality. One example was where it built and solved a “nonlinear system” that just had an flow-start and a flow-end and the mass flows had to be matched.
Showcasing work
One of the things I’ve realized by experimenting with the AI models is that it very quickly becomes quite fatiguing to review the amount of code that these models write. After some initial frustration a while back, I realized that I just need to change the way I am thinking about this - the analogy came from thinking about how I interact with students. Typically when I meet with students to discuss research progress, they show me the work that they’ve done packaged in some easy-to-parse-way - graphs, flow-charts, diagrams, slides etc. Only rarely when we are actually actively trying to debug something together are we really looking into the raw code. So why not ask the models to show their work!
They love writing .md files but even better is to ask them to use html files. You can see the skill in my repo visual-walkthrough and the full html page here.
After some initial massaging it came up with something interesting that seems encouraging!