Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
eMSF
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
23 ms
·
181.
▲
by
eMSF
7y ago
>Did I mess up the code? You certainly did; both your benchmark functions overflow their internal buffers. However, it's not all that improbable for memccpy to be slower than strcpy in this case, even if it was used correctly; after
182.
▲
by
eMSF
7y ago
>I wondered if it just has constant expression semantics for const variables. That would be my guess also, for applicable const variables. File scope const variables are quite constexpr-y in C anyway, since C requires all file scope vari
183.
▲
by
eMSF
7y ago
To be exact, it doesn't compile fine outside of functions (which the sample code didn't have) because file scope arrays can't be VLAs.
184.
▲
by
eMSF
7y ago
>Even more so because the equivalence doesn't work that way in C++ What do you mean? As far as I remember, C++ is very similar in this respect when it comes to array and pointer types.
185.
▲
by
eMSF
7y ago
Only the first two expressions on the right are null pointer constants (integral constant expression with a value of 0, optionally cast as a void *), that can be used to initialize all pointer variables, including function pointers. The las
186.
▲
by
eMSF
7y ago
Line comments have been part of the C language for a long, long time (added in C99); so much so that, especially when discussing the subject on the internet, more and more often they predate some of the younger participants.
187.
▲
by
eMSF
7y ago
That's hardly obscure: it's Javascript that's the odd one out of the languages with C-like syntax, with its wacky function-level scoping instead of variable shadowing when using 'var', and falling back to global sco
188.
▲
by
eMSF
7y ago
How could I truthfully mean soy by "what cows eat", when around here, soy only makes up 1-2% of cattle feed. You're cutting all the corners available by adding up the fact that you've heard soy being fed to cattle to the
189.
▲
by
eMSF
7y ago
The narrow tyres of the i3 sure look funny, but I wouldn't expect it to be an issue on ice. It's pretty common knowledge around here to have narrower winter tyres than summer tyres so you don't just glide over snow, so I gues
190.
▲
by
eMSF
7y ago
>It's terribly unhealthy, and the risks associated with the consumption of red meat are well known. They aren't, really. Of course, in the circle, none of this matters.
191.
▲
by
eMSF
7y ago
For reference, (with a Windows 10 system with 16GB of RAM) after several hours of light use, task manager reports that 2.7GB of RAM is used with 13GB available (other numbers report that 3.3/16.9GB are committed, and 2.8GB cached).
192.
▲
by
eMSF
7y ago
But why would you design cities for bicycles either? They're not people, right?
193.
▲
by
eMSF
7y ago
>The gas is taxed for the environmental reasons Then why was it highly taxed before carbon emissions were considered a problem at all? I can tell you: because it's easy to tax (very much like estates).
194.
▲
by
eMSF
7y ago
Oh, but it is a wonderful tax income. Around here, only a fraction (about 1/8) of car-related taxes are spent on maintaining the roads.
195.
▲
by
eMSF
7y ago
You definitely should warm up your engine, but strictly before starting it and not by idling it (i.e. use a block heater). This is because it takes a lot of time for the engine to warm up when idling without any load.
196.
▲
by
eMSF
7y ago
Kei cars are small (unless I'm gravely mistaken), while Leaf isn't that kind of small.
197.
▲
by
eMSF
7y ago
Of course: aerodynamic benefits. Lower frontal area as well as better drag coefficient. This car has an awful range at highway speeds, so every little bit helps (but you probably still want to drive at a lower speed if you're going far
198.
▲
by
eMSF
7y ago
Sharing economy, all right. Some refuse to acknowledge the issues that are well known.
199.
▲
by
eMSF
7y ago
Would that tax apply to all soft drinks, or only still water?
200.
▲
by
eMSF
7y ago
Alcohol damages brains of all ages, as well. I don't write that to dispute the point of the article. However, many findings do dispute the age of adulthood.
201.
▲
by
eMSF
7y ago
While it makes no difference in this case, it's worth noting that Badge<T> is not an aggregate type because it has a user-provided constructor. Therefore the object is value initialized, i.e. the braces are equivalent to 'Ba
202.
▲
by
eMSF
7y ago
Quoting GPLv2 >The source code for a work means the preferred form of the work for making modifications to it. For an executable work, complete source code means all the source code for all modules it contains, plus any associated interf
203.
▲
by
eMSF
7y ago
That's actually one of the better new features in Windows 10 (that you can these days scroll an inactive window).
204.
▲
by
eMSF
7y ago
When I last checked, ECC RAM was hardly more expensive than non-ECC RAM. 8-core Xeons have a huge price range. I would be quite surprised if the BoM of the base model was even half of that.
205.
▲
by
eMSF
7y ago
What's the difference? Perhaps a file never meant just something you have in a directory, rather "a stream of bytes", and the bigger thing was always unifying the difference whether those bytes are read from a magnetic tape o
206.
▲
by
eMSF
7y ago
>It's not rocket science, it's no surprise at all to find cholesterol, sodium, saturated fats, etc. are in meat and processed foods. You say that like dietary cholesterol, sodium and saturated fats were bad for us. (They'r
207.
▲
by
eMSF
7y ago
I got bit by these "major" hardware changes on a computer I'd passed on to my relatives. For whatever reason I had had the onboard Ethernet adapter disabled in BIOS when I upgraded from Windows 7 to 10, and enabling it preven
208.
▲
by
eMSF
7y ago
You'd need a solid theory to explain that to assure others it's not just poorly gathered data. Perhaps purposefully so. In any case, the millions of tons of coal that Germany burns instead, thanks to German "greens", wil
209.
▲
by
eMSF
7y ago
Few care to have a discussion with hyperbolics.
210.
▲
by
eMSF
7y ago
Well... except for the fact that I don't have a gut to make use of any of the biomass that grazing cattle can harvest from a field. And eaten or not, that biomass is part of active carbon cycle, and if left on the field, will decompose
More ›