Better HN
topnewbestaskshowjobs
Log inSign up

chaitanyya

14 karma · joined May 14, 2024 (2y ago) · 41 submissions

All things software correctness, reliability, formal methods, and mathematics
Submissions

comment 1mo ago · link · parent

The usable formal methods hackathon. Build a piece of real-world production software, and formally verify it.

2.

VibeCheck: A formal methods hackathon in SF(fmxai.org ↗)

1 points · by chaitanyya · 1mo ago · 1 comment

comment 4mo ago · link · parent

in all our hearts they were always rated CCC

4.

Show HN: Deterministic Simulation Testing(workers.io ↗)

2 points · by chaitanyya · 4mo ago · discuss

comment 4mo ago · link · parent

Anthropic is probably overcharging for Claude API usage. I enabled API based billing for 2 sessions on Claude Code and it logged 700m input tokens.

comment 5mo ago · link · parent

I don't believe US government wanted to restrict the model use to US citizens only. The bad actors will and can find their ways around it.

They do however want strict measures in place to avoid abuse, and the export control was the only tool they had to stop Anthropic from releasing the model.

Though I also wonder if it's even possible to patch things without severely crippling the abilities of the model.

comment 5mo ago · link · parent

How much of it is just exposing poor engineering practices people got away with because it was not economically viable earlier to spend human hours to exploit a system?

Not taking a dig at people, it was not a terrible choice earlier. Not like these models are inventing net new ways to exploit systems.

comment 5mo ago · link · parent

Thanks, we need a lot of work in the docs and the homepage. A lot of that part was very rushed.

You just need to create a simple workload - think of it like an e2e test case you care about. It can be in any language or lib. Next you need to run this test in our VM.

We then simulate 100s of realistic production scenarios like slow network, different cpu scheduling etc. and save the environments where your test case fails.

Those failing environments can be inspected, you can replay then and they will always produce the exact same result.

9.

Show HN: Make every bug perfectly reproducible(workers.io ↗)

13 points · by chaitanyya · 5mo ago · 2 comments

comment 6mo ago · link · parent

This reminds me of the free internet Facebook tried to launch in India to kill net neutrality

Thank god people protested against it and made them drop the plan.

comment 7mo ago · link · parent

What do they mean when they say "no diminishing returns?" does this essentially mean the code you are testing has no bounded state space and you continue to find infinite paths?

Because we have tools and techniques that can guarantee the absence of certain behavior in a bounded state space using formal methods (even unbounded at times)

Sure, it's hard to formally verify everything but if you are dealing with something extremely critical why not design it in a way that you can formally verify it?

But yeah, the easy button is keep throwing more tokens till you money runs out of money

comment 7mo ago · link · parent

Good shit! going to experiment with some complex use cases

comment 8mo ago · link · parent

Imagine a stack with two operations: push and pop. There’s a bug lurking in it. If you ever put more than 32 items on the stack, it crashes. You don’t know this yet. Your job is to find the bug.

The first thing you’d probably try is to generate random sequences of pushes and pops, run a lot of tests, and wait for something to break. Using both operations feels like the most thorough way to test. It seems like the best coverage, the highest chance of finding a bug. But is it?

If you pick push and pop at random, half and half, you’ll need about 370,000 tests before you ever hit the overflow. That number isn’t a mistake. Pushes and pops cancel each other out, like a random walk: the stack goes up a bit, then down, then up again. Getting to 33 items is like flipping a coin and getting 33 heads in a row. It almost never happens.

Now try something different. Before each test, pick a random non-empty subset of the API. With two operations, you get three cases: both push and pop, just push, or just pop. In a third of your tests, you’ll only use push, so every operation grows the stack. The bug shows up right away.

If you leave out features at random when you write tests, you find the stack bug about a third of the time. Every test that only uses push will overflow. Before, the chance was almost zero. The tests that only use push are the ones that catch the bug, and you get those just by picking random subsets. You didn’t have to guess that pop was the problem. Doing less actually finds more.

comment 8mo ago · link · parent

I have been getting into Lean4, mostly playing around with writing proofs for properties of distributed software systems.

Claude Code has been super helpful in this; however, I had to do a lot of back-and-forth to verify the output in an IDE and then prompt Claude again with suggestions to fix the proof.

Yesterday, Axiom, one of the model labs working on a foundation model specializing in mathematics, released AXLE, the Lean Engine. The first thing I did was create a Skill so Claude Code can use it as a verifier for Lean code it writes.

Works surprisingly well.

15.

Claude Code Skill to write better Lean4 proofs(spec.workers.io ↗)

2 points · by chaitanyya · 8mo ago · 1 comment

12