Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
mrich
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
26 ms
·
271.
▲
by
mrich
10y ago
Great to see an improvement over the already improved error reporting established by clang and later adopted by gcc. However I don't understand why backticks are still being used - they tend to look ugly especially when pasting them in
272.
▲
by
mrich
10y ago
That should still result in a clean error, not some kind of undefined behavior.
273.
▲
by
mrich
10y ago
What is 'sufficiently large'? Could be anything. A function, especially when part of the standard library, must work correctly for all possible inputs or reject them outright.
274.
▲
by
mrich
10y ago
int in Java and C is 32 bit wide, not 64 bit, this limit is easily reached. You cannot just assume nobody will use your algorithms with large inputs and act like your data types have unlimited range. Such bugs will typically manifest at imp
275.
▲
by
mrich
10y ago
The conclusions are not much of a surprise here, but nice that someone took the time to verify it. This is comparable to the difference between row stores and column stores in the database world. When only looking at one column a column sto
276.
▲
by
mrich
10y ago
Totally depends on what you want to use your programming skills for. In case you are just writing programs for yourself, or even starting a company writing the software from scratch with a handful of people you might as well learn Rust. If
277.
▲
by
mrich
10y ago
I feel like speed often takes the backseat, especially in large big corp projects designed by committee. At the end during user testing everyone realizes the architecture is just too slow and all to often this leads to a failed project.
278.
▲
by
mrich
10y ago
Suggestion: Add a switch to show C/C++ code lines next to the created assembly. This is very helpful for learning. In gdb you can get this with disassemble /m, or with objdump -S. Helped me a lot in the past.
279.
▲
by
mrich
10y ago
Out of curiosity, why are minivans safe?
280.
▲
by
mrich
10y ago
Thumbs up to Microsoft for investing that much into their C/C++ toolchain.
281.
▲
by
mrich
10y ago
This is already possible for ECC RAM: http://www.intel.com/content/dam/www/public/us/en/documents/... So even an application can recover from unrecoverable ECC errors. But it's not fe
282.
▲
by
mrich
10y ago
Also enable --autostash (git config --global --add rebase.autostash true) for that workflow so that dirty files do not get in the way.
283.
▲
by
mrich
11y ago
There are some commands where it doesn't work, in some cases '/' is interpreted as an option prefix and the failure is obvious, for other commands failures are not so obvious (copy IIRC, cost me half an hour some time ag
284.
▲
by
mrich
11y ago
> In C++ and on the stack "{0}" is not required as memory is zeroized. No, it isn't. Globals are. And since the explicit initializer is provided it definitely is a bug to not zero all bytes.
285.
▲
by
mrich
11y ago
Choosing Python for some memory/cache-bound program may turn out to be the wrong choice, and you need to rewrite it in C/C++.
286.
▲
by
mrich
11y ago
> Without Twitter, the public might believe absurd lies. People still are people, with all their positive and negative sides. Some technological advancement is unlikely to change that.
287.
▲
Sanitize, Fuzz, and Harden Your C++ Code (Google Presentation)
(youtube.com)
2 points
by
mrich
11y ago
|
0 comments
288.
▲
by
mrich
11y ago
That just means involving more people _right now_ won't speed things up. But you can "make 9 babies in 9 months" if you plan early and involve enough people. I.e. know how much Q/A people you need and hire them upfront.
289.
▲
by
mrich
11y ago
Quite concise and short. Now wouldn't it be great to also have such a short guide for C++... (thinking about the tome that is https://github.com/isocpp/CppCoreGuidelines )
290.
▲
by
mrich
11y ago
It also makes you think upfront about the design much more. With all the intricacies of writing correct low-level code you really want to write it once only and not try out different designs and refactor between them, where mistakes quickly
291.
▲
by
mrich
11y ago
I prefer using AddressSanitizer for finding bugs like these now. In addition to heap overflows it can also find stack and global overflows. As a second option I'm using valgrind which can find uninitialized memory (and doesn't req
292.
▲
by
mrich
11y ago
AdBlue is also used in the latest Audi ultra TDI engines. It is supposed to be refilled during normal service (every 30000 km), unfortunately it does not last that long and you have to schedule an appointment much earlier. Refilling it your
293.
▲
by
mrich
11y ago
This is a Javascript demo. So let's not discount the browser, Javascript engine, JIT, 3d acceleration libs, sound libs, and everything used from the OS that is involved here. Still it is a great effort. Your argument fits better to a m
294.
▲
by
mrich
11y ago
The other popular joke, after all these years and billions spent: "Let's just move Berlin to a functioning airport"
295.
▲
by
mrich
11y ago
When you blindly abide by the rules you will never reveal people abusing this system, as has been done by Snowden. Is this what you would prefer?
296.
▲
by
mrich
11y ago
I don't see how the usual buyout amount would be able to take the money out of the equation. "Low performers" who don't have good chances in the job market surely will stay, since their earning potential is greater than
297.
▲
by
mrich
12y ago
You can protect against that by running your vulnerable program in a VM without large performance loss. However, you cannot easily bring your heavily-checked/cache-inefficient/no-inlining Java/Javascript/Python program u
298.
▲
by
mrich
12y ago
Generally I agree. One exception is code generated at runtime (i.e. JIT) or third party libs which you cannot recompile. ASan is planning to handle this but is not there yet.
299.
▲
by
mrich
12y ago
Who says a kernel must have 15 million lines of code? I'm pretty sure there are kernels out there that have been verified correct. Of course the hardware could still be broken (can also be proven correct) or a cosmic ray could flip som
300.
▲
by
mrich
12y ago
It requires a little getting used to, but quite powerful: http://www.delorie.com/gnu/docs/gdb/gdb_56.html
More ›