Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
charles-salvia
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
10 ms
·
1.
▲
by
charles-salvia
9y ago
If we were to somehow perform a Principal Component Analysis on the amorphous, contradictory mess of "hippie ideals", we could probably distill them down to something like a call to implement a post-scarcity, socialistic society w
2.
▲
by
charles-salvia
9y ago
>> What concentration camps reveal is that modern people are squeamish about killing. Well, there's a difference between exterminating a foreign and/or conquered city-state, and isolating/quarantining undesirable sub-gr
3.
▲
by
charles-salvia
9y ago
I'm a bit confused here. >> Most operators in C++, including its memory allocation and deletion operators, can be overloaded. Indeed this one was. Okay, well, firstly - the issue here seems to be a problem with the implementation
4.
▲
by
charles-salvia
9y ago
The C++ delete[] operator doesn't take a size parameter either. This is neither here nor there, and unrelated to the problem the blog post is talking about.
5.
▲
by
charles-salvia
9y ago
The main reason is the object-relational impedance mismatch[1]. Basically, programmers like working with objects that have data fields. This is because most modern, widely-used programming languages treat objects/aggregates with data
6.
▲
by
charles-salvia
9y ago
>> Our brains are fallible, and so only approximately equivalent to Turing machines; and even ignoring that can only compute every computable thing given both infinite error-free storage capacity (which they don't have internally
7.
▲
by
charles-salvia
9y ago
The practical difference is that with async I/O, there's less overhead because you don't need a separate thread for each blocking I/O operation. It's the difference between using a single-threaded event loop to dem
8.
▲
by
charles-salvia
9y ago
k, along with j, is also often an index. Of course, this mathematical convention carried over into programming as well, with i,j, and k serving as index variables.
9.
▲
by
charles-salvia
9y ago
> It's odd how this is portrayed as a negative aspect of Japan's militarism, when the Allies were fighting the same war with the same attitude. That's not the point, obviously. The point is Japan's militarism combin
10.
▲
by
charles-salvia
9y ago
The "lone genius" is somewhat of a myth, but also has a certain amount of truth to it. For example, Einstein was certainly a lot smarter than the average person - indeed, probably a lot smarter than most highly-accomplished scien
11.
▲
by
charles-salvia
9y ago
Ethics aside, at a certain point, you realize you can make a lot more money legally and legitimately using your technical skills than through any sort of "clever" technical scheme that involves hacking odometers or scamming people
12.
▲
by
charles-salvia
9y ago
Okay, well - never knew this. But that example seems really cherry-picked. Many NY street names are just numbers, even in other boroughs outside Manhattan. Many streets in the Bronx are just a number (130-something street to 230-somethin
13.
▲
by
charles-salvia
9y ago
I've lived in NY my whole life, but am not familiar with this stereotype about unpronounceable names. Apart from Kosciuszko there aren't too many difficult to pronounce names of bridges/tunnels/express-ways, etc. Kosci
14.
▲
by
charles-salvia
9y ago
Basically, the main problem with signalfd is a problem with the Linux implementation of signals in general: if your program requires some kind of logic where each individual signal delivery somehow "counts" in some way, you may ru
15.
▲
by
charles-salvia
9y ago
People talk about Marx as if he wrote some kind of blueprint for a Communist state. But he really didn't. He was basically writing a philosophy of history centering around a problem he observed - he wasn't necessarily writing
16.
▲
by
charles-salvia
9y ago
Obviously the DRPK stands no chance of tactical victory in any sense. But they have a very good chance of just saying "fuck it", and causing arbitrary damage and mass civilian casualties on the order of dozens of September 11 att
17.
▲
by
charles-salvia
9y ago
That's a subjective value call. It depends on how many North Koreans are being brutalized/dying right now. We don't have that number, but it's likely that tens of thousands of the hundreds of thousands of political pri
18.
▲
by
charles-salvia
9y ago
The assessment predicts: "Tens or hundreds of thousands could become casualties" ... in the event of an all-out DRPK/(US+ROK) conflict. One factor to consider here is what happens if no conflict occurs? In that case, there
19.
▲
by
charles-salvia
9y ago
Doctors rely on software a lot to do their job. One day they may even be replaced by software.
20.
▲
by
charles-salvia
9y ago
I agree - I think for the most part, Java is a simple language that has straightforward C-like syntax. The main problem is specifically the boiler plate class and static main method you need to blurt out just to get anything even compiling
21.
▲
by
charles-salvia
9y ago
ECMAScript is a general purpose programming language that, historically, just happened to be made specifically for the purpose of standardizing a language made specifically with a web-browser (Netscape) in mind.
22.
▲
by
charles-salvia
9y ago
Some upper-scale restaurants charge you a "no-show" fee, using the credit card used for the reservation. Maybe airlines could do this? (Of course, the difference is that restaurants don't receive the actual payment for se
23.
▲
by
charles-salvia
9y ago
Good article. But I have to ask for clarification for this statement: "Empty seats cost the airlines money, and they need to recoup those losses somehow." What does this mean? The issue here is overbooked seats. If a seat is
24.
▲
by
charles-salvia
9y ago
Of course C doesn't map to all that. Neither do most of the MIPS emulators they actually use to teach MIPS assembly in universities. But it does map pretty well to basic loops/conditionals and other intro-to-programming stuff.
25.
▲
by
charles-salvia
9y ago
Yeah, automatic static reflection for serialization of standard-layout structs in C++ would certainly be nice. You can achieve something like that with std::tuple, but it's certainly not comparable to first-class serialization. PS, I
26.
▲
by
charles-salvia
9y ago
As a child, I remember walking into a "World Computers" retail store and seeing a Commodore Amiga running some graphics demo. I was utterly blown away. It was far beyond what I had ever seen with a home computer, which at that p
27.
▲
by
charles-salvia
9y ago
While I kind of like D, it's hard to really make the case for using it. The thing is, it simply doesn't provide that much of a significant advantage over modern C++14/17 to make it worthwhile. At least Rust introduces an
28.
▲
by
charles-salvia
9y ago
I know - I'm being facetious, but really, if you want to really understand how most modern computers actually work, there's probably no better way than to learn C. It's high level enough and provides enough structure so that
29.
▲
by
charles-salvia
9y ago
Functional programming is an attempt to pretend that Von Neumann machines are abstract, mystical mathematical engines, rather than a bunch of registers that read in values from an electronic grid, mutate them, and write out new values back
30.
▲
by
charles-salvia
9y ago
After running a mental Principal Components Analysis over the whole liberal/conservative ideological spectrum, I'm increasingly inclined to reduce the entire divide between conservatives and liberals to whether any given individua
More ›