Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
pkolaczk
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
9 ms
·
61.
▲
by
pkolaczk
2y ago
In my experience I had fewer problems with 0.x dependencies in Rust than with some mature 35.x dependencies in Java.
62.
▲
by
pkolaczk
2y ago
Unless they are forced to learn things that are uninteresting to them. I almost failed the high school entry exams because I dedicated more time to soldering electronic devices and programming computers rather than writing essays about Poli
63.
▲
by
pkolaczk
2y ago
Desoldering / resoldering is not pain if you have proper tools to do it and know the correct technique. Trying to do it with an iron is making things very hard or even impossible (especially for smds with contacts below not at the side
64.
▲
by
pkolaczk
2y ago
> It is to highlight that we already reached a good level of performance this early in the project. This is the right thing to do. It's a pity so many projects don't keep an eye on performance from the very first day. Getting h
65.
▲
by
pkolaczk
2y ago
> In any case, the programming language should have little to no impact on the database performance, since the majority of the time is spent waiting on io anyway That was true maybe 30 years ago with spinning disks and 100 mbit ethernet.
66.
▲
by
pkolaczk
2y ago
A simple loop like that running slower tells that the compiler optimization strength is not really very good. If it misses optimizations of trivial code like looping and basic arithmetic, it will likely miss even more in complex code. And i
67.
▲
by
pkolaczk
2y ago
3rd party replacements should be allowed but the firmware should allow me to check if any third party replacements have been made. I’d like to know when buying second hand phone if it has genuine parts. Third part replacements are usually o
68.
▲
by
pkolaczk
2y ago
And what if the runtime does poorly on even such a simple loop? Go is surprisingly slower here than Java and Kotlin. I agree with the author of the blog here - microbenchmarks are just experiments and they can be very useful if you do prope
69.
▲
by
pkolaczk
2y ago
Doesn’t Apple offer a way to re-pair components if they are genuine and not stolen (unregistered from the previous AppleId)?
70.
▲
by
pkolaczk
2y ago
Why? I'm quite curious. There aren't any good benchmarks on the internet, especially ones comparing it to other languages. I'd love to actually see some real numbers showing how far off it is from Java or Go (I don't dou
71.
▲
by
pkolaczk
2y ago
How many spectre / meltdown related vulnerabilities were detected between 1990 and 2010? Zero. So those chip vendors must be paranoid they patch them - were talking about one issue per 20 years xD Similarly how many hashmap collision a
72.
▲
by
pkolaczk
2y ago
It’s a matter of time. Spectre / meltdown were also considered extremely hard to use in practice. Yet they are considered vulnerabilities. In Golang case the data race window to corrupt memory is extremely narrow, so it makes it very h
73.
▲
by
pkolaczk
2y ago
You don’t need to blow up the runtime to cause a vulnerability due to a data race in Go: https://security.snyk.io/vuln/SNYK-DEBIAN13-GOLANGGITHUBGORE...
74.
▲
by
pkolaczk
2y ago
Modern hardware has really impressive speed. A single core of my not-so-new M2 laptop can decompress data at more than 4 GB/s using lz4. Sometimes I wonder where all that performance goes, eg when waiting for Slack to open ;)
75.
▲
by
pkolaczk
2y ago
Or you can use Cassandra / DataStax Astra to store the original text, the metadata and the embedding in a single table and then do hybrid queries against them (with pre- or post-filtering, optimized automatically).
76.
▲
by
pkolaczk
2y ago
> It works pretty well and is super easy to use and reason about, with no hard edges. Oh,rly? https://songlh.github.io/paper/go-study.pdf
77.
▲
by
pkolaczk
2y ago
> Which are mostly small, isolated library code, whose purpose is to be easily incorporated into larger programs. Which is how software should be generally made - from small and simple things, not from huge behemoths that contain the kit
78.
▲
by
pkolaczk
2y ago
Init and then what? The story of discovering and adding dependencies is still much worse. Nothing like cargo add/remove or crates.io where I can quickly search dependencies with their descriptions with standardized links to repos and d
79.
▲
by
pkolaczk
2y ago
When I want to run tests, I tell it to run the tests. When I want to install, I tell it to install. I don’t want it to run tests when I tell it to install. I don’t want tools who know better what I want to do than me.
80.
▲
by
pkolaczk
2y ago
But I don’t want to copy a full project with prepopulated list of dependencies chosen by someone else. I want to start small and add dependencies I need. It’s like LEGO vs Playmobil. I want LEGO. ;)
81.
▲
by
pkolaczk
2y ago
But you’re likely comparing on different hardware though. Go compiling only 16k lines per second is hard to believe for me. Maybe they meant on single CPU core. Rustc compiles over 50k lines per second on my MBP in debug mode and Go must be
82.
▲
by
pkolaczk
2y ago
That's the trick. You publish the source code. And it's still faster to build all dependencies from source than maven / gradle manages to resolve and download the binary dependencies ;)
83.
▲
by
pkolaczk
2y ago
In rust: `cargo publish` after making an account on crates.io
84.
▲
by
pkolaczk
2y ago
I'm afraid Java/Scala/Kotlin compilers are too slow to make that convenient. Even currently building pure Java projects can take minutes when it's compiling just like 300k lines. What if it had to compile millions of lin
85.
▲
by
pkolaczk
2y ago
I've been working on Java-based systems for about 20 years now, and I fully relate to that. Same experience. This is so annoying that I prefer to use Rust over Java even in areas where things like better performance or better type syst
86.
▲
by
pkolaczk
2y ago
My typical mvn session after a month of not touching maven: % mvn [ERROR] No goals have been specified for this build. Uh. % mvn build [ERROR] Unknown lifecycle phase "build". Uh, nope, that wasn'
87.
▲
by
pkolaczk
2y ago
> It’s extremely rare that everything fits nicely into “cargo build” 161538 crates do not agree with you ;)
88.
▲
by
pkolaczk
2y ago
Performance is not only wall clock time. With high latency, I/O bound tasks, the cost will be often determined by how much memory you need. And in the cloud, you can’t pay for memory alone. The more memory you need, the more vcores you
89.
▲
by
pkolaczk
2y ago
It does hold, it is just weaker. You can improve the SNR of a better signal by adding another signal with worse SNR to it. But you need to normalize the signals the way their noise floors are the same amplitude before addition.
90.
▲
by
pkolaczk
2y ago
We’re not talking about signals with different SNRs. Where did you get the assumption from?
More ›