Better HN
topnewbestaskshowjobs
Log inSign up

fforflo

3,497 karma · joined Aug 13, 2015 (11y ago) · 447 submissions

Data & AI Tools - Postgres - Python

tselai.com

Submissions

1.

Revisiting "The Great Mathematical Sputnik of 1979"(pubsonline.informs.org ↗)

3 points · by fforflo · 4mo ago · discuss

2.

AI Breaks the Monopoly of Elegant Software(tselai.com ↗)

3 points · by fforflo · 5mo ago · discuss

3.

Native Full-Text Search in PostgreSQL JSONPath: Proposing Tsmatch(tselai.com ↗)

1 points · by fforflo · 9mo ago · discuss

4.

Deloitte to refund the Australian government after using AI in $440k report(theguardian.com ↗)

464 points · by fforflo · 1y ago · 230 comments

5.

Volcanic crisis reveals coupled magma system at Santorini and Kolumbo(nature.com ↗)

3 points · by fforflo · 1y ago · discuss

6.

Support for base64url encoding and decoding in PostgreSQL 19(tselai.com ↗)

3 points · by fforflo · 1y ago · 1 comment

7.

My Favorite PostgreSQL 18 Feature: Virtual Generated Columns(tselai.com ↗)

54 points · by fforflo · 1y ago · 9 comments

8.

Pgconf.eu 2025 Schedule(postgresql.eu ↗)

1 points · by fforflo · 1y ago · discuss

comment 1y ago · link · parent

If you're interested in this sort of thing with an SQL flavor, you may find the pgpdf PostgreSQL extension useful https://github.com/Florents-Tselai/pgpdf .

It's basically an SQL wrapper around poppler.

10.

System View for Inspecting DSM Registry Allocations in PostgreSQL(tselai.com ↗)

6 points · by fforflo · 1y ago · discuss

11.

LLMs: The Missing Compiler for Unix Tools(tselai.com ↗)

1 points · by fforflo · 1y ago · discuss

comment 1y ago · link · parent

Except for the fact that big consultancies who receive most of the government contracts, have zero contribution to the open source ecosystem.

comment 1y ago · link · parent

Technically yes, but they're used interchangeably nowdays. Plus, the official transcript mentions "Mytilene" so I wanted to follow that. Although I use Lesvos myself.

comment 1y ago · link · parent

In 2021, during a visit to the Greek island of Mytilene, Pope Francis delivered one of the finest speeches I've ever read:

> This great basin of water, the cradle of so many civilizations, now looks like a mirror of death. Let us not let our sea (mare nostrum) be transformed into a desolate sea of death (mare mortuum). Let us not allow this place of encounter to become a theatre of conflict. Let us not permit this “sea of memories” to be transformed into a “sea of forgetfulness”. Please brothers and sisters, let us stop this shipwreck of civilization!

> We are in the age of walls and barbed wire. To be sure, we can appreciate people’s fears and insecurities, the difficulties and dangers involved, and the general sense of fatigue and frustration, exacerbated by the economic and pandemic crises. Yet problems are not resolved and coexistence improved by building walls higher, but by joining forces to care for others according to the concrete possibilities of each and in respect for the law, always giving primacy to the inalienable value of the life of every human being

Worth reading in full https://www.vatican.va/content/francesco/en/speeches/2021/de...

comment 1y ago · link · parent

With $GEMINI_MODE=gemini-2.0-flash I also got some decent results for libraries like simonw/llm and pgcli.

You can tell that because simonw writes quite heavily-documented code an the logic is pretty straightforward, it helps the model a lot!

https://github.com/Florents-Tselai/Tutorial-Codebase-Knowled...

https://github.com/Florents-Tselai/Tutorial-Codebase-Knowled...

comment 1y ago · link · parent

It's decent enough. But you'd probably have to use a model like llama2, which may set your GPU on fire.

comment 1y ago · link · parent

If you want to use Ollama to run local models, here’s a simple example:

from ollama import chat, ChatResponse

def call_llm(prompt, use_cache: bool = True, model="phi4") -> str: response: ChatResponse = chat( model=model, messages=[{ 'role': 'user', 'content': prompt, }] ) return response.message.content

18.

Show HN: Install Postgres with Pip in Virtualenv(github.com ↗)

2 points · by fforflo · 1y ago · discuss

comment 1y ago · link · parent

It's also exciting that their code to actually reproduce these is also available. https://github.com/wccarleton/mesoneomalta

20.

Ask HN: AI Infra Support for a non-profit making government data transparent?

2 points · by fforflo · 1y ago · discuss

21.

Ask HN: What Are Your Experiences with RAG and LLMs in Non-English Languages?

2 points · by fforflo · 1y ago · discuss

comment 1y ago · link · parent

I'm working on spat https://github.com/Florents-Tselai/spat a Postgres extension.

spat is a Redis-like in-memory data structure server embedded in Postgres. Data is stored in Postgres shared memory. The data model is key-value. Keys are strings, but values can be strings, lists, sets, or hashes.

It's still alpha, but it works.

23.

Postgres Extension Day, Montreal 2025(pgext.day ↗)

1 points · by fforflo · 1y ago · discuss

comment 1y ago · link · parent

I tend to agree. The OOP-all-the-things mantra created many problems; lots of books were printed (more than necessary), and lots of evangelists made their name on unnecessary abstractions over abstractions. One might blame Java for that, but it's a chicken-and-egg problem.

comment 1y ago · link · parent

The "New World" is re-discovering what the Balkans / Southern Europe have been doing for decades.

comment 1y ago · link · parent

Makefile with make2graph to visualize DAGs.

comment 1y ago · link · parent

Whenever I read something about Boston Dynamics now, I can't help but remember that scene from Silicon Valley (HBO) where Eric kicks BigDog https://www.youtube.com/watch?v=BFnMBW95RZI

comment 1y ago · link · parent

PostgreSQL 18 won't have many JSON enhancements - how much better can it get after all? And virtual generated columns will probably be the highlight of the release. But there's always some room for improvement. One long-standing pain point has been simply removing nulls from JSON arrays.

29.

Removing nulls from JSON arrays – coming in PostgreSQL 18(tselai.com ↗)

1 points · by fforflo · 1y ago · 1 comment

comment 1y ago · link · parent

Here's a small patch that addresses a very common question in Postgres: "How do I remove nulls from a jsonb array?"
12345
15