Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
ncmncm
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
38 ms
·
391.
▲
by
ncmncm
4y ago
Can be, in principle, but uniformly are not.
392.
▲
by
ncmncm
4y ago
What I notice is exactly zero mention of charging anybody in the Justice Department or FBI with any crime. Not even those who knowingly, blatantly lied in sworn statements. There are laws on the books about that. Why are they refusing to en
393.
▲
by
ncmncm
4y ago
Some places, cops will visit if they think you are buying too many oil filters because you might be making and, presumably, selling suppressors.
394.
▲
by
ncmncm
4y ago
I was hoping it would distort the image to round the corners and compress the edges. Extra credit for added snow.
395.
▲
by
ncmncm
4y ago
Why was it USDoD decided against deploying crowbars from orbit? (That would be hypersonic darts with only enough propellant to re-enter, and then with control surfaces to guide it to a precise target at hypersonic speed.)
396.
▲
by
ncmncm
4y ago
Of course it will be mainly the Iranian government using the service. Which it will have to be paying for, via confiscation from the Iranian people. That will be good for SpaceX, anyway.
397.
▲
by
ncmncm
4y ago
Anyway fewer turned on? They need something to sell when one or more of the cores don't work. Would be nice to let you have 15 cores when that many of them work.
398.
▲
by
ncmncm
4y ago
My CPU can't, but it is theoretically possible to make a CPU that could.
399.
▲
by
ncmncm
4y ago
Only in practice. And, mostly implemented by engineers.
400.
▲
by
ncmncm
4y ago
Not breaking binary compatibility is a pure good. The standard could pull unique_ptr in as a built-in feature with a different name, and retain backward compatibility at cost of an unfortunate redundancy. Code using unique_ptr would gradual
401.
▲
by
ncmncm
4y ago
My objection is to the expression "C-like". That does not correctly distinguish what is fast from what isn't, and instead promotes a harmful myth. A lambda needs a heap allocation only if any of its captures do.
402.
▲
by
ncmncm
4y ago
Right, it should have been recognized as a null argument even back then.
403.
▲
by
ncmncm
4y ago
I can only go by the results I measure. There certainly are cases where Clang does better than Gcc, but the difference is anyway rarely more than a couple of percent. Occasionally one finds a factor of two one way or the other, e.g. where o
404.
▲
by
ncmncm
4y ago
Well, yes. But is Ted Cruz really Doerr?
405.
▲
by
ncmncm
4y ago
Good news, optimization is engineering, not CS. CS is all about what a program would eventually do, if you were ever to run it. Once you run it, you have moved to the domain of technicians. Engineering is about making it run better.
406.
▲
by
ncmncm
4y ago
Wait, like instead of 1/6283.185307 of a turn? That's wild! (It is off by 1.86%. That much error matters, nowadays, though it wouldn't have, back when.)
407.
▲
by
ncmncm
4y ago
I am partial to the term "windings", defined as not modulo 1 turn. I e., we are talking here about two very different quantities. Angle is always within a turn, but rotation, using the same units, is not.
408.
▲
by
ncmncm
4y ago
Those are useful symbolically, but not computationally.
409.
▲
by
ncmncm
4y ago
That is the way to do the math, but not the way to write the code. That said, I would like for my compiler to combine any multiplications involved down to one factor for input to the fastest sin/cos operations the machine has. And , t
410.
▲
by
ncmncm
4y ago
When you store a value that will be reused, like in an array of points, if every time you walk the array multiplying by a constant, you should seek to store values in such a way that it does not need that treatment. If you are taking sin an
411.
▲
by
ncmncm
4y ago
No, 2/tau turns, philistine. ;-)
412.
▲
by
ncmncm
4y ago
Right, it is a funny way to say it. Computationally, we all only ever work with approximations, but when doing mathematics, pi is exact all the way out to the infinity-th digit. To multiply by pi (or any irrational, but particularly transce
413.
▲
by
ncmncm
4y ago
Or, as close as made no nevermind, oncet.
414.
▲
by
ncmncm
4y ago
The difference between representation in units of right angles (1/4 cycles), and cycles is just a matter of bumping the exponent up or down two clicks. So cycles / turns and radians suffice. I suppose it is in solutions to differe
415.
▲
by
ncmncm
4y ago
You just want to ensure they don't take up space in your struct body. Otherwise, const is fine.
416.
▲
by
ncmncm
4y ago
Gravity too low, too cold, weak sun, no air. Really, all Mars has is dirt, and that is corrosive. We could do much better building spinning cans to live in, out in orbit. Even Venus cloudtops would be a better place to camp than Mars. Peanu
417.
▲
by
ncmncm
4y ago
They are not especially new, but they are not in C. C is the language that invites in mistakes. The less C we code, the fewer mistakes we ship.
418.
▲
by
ncmncm
4y ago
I hope we can all agree that we want the overwhelming majority of the lines of code we write, and of the cycles our programs execute, to be about solving an actual problem representing the purpose the program was written. Lines and cycles f
419.
▲
by
ncmncm
4y ago
Probes.
420.
▲
by
ncmncm
4y ago
Anyway, with no plans to dip to cloud level. Actually landing people on Venus could only be a disastrous mistake.
More ›