Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
jmgao
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
19 ms
·
151.
▲
by
jmgao
9y ago
clang is pretty big. There's about 55 MB of binaries on that page. When served from localhost, it takes about 10 seconds to load and compile a source file on my machine.
152.
▲
by
jmgao
9y ago
AFAIK, 'Hey Google' as a hotword was supported on the Google Home from the beginning.
153.
▲
by
jmgao
9y ago
Rust's type system is intended to provide memory safety guarantees, which they define as explicitly not including memory leaks. You're not really any better off than just using C++ shared_ptr/unique_ptr.
154.
▲
by
jmgao
9y ago
GP is misinformed. seccomp is an optimization to ptrace-based syscall interception, when you're only interested in intercepting a subset of a process's syscalls. Instead of getting an event and processing every single syscall a pr
155.
▲
by
jmgao
9y ago
Seems unlikely, it seems to trigger at 12:15 local time.
156.
▲
by
jmgao
9y ago
There's problems when you're taking a slice and storing it for a potentially long time. If the slice is actually a subslice of a super large array, the backing slice will be kept around until the subslice goes away (assuming the i
157.
▲
by
jmgao
9y ago
This seems reminiscent of export templates, which were a resounding success: http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2003/n142...
158.
▲
by
jmgao
9y ago
This is also common among progamers, for similar reasons: https://i.ytimg.com/vi/glSiSoAounY/maxresdefault.jpg
159.
▲
by
jmgao
9y ago
> For your claims on Xeon's bugs, just wondering when was the last time Intel had to patch the microcode to fix bugs that can continuously crashing day to day workloads such as compiling some linux packages? Intel had an even worse
160.
▲
by
jmgao
9y ago
There's probably far more reasonable cases of temporaries being immediately destructed than you'd expect. One that springs to mind is gtest. It defines a bunch of macros like ASSERT_TRUE that return a temporary object that has ope
161.
▲
by
jmgao
9y ago
Just rank by salary and pick the top N? There's plenty of things to bikeshed over, like how to adjust for cost of living, but I don't see how you could argue that this could be any worse than literal random chance.
162.
▲
by
jmgao
10y ago
> it seems that an idea where your infrastructure is out of reach or particularly vulnerable seems like a bad idea. Is it better to have your infrastructure where someone with a shovel, or a fishing boats dragging its anchor can cause ca
163.
▲
by
jmgao
10y ago
> libc is the C runtime library, a subset of POSIX. > A conforming ANSI C implementation is not required to provide headers like unistd, or any kind of POSIX compatibility beyond what ISO/IEC 9899 requires. Yes, and Android'
164.
▲
by
jmgao
10y ago
One hilarious one is basename(3), which is two functions with different behavior, but the same name. The one you get depends on which headers you include, and what _GNU_SOURCE is set to. See http://man7.org/linux/man-pa
165.
▲
by
jmgao
10y ago
> the NDK only white lists a restricted set of libraries that aren't POSIX related Uh, libc? > Android 7 dynamic linker will kill any app that tries to link to device libraries not part of that list Yes, it prevents you from depe
166.
▲
by
jmgao
10y ago
Nothing better to do than rant about POSIX :-)
167.
▲
by
jmgao
10y ago
One of the primary goals of POSIX was to standardize and encode existing behavior, but the behavior of Unices is sufficiently divergent that many APIs are uselessly underspecified. One especially hilarious case is close being impossible to
168.
▲
by
jmgao
10y ago
I'm saying that supporting multiple ABIs has a nonnegligible cost, regardless of whether the hardware supports it or not. On my MacBook (I haven't touched an iOS device in the last 5 years), the 32-bit dyld_shared_cache is 300 MB,
169.
▲
by
jmgao
10y ago
> The Ars Technica article on this issue cuts to the heart of why this is so devastating: there is tons of software--software which was really interesting and I dare say "seminal" for this important era of computing; and which
170.
▲
by
jmgao
10y ago
Bits of pieces of the operating systems might handle leap seconds properly, but it's doubtful that every single component that uses time does the right thing. The last two leap seconds have revealed bugs in the kernel: https:/&#x
171.
▲
by
jmgao
10y ago
> What doesn't make sense to us is how this daemon (yam) was running under a statd username when the container doesn't have such a user, but the host does? Are LXC containers able to run daemons on the host? This is because use
172.
▲
by
jmgao
10y ago
> Making C compilers for different architectures output great code from same source is really hard. e.g. "const" is not used by optimizers because it can be cast away. const most certainly is used by optimizers: https:/&#
173.
▲
by
jmgao
10y ago
> In your hypothetical example in Go you would pick one of the set values (e.g. "1") as a "zero value". > The alternative of not having a "zero value" is to have variables with undefined values, and we kn
174.
▲
by
jmgao
10y ago
There are some SSE instructions that crash if they're used with arguments that aren't 16 byte aligned. All of the ones I can think of have a version that supports unaligned access at a performance penalty, so it's basically j
175.
▲
by
jmgao
10y ago
Strictly speaking, POSIX mandates that a pointer with all zero bits is a null pointer, not necessarily the other way around.
176.
▲
by
jmgao
10y ago
Because the entire point of writing a framework is for other people to use it, which is a pretty strong pull towards the lowest common denominator.
177.
▲
by
jmgao
10y ago
> In this case, our conventional languages provide no way for a programmer to say "I care about overflow". GCC and clang have builtin operations that return whether they overflowed (bool __builtin_add_overflow(T a, T b, T* out)
178.
▲
by
jmgao
11y ago
fork would copy the entire address space of the process, which was wasteful when you're usually going to just throw all of that memory away by calling exec. BSD added vfork to optimize the `if (fork() == 0) exec(...)` scenario, by not
179.
▲
by
jmgao
11y ago
> So do Cygwin and/or MSYS emulate the fork() call on Windows? and if so, do you have any idea how that is done? Cygwin does some pretty horrific hacks to emulate it. It basically creates a paused child running the same binary, fill
180.
▲
Android NDK r11 released
(developer.android.com)
4 points
by
jmgao
11y ago
|
1 comments
More ›