Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
albinofrenchy
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
9 ms
·
31.
▲
by
albinofrenchy
9y ago
Are you just arguing strict semantics here? If I'm Jewish and someone advocates for killing all the Jews, to me that is clearly a physical threat and potentiality assault. There is also a very real normalization that goes with online t
32.
▲
by
albinofrenchy
9y ago
This seems very much like an ad for the NSNG site. And as far as I can tell, it's just keto with a dose of "don't feel bad if you have pie for xmas".
33.
▲
by
albinofrenchy
9y ago
Yes, people absolutely use code generators with C. But they do this because of deficiencies in the language, and everyone basically agrees that C is the lowest common denominator in terms of languages -- it's portable assembly essentia
34.
▲
by
albinofrenchy
9y ago
You might as well claim C has garbage collection since there are libraries for it. It's a hack. Might as well claim no language benefits from generics since you can always code gen. For practical issues you have things like compile tim
35.
▲
by
albinofrenchy
9y ago
The C++ runtime is too big for the kernel. It is also largely unnecessary. You can easily compile C++ code without STL or larger library support. This still leaves some holes that the runtime provides, but all of which are easy to provide -
36.
▲
by
albinofrenchy
9y ago
I am moderately familiar with video games but have no idea what itch is. I have a largish steam library though. $100 dollars is nothing compared to dev costs. It should have been just counted as startup costs and the demo should have been u
37.
▲
by
albinofrenchy
9y ago
Net neutrality isn't about paying more for consuming more. It is like needing to upgrade your water plan to make coffee as opposed to tea; unless you brew with starbucks or something.
38.
▲
by
albinofrenchy
9y ago
The George Soros demonization is one of the odder things I've seen lately. This isn't some psyops nonsense. Net neutrality isn't some George Soros conspiracy meant to cripple capitalism while making him rich.
39.
▲
by
albinofrenchy
9y ago
> Rich Hickey pointed out last year that the convention of bumping the major version of a library to indicate incompatibility conveys no more actionable information than just changing the name of the library. Unless, you know, you care a
40.
▲
by
albinofrenchy
9y ago
Roughly 10%, where fiber makes up half of that or so. The limit I've seen is 20-40g of non fiber carbs.
41.
▲
by
albinofrenchy
9y ago
I thought the only real limit for keto was on non fiber carbs? Is there typically a max ratio on protein too?
42.
▲
by
albinofrenchy
9y ago
> So if you claim that he has not right to make a threat, then how can he enact something that he has no right to say? No, I'm claiming he has no more legal right to make threats than any other person. There is a large difference th
43.
▲
by
albinofrenchy
9y ago
Trump has violated that TOS aplenty[0]. The NK non-sense wasn't even the first thing I thought violated the TOS; he basically harasses someone new every few weeks punctuated by retweeting gifs of him punching CNN or knocking Clinton ou
44.
▲
by
albinofrenchy
9y ago
POTUS has no more rights by law than any other citizen to make violent threats. POTUS has _authority_ to enact those threats in certain cases whereas one typically doesn't. For instance -- I have the right to say 'Nazis should be
45.
▲
by
albinofrenchy
9y ago
> For instance, he has the right to make violent threats in certain circumstances compared to normal citizens. No one has the 'right' to make violent threats on twitter. It is a private service with a ToS. There are no principl
46.
▲
by
albinofrenchy
9y ago
I somehow completely misunderstood that from the Go documentation when first reading it; thank you for clarifying that. There must have been some other leaking going on. He was using a largish library when he saw the leak and eventual crash
47.
▲
by
albinofrenchy
9y ago
I was wrong, apparently it is. Really wish there was a way to edit that comment now.
48.
▲
by
albinofrenchy
9y ago
There is a substantial issue with this pattern for things like files -- the operating system imposes a max limit on the number of file descriptors you can have open. Defer gives no guarantees about when that thing is going to run -- just th
49.
▲
by
albinofrenchy
9y ago
You usually shouldn't use unique_ptr for C api stuff unless you really only need to free it. Typically though there are custom delete/free API calls you need to make, and to use them with unique_ptr you have to pass that function
50.
▲
by
albinofrenchy
9y ago
The only time I can think of where this is useful is when you are trying to be super defensive with possible exceptions being thrown. Otherwise it seems a lot like you can just make the call at the end of scope yourself for the same line co
51.
▲
by
albinofrenchy
9y ago
This seems unnecessary and possibly even harmful. In C++ the destructor handles this as part of the lifespan of the object. Making users of the object encapsulating the resource handle resource cleanup is an antipattern, which is why the st
52.
▲
by
albinofrenchy
9y ago
Smart pointers are not at all useless and not at all deprecated (you are thinking of auto_ptr; there are still unique_ptr and shared_ptr). They don't try to address the check for null problem at all; that isn't their intent. All t
53.
▲
by
albinofrenchy
9y ago
There are definitely better smart pointer semantics than others -- see the now deprecated auto_ptr. But it really doesn't fit the argument as framed. All smart pointer implementations are some valuable niceties wrapped around a naked p
54.
▲
by
albinofrenchy
9y ago
Yes, both unique and shared ptrs default to null and in many ways are drop in replacements for naked pointers. If the empty state thing was in reference to smart pointers, it'd be a remarkable misunderstanding of how they work and how
55.
▲
by
albinofrenchy
9y ago
Is this really considered modern c++ style? Best practice as far as I've ever known it is to disallow wherever possible the allowance of having an invalid state; typically with constructers locking those details down. Obviously referen
56.
▲
by
albinofrenchy
9y ago
I tried using Go this weekend and basically just abandoned it when I learned that it only had 'generic's for three built-in types and other than that you are forced to essentially dynamic cast everywhere. I just don't get the
57.
▲
by
albinofrenchy
9y ago
I'm not missing the point. I'm not saying it isn't happening because it's some crazy Tom Clancy plot. I'm saying the intelligence agencies have better ways of getting that data without also giving it to a ton of oth
58.
▲
by
albinofrenchy
9y ago
This vaguely reminds me of the time a paranoid coworker told me not to store tax documents on the cloud because the government could get at it.
59.
▲
by
albinofrenchy
9y ago
Sanitizers are run-time tools; I'd be surprised if any of them worked out of the box with the kernel. Address sanitizer was "ported" to the kernel a while ago; not sure if UBSAN is or will be in the future.
60.
▲
by
albinofrenchy
9y ago
Sure; same point applies though -- just because 0 happens to be in RAX doesn't mean it's defined behavior.
More ›