Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
nasretdinov
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
23 ms
·
451.
▲
by
nasretdinov
4y ago
Honestly there were so many small signs that you work at Google, e.g. the fact that you used Bazel and Blaze interchangeably or referring to Carbon as a C++ replacement, although I guess both things are kind of public knowledge anyway...
452.
▲
by
nasretdinov
4y ago
Yeah IMO assertion libraries are ok if you actually agree with your colleagues to provide context for every check in the assertion message. Obviously that means that you have to actually have that conversation, but it's no different fr
453.
▲
by
nasretdinov
4y ago
The main issues that usually arise as a result of catching panics in handlers like HTTP is that unless code it written very deliberately to be able to recover from being interrupted in the middle of any function call, there is a high risk o
454.
▲
by
nasretdinov
4y ago
I like that analogy a lot! I've just realised that the same thing applies to racing, for example. The way I tend to play racing simulators is that I try to go full throttle all the time, and then when I stumble upon sharp turns, I just
455.
▲
by
nasretdinov
4y ago
While generally true, I would argue that for the use cases where full-text search is mostly used (e.g. either search through a public database, or, quite the opposite, an internal system that does search through logs collected from various
456.
▲
by
nasretdinov
4y ago
It's worth noting that Manticore search isn't a new development: it's a fork Sphinx, a pretty popular search engine in 2010s written by Andrei Aksenov in C++. It got superceded by ElasticSearch because the original engine nev
457.
▲
by
nasretdinov
4y ago
Not sure why the response got downvoted. I personally found Git performance to be, well, okay on macOS (but depends) and absolutely horrible on Windows due to very slow stat() calls on NTFS. Of course, in a large enough monorepo Linux perfo
458.
▲
by
nasretdinov
4y ago
Technically it wasn't Tom speaking, so all is good UPD: never mind, just watched the most recent video, it looks like the real Tom Scott was speaking this time
459.
▲
by
nasretdinov
4y ago
It can be even more daunting for a person if they're paid well and feel like that because of it they have to produce even more results, or otherwise they're paid unfairly, which compounds stress. So it can go both ways.
460.
▲
by
nasretdinov
5y ago
By the way, since ClickHouse is a column database, so it can be faster to ALTER TABLE ... ADD COLUMN with the default value and then send a separate query to materialise those columns because the ALTER itself doesn't do that.
461.
▲
by
nasretdinov
5y ago
That's what I always say: if ClickHouse wasn't the fastest in your OLAP benchmark, you are almost certainly doing something wrong :)
462.
▲
by
nasretdinov
5y ago
I think what people often overlook when discussing generics in Go and code performance that uses generics, is that... the most important thing here is that the code that uses generic sort implementation is: 1. much shorter and more straight
463.
▲
by
nasretdinov
5y ago
I am just guessing, but it's probably (surprisingly) because of e.g slow directory traversal API in Go: https://github.com/golang/go/issues/42027 . In my experience the biggest slowdown is on a mac for w
464.
▲
by
nasretdinov
5y ago
I think if you are to follow that logic, then English should've been long renamed to something else too.
465.
▲
by
nasretdinov
5y ago
Well, not the first time, right..? Good core technology, probably the best even, but no understanding of, well, business...
466.
▲
by
nasretdinov
5y ago
By the way, while Go did initially have segmented stacjs, they've long abandoned it in favour of a contiguous one.
467.
▲
by
nasretdinov
5y ago
By the way, Go does have async preemption. It didn't have it in version 1.0, but it does now. https://medium.com/a-journey-with-go/go-asynchronous-preempt...
468.
▲
by
nasretdinov
5y ago
You need to tune rustic flags comrade
469.
▲
by
nasretdinov
5y ago
I like it. Allows to check some potential race conditions statically and not rely on "go test -race" or running "-race" binaries in prod for a small percent of the traffic (does anyone even do that really?)
470.
▲
by
nasretdinov
5y ago
It's also a little known fact that in a lot of operating systems the whole 127.0.0.0/8 is mapped to the local machine. I was able to fool my pretty tech-savvy friend by telling him that my IP was 127.23.85.66 and he even asked why
471.
▲
by
nasretdinov
6y ago
Shameless plug: I have a small YouTube series about developing a very similar distributed key-value database in Go. The sources for the database itself are at https://github.com/YuriyNasretdinov/distribkv . The databas