News for hackers. Stuff that matters.

jitans

Re:Simplest C++ Callback, from SumatraPDF on Sunday June 15, 2025 @02:58PM (#44284270)
Re:How Discord Stores Billions of Messages (2017) on Tuesday August 24, 2021 @05:26PM (#28295196)
I would have used CockroachDB, it has all the requirements listed and you don't need to know in advance the queries you will perform when deciding the database schema.
Re:Best practices for writing SQL queries on Saturday April 10, 2021 @03:03PM (#26764081)
not even all the "traditional" databases, each Engine has his own peculiarities.
Re:Facebook Downgrades WikiLeaks Article Page on Sunday February 07, 2021 @04:44PM (#26058485)
And why don't you make a FB account?
Re:Delta Chat – decentralized chat via email on Sunday January 24, 2021 @05:33PM (#25896880)
So basically what we needed was a different email client?
Re:Delta Chat – decentralized chat via email on Sunday January 24, 2021 @05:31PM (#25896863)
Do you realize WhatsApp privacy hasn't changed?
Re:Delta Chat – decentralized chat via email on Sunday January 24, 2021 @05:30PM (#25896858)
And leaking a mail (with real names) is much better?
Re:Delta Chat – decentralized chat via email on Sunday January 24, 2021 @05:29PM (#25896840)
Just because this is the new trend (for no reason) ?
Re:PostgREST on Monday November 04, 2019 @03:44AM (#21439899)
This should have been: PostgGRPC
Re:New In Postgres 12: Generated Columns on Wednesday October 02, 2019 @10:19AM (#21136717)
Why your application doesn't use a view? Or even better a table function?
Re:New In Postgres 12: Generated Columns on Wednesday October 02, 2019 @10:18AM (#21136706)
This is one of those features to not use ever, unless you have another problem that is an application touching directly a table instead of a view.
If you use a compiler do not ignor ever ever the warning messages. Aim, from day 1 to have a compilation warning free. Write code to be read by humans, and do not ignore writing testing code, more or less you should have twice code in testing than real code under test.
Re:Postgres 11 – A First Look on Saturday September 22, 2018 @03:56PM (#18047693)
There is who cares about his data and who uses MySQL
Re:CockroachDB 2.0 released on Wednesday April 04, 2018 @07:17PM (#16760249)
They haven't any custom driver, CRDB is binary compatible with postgresql drivers, are marked as beta because "maybe" there is feature they haven't implemented. So far using pqxx (C++ driver) I haven't seen any issue.
Re:CockroachDB 2.0 released on Wednesday April 04, 2018 @07:07PM (#16760186)
In postgres you can choose if the replication is synchronous or asynchronous. For cascade replication (a slave uses as a master for another slave) the replica is always async.
Re:Rust 1.25 released on Tuesday April 03, 2018 @05:15AM (#16743031)
Instead to improve the "use" they had to remove it and enable only namespace renaming
Re:Probabilistic Filters By Example on Wednesday March 28, 2018 @06:31PM (#16702632)
well the demo then is broken indeed it shows still an "a" inside the multiset. Having say that I would never use a cuckoo in a multiset, indeed it becomes a bounded multiset. Also about the K-hashing for a bloom filter is not exact. You just need need a K-bit hashing function. If the goal is to support deletion then I would go for a Counting Bloom filter
Re:Probabilistic Filters By Example on Wednesday March 28, 2018 @06:20PM (#16702556)
Add five "a", now remove four "a" Cuckoo claims there are no "a" in the multiset...
That's not the point. Trying to squeeze the code in less lines as much possible is not the way to go if you loose clarity. Python coders keep repeting the mantra "less line of code" but in the mean time they keep typing: self. self. self.
As you can see we are the only one thinking this is absurd :D
how stupid is to measure code in terms of lines?

Make all that a library then you can claim:

A static site generator in only 3 lines of Python

Measuring lines of codes is completely wrong. See the Scala trend were people race to find the shortest way to express something generating hard to understand code. 1) Code has to be written to be maintenable. 2) Code has to be written to be read by your coworkers. 3) The bottleneck while coding is not the keyboard.