News for hackers. Stuff that matters.

cha42

I use PostgreSQL full text search and GIN indexing and often find it to be good enough and fast enough without the hassle to have to handle a second engine just for search.
Re:DOGE has 'god mode' access to government data on Thursday February 20, 2025 @08:52AM (#43114624)
If I may:

Their is a huge conflict of ingerest of giving this power to a major economical actor that vastly depends on public investment and under public scrutinity.

Executive should have the audit right and in some measure probably it should be widespread to all citizens up to sensitive data not being leaked. But what good is there to give this power solely to one of the richest and more powerful man in the world? This is crazy.

Re:Printf debugging is ok on Monday January 06, 2025 @12:41AM (#42608028)
Logging is static in CLI world but you can reproduce this easily with pdb in python
Re:Fermat's Last Theorem – how it's going on Friday December 13, 2024 @06:28AM (#42407671)
Recently I found myself happy to find bug in code I have writtdn for those reasons.
Re:PgPDF: Pdf Type and Functions for Postgres on Wednesday November 13, 2024 @06:41AM (#42125176)
It can be useful for improving ingestion pipeline: put your pdf collection in a temp table and then extract with pure SQL the information you want.
Or toothpath dynamic.
Re:Pipe Syntax in SQL on Saturday August 24, 2024 @04:30PM (#41341251)
Any syntax with a let operator to name stuff or a lambda abstraction.
Re:I am starting an AI+Education company on Tuesday July 16, 2024 @05:17PM (#40980414)
I don't understand at all my kids choices in game or way of spending time at all

It seems completely random but in a coherent way. It is wonderful.

Anyway, you are right and not pedantic at all.

Re:Symbolica Computer Algebra System on Thursday May 09, 2024 @10:04AM (#40308352)
The largest fancy math object I know is probably the proof of the following theorem:

https://link.springer.com/chapter/10.1007/978-3-030-51074-9_...

The proof is 200Gb large. I am quiet sure now even larger proof exists, in particular thet exhaust some combinatorial property on graphs.

Re:Show HN: We Built the Fastest Spreadsheet on Thursday February 29, 2024 @04:17PM (#39555237)
Sealable spreadsheet is also awesome ! Congrats for the delivery.
Re:Show HN: We Built the Fastest Spreadsheet on Thursday February 29, 2024 @03:46PM (#39554820)
Do you have any simd-optim in parsing all those large files ?

I have read that you write some of your own parser for perf boost.

(I am one of the author of https://github.com/V0ldek/rsonpath)

Re:Scuttlebutt social network: a decentralised platform on Friday February 23, 2024 @04:00PM (#39486023)
So who build an hackernews room for fun ?

JavaScript vs. Python class fields handling

I step upon a weirdness exploring oriented object programming in JS.In Python, I often use the following constructions:https://pastebin.com/pmnxg0JiTranslating in js we got:https://pastebin.com/WpfDnVFXReading the doc, I understood that JS is initializing fields after the super is called. Hence, fields and methods behave differently with respect to inheritance.The "correct" way to translate the...

( Read More... | no comments | on HN )
Re:On-demand JSON: A better way to parse documents? on Monday February 12, 2024 @09:49AM (#39345351)
Maybe you need a query engine and not a parser.

Shameless promotion of my beta engine

https://github.com/V0ldek/rsonpath

Re:Postgres as Queue on Saturday February 10, 2024 @02:58AM (#39324444)
If you have an infra that need to scale so much then Postgresql isn't the right tool indeed. The right tools for your use case probably doesn't even exists and you will have to build one.

It is not a mystery why all webscale companies endup designing their own DB technology.

That being said, most of the DB in the wild are not remotely at those scale. I have seen my share of Postgresql/ElasticSearch combo to handle below TB data and just collapsing because of the overeng of administrating two DB in one app.

Re:Postgres as Queue on Saturday February 10, 2024 @02:53AM (#39324419)
you can certainly encode queue in many ways. mkfifo just work. But integrating the queue in the DB isn't a bad idea if you want to have both the queue and the db in a shared state.

I am happy that my queue inherit ACID properties.

SQLite simply doesn't allow concurrent write so it is a no go for a queue.

I don't know much about SQL Server and MySQL but I wouldn't favor a lockin closed source software or anything remotely connected to Oracle.

At the end, only Postgresql remains I guess. Also, Postgresql is super solid and the closest to SQL standard.

Re:Transforming Postgres into a Fast OLAP Database on Thursday February 08, 2024 @02:06PM (#39306103)
I would say that the biggest missing features is not being able to mix normal and delta tables.

This would allow easier reporting within a very active db without too much bother.

Re:Non-deterministic execution of Python functions on Thursday February 01, 2024 @01:24AM (#39213238)
It is the same notion exactly actually.

The code isn't magically solving NP vs P but it does simulate non deterministic run through a potentially exponential exploration.

Re:Non-deterministic execution of Python functions on Thursday February 01, 2024 @01:13AM (#39213193)
I would argue that it is an already classical idea in the 70s. Non determinism is nothing new.

The cool stuff here is the simplicity of the interface to it and its integration thanks to high order functional constructs (decorator).

Re:Non-deterministic execution of Python functions on Thursday February 01, 2024 @01:11AM (#39213183)
Yes, the cool thing here is just to use higher order to provides the user non-determinism seaminglessly within Python while in prolog this is a built in feature.