Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
nlewycky
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
16 ms
·
31.
▲
by
nlewycky
3y ago
Temps, Vendors and Contractors.
32.
▲
by
nlewycky
3y ago
You started the discussion by saying that we can understand what the committee meant by simply reading the text in the standard that they wrote. Remember? Why then does it matter if it's non-normative text (aka. informative)? If it
33.
▲
by
nlewycky
3y ago
That's impossible in the general case, but there are compiler warnings that try to help you catch as much as they can, use `-Wall` when building code, and there is runtime instrumentation `-fsanitize=undefined` to catch as much UB as p
34.
▲
by
nlewycky
3y ago
> 1. it's insane. nobody would write such an optimization because there's no possible performance gain, and it changes program behavior LLVM explicitly has an 'undef' constant value which facilitates this optimization
35.
▲
by
nlewycky
3y ago
> When they're all done they'll be providing power cheaper than your home solar setup, even with their additional requirements Really? Could you cite a source with some numbers? On my PG&E bill, the cost of power generation
36.
▲
by
nlewycky
3y ago
If it doesn't change whether the argument is correct or not, why did mpweiher bring it up?
37.
▲
by
nlewycky
3y ago
> 1. It gives a range of 3 permissible options. If one of these "permissible" options is "you can do anything", what are the other 2 options doing on that list? Before the list it clearly says, "behavior, [... wh
38.
▲
by
nlewycky
3y ago
> Very clearly gives a list of "permissible behaviors" A statement like "we have products ranging from cake decorating to peanut crocheting to jousting lances" does not mean that this is a list of the only three types
39.
▲
by
nlewycky
3y ago
> And the existence of pre-standard C compilers that worked is, of course, clear evidence that it is not a necessary condition either. Or at least was not. The difference is that those compilers didn't have a spec to follow or disob
40.
▲
by
nlewycky
3y ago
> The standard joke is a joke, because it is wrong. No, it is a joke because it is silly. It is correct and intended for pedagogy.
41.
▲
by
nlewycky
3y ago
> > until the spec tells us what meaning it has. > That's a commonly held belief, but wrong. My first C compiler predated the ANSI C standard. Yet the code very much had meaning, just not in terms of the C standard. Much like
42.
▲
by
nlewycky
3y ago
No maliciousness is required. "1 + 2" produces "3" only because the standard defines it so -- it is therefore required that 1 + 2 produce 3. When the standard does not say what to do, there is no requirement. You said &q
43.
▲
by
nlewycky
3y ago
You build brand new data centres with the latest technology. When a new technology rolls out, new builds always get it, and you start upgrading your newest data centre first. Sometimes you never make it to your oldest data centre. Data cent
44.
▲
by
nlewycky
3y ago
ASan will have false negatives on the memory accesses performed in the code which isn't compiled with ASan. It works fine, otherwise. FWIW, UBSan (-fsanitize=undefined) follows the same rule. For this reason it's common to combine
45.
▲
by
nlewycky
3y ago
> Valgrind is like all the sanitizers (memory, thread, leak, address, undefined) all together, plus performance and memory profilers, all for uninstrumented code. Valgrind as memcheck can do memory and leak and partially do address sanit
46.
▲
by
nlewycky
3y ago
The grid is going to explode. Let's start with California. Because they're a large economy, a large population centre and a famously leading on environmental issues, they tend to run into scaling and environmental problems first.
47.
▲
by
nlewycky
3y ago
> Do LAN sites need HTTPS? IE wifi router, printer, fax control panel? Of course. All traffic needs to be encrypted. Why must these not be encrypted? > I am pro-HTTP for these use cases for as long as browsers have more serious warnin
48.
▲
by
nlewycky
3y ago
Could you elaborate? I thought upgrading to HTTPS wouldn't involve redoing any sites, no changes to the HTML/CSS/JS/server side code, except for the TLS configuration and maybe replacing links from "http:" to &
49.
▲
by
nlewycky
3y ago
I can't READ THE DOCUMENT because it isn't on the web. Do you have an https link? Or a mirror somewhere on the web?
50.
▲
by
nlewycky
3y ago
Nonsense, all sites need HTTPS. Any HTTP connection can have its contents rewritten by an middle party, so if you are using HTTP and not HTTPS then you are 100% OK with the recipient getting altered or incorrect data. If that's the cas
51.
▲
by
nlewycky
3y ago
If you mean analysing sewage for COVID-19, then yes. I've been monitoring COVID levels in my community via https://covid19.sccgov.org/dashboard-wastewater .
52.
▲
by
nlewycky
4y ago
Do you have a privacy policy?
53.
▲
by
nlewycky
4y ago
As far as I know, there was only ever one version of LLVM at a time in the monorepo. It's possible things changed after I left (either the compiler team or Google). Each upstream commit didn't land directly into the monorepo, inst
54.
▲
by
nlewycky
4y ago
It does. Google mirrors every commit to LLVM in their monorepo, builds and tests the whole monorepo with a fresh Clang nightly, and (ideally) one of those Clang nightlies is released as the new stable compiler for all users of the monorepo
55.
▲
by
nlewycky
4y ago
If this is the same issue at the same well known tech company that I recall, it wasn't a hardware failure but a case of undefined behaviour. The existing code used memset to initialize a struct with zeroes, then someone else added a vi
56.
▲
by
nlewycky
4y ago
> No, I am not going to do work on it, any work, at all. Without HTTPS, the content can be replaced entirely. Last time it was JavaScript that DDOS'd github. If you don't want to serve content over HTTPS, then you don't ca
57.
▲
by
nlewycky
4y ago
I'd like to be able to redeclare a member variable from the base in my derived with a covariant type. class FontInfo { /* ... */ }; class TTFFontInfo : public FontInfo { /* ... */ }; class Font { protecte
58.
▲
by
nlewycky
4y ago
break and continue with an integer argument, how many times to break. "break" breaks out of nearest loop, "break 2" breaks out of two. "continue 2" breaks out of one loop and then performs "continue"
59.
▲
by
nlewycky
4y ago
IMO it would help adoption if you supply a clang-powered rewriter into and out of your language variant. It allays the fear of losing your codebase if the compiler project dies. Reverse the default for typename. Currently some_class<T>
60.
▲
by
nlewycky
4y ago
I don't have a photo but we used to have the same sign at Google, with an added note "unless accompanied by ThreadSanitizer". At runtime: https://clang.llvm.org/docs/ThreadSanitizer.html At compile-time:
More ›