Better HN
topnewbestaskshowjobs
Log inSign up

pgr0ss

676 karma · joined Feb 2, 2010 (16y ago) · 86 submissions

http://www.pgrs.net/
Submissions

1.

Visualizing a Ledger with pgledger-ui(pgrs.net ↗)

1 points · by pgr0ss · 5d ago · discuss

2.

Coding Agents, Starter Kits and Pgledger(pgrs.net ↗)

4 points · by pgr0ss · 3w ago · discuss

3.

Distributed Data, Centralized Fixes(miren.dev ↗)

5 points · by pgr0ss · 1mo ago · 1 comment

4.

LLMs Are Too Big. My Log Router Doesn't Need to Sing(distributedthoughts.org ↗)

4 points · by pgr0ss · 2mo ago · discuss

5.

Advent of Management(github.com ↗)

5 points · by pgr0ss · 11mo ago · discuss

comment 1y ago · link · parent

My idea for for this to add metadata to the transfers, likely with a jsonb column. But I agree that the ledger won't encompass everything. You would still have other database tables and then you'd store domain identifiers in the ledger and/or ledger identifiers in your other tables.

comment 1y ago · link · parent

I updated the README and added an example test: https://github.com/pgr0ss/pgledger?tab=readme-ov-file#histor...

comment 1y ago · link · parent

The idea is that the ledger implementation itself is generic and shared, and then how you use the ledger is the novel part.

comment 1y ago · link · parent

> how do we efficiently get the balance of a certain account at a certain date time?

This depends on how you implement the ledger. For pgledger, I store the balance in every entry, so to find a historical balance, you just need to find the most recent entry before that time:

https://github.com/pgr0ss/pgledger/blob/df5541dcf25f416a6a24...

I have a mental TODO to add a query function to make this simpler.

10.

Double-Entry Ledgers: The Missing Primitive in Modern Software(pgrs.net ↗)

56 points · by pgr0ss · 1y ago · 18 comments

11.

Double-Entry Ledgers: The Missing Primitive in Modern Software(pgrs.net ↗)

3 points · by pgr0ss · 1y ago · discuss

12.

Visualizing Financial Data with DuckDB and Plotly(pgrs.net ↗)

1 points · by pgr0ss · 1y ago · discuss

13.

A Ledger in PostgreSQL Is Fast(pgrs.net ↗)

4 points · by pgr0ss · 1y ago · discuss

14.

The Next Generation of the Heroku Platform(blog.heroku.com ↗)

3 points · by pgr0ss · 1y ago · discuss

15.

DuckDB over Pandas/Polars(pgrs.net ↗)

56 points · by pgr0ss · 2y ago · 42 comments

16.

The Many Ways to Read Tech News(pgrs.net ↗)

1 points · by pgr0ss · 2y ago · discuss

comment 2y ago · link · parent

I think that's a fair point. Unnesting arrays in SQL can be annoying. Here is your first example with duckdb:

  duckdb -c \
    "select * from ( \
      select unnest(assets)->>'browser_download_url' as url \
      from read_json('https://api.github.com/repos/go-gitea/gitea/releases/latest') \
    ) \
    where url like '%linux-amd64'"

18.

DuckDB as the New jq(pgrs.net ↗)

364 points · by pgr0ss · 2y ago · 73 comments

comment 2y ago · link · parent

Hi, I’m the author of the blog post.

> And it is bizarre to me that you could run a payments system without high-availability or immutability at its core.

I’m not sure what you’re referring to here as my post didn’t really go into these topics.

> Also putting logs in a database alongside your core data is such a bad idea.

I’m not suggesting putting all logs into the database. I’m suggesting that for a certain type of info (that is often logged), I find it more useful to put it in the database instead.

20.

Lessons Learned from Payments Startups(pgrs.net ↗)

2 points · by pgr0ss · 2y ago · discuss

21.

ULID Identifiers and ULID Tools Website(pgrs.net ↗)

1 points · by pgr0ss · 3y ago · discuss

22.

Three Sisters (Agriculture)(en.wikipedia.org ↗)

2 points · by pgr0ss · 4y ago · discuss

comment 5y ago · link · parent

It was also covered in: https://www.braintreepayments.com/blog/switching-datacenters...

24.

General Availability of Braintree GraphQL API(medium.com ↗)

8 points · by pgr0ss · 6y ago · discuss

25.

Deploying Phoenix to Kubernetes from Scratch(quan.io ↗)

3 points · by pgr0ss · 7y ago · discuss

26.

A Year on TC39: Dispatches from the Future of JavaScript(medium.com ↗)

8 points · by pgr0ss · 7y ago · 1 comment

27.

Continuous Deployment Isn’t Just for Applications(medium.com ↗)

3 points · by pgr0ss · 7y ago · discuss

28.

Dependency Injection in Go(blog.drewolson.org ↗)

2 points · by pgr0ss · 8y ago · discuss

29.

GraphQL at Braintree(braintreepayments.com ↗)

5 points · by pgr0ss · 8y ago · discuss

123