Readit News logoReadit News
derekperkins commented on SQLx – Rust SQL Toolkit   github.com/launchbadge/sq... · Posted by u/stmw
hu3 · 5 months ago
> The joins will be pruned by the query planner if they are not needed, so there is no need for conditional joins.

I always wondered about this. How reliable is that in your experience? Thank you in advance.

derekperkins · 4 months ago
Depends on the underlying database, and you'd have to test your query to have any level of certainty.

That being said, query planning is generally where Oracle/MSSQl outshine MySQL/Postgres, especially for pruning unnecessary joins. BigQuery is great at it IME.

derekperkins commented on The Evolution of Caching Libraries in Go   maypok86.github.io/otter/... · Posted by u/maypok86
maypok86 · 6 months ago
To be honest, I'm not sure I can recommend anything specific here.

1. How much data do you have and how many entries? If you have lots of data with very small records, you might need an off-heap based cache solution. The only ready-made implementation I know is Olric [1].

2. If you can use an on-heap cache, you might want to look at groupcache [2]. It's not "blazingly-fast", but it's battle-tested. Potential drawbacks include LRU eviction and lack of generics (meaning extra GC pressure from using `interface{}` for keys/values). It's also barely maintained, though you can find active forks on GitHub.

3. You could implement your own solution, though I doubt you'd want to go that route. Architecturally, segcache [3] looks interesting.

[1]: https://github.com/olric-data/olric

[2]: https://github.com/golang/groupcache

[3]: https://www.usenix.org/conference/nsdi21/presentation/yang-j...

derekperkins · 5 months ago
Olric is awesome, we've been using it for 2 years in prod. No complaints.
derekperkins commented on Texas brothers buy abandoned Boeing 727 for $10k   popsci.com/diy/texas-brot... · Posted by u/underthenettle
derekperkins · 6 months ago
If I could downvote this AI slop marketing, I would
derekperkins commented on Cmapv2: A high performance, concurrent map   github.com/sirgallo/cmapv... · Posted by u/sirgallo
derekperkins · 6 months ago
Here's a better implementation if anyone is interested (not mine) https://github.com/puzpuzpuz/xsync#map
derekperkins commented on Show HN: Defuddle, an HTML-to-Markdown alternative to Readability   github.com/kepano/defuddl... · Posted by u/kepano
acrophobic · 7 months ago
> ...it being Javascript didn't suit my project.

If you're using Go, I maintain Go ports of Readability[0] and Trafilatura[1]. They're actively maintained, and for Trafilatura, the extraction performance is comparable to the Python version.

[0]: https://github.com/go-shiori/go-readability

[1]: https://github.com/markusmobius/go-trafilatura

derekperkins · 7 months ago
We've been active users of go-trafilatura and love it
derekperkins commented on Rust vs. Go: Battle for the Back End   effective-programmer.com/... · Posted by u/naveed125
Gud · 9 months ago
I’ve been around long enough to see the underdog beat the well funded #1.

Linux beat Windows, PostgreSQL beat MySQL.

derekperkins · 9 months ago
I'm not sure either of those examples is true. For servers, Linux won, but that's just a fraction of OS usage. MySQL still has much higher usage rates than Postgres, particularly at massive scale, so calling that "won" is premature at best
derekperkins commented on One year after switching from Java to Go   glasskube.dev/blog/from-j... · Posted by u/pmig
sn9 · 10 months ago
Discord had a pretty famous transition from Go to Rust [0].

[0] https://discord.com/blog/why-discord-is-switching-from-go-to...

derekperkins · 10 months ago
They didn't have particularly great reasons to migrate at the time besides the team wanting to write rust. That article is just trying to provide validation
derekperkins commented on Solving complex billable metrics with custom SQL expressions in Lago   getlago.com/blog/custom-e... · Posted by u/FinnLobsien
derekperkins · a year ago
Lago continues to pretend to be OSS, when it's unusable as is. I had so much hope for it, and while I don't begrudge them monetizing, it's a sham. You can't even make a refund with the OSS license.
derekperkins commented on SQLite does not do checksums   avi.im/blag/2024/sqlite-b... · Posted by u/todsacerdoti
Brian_K_White · a year ago
A long time ago there was a famous / infamous ad campaign for some food product like bread or milk, and the ad merely stated the true fact that their milk didn't contain any bleach. Of course no one's milk (or whatever it was) had any bleach (or whatever it was).

Specially highlighting something true, but out of context and with no equally special justification, is not an innocent act and is misleading. And yes, absolutely, very clearly, causes harm, and does so unfairly.

A not-unfair version of this same article would just talk about databases, and include sqlite with others, and not only sqlite and not be titled sqlite.

And then there is this: "Hey there I am v. I work at Turso Database."

derekperkins · a year ago
A frozen banana that WON'T make you sick and kill you.

https://x.com/bluthquotes/status/732749820348096512

derekperkins commented on Show HN: Pocache, preemptive optimistic caching for Go   github.com/naughtygopher/... · Posted by u/bnkamalesh
iudqnolq · a year ago
Is groupcache suitable for current use? I don't see commits in years and the issues have reports of panics due to bugs.
derekperkins · a year ago

u/derekperkins

KarmaCake day190March 7, 2015
About
53bb639f815a4e96ab5a94bbfc627ba5
View Original