Better HN
topnewbestaskshowjobs
Log inSign up

synthc

895 karma · joined Dec 22, 2015 (10y ago) · 231 submissions

reach me at hackernews@chrisblom.net
Submissions

comment 2w ago · link · parent

I'm working on an advanced calculator for Dutch income taxes: https://aangifteoptimaal.nl It shows all intermediate steps, dependencies, references to laws and yearly parameters, and allows you to compare scenarios and optimize how deductions are divided between you and your partner using mixed integer linear programming (MILP).

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

Yeah also different vendors have different limitations.

comment 1mo ago · link · parent

I would love if the Jetbrains IDE's got really good agent integration, all their code analysis could have amazing synergy with LLM's, Unfortunatly for now I disabled all AI features as it was slowing my IDE (JetBrains) to a crawl.

comment 1mo ago · link · parent

Most go codebases I have seen would benefit from using a framework TBH.

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 5mo ago · link · parent

I gave it a weird and convoluted code snippet, and asked an LLM to step through the execution and trace the value of the variables at each step.

It was completely correct and I realized LLM are capable of generalizing beyond their training sets

comment 8mo ago · link · parent

`uv agent` and `bun agent` in 3....2.....1....

comment 8mo ago · link · parent

Very hit or miss.

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

They made their home a concentration camp, no need for railroad cars this time...

comment 1y ago · link · parent

I'm thinking of using it to replace an analytics pipeline at my job, which now uses expensive batch jobs. If the tech is solid, we would have instant and incremental updates, instead of recomputing everything every X hours. This would simplify things a lot.

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

Does anyone have experience with RisingWave in production? It seems like an interesting product but I can't find any experience reports.

comment 1y ago · link · parent

User name almost checks out

comment 1y ago · link · parent

Classic Dutch: “We need this talent… but financially, it is impossible to support them,”

comment 1y ago · link · parent

you get runtime errors with a long JVM stacktrace

comment 1y ago · link · parent

Immutability removes so much accidental complexity, it makes whole classes of mistakes dissapear. I'd also take immutability over types.

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

For me it just speeds up learning the language, so I think i'd become fluent faster.

I do thoroughly review of the the LLM answers, and hardly every directly copy paste answer, so I feel this way I still learn the language.

comment 1y ago · link · parent

about as much as I trust StackOverflow answers

comment 1y ago · link · parent

Seems like a bunch of go programmers really wanted to use go, no matter how impractical.

comment 1y ago · link · parent

Interesting! I did an internship where I tried to use transducers for fast information extraction. In theory, you can use FST's for fast approximate parsing. I didn't really work out, but I had lots of fun implementing a libary to compose FST's and explore cool algorithms to compose them. Not much business value was delivered, but I learned a lot.

comment 1y ago · link · parent

This year I switched to a new job, using programming languages that I was less familiar with.

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.

comment 1y ago · link · parent

Interesting deep dive on the internals of Caffeine, a widely used JVM caching library.

21.

Analyzing the codebase of Caffeine, a high performance caching library(adriacabeza.github.io ↗)

268 points · by synthc · 1y ago · 47 comments

comment 1y ago · link · parent

This just proves to me Meta can't build a product users actually want to use, they can only acquire other products, or lobby.

comment 1y ago · link · parent

'Serverless' has it's uses, but not for everything

- Serverless can get very expensive - DevEx is less than stellar, can't run a debugger - Vendor lock-in - You might be forced to update when they stop supporting older runtime versions

comment 2y ago · link · parent

My first job (around 2010) was to extract events from financial news and police reports.

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.

comment 2y ago · link · parent

The difference is in how easy it is to detect the cause of problems. Mistakes like wrong function names are mostly easy to find and fix. Mistakes when using core.async can be very hard to track down.

comment 2y ago · link · parent

I wouldn't recommend it but I'd figure the hackernews crowd likes deep dives on wierd diets.

27.

The Croissant Diet(fireinabottle.net ↗)

6 points · by synthc · 2y ago · 2 comments

comment 2y ago · link · parent

GCP has the superior UI, api and design. I prefer it over the other clouds: Azure plain sucks and AWS has too much bloat and does IAM/accounts worse.

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.

12345
8