Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
keldaris
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
29 ms
·
241.
▲
by
keldaris
8y ago
CUDA itself does only one thing better - it lets you write kernels in C++ rather than a fairly restrictive subset of C. Far more importantly, it has a large ecosystem of tooling (including excellent profiling tools), libraries, documentatio
242.
▲
by
keldaris
8y ago
The parent did not dispute that diet can have a significant effect on health, including mental health, only the particular examples you mentioned. Lithium in particular is a well known case that's been researched and has plenty of supp
243.
▲
by
keldaris
8y ago
Thank you for the detailed responses. One, possibly silly, followup question, since you mentioned using AVX. If I understand correctly, Zig deliberately avoids macros, metaprogramming and doesn't have operator overloading. Given those
244.
▲
by
keldaris
8y ago
I've followed Zig's progress with some enthusiasm, but would have considered it too immature for a serious project at this point. In that vein, a few questions about your experience: 1) What's your workflow like in terms of t
245.
▲
by
keldaris
8y ago
> It's one thing to not want to use Electron app, it's another to say no one should use them. It rubs me the wrong way. There are a lot of things I'd never use, but they don't rile me to that level. The reason this tr
246.
▲
by
keldaris
8y ago
For my personal computing needs I recently upgraded from the combination of an ancient i7 920 quad core desktop and a quad core Haswell laptop to a Ryzen 2700X desktop and a pile of lovely disposable X220 Thinkpads. On the one hand, for sof
247.
▲
by
keldaris
8y ago
There is no such thing and I would argue there shouldn't be. The notion that you could use a "nearly identical UI/UX" across a desktop application, a mobile application and a web page invariably leads to horrible results
248.
▲
by
keldaris
8y ago
If you get some free time to run benchmarks, the Phoronix open benchmark suite (OpenBenchmarking.org) or even just basic LINPACK would be a great start. There's such a lack of public hard data on these systems it's hard to evaluat
249.
▲
by
keldaris
8y ago
I tend to disagree with that argument because I think the slippery slope issue can be mitigated sufficiently with proper procedures (waiting periods, psychiatrist interviews, etc.). However, it is a valid argument that must be addressed, is
250.
▲
by
keldaris
8y ago
And just to play devil's advocate against that argument in turn... the child didn't consent to being born. In fact, in most existing legal systems, children don't consent to much at all until the age of consent. And arguing t
251.
▲
by
keldaris
8y ago
The militarization of police is largely a U.S. problem among first world countries. As a practical matter I'm more concerned about things like investigations with poor judicial oversight, poorly justified police searches, warrantless o
252.
▲
by
keldaris
8y ago
I understand some of the searches took place outside of Bavaria, though (Berlin, etc.)? How does the German legal system work in this case, does police in other German states automatically cooperate with requests from Bavaria even when ther
253.
▲
by
keldaris
8y ago
I just closed it instantly because it didn't have a JS-free fallback of any kind and I run NoScript. As usual, turned out to be the right decision.
254.
▲
by
keldaris
8y ago
If you view the business model of Elsevier as a scam perpetrated on the taxpayers who funded the research, there is no logical contradiction between the term "scam site" and the fact that under current legislation in most countrie
255.
▲
by
keldaris
8y ago
They're not off the table, but you do have a point in that they are harder to attain reliably (hence the popularity of Fortran in certain circles). That being said, I don't believe there's any optimization that Fortran (or an
256.
▲
by
keldaris
8y ago
That's not a hard question. If your code only works without certain optimizations, it's either not valid (as in, standards-compliant) C++ or you've found a compiler bug. That doesn't necessarily make it bad - you may hav
257.
▲
by
keldaris
8y ago
Allen's point about C's impact on compiler development is certainly true, but we can't turn back history. For better or worse, the reasons why C won (in terms of adoption) have mostly been compounded further over the years, a
258.
▲
by
keldaris
8y ago
The compiler writers are right in the sense that for every one of those optimizations you can have a microbenchmark that will benefit hugely. The opponents are right too, in the sense that for most codebases the more niche optimizations don
259.
▲
by
keldaris
8y ago
I don't know enough about optimizing Ada code to comment competently on your assertion, but part of the reason it's very hard to compete with C/C++ is simply because of the immense effort that's gone into improving the c
260.
▲
by
keldaris
8y ago
You can view it as malicious sabotage, or you can view it as a potentially useful optimization (with obvious security caveats when used incorrectly). Either way, my point is that every major compiler lets you make the tradeoffs that are rig
261.
▲
by
keldaris
8y ago
Of all the sharp tools in C, restrict is one of the last things I'd call dangerous (restrict is not a standard keyword in C++, by the way, although most compilers support it as an extension). It's completely opt-in, relatively rar
262.
▲
by
keldaris
8y ago
I certainly wouldn't call C++ a good programming language (rather, I would call it the only viable option for most of its usecases, badly designed though it is). However, I will stick by the "letting the programmer fully control e
263.
▲
by
keldaris
8y ago
Exactly. It's become fashionable to decry the lengths to which C/C++ compilers are able to go in the pursuit of performance because of "safety" issues, but the advantage of letting the programmer fully control every knob
264.
▲
by
keldaris
8y ago
No, just have some basic knowledge about how your compiler works and make decisions accordingly. Every major compiler lets the programmer specify exactly the tradeoffs you want. C/C++ simply don't hold your hand by default and let
265.
▲
by
keldaris
8y ago
Which is a very reasonable assumption for an optimizer. Every major compiler has switches to turn that behavior off. I'd be sympathetic to an argument that perhaps those switches should be on by default, but if you change the language
266.
▲
by
keldaris
8y ago
Well, now I'm confused. When does the compiler defeat programmer intentions? If you specify -fwrapv and insert manual overflow checks wherever you wish, the compiler will never optimize them away and you will have as many runtime check
267.
▲
by
keldaris
8y ago
I can't release the whole codebase before publication, but if you're really serious about analyzing it, I can probably sanitize it in an evening and get you an MWE. Regardless, apart from pathological integer math cases, these thi
268.
▲
by
keldaris
8y ago
That's easy, I'm working on a computational kernel (for a scientific simulation of fluid dynamics) right now that loses ~20% performance the second you compile it with -fwrapv in GCC (the corresponding factor is slightly smaller i
269.
▲
by
keldaris
8y ago
Fair enough, thanks. I'll try it out just to see what it's like.
270.
▲
by
keldaris
8y ago
It is perfectly ok for C implementations to make C programming as "hazardous" as they want to. It's up to you whether you want to use them. Frankly, I don't understand the UB hate at all. There is a rapidly growing space
More ›