Johann Schopplich
614 posts

Johann Schopplich
@jschopplich
Developer who cares about aesthetics. @finanzfluss





Chainable async API I always wondered how @DrizzleORM is able to chain async functions like `await delete()` and `await delete().where()` They implement their own custom `Promise` which every database operation extends like `PgDelete` for Postgres delete The chainable functions like `delete()` and `where()` modify some internal state and always return `this` (the promise instance) So when you do `await delete()`, it internally calls the `then()` of the promise which invokes `this.execute()` The actual database operation happens in the `execute` method which is overwritten for each sub-class I think this is really great API design and the idea of implementing `Promise` is brilliant




There is not a single youtube review for The Tower SP. It's the GBA version of SimTower, one of my favorite PC games as a kid. Made by Yoot Saito, the Seaman guy. Really seems like the kinda game that'd have a YouTube footprint, but it just doesn't. Sad!






Longer queries means incurring higher token costs. But there’s more to building good AI applications than pinching pennies on tokens. TOON (Token-Oriented Object Notation) creator @jschopplich explains: heavybit.com/library/articl…


AI discourse on Twitter is frustrating. Take this tweet with thousands of views. It claims you should use TOON instead of JSON. But if you actually count tokens, the savings are … barely existing, it's not in the training data, and tabular JSON beats it. x.com/DataChaz/statu…

Yes I did. I’m using it in production w/ Amazon Nova Micro and it is performing better. We serve a ridiculous amount of ecomm traffic daily and have observed a clear drop in token usage and a decrease in ttfb from bedrock. The model did not perform well with CSVs or XML and did not even handle large compressed JSON well. For this model it is a win across the board



BREAKTHROUGH: I have invented a novel object notation format that provides an additional 71% token savings over JSON and 59% over TOON. I have named it VSC (Values Separated by Comma), patent pending.











