HackerLangs
TopNewTrendsCommentsPastAskShowJobs

ndr

2,213 karmajoined 13 years ago
Software Engineer, traveler and wonderer.

Submissions

Agentic test processes, LLM benchmarks, and other notes on agentic coding

danluu.com
1 points·by ndr·3 days ago·0 comments

Pull Requests are Free Puppies [video]

youtube.com
3 points·by ndr·24 days ago·2 comments

Deleteduser.com –A $15 PII Magnet

mike-sheward.medium.com
1 points·by ndr·3 months ago·1 comments

I Made the "Next-Level" Camera and I love it

thelibre.news
258 points·by ndr·3 months ago·73 comments

Show HN: Codeglf – a local-first Python golf site

codeglf.com
2 points·by ndr·4 months ago·0 comments

Responsible Scaling Policy v3

lesswrong.com
1 points·by ndr·4 months ago·0 comments

Show HN: Claude-Stream-Compactor

github.com
5 points·by ndr·5 months ago·0 comments

A Data Model for Git

jvns.ca
2 points·by ndr·6 months ago·0 comments

Kamal: Deploy Web Apps Anywhere

kamal-deploy.org
2 points·by ndr·6 months ago·0 comments

Stanford Lecture: Dr. Don Knuth – Adventures with Knight's Tours [video]

youtube.com
2 points·by ndr·7 months ago·0 comments

Zellij: A terminal workspace with batteries included

zellij.dev
66 points·by ndr·7 months ago·61 comments

AeroSpace, i3-like tiling window manager for macOS

github.com
2 points·by ndr·8 months ago·0 comments

comments

ndr
·4 days ago·discuss
From TFA:

> The authorized PDF versions can be purchased at www.informit.com/taocp
ndr
·5 days ago·discuss
Is it only me or this sounds a bit counter to clojure philosophy?
ndr
·10 days ago·discuss
Use that logic to sell phones. Don't limit civil liberties to compensate for failures of parental supervision.
ndr
·11 days ago·discuss
There are game-theoretically aligned ways.

See for example https://oneacrefund.org/ [0] where they have a revolving loan fund.

OAF lends materials and teachers to farmers to make the more productive, by the end of the program they got productive enough to pay back the loan and OAF can lend the same money to someone else.

It's super capillary, with many boots on grounds and quality problems.

Embedded into this there's a good feedback channel: farmers who don't think are getting a good service stop paying back the loan. This allows OAF to go and audit what's failing there.

[0] The person who started also appeared in a podcast where they explained the basics https://foreveron.com/podcast/episode-035/
ndr
·16 days ago·discuss
This is what kamal does when you use localhost as registry [0] [1].

Pretty cool thing, I ship plenty of services to my tiny $5/mo vps with it without having to pay for a docker registry.

[0] https://kamal-deploy.org/docs/configuration/docker-registry/...

[1] https://github.com/basecamp/kamal/blob/eee0083b38661c3707c6b...
ndr
·16 days ago·discuss
I do consume the parquets with DuckDB but had to read in firebird sql stuff.

I didn't think of checking, but I now learnt there's an extension for DuckDB but it's C++ and also embeds the same DLL [0] https://github.com/flozer/duckdb-firebird
ndr
·16 days ago·discuss
Great loop spotting!

Recently I was messing around with parquet files in Python and ended up needing to ship the results on Windows, without a Windows machine to test on.

Shipping Python to end users is half mad already, and doing it on Windows is exactly the kind of thing I don't want to spend my life maintaining.

So I figured I'd rewrite it in Go. But that meant embedding a DLL, and how would I test it? I could spin up a VM, sure. But GitHub Actions already has a Windows environment, and there was my loop: let the agent push to the repo, run tests in GHA, rinse and repeat.

In under an hour it had a full rewrite of my Python, passing every test and producing row-for-row copies of my Parquet output. And it does work on the user machine!

Spotting a loop like that is as satisfying as noticing you can walk your chess opponent into a smothered mate. Truly empowering.
ndr
·19 days ago·discuss
https://archive.ph/UwObv
ndr
·21 days ago·discuss
Of course I meant that it won't make data up.

It can only emit SQL and the json spec of the chart.

Since shipping I've reviewed dozens of queries and charts it produces answering the user. I'm yet to catch sonnet off guard.
ndr
·22 days ago·discuss
Yes it's that, in particular `duplicate-code`.

`pylint . --disable=R0801` will work, `pylint profiling/ --enable=duplicate-code` doesn't seem to exit in a reasonable time. So that's likely hitting some pathological case, possibly accidentallyquadratic.tumblr.com material.
ndr
·22 days ago·discuss
TBH this is true only on the root of black. If you do `uvx pylint src/` it takes 5s on my machine.

It's still impressive but it looks like a pathological case in a test directory.
ndr
·22 days ago·discuss
This. I've recently used both duckdb and sqlite to power a dashboard for a small restaurant of a family member. It converts all their sales to a very tiny parquet files, daily.

The file fits in memory and can do all sort of computation in the browser itself. The backend is extremely simple, it just loads the JS and serves the parquet files.

It was also trivial to let the owner do their own queries, just give the schema to an LLM and let it use the charting library, no data hallucinations. If they need it in the dashboard they can either use that one or ask me to review that query.

To be honest, given how simple some things became, it's been really fun to work on.
ndr
·24 days ago·discuss
Context is that which is scarce.

It's hard to predict what parts of shared understanding we have today is going to be scarce tomorrow. And one can't serialize _all_ of that current shared understanding in documents and integration tests.

https://marginalrevolution.com/marginalrevolution/2021/12/co...
ndr
·24 days ago·discuss
Ugh HN removes the timestamp from the link!

https://www.youtube.com/watch?v=x8_ZZhRL3YU&t=1733s
ndr
·24 days ago·discuss
Lightly edited transcript of Richard Hipp, creator of SQLite, from 28'53":

> Suppose you had a pull request for SQLite. "Hey, I've got this new feature for SQLite. Here's the pull request." When you want me to pull that into the tree, you say, "Oh, it's free."

> No, it's not free. What you're doing is asking me - you've got this cool feature, and you want me to maintain it for you, to document it for you, to test it for you, to maintain it for you for the next twenty-five years. That's not free.

> Linus Torvalds is famous for saying there's free as in beer and free as in speech. But there's another kind of freedom: free as in puppies. "Oh look, I've got a free puppy for you." You see where this is going?

> A pull request is a free puppy. And then you've just got a kennel full of puppies at the end of the day. And you can't just throw them out - you're morally obligated to take care of them for their natural life.

> I don't want any free puppies.

Originally posted at https://news.ycombinator.com/item?id=48567803 but may be worth its own entry
ndr
·24 days ago·discuss
Thank you, I was too eager copy-pasting YT transcriptions.
ndr
·24 days ago·discuss
Related to this, the concept of "free as in puppies" from D. Richard Hipp, creator of SQLite:

> Suppose you had a pull request for SQLite. "Hey, I've got this new feature for SQLite. Here's the pull request." When you want me to pull that into the tree, you say, "Oh, it's free."

> No, it's not free. What you're doing is asking me - you've got this cool feature, and you want me to maintain it for you, to document it for you, to test it for you, to maintain it for you for the next twenty-five years. That's not free.

> Linus Torvalds is famous for saying there's free as in beer and free as in speech. But there's another kind of freedom: free as in puppies. "Oh look, I've got a free puppy for you." You see where this is going?

> A pull request is a free puppy. And then you've just got a kennel full of puppies at the end of the day. And you can't just throw them out - you're morally obligated to take care of them for their natural life.

> I don't want any free puppies.

source: https://youtu.be/x8_ZZhRL3YU?t=1715
ndr
·25 days ago·discuss
Is this what Cursor uses or a standard I'm unaware of?
ndr
·last month·discuss
Thank you for resurfacing this, it has been my daily commute read for years, it was great!
ndr
·last month·discuss
"Any sufficiently complicated C or Fortran program contains an ad hoc, informally-specified, bug-ridden, slow implementation of half of Common Lisp."

-- Greenspun's tenth rule

He had some lack of conviction to scope it so narrowly.