Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
lrossi
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
10 ms
·
61.
▲
by
lrossi
6y ago
> While most probably aren’t going to awol for a day at a time I know a LOT of people that now spend working hours doing leisure things Oh, the horror! > people are shifting work hours to ones more of convenience (again anecdotal) The
62.
▲
2Q Cache Management Algorithm
(arpitbhayani.me)
1 points
by
lrossi
6y ago
|
0 comments
63.
▲
by
lrossi
6y ago
> So at least on Linux, cache performance hasn’t been an issue with LMDB. It’s noticeably worse on Windows, as is memory management in general on Windows, but obviously Windows is not a high performance platform to begin with. This made
64.
▲
by
lrossi
6y ago
We don’t have yet the tech needed to answer that question. We’re not doing great on the theoretical side either.
65.
▲
by
lrossi
6y ago
I worked on some Linux apps in another life. I switched to Qt at some point. It was a breath of fresh air! Qt is very reliable and well documented. One can be very productive with it. I think a lot of people have a bad opinion about it as t
66.
▲
by
lrossi
6y ago
That’s exactly what I am thinking as well. Using C++ in moderation, without getting too crazy with classes, multiple inheritance, lambdas and other such things, works very well if you want to port a legacy C code base. For a new project, t
67.
▲
by
lrossi
6y ago
That’s a big title, but the article doesn’t tell us much about the practical applications of this effect, and its impact. Also, are magnons actual particles? My understanding is that they are just a way of modeling spin oscillations.
68.
▲
by
lrossi
6y ago
Qt is more like gtk rather than glib. Although it does come with a fantastic core library. But if you can move to C++, the standard library already offers great replacements for most glib features. Glib exists mostly because the C standard
69.
▲
by
lrossi
6y ago
I am aware of that environment variable. The problem is that I think almost nobody is using it, so it could come with a risk of introducing more bugs. By the way, the example shown in the documentation page that you link to seems ridiculous
70.
▲
by
lrossi
6y ago
Another problem is that there is no type checking in the containers. So you have to cast everything to/from void pointers, even for basic structures like lists and arrays. This makes it easy to introduce tricky bugs.
71.
▲
by
lrossi
6y ago
Glib is OK except for the fact that it has a memory cache on top of that of malloc. This prevents tools like asan or valgrind from detecting memory related bugs. It caused my team a lot of grief, to the point that we regretted the choice of
72.
▲
by
lrossi
6y ago
If you replicate low level changes, you might not be able to do a live upgrade/downgrade if the version change affects the on disk format. Another downside is that you might also propagate data corruption in case of bugs in the DB soft
73.
▲
by
lrossi
6y ago
You can use strings as keys. In fact, that’s how you can create objects. Also negative integers can be used as keys. But array operations will malfunction if you attempt to apply them to such a table. Here are some examples: http:/&#x
74.
▲
by
lrossi
6y ago
On the cloudflare servers, which run server-side JavaScript.
75.
▲
by
lrossi
6y ago
I think it’s even harder to wrap one’s head around negative indices in Python, and all the ways to do slicing. They should have added a reversed keyword instead of the current complexity.
76.
▲
by
lrossi
6y ago
Another language trivia: for strings, Pascal (which has 1-based indexing) does actually use the character at index 0 to store the string length behind the scenes. Because of this, indices are converted into offsets directly, without having
77.
▲
by
lrossi
6y ago
Actually, in Lua, which caused the original discussion, it’s legal to use x[0], since the language doesn’t distinguish between arrays and dictionaries (Lua calls them tables). But if you do that, the length calculation will be off by one. I
78.
▲
by
lrossi
6y ago
Or have the AI generate only fact-based, polite and relevant comments. Related xkcd: https://xkcd.com/810/
79.
▲
by
lrossi
6y ago
Another thing that I am doing is to look at the distribution of reviews. This tells me about how likely it is to get a defective product out of the factory, or a product that is likely to break shortly after. I then compare different brands
80.
▲
by
lrossi
6y ago
This is replacing one way of tracking with another. Can we stop it with the tracking entirely instead? I would be happy to voluntarily provide a list of topics I would like to get ads for if I knew that this helps get rid of the cookie and
81.
▲
by
lrossi
6y ago
It will probably nag you all the time like it does now for each YouTube video you open without signing in.
82.
▲
by
lrossi
6y ago
Amazing! I’m very happy for them. The more competition we have in this space, the better. (pardon the pun)
83.
▲
by
lrossi
6y ago
I know people who got mugged right under a public surveillance camera. They don’t help as much as you think.
84.
▲
by
lrossi
6y ago
Paper: https://arxiv.org/pdf/2006.01855.pdf
85.
▲
by
lrossi
6y ago
I thought this was supposed to encrypt the drive? How can you bypass the lockscreen without having the password? Is the encryption theater?
86.
▲
by
lrossi
6y ago
No thanks. There is no reason to have apache, mplayer and mpv as a dependency for a screensaver “designed for security”.
87.
▲
by
lrossi
6y ago
See also: https://github.com/dstat-real/dstat/issues/170
88.
▲
by
lrossi
6y ago
https://tools.suckless.org/slock/ Orders of magnitude smaller than xscreensaver. You can easily read the code and understand what it does.
89.
▲
by
lrossi
6y ago
It’s easy to judge, but distributed systems are hard to program correctly, and hard to test. One would need to run failure injection tests at scale to detect this. This is made worse by mobile device virtualization being difficult to achiev
90.
▲
by
lrossi
6y ago
> and 60 years hence we’ll have settled Mars, solved worldwide energy generation and storage, and invented AGI Unless we self destruct by then, possibly wiping out most life on this planet with us.
More ›