Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
dikei
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
9 ms
·
61.
▲
by
dikei
3y ago
That comparison blog seems biased toward Hudi.
62.
▲
by
dikei
3y ago
The first issue is your second code is not Java (no await/async literal for Java yet) The second issue is they're not completely equivalent. In the second case, you'd need extra memory for the `reentrantLock`, while `synchron
63.
▲
by
dikei
3y ago
The default is 256, way higher than 10. But of course, when you have thousands of Virtual Threads all deliberately pinning the carrier thread, you quickly run out.
64.
▲
by
dikei
3y ago
No, synchronized is a very primitive lock implementation compared to what's available in java.util.concurrent.Locks. However, it's built directly into the JVM specification, so it's difficult to change while keeping compatibi
65.
▲
by
dikei
3y ago
You can code in async/await style in Java too, using `CompletableFuture.supplyAsync` and `CompletableFuture.get` Using Virtual Threads is a choice, it's not forced on to you.
66.
▲
by
dikei
3y ago
I wonder if HikariCP, currently the best Java DB Connection Pooling library, suffer the same issue as c3p0.
67.
▲
by
dikei
3y ago
Oracle RAC is a shared storage system, every database instances write to same datastore, so as long as a transaction is committed by one node, it'll be seen by other nodes. Of course, the issue with all shared-storage systems is how mu
68.
▲
by
dikei
3y ago
It's pretty clear to me. >> JIT, or “Just in Time” is a compilation design that implies that compilation happens on demand when the code is run the first time. >> What people tend to mean when they say a JIT compiler, is a
69.
▲
by
dikei
3y ago
Redshift is a data warehouse, it's not suitable for OLTP use case.
70.
▲
by
dikei
3y ago
>> The free alternative would be Mysql/Mariadb + Galera Cluster. Not as solid as proprietary ones, but far easier to use and less buggy than Postgres + tons of tools. Until someone accidentally run an expensive DDL on your Galera
71.
▲
by
dikei
3y ago
>> First time seeing someone call Spanner, CockroachDB, and YugabyteDB a "distributed key-value store with SQL" That was the first thing come to my mind when I read the paper on Spanner and CockroachDB (haven't read the
72.
▲
by
dikei
3y ago
Isn't this how we classify web "generation"? * Web 1.0: independent websites, self-maintained, hard * Web 2.0: hosted platforms like blogs and social networks, easy, but rely on providers * Web 3.0: promise to free users from
73.
▲
by
dikei
3y ago
> To give you a concrete example, one company is ingesting hundreds of terabytes of logs daily and migrating from Elasticsearch to Quickwit. They divided their compute costs by 5x and storage costs by 2x while increasing retention from 3
74.
▲
by
dikei
3y ago
Good point.
75.
▲
by
dikei
3y ago
It's more complicated than that, in the link, they described it better: >> The microcontrollers, running on PowerPC processors, received three commands from the three flight strings. They act as a judge to choose the correct cour
76.
▲
by
dikei
3y ago
> Cloudflare for cdn, GCP for load balancing, aws for compute Isn't this cause you to pay twice the already expensive Egress fee ?
77.
▲
by
dikei
3y ago
So is Java with `LocalDateTime` and `ZonedDateTime`, a very useful example of making your typesystem work for you.
78.
▲
by
dikei
3y ago
> Is that true at scale? If I tell the telecoms that I want to send a billion messages per year it seems like they might be willing to take a lump sum instead of setting up the systems to bill based on usage. In most of the world, SMS is
79.
▲
by
dikei
3y ago
Even human cannot reliably distinguish instructions from data 100% of the time. That's why there're communication protocol for critical situations like Air Traffic Control, or Military Radio, etc... However, most of the time, we a
80.
▲
by
dikei
3y ago
Apparently, Fabric v1 is replaced by Invoke now.
81.
▲
by
dikei
3y ago
Remind me of * Fabric: https://www.fabfile.org/ * Invoke: https://www.pyinvoke.org/faq.html
82.
▲
by
dikei
3y ago
By default, pipx use the python it's installed with, but you can change the python interpreter for each installed application.
83.
▲
by
dikei
3y ago
> now how do you handle updating all those in realtime is what amazed me, they even have bullets go through locations Probably just as other distributed systems implement replication: you have a leader to broadcast instruction and other
84.
▲
by
dikei
3y ago
Yeah, and to use S3 efficiently you also need to batch your messages into large blobs of at least 10s of MB, which further complicates the matter, especially if you don't want to lose those messages buffers.
85.
▲
by
dikei
3y ago
Back when being a student, I remembered following GNU Gnash effort to support for AS2 and AS3, they took years, but in the end, still could only make it work partially. Flash was still dominant in the browsers at the time, yet nobody manage
86.
▲
by
dikei
3y ago
> I don't know if anyone is actually that good All pro-gamers train everyday to build this spray pattern countering movement into muscle memory. Of course, some are better than others.
87.
▲
by
dikei
3y ago
IIRC, LISTEN/NOTIFY needs to pin a PostgreSQL connection to the client, so you won't be able to use transaction-level pooling with it.
88.
▲
by
dikei
3y ago
https://github.com/VictoriaMetrics/VictoriaMetrics#cardinali... If I understand this correctly, it deals with high cardinality by dropping data. The operators need to monitor for this and adjust their data to lower the
89.
▲
by
dikei
3y ago
It seems that even turning off iMessage is not enough ? This a zero-click exploit, which means you don't even have to open the message to get hacked.
90.
▲
by
dikei
3y ago
> I think the lib could postpone the log replaying until the next publish. Chances are all readers will have the new epoch by than = the writer thread won't have to wait at all. I think you can't even do a new publish if all re
More ›