Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
paavoova
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
14 ms
·
91.
▲
by
paavoova
8y ago
I'm not sure about other implementations, but "optimizing" CPython ends up being optimizing against counter-intuitive interpreter internals rather than time-complexity of the code. For example, in CPython 3.6, n = 0 d =
92.
▲
by
paavoova
8y ago
What happens if you truncate your string? You lose information about buffer size. So now you need to store two sizes for such strings to be useful, string size and buffer size, which is 16 bytes for size_t on 64-bit systems. On top of that,
93.
▲
by
paavoova
8y ago
> but you'll be incompatible with any code dealing with native C-strings Not entirely, see https://github.com/antirez/sds Basically, you have a header storing length, etc, but still null terminate, so library f
94.
▲
by
paavoova
8y ago
If infants can develop brain mass in the womb, why can't they once born?
95.
▲
by
paavoova
8y ago
To be able to watch 8K you not only need an 8K capable television Why is all this high-resolution media walled behind decoder boxes and DRM? 4k blu-rays have some fairly intrusive DRM as far as I understand, and then there's 4k strea
96.
▲
by
paavoova
8y ago
Well, unless it's a generic device, one or more people have to extend an existing driver or write a new driver entirely for it. This doesn't happen magically, even for popular devices. So you should be asking Apple why they don&#x
97.
▲
by
paavoova
8y ago
Arguably, the sole purpose of life is to procreate. You can live a purely unfulfilled life and die the most miserable wretch possible, but if your children have children, and their children do as well, and so on, it doesn't matter - ge
98.
▲
by
paavoova
8y ago
The O_TMPFILE flag is just an anonymous file as far as I understand. From that source file, VTE uses glib, particularly g_get_tmp_dir() and g_file_open_tmp() (which uses the latter), which claims to honor TMPDIR according to the docs: http
99.
▲
by
paavoova
8y ago
Edit: it's GTK that provides multithreading functionality, not VTE itself. VTE based terminals are actually multithreaded globally, so you only ever have one process regardless of number of tabs/windows open. But I agree, VTE is s
100.
▲
by
paavoova
8y ago
And even if you understand what's going from the OP, you're unable to get full context as Github hides the majority of comments in the issue. I've clicked "Load more..." 5 times and still over 100 comments are hidde
101.
▲
by
paavoova
8y ago
Arguably, you have no choice in a lot of such matters, so any agreement is by submission. If "the" popular platform is X, and you're not using it, you're missing out. And it isn't far fetched to consider instances w
102.
▲
by
paavoova
8y ago
we also identified one further area where we could improve data privacy for non-members And what about members? It's utterly horrifying that a professional has to sell themselves on glorified social media and all its nefarious practi
103.
▲
by
paavoova
8y ago
Vim doesn't have syntax highlighting? News to me. Git and file finder is available to you by opening a new terminal tab/window and simply using git/standard unix utils. There's no need to integrate such features when you
104.
▲
by
paavoova
8y ago
No, that's awful if you consider its implications. Just do: for i in *; do du -bs "$i"; done
105.
▲
by
paavoova
8y ago
This is somewhat unfortunate for older-gen hardware. The difference between chugging-along but usable vs 20% reduced performance is crippling.
106.
▲
by
paavoova
8y ago
Yeah, strangely enough, food and its accompanying culture is one of the most prevalent socially acceptable, encouraged biases. There's no objective, empirical stance you can take. Well, sure you can value food based on its nutritional
107.
▲
by
paavoova
8y ago
> How about sending a "while(true) { }" Running ps shows the timeout command as PID 1, and evidently an infinite loop gets killed after some point. In fact, there aren't any other processes besides sh, node, and the Python
108.
▲
by
paavoova
8y ago
But people are claiming you can't write a safe kernel in C, and point out safe languages which should be adopted in its place. This misses the point that, just like the theoretical safety of C is 100% safe, the theoretical safety of Ru
109.
▲
by
paavoova
8y ago
Redox is still very much a prototype and shows you can't simply slap "safe" Rust together and magically conjure up a kernel and OS: https://gitlab.redox-os.org/redox-os/redox/issues/1136
110.
▲
by
paavoova
8y ago
And what happens if you wish to opt out of relying on a phone? The consequences of total and utter dependency on a technology you don't control and which is ripe for exploit are horrifying. If it ever comes to that, it's no differ
111.
▲
by
paavoova
8y ago
Why would you want to delegate all your computing needs to the point of complete and utter dependency to the closed-source, restrictive hardware/software ecosystem that is the modern smartphone? You can't even disable the baseband
112.
▲
by
paavoova
8y ago
Hyperbole, or do really believe every line of C is unsafe, in the literal sense, by default? Pray tell me what is the difference between // safe, tested, C ... // potentially dangerous C deemed thus for whatever
113.
▲
by
paavoova
8y ago
> A lot of these implementations have clear merit in the sense that they are faster, safer to use, easier to scale, maintain, etc. Depends on who you ask. Hipp on Rust in 2016: Rewriting SQLite in Rust, or some other trendy “safe” langu
114.
▲
by
paavoova
8y ago
I think pop-sci fuels overzealous misinformation in even the tech-literate. A lot of innate, unconscious cognition is underestimated despite its complexity. E.g. consider the ability of humans and most other species to approach, navigate, a
115.
▲
by
paavoova
8y ago
I wonder what this implies for SSDs that claim to support instantaneous ATA Secure Erase. Many SEDs, when issued this command, will simply discard their internal key and generate a new one, in theory rendering data irretrievable. I've
116.
▲
by
paavoova
8y ago
> the presumption that it would be safer than software based encryption Is this really a common presumption? Why are companies making security decisions based on mere presumption? Wikipedia has a citation from 2013 [1] that discusses a n
117.
▲
by
paavoova
8y ago
You wouldn't be able to write linear scripts in Python if it were so restrictive, or execute the interpreter from the command line with the -c command. You'd be forced to use OOP patterns for trivial code, whereas Python as it is
118.
▲
by
paavoova
8y ago
So do you not use FDE? I'd think that to protect data at rest, especially on a laptop, it's good practice to power down whenever you're away. Otherwise keys are just sitting there in memory.
119.
▲
by
paavoova
8y ago
Fundamentally, abstraction fosters illiteracy. You have an entire generation or two of people who grew or are growing up solely on touch devices, and many of these devices expose no native filesystem (e.g. iOS) to its users. And as the arti
120.
▲
by
paavoova
8y ago
You can't use flash storage for reliable unpowered archival. It degrades (gates leak electrons) over time, unlike magnetic storage. This is also unpredictable, as reliability depends on both operating and power-off temperatures, as wel
More ›