Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
civility
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
12 ms
·
91.
▲
by
civility
7y ago
> Once you add preemptive multitasking and memory protection, you're simply going to end up with a normal modern operating system kernel again. You're missing the point. There is no single file operating system for desktop use
92.
▲
by
civility
7y ago
I always wondered what the world would be like if Microsoft had just made a 32 bit DOS instead of going down the WinNT/95 route. Most of the headache in config.sys and friends was because you were working around the 16 bit address spa
93.
▲
by
civility
7y ago
This just defers the optimization process by one step. It's hard to improve something without measuring it first, but either you know where your inner loop is or the profiler tells you. Now you've still got to improve that bottl
94.
▲
by
civility
7y ago
Yes, and it's also complicated by the translation to micro-ops with out of order dispatch and instruction retirement. I remember seeing one statement saying this is now a complicated enough system that the number of cycles it takes to
95.
▲
by
civility
7y ago
There is a nice diagram on this page: http://www1.lsbu.ac.uk/water/water_phase_diagram.html
96.
▲
by
civility
7y ago
I see your point, but the syntax inside of fstrings forms an entirely new sub-language (DSL). I can look at old python and know exactly how the .format() calls parse with positional and named keyword arguments, but looking at the fstrings
97.
▲
by
civility
7y ago
I'm not sure how much the rules vary, but in our case there were 18 candidate jurors and both sides were allowed to dismiss 3 without cause or justification. Additionally, if either side could argue there was a cause, additional juror
98.
▲
by
civility
7y ago
> Luckily, lay people are qualified to make those judgments. Whenever I have seen an actual jury at work, I have consistently been impressed by the degree to which folks can absorb the information presented at trial. Having been through
99.
▲
by
civility
7y ago
> You cant lower costs in the US without having a more aggressive regulatory body which 50% of political bodies strongly oppose alongside lobbying efforts Here is the fundamental problem from my point of view. Compare human medical cost
100.
▲
by
civility
7y ago
> How many files are you talking about? The numbers won't seem significant by today's standards. In the one case (stored by date), maybe 150 thousand files, each a few megabytes. > you can copy a single 10 GB file to anothe
101.
▲
by
civility
7y ago
> The other option above was [...] millions of small files stored on the filesystem I don't have any direct comparisons of SQLite to this approach, but other projects I've worked on did have a simple directory tree organizing m
102.
▲
by
civility
7y ago
I don't work for that company any more, and I couldn't have legally showed the code even if I did. It's not an index thing though. Try inserting 10 million rows into a simple table. No foreign constraints or anything. Some
103.
▲
by
civility
7y ago
You should benchmark SQLite before recommending it like this (for future reference). I think it's a very elegant library, and I admire the development philosophy that went into it. However, every time I've tried to use it for so
104.
▲
by
civility
7y ago
Heh, I think stable sorts are great. However, you don't always need one, and you do pay a little bit for it.
105.
▲
by
civility
7y ago
> Do you have any evidence for this? Of course I can't comment on all judges, but in my few interactions with them, the court sides with the police. Call it an anecdote if you want, but "citation needed" comments wear thi
106.
▲
by
civility
7y ago
> A single night of 4 hours sleep, followed by a year of normal nights sleep will lead to a me that is indistinguishable from the me that slept 8 hours that same night. [...] I'm all for sleeping properly, but lets not suggest that
107.
▲
by
civility
7y ago
Also no mention of introsort (C++ std::sort), where it uses insertion sort for small arrays, detects if it's fallen too far towards O(n^2) of quicksort, and punts to heapsort when it needs to.
108.
▲
by
civility
7y ago
> When you're pulled over for a traffic stop, a search requires probable cause. That's the theory. In practice police can get away with pretty much anything, and if you make it to the point where a judge is listening to you, h
109.
▲
by
civility
7y ago
> I think this view disrespects history a little. I love C, but I'm hard pressed to think of any language other than assembly which is more willing to get out your way if you so much as nudge in an undisciplined direction. C certai
110.
▲
by
civility
7y ago
FP is different things to different people. For me, it's pure functions and a preference for purely functional data scructures (Okasaki style). Also to me, FP has an emphasis on avoiding mutating state. The second example on the Reac
111.
▲
by
civility
7y ago
In this context, C and JavaScript would not be considered functional. They have functions, but that's not what most people mean by "functional". While it's possible to restrict yourself to a functional subset in both o
112.
▲
by
civility
7y ago
Motion in Vi is based on treating the home row of the keyboard as arrow keys. H, J, K, and L are left, down, up, and right. They aren't mnemonics, and so scrambling them around (Dvorak) is just doubly confusing.
113.
▲
by
civility
7y ago
Funny you ask. While you were writing, I posted about a friend of mine who did that in a sibling message.
114.
▲
by
civility
7y ago
I have a friend who used to use Vi(m) with his Dvorak keyboard at home, and Emacs with his qwerty keyboard at work. He considered it an exercise for keeping his brain sharp. I don't think he still does it, but maybe. Vim on Dvorak is
115.
▲
by
civility
8y ago
I doubt this works. Stock and property prices would rise as more cash becomes available, so only people who keep their funds uninvested would lose value. It would also be easy enough to invest in a foreign currency. It seems like rapid in
116.
▲
by
civility
8y ago
Compilers don't have to be slow to generate good code (at least not as slow as Rust). If you prefer them slow, you're just choosing to be ineffective like some idiotic martyr. Suffering for it's own sake is just stupid.
117.
▲
by
civility
8y ago
It's very weird you have the presentation of an impudent 20 year old but you share an irrational preference for Fortran, which is something I'm only used to seeing in people who are past their mid 50s. "Move along"? You
118.
▲
by
civility
8y ago
That's not a discussion or dialog. Sharing what you know is only half the motive. Seeing the responses and learning something new is the other half. When you already know what the response is likely to be (because most people are pan
119.
▲
by
civility
8y ago
You really think it's just me? Take care.
120.
▲
by
civility
8y ago
> Benchmarks are meaningless. Random anecdotes are meaningless. I've looked at plenty of generated code, and I've written plenty of SIMD assembly too. If you can't measure it, you can't compare it or improve it. Th
More ›