895 karma · joined Dec 22, 2015 (10y ago) · 231 submissions
comment 2w ago · link · parent
It started out as a spreadsheet which I used to do my taxes when I was freelancing, and over time grew to a ClojureScript webapp. The tax rules are writen as regular code, which is converted to a graph using lisp macros. This calculation graph is used to calculate the taxes, show the intermediates steps, but can also be rendered to a visual form to show dependencies, converted to batch or reactive functions, and even to a MILP form that a solver can use to optimize some deductions. You can also load scenarios from PDFs of tax returns to avoid manual data entry.
The app runs completely locally in your browser, no data is shared with a backend at all.
comment 1mo ago · link · parent
Sure, not using a framework is nice for a small and simple service.
When you have multiple devs working on a large codebase over the timespan of years, a 'heavy' framework is highly prefereable over everyone reinventing the wheel.
comment 8mo ago · link · parent
Stack: go, python Team size: 8 Experience, mixed.
I'm using a code review agent which sometimes catches a critical big humans miss, so that is very useful.
Using it to get to know a code base is also very useful. A question like 'which functions touch this table' or 'describe the flow of this API endpoint' are usually answered correctly. This is a huge time saver when I need to work on a code base i'm less familiar with.
For coding, agents are fine for simple straightforward tasks, but I find the tools are very myopic: they prefer very local changes (adding new helper functions all over the place, even when such helpers already exist)
For harder problems I find agents get stuck in loops, and coming up with the right prompts and guardrails can be slower than just writing the code.
I also hates how slow and unpredictable the agents can be. At times it feels like gambling. Will the agents actually fix my tests, or fuck up the code base? Who knows, let's check in 5 minutes.
IMO the worst thing is that juniors can now come up with large change sets, that seem good at a glance but then turn out to be fundamentally flawed, and it takes tons of time to review
comment 1y ago · link · parent
I think Materialize offers a similar product, but last I checked it was only available as a SaaS solution.
I hope to do a proof of concept soon, to compare both solutions
comment 1y ago · link · parent
Clojure sort of guides you to simplicity, building everything out of functions and simple datastructures has big advantages when testing and reasoning about code.
I do find that in larger code bases, Clojure lack of types causes friction (spec is just a bandaid, not a fix).
There are languages with immutability and types (like Haskell), but these don't have the get-shit-done factor I seek.
comment 1y ago · link · parent
comment 1y ago · link · parent
Asking a LLM to translate between languages works really well most of the time. It's also a great way to learn which libraries are the standard solution for a language. It really accelerated my learning process.
Sure, there is the occasional too literal translation or hallucination, but I found this useful enough.
21.
Analyzing the codebase of Caffeine, a high performance caching library(adriacabeza.github.io ↗)
268 points · by synthc · 1y ago · 47 comments
comment 2y ago · link · parent
We built this huge system with tons of regexes, custom parsers, word lists, ontologies etc. It was a huge effort to get somewhat acceptable accuracy.
It is humbling to see that these days a 100 line Python script can do the same thing but better: AI has basically taken over my first job.
27.
The Croissant Diet(fireinabottle.net ↗)
6 points · by synthc · 2y ago · 2 comments
comment 2y ago · link · parent
In my experience GCP's core services are very stable: I had a site running on free tier App Engine for over 10 years without any supervision.
However it is clear that many GCP products are run by skeleton crews and will not improve. Documentation is also lacking sometimes.
Dataform for example is conceptually a great tool, but hampered by really basic UI bugs.
I found Datastream (change data capture tool) impossible to use. You would think that shoveling data between 2 GCP products (Postgres and BigQuery) would be easy, but I spend a week fiddling with obscure network settings before giving up.