Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
dirtydroog
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
8 ms
·
31.
▲
by
dirtydroog
6y ago
> Why do you need single core performance so badly Because on the cloud, performance is directly correlated to your monthly bills.
32.
▲
by
dirtydroog
6y ago
Why not, it's the customer that ends up paying because there's less performance per machine, and so they may need more of them. If all cloud providers use this fix then there's really nothing you can do. Some may provide true
33.
▲
by
dirtydroog
6y ago
Earlier? I still get them
34.
▲
by
dirtydroog
6y ago
That depends on the allocator used. The default libc one works but isn't great performance-wise. It is possible to intercept calls to malloc/free by using LD_PRELOAD on Linux. That will allow you to use allocators such as jemalloc
35.
▲
by
dirtydroog
6y ago
If you give gcc the appropriate 'march' parameter it can use vectorisation automatically if it figures out it can do it. The main argument here is that native languages let you get the most out of your CPU if you want, whereas wit
36.
▲
by
dirtydroog
6y ago
I'd define modern as using RAII extensively and using C++11 at least. As for algorithms, I honestly don't know what you mean. They're all documented online with respective big-O running times[1]. If you're talking about
37.
▲
by
dirtydroog
6y ago
There is an open-source project by LMAX (a forex trading company) called Disruptor[1] that squeezes as much as possible out of the JVM. It's awesome. I ported it to C++ years ago when I wanted to learn about low-latency techniques. How
38.
▲
by
dirtydroog
6y ago
Not really. Only shared_ptr uses ref counting, unique_ptr doesn't, and looking at our code base (highly networking orientated) we only use shared_ptr once. You could, in theory, use shared_ptr everywhere, but then you're not using
39.
▲
by
dirtydroog
6y ago
Yup, I posted elsewhere here about our similar experience with Cassandra vs Scylla
40.
▲
by
dirtydroog
6y ago
Drivel. You can't have it both ways. It's easy to see what you're doing in C++ because you have to do it! It's the whole point of the language, and apparently the source of bugs. Correct me if I'm wrong, but I doubt
41.
▲
by
dirtydroog
6y ago
Look at the networking sourc code for Redis. It meets all your requirements and isn't that big.
42.
▲
by
dirtydroog
6y ago
Sorry, this is hand wavy nonsense. One counter example, we switched from Cassandra (JVM) to Scylla (C++). It was a win in terms of both query latency and infrastructure costs as we required fewer machines to handle the same load. As for hav
43.
▲
by
dirtydroog
6y ago
We use sqlite as a smaller cache of a much larger postgres db. The cache is generated by a job and yes is regenerated every time before being pushed to machines that need it.
44.
▲
by
dirtydroog
6y ago
This may be true, but I have had US websites flat out refuse me access because they detect I'm in Europe.
45.
▲
by
dirtydroog
6y ago
I'm a European in Europe and seem to have a triplebyte account
46.
▲
by
dirtydroog
6y ago
I am the opposite. I develop on Linux via VMWare Player running on a Windows host. I don't want Linux as the main OS on my personal desktop and I can keep work related stuff on its own VM. I've never noticed any non-bare metal spe
47.
▲
by
dirtydroog
6y ago
I think I had the same book!
48.
▲
by
dirtydroog
6y ago
Yes, my handwavy reading of the situation was that he left due to issues with zeromq that he couldn't/wasn't allowed 'fix'. Then Peter Hintjens unfortunately died a few years back. I haven't heard about nng, so
49.
▲
by
dirtydroog
6y ago
We use ZeroMQ a bit. It's been pretty much flawless as far as I can see but I get the impression that it's becoming obsolete. Is RabbitMQ a viable replacement?
50.
▲
by
dirtydroog
6y ago
Nokia had the N900 tooo
51.
▲
by
dirtydroog
6y ago
Here's my take on what's probably going on: YouTube is a platform designed around showing video ads to targeted audiences. In order to show those ads they need to allow people to upload user generated content. This content needs t
52.
▲
by
dirtydroog
6y ago
I'm genuinely surprised it wasn't an Excel spreadsheet.
53.
▲
by
dirtydroog
6y ago
Well, there was this situation a few years ago https://www.theverge.com/2013/4/17/4234136/excel-calculation... While the tone of the covid model scrutiny leaves a lot to be desired it is understandable s
54.
▲
by
dirtydroog
6y ago
GCP Pub/Sub is insanely expensive
55.
▲
by
dirtydroog
6y ago
I think it was welcomed with open arms by less experienced devs because it made code easier to compile, and rightly so. C++'s compiler messages are off-putting. For others, it was worrisome because it made code easier to compile, and r
56.
▲
by
dirtydroog
6y ago
Disney wrote off its investment in Vice: https://www.vox.com/recode/2019/5/8/18537617/disney-vice-wri...
57.
▲
by
dirtydroog
6y ago
It's quite common for people in the suburbs to get a train into central London and they cycle from there, either on their own fold-up bike or on a Boris Bike.
58.
▲
by
dirtydroog
6y ago
> The ombudsman presented two findings of maladministration by the EBA. The first is the regulator should have “forbidden the job move.” I'm not sure how legally enforceable that would be. I wonder if the Bosman ruling would make th
59.
▲
by
dirtydroog
6y ago
Well, Linus did have an infamous rant about never breaking userspace; it's surprising this happened.
60.
▲
by
dirtydroog
6y ago
Use timeouts?
More ›