Symmetric functions and U-statistics
A symmetric function is a function whose value is unchanged under every permutation of its arguments. The previous post showed how three symmetric functions of the sides of a triangle a + b + c ab + bc + ac abc are related to the perimeter, inner radius, and outer
Read moreHarnessing Foundry Cheatcodes: JSON Report Generation with Solidity
While navigating the complexities of smart contract development and testing, we developers are always on the lookout for innovative tools that can streamline our work. One such utility that has caught my attention is Foundry’s fuzz testing, or “fuzzing”. Although fuzzing is an excellent approach to catching unforeseen edge cases,
Read moreHow to Use Swift Package Manager to Save Gigabytes of Network Traffic and Disk Space
Use SPM to store dependency checkouts in a repository and do it better than CocoaPodsSource: AppleMany of you have experienced the annoying situation — you open a project or switch a branch, and see the sad picture of how SPM resolves packages.One of the advantages of CocoaPods, compared to SPM, is that
Read moreFarewell, Ramda
Ever struggled with old code, feeling like decrypting an ancient script? Often, Ramda was involved, prompting me to seek simpler alternativePhoto by Ryunosuke Kikuno on UnsplashIntroHave you ever come across a piece of code that’s two years old and struggled to make changes to it? You spend a lot of time
Read moreRelating perimeter, inner radius, outer radius, and sides of a triangle
Suppose a triangle T has sides a, b, and c. Let s be the semi-perimeter, i.e. half the perimeter. Let r be the inner radius, the radius of the largest circle that can fit inside T. Let R be the outer radius, the radius of the smallest circle that can
Read morePolishing Diamonds in Java
Managing interface change in diamond hierarchies.Photo by Edgar Soto on UnsplashInheriting Diamonds in JavaJava is an object-oriented language that supports single inheritance for classes. A class can inherit from at most one single parent class. Java also supports classes implementing multiple interfaces. Interfaces may extend multiple interfaces as well.The following class diagram illustrates
Read moreExperiments with Bing chat
My two previous posts looked at experiments with ChatGPT and Google Bard. This post will look at redoing the same experiments with Microsoft’s Bing Chat: looking for mnemonic encodings and simplifying Boolean expressions. When you open up Bing chat you can select a conversational style: More creative More balanced More
Read moreBoolean function minimization with AI
I was curious how well LLMs would do at minimizing a Boolean expression, that is, taking a Boolean expression and producing a smaller equivalent expression. I didn’t expect good performance because this problem is more about logic than recall, but sometimes LLMs surprise you, so I wanted to give it
Read moreMy Journey with Depth Estimation
Example of training images with true labelsI recently participated in the AICrowd Mono Depth Perception competition, a proud milestone in my machine learning journey. I secured 4th place and was awarded the “Most Creative Solution Award.” In this post, I’ll detail the challenge, my approach, and the lessons learned. I’ve also
Read moreProduction Engineering and Generative AI
Hi, I’m Jakob, and I lead engineering at a new Enterprise AI company. We’ve been working with a range of experts across enterprises to understand what our customers need to use AI effectively in production environments. I want to share some of the learnings we have been hearing.No one has all
Read more