Swift: High-Performance Dictionary Keys
I improved Factory’s dictionary lookup performance by over 500%! Can you do the same in your app?Continue reading on Better Programming »
Read moreCurvature at Cairo
I was flipping through Gravitation [1] this weekend and was curious about an illustration on page 309. This post reproduces that graph. The graph is centered at Cairo, Egypt and includes triangles whose side lengths are the distances between cities. The triangles are calculated using only distances, not by measuring
Read moreCalculating the intersection of two circles
Given the equations for two circles, how can you tell whether they intersect? And if they do intersect, how do you find the point(s) of intersection? MathWorld gives a derivation, but I’d like to add the derivation there in two ways. First, I’d like to be more explicit about the
Read moreUnity3D + Amazon GameLift: Focus on The Realtime Script
Write your own script and take control over the game server!In a previous article, I showed how to build an entire real-time multiplayer game with Amazon GameLift and Unity3D. The process implicates creating game sessions and player sessions with Lambda, guest access to the services with Cognito, and a game server
Read moreMy experience at Medium Day
I look forward to more!Continue reading on Better Programming »
Read moreVerifying the Origin of Media in an Algorithmic World
A walkthrough of the C2PA content authenticity specification and its Rust SDK1970s Transamerica building in San Francisco. Midjourney.Distinguishing authentic human-produced media from deepfakes or other algorithmically generated media is notoriously difficult. Existing tools produce a probability that given media is generated, but certainty is elusive. In the coming years, verifying the
Read moreA small programming language
Paul Graham said “Programming languages teach you not to want what they don’t provide.” He meant that as a negative: programmers using less expressive languages don’t know what they’re missing. But you could also take that as a positive: using a simple language can teach you that you don’t need
Read moreMy ten year quest for concise lambda expressions in Java
My ten-year quest for concise lambda expressions in JavaA mission to hold off the horde of for loops in Java.Photo by Fivos Avgerinos on UnsplashA series of fortunate and unfortunate eventsI started learning Java in 1997. I thought initially Java would be a fad and that Smalltalk would emerge as the victor in
Read moreQuadrature rules and an impossibility theorem
Many numerical integration formulas over a finite interval have the form That is, the integral on the left can be approximated by evaluating the integrand f at particular nodes and taking the weighted sum, and the error is some multiple of a derivative of f evaluated at a point in
Read moreBuilding Production-Ready LLM Apps With LlamaIndex: Recursive Document Agents for Dynamic Retrieval
Combining recursive retrieval and document agents for advanced retrievalContinue reading on Better Programming »
Read more