Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
plq
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
7 ms
·
31.
▲
by
plq
2y ago
Perhaps I am not making myself clear here: - RefCounted: It's like shared_ptr but refcount load/modify/store operation is not atomic, thus not thread-safe. No synchronization for pointed data. - RefCountedThreadSafe: It'
32.
▲
by
plq
2y ago
You say: > Rust `Arc` = C++ `std::shared_ptr` GP says: > Rust requires shared pointers (Arc) to also explicitly implement some sort of Mutex-equivalent runtime safety check in order to mutate the data. Which is it? > An example of
33.
▲
by
plq
2y ago
So ARC is something like the following? template <typename T> struct Locker { using M = std::shared_mutex; struct Locked { Locked(mtx, value) : m_lock(mtx), m_value(value) {} /&#x
34.
▲
by
plq
2y ago
First, here's the actual guide: https://google.github.io/styleguide/cppguide.html#Names_and_... . Of course they still have to use stuff like #include <windows.h> but it's very very limited. They also a
35.
▲
by
plq
2y ago
In the chromium repository, the use of angle brackets in #include statements is banned -- they only use double quotes. They also don't use any system headers per se since their flavor of clang comes with their flavor of libcpp vendored
36.
▲
by
plq
2y ago
The title actually means "How do GPS receivers receive signals from the GPS satellites?" It's not about other satellites communicating with GPS satellites. TL;DR: They use special-purpose antennas.
37.
▲
by
plq
3y ago
> Is there any plan from rds to offer it? I don't think so because Microsoft bought Citus.
38.
▲
by
plq
3y ago
It's just a regular 4G phone. They got LTE base stations up on the satellites. Actually, I'm not that surprised that they got the downlink working but I also would love to learn abut the challenges they faced while trying to recei
39.
▲
by
plq
3y ago
Photos remind me of Pamukkale[1], though Dallol seems to be more colorful. https://en.wikipedia.org/wiki/Pamukkale
40.
▲
by
plq
3y ago
I develop using these on Linux for Windows. The current version (2311) is not usable on Virtualbox (see known issues towards the end) so we are still sticking to version 2210 (it's expired but slmgr /rearm works) Reinstalling it
41.
▲
by
plq
3y ago
You make it sound like it's one of the laws of physics. ON part of JSON doesn't know about objects. When serialized, object entries are just an array of key-value pairs with a weird syntax and a well-defined order. That's tru
42.
▲
by
plq
3y ago
Symbol tables, compression, etc seem one level of abstraction above what msgpack provides. Such features could be implemented on top of vanilla msgpack as long as all parties agree on the msgpack schema.
43.
▲
by
plq
3y ago
Sorry I wasn't clear -- my point was that a typical python programmer won't be able to troubleshoot these bits -- it'd be way outside their skill set. Before anyone jumps in to say nobody ever has/will ever have to troub
44.
▲
by
plq
3y ago
Here's the said black magic (for amd64/unix) that the gevent project relies on: https://github.com/python-greenlet/greenlet/blob/master/src/... I still think it's too much for a Pytho
45.
▲
by
plq
3y ago
returnValue raises a specific exception that inlineCallbacks understands and translates to a normal return value. It was a hack that was only needed for python versions that couldn't have generators return non-None values. With modern
46.
▲
by
plq
3y ago
I think JAR (Java Archive) and WAR (Web Archive) make sense. But wheel? It's a wheel of cheese, because pypi used to be called cheeseshop? I mean sure, but doesn't it feel a bit like that 20-year-old tatoo that you got during your
47.
▲
by
plq
3y ago
Can't plus-one this enough. The Gentoo [installation] handbook is a true treasure for the linux newbie. Especially if you are the kind of learner who needs to be challenged to truly ingest the material at hand, just read every word and
48.
▲
by
plq
3y ago
It's just a guess but this sounds like a physical machine with threadripper 3970x (128gb memory is the max it can handle without memory bandwidth contention) though I'm also curious about the details.
49.
▲
by
plq
3y ago
... and hugged to death https://archive.li/yl7z2
50.
▲
by
plq
3y ago
This is only a tangent given we are talking about snapshots and reflink, but just wanted to mention that LVM has snapshots, so if you need XFS snapshots, create the XFS filesystem on top of an LVM logical volume.
51.
▲
Story of a Failed Pentest
(web.archive.org)
4 points
by
plq
3y ago
|
0 comments
52.
▲
by
plq
3y ago
Thanks! Still learning my way around the fmt library.
53.
▲
by
plq
3y ago
> What's wrong with std::regex? In my experience, stdlibc++ <regex> is VERY slow, especially on debug builds. We are using g_regex instead, which in turn uses pcre2. > And iostreams <iostream> achieves too little with
54.
▲
by
plq
3y ago
> Android isn't quite Linux If we're being pedantic, let me be clear that Android is Linux. It just doesn't use the traditional userland, mostly implemented by GNU. So it's Linux but not GNU/Linux.
55.
▲
by
plq
3y ago
I know it's not free software, but I find the Jolla/Sailfish phones, the spiritual successors to the OS of the N9, a decent tradeoff between freedom and usability. It even runs android apps!
56.
▲
by
plq
3y ago
Man, what a masterpiece, even the title gives me chuckles :) Thanks for bringing it up
57.
▲
by
plq
3y ago
Last I looked, BoringSSL[1] was a drop-in replacement for 1.1, as long as: 1. Your usecases intersect with Google's (they removed bunch of stuff during the initial forking phase). 2. You can handle the following: > Although Bor
58.
▲
by
plq
3y ago
Hey, I just would like to let you know that DistCC always has a special place in the hearts of loyal Gentoo users like me :) Kudos!
59.
▲
by
plq
3y ago
If you distribute preprocessed code, you need LAN speeds/latency for it to be faster than a local compilation. Otherwise, you need to have the exact same headers in addition to the exact same compiler installed everywhere. It MAY work
60.
▲
by
plq
3y ago
> Every time I give out my email address, behind the scenes a single-source permission/token is created. How would this work exactly? You send the token to the recipient's email address? Doesn't that become a chicken/
More ›