Better HN
topnewbestaskshowjobs
Log inSign up

cha42

51 karma · joined Dec 25, 2020 (5y ago) · 21 submissions

Submissions

comment 1y ago · link · parent

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.

comment 1y ago · link · parent

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.

comment 1y ago · link · parent

Logging is static in CLI world but you can reproduce this easily with pdb in python

comment 1y ago · link · parent

Recently I found myself happy to find bug in code I have writtdn for those reasons.

comment 2y ago · link · parent

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.

comment 2y ago · link · parent

Or toothpath dynamic.

comment 2y ago · link · parent

Any syntax with a let operator to name stuff or a lambda abstraction.

comment 2y ago · link · parent

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.

comment 2y ago · link · parent

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.

comment 2y ago · link · parent

Sealable spreadsheet is also awesome ! Congrats for the delivery.

comment 2y ago · link · parent

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)

comment 2y ago · link · parent

So who build an hackernews room for fun ?

13.

JavaScript vs. Python class fields handling

1 points · by cha42 · 2y ago · discuss

comment 2y ago · link · parent

Maybe you need a query engine and not a parser.

Shameless promotion of my beta engine

https://github.com/V0ldek/rsonpath

comment 2y ago · link · parent

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.

comment 2y ago · link · parent

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.

comment 2y ago · link · parent

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.

comment 2y ago · link · parent

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.

comment 2y ago · link · parent

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).

comment 2y ago · link · parent

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.

21.

Non-deterministic execution of Python functions(gitlab.inria.fr ↗)

55 points · by cha42 · 2y ago · 16 comments