The Hidden Rules Behind Rust Functions & Closures
Demystifying fn, Fn, FnMut, and FnOnce from everyday usage to compiler magic under the hood
https://blog.cuongle.dev/p/the-hidden-rules-behind-rust-functions
Revisiting an Old Idea: Building a Rules Engine with CouchDB
A few years back, while working at 18F, I created a prototype that explored something a bit unconventional: using CouchDB’s document validation functions as the foundation for a rules engine. The idea was to leverage CouchDB’s built-in validation capabilities to create business rules that could be applied to documents as they’re inserted or updated.
I’ve always been somewhat obsessed with CouchDB—there’s something elegant about its document-oriented approach and the way it handles replication, versioning, and distributed architectures. (Here’s a video I made over 10 years ago showing how to load polling location data into a CouchDB instance.) So even though my prototype remained just that, the concept has continued to bubble in the back of my brain.
Recently, I decided to dust off this old project and give it the attention it deserves. I’ve worked to develop a comprehensive roadmap to transform the basic prototype into a more functional and usable product that truly leverages CouchDB’s unique strengths.
What Makes This Interesting
Instead of building yet another traditional rules engine, this approach uses CouchDB’s native validation functions as the rule execution environment. This means:
The roadmap I’ve created takes my earlier work from a proof-of-concept to a (hopefully) production-ready system with a web-based rule management interface, comprehensive testing infrastructure, and advanced rule capabilities—all while maintaining the elegance of the core CouchDB foundation.
Looking Ahead
Over the next few weeks (again, hopefully), I’ll be working through the development phases, starting with a modern testing framework and a clean web interface for rule management. The goal is to create something that demonstrates how CouchDB’s unique features can be leveraged in ways that traditional databases simply can’t match.
If you’re interested in following along or have thoughts about creative uses for CouchDB, I’d love to hear from you. Sometimes the most interesting solutions come from pushing familiar tools in unexpected directions.
The main reason #computer is now able to fake #music #production is due to the highly formalistic nature of our #production #practices, be it I-V-vi-VI #harmony or four-on-the-floor drum #beats. In that regard is it really fair to blame the computer for copying and replacing us? I mean, we are the ones who replaced our authentic #creative expression with simple #rules to follow.
#Republicans are playing a #deadly game with no #rules, #limits, #ethics, #commonsense, #morailty or #decency. ALL of them, with the exception of a tiny handful, go along.
Repeatedly, the #GOP has shown it will use any tool at its disposal, including State sponsored #terrorism, threatening the #health, #safety, and basic human #rights of Americans, and against #democracy.
Democrats mostly wring their hands, make jokes, call names and post insults on the dead bird site.
What New Zealanders need to know about travelling to the US https://www.byteseu.com/1296977/ #about #amid #artist #border #deported #Detained #fiyah #General #Kiwi #know #latest #need #new #NewZealand #reggae #reportedly #rules #Security #states #the #tightened #to #Travel #Travelling #united #US #What #zealanders
Rules and Boundaries
Riot Folk! (Ryan Harvey) - Peace, Justice and Anarchy
https://www.youtube.com/watch?v=Cuo0Hg0TGH4
This country ain't nothin but a company's dream
A couple hundred thousand workers that's all that they see
Our hands on our tools, money writing the rules
From the sweatshop prisons to the cops in the schools
I made a #fanzine. About #GURPS.
I don't normally do fan things, so I was surprised that I liked telling people about what I enjoy and why.
https://ranarh.itch.io/gurps-fanzine
It does put me in a spot when writing RPGs because I really do find this system does most of what I want and it feels like reinventing the wheel doing other systems on my own. I can't ever come close to the thousands of pages.
“Ready or not, age verification is rolling out across the #Internet”
“It’s just a taste of the issues that many other countries might face as they launch their own systems, and it’s a situation that privacy and security experts have long warned about — to little avail.
Following a yearslong political push to make the internet safer for kids, age #verification has started seeping into online spaces across the globe. Lawmakers in the #USA, #Europe, #Australia, and elsewhere have all passed #AgeGating #rules, and platforms have begun to comply.
The likely methods for verification are similar to those in the UK. #Platforms typically ask users to either enter a #PaymentCard, upload a #GovernmenIssuedID, take a selfie, or allow a platform to use their #data (like account #CreationDates and #UserConnections) to “estimate” their age. Most rely on #ThirdParty services: #Bluesky uses the #EpicGames-owned Kids Web Services; #Reddit is working with #Persona; and #Discord has partnered with #kID.”
#UK / #OnlineSafetyAct / #OSA / #AgeVerification / #surveillance / #control <https://www.theverge.com/analysis/715767/online-age-verification-not-ready> (paywall) / <https://archive.md/jQuvd>
Life below the NBA’s tax aprons brings a new set of rules https://www.rawchili.com/nba/178130/ #a #aprons #Basketball #below #bright #brings #FrontPage #life #NBA #new #of #Phoenix #PhoenixSuns #PhoenixSuns #rules #s #set #side #sun #suns #SunsAnalysis #tax #the
Is the NBA’s Three-Point Frenzy Sinking Ratings? https://www.rawchili.com/nba/176924/ #Basketball #GoldenState #GoldenStateWarriors #GoldenState #GoldenStateWarriors #NBA #NBAFinals #ratings #rules #ShaquilleO'Neal #Sports #StephCurry #Viewership #Warriors
In #USA today
we can NO longer talk about choosing between #Democrat or #'Repubblican' (MAGAs)
The choice is between #Ethics, #Morals, #Decency #Rules of Laws
and
#racism, #cruelty, #chaos, #immorality #perversion of the #MAGAGOP
Choosing between "the #State" and "Who steals the most" takes everything"
Choosing between #Institutions that help and protect #Citizens
or 'every man for himself'.
Choosing between #Democracy #freedom #civilization... #Decency
or #Fascism.
Palm oil markets roiled by biofuel rules and geopolitical shocks https://www.byteseu.com/1173969/ #biofuel #Geopolitical #Geopolitics #Markets #oil #Palm #roiled #rules #shocks