2025-12-23 17:30:06
Writing unit tests for my random number generation library continues to be difficult. My tests are failing because the bias in the distribution exceeds my expectations, but I'm wondering whether I should just repeat the test more times and permit it to exceed expectations some of the time (as long as it does it symmetrically/rarely/etc. My gut tells me that second-order expectations aren't any better than first-order expectations, but another part of me disagrees.
Thinking more as I write this (writing is thinking): second-order tests can at least give me better info to work with towards fixing things I think! So maybe I'll invest in them.
#coding
I'm porting a bunch of code that delves heavily into index math from Python to Lua for my incremental/reversible RNG library. In Lua, indices start at 1. I have never in my life been more glad to have a robust suite of unit tests, because the number of off-by-one errors I'm introducing is astronomical.
#coding
Anyone know anything about solidagent.io?
They appear to be an EU hosted AI agent - in the sense that they have the trained models on their own platforms, rather than using an API so presumably queries etc stay on their servers.
Their statements of #privacy etc look good and the test queries I posted (on quite complex #coding problems) were very impressive, but I don't think it's strictly FOSS otherwise.
Would be happy to hear if others have good/bad experience with them as they seem quite new.
https://www.solidagent.io/privacy
I did it guys... i used chatgpt in a productive way.
I've been banging my head against the wall trying to get some perl XPath stuff to work... I asked it a specific question with the XML i had, and what it produced works. And it's reasonably succinct.
I stand ready to be flogged.
#AI #coding #Perl #LLM