17,493 karma · joined May 14, 2013 (13y ago) · 5,497 submissions
Revenue focused web analytics to help you quickly identify where to focus your effort to best increase revenue.
And embersofvictory.com
Retro turn-based strategy game.
4982.
Norway plans to cull more than two-thirds of its wolf population(theguardian.com ↗)
63 points · by eloff · 10y ago · 51 comments
comment 10y ago · link · parent
Its analogous to fysnc() to ensure data reaches the disk in a way that survives power failure. This is like just treating all writes as fsynced and not needing to worry about fsync at all, like with O_DIRECT writes.
comment 10y ago · link · parent
There was a design document about this from 4 years ago, but I'm not sure how well it reflects the current implementation:
https://docs.google.com/document/d/1TTj4T2JO42uD5ID9e89oa0sL...
comment 10y ago · link · parent
Intel is the only company with a "true" 14nm and 10nm process.
Considering the number of people that don't seem to realize TSMC 10nm != Intel 10nm, Intel should change their marketing.
[1] http://www.extremetech.com/computing/228806-arm-announces-ne...
comment 10y ago · link · parent
Intel is the only company with a "true" 14nm and 10nm process.
[1] http://www.extremetech.com/computing/228806-arm-announces-ne...
comment 10y ago · link · parent
That's the best description of a hedge fund that I've heard. Likewise, I don't see how that will ever be a winning investment strategy. You'd be better off with just an index ETF.
comment 10y ago · link · parent
It's not without drawbacks, relying on handling sigsegv is a pain to make portable (libsigsegv helps!) HotSpot handles sigsegv, but I think it's possible to install your own handler as well by setting it before loading the JVM. When the JVM loads it will chain pre-existing signal handlers behind its own, and they'll be invoked if the signal doesn't pertain to HotSpot. LD_PRELOAD can be used to accomplish that. My information may only apply to an older version of HotSpot though, I don't know if that's still the case.
The other thing is relying on the TLB here becomes trickier with huge pages. It seems to me that the section and queue boundary trap pages are set just once at queue init and then never changed - so one could do the same with 2mb huge pages, without wasting memory, if the sections are sufficiently large. The problem is that requires the producer and consumer to be at least 2mb of queue apart, which is probably too much delay for many applications where latency is important. But I really don't see the need for huge pages here. A queue where both producer and consumer are repeatedly touching the same page seems like the ideal use case for the TLB anyway.
Not all applications can tolerate a sectioned queue though, for example what happens when the producer writes less than a full section of items to the queue and then pauses for a long time? The consumer won't be able to access that data until the producer finishes the section.
comment 10y ago · link · parent
var _ = unusedImport
Or use goimports. Then you don't even have to think about it.
comment 10y ago · link · parent
[1] http://physics.stackexchange.com/questions/109739/is-plant-p...
comment 10y ago · link · parent
Remember the carbon here is coming from the atmosphere, so it's carbon neutral and won't contribute to climate change.
If the process can be scaled up to produce a gallon of gasoline for less than the costs of extracting crude from the ground and refining it - then it will quickly kill off new investment into the fossil fuel extraction industry. As opposed to alternate energy technologies, like electric cars which will take a long time to replace internal combustion engine cars. It would use all of the existing infrastructure, so all it has to be is cheaper for market forces to work their magic.
That's a very big IF, however, so don't get your hopes up.
comment 10y ago · link · parent
All I'd really like to do is just map some nice really huge chunks of contiguous address space to memory in an efficient way. 1GB huge pages mostly work, but they're a little painful to code with. They must be statically allocated at boot time, balanced correctly between numa nodes, and mounted to a hugetlbfs filesystem in order to use MAP_SHARED.
comment 10y ago · link · parent
shrq $3, %rcx
andl $7, %edx
rep movsq
movl %edx, %ecx
rep movsb
Torvalds justified it as a way to force Intel and AMD to do the right thing and optimize the rep movs* instructions. He was annoyed at the code complexity of "more optimal" apporaches, and like you, concerned about icache effects.A hand-written memmove is faster in microbenchmarks, but the icache effects may make the overall performance difference smaller (or even negative.) That's harder to measure.
AFAIK glibc does get better results than the kernel approach, but they've also introduced bugs[3] that way and the code is very complex by comparison. Also worth noting is that the kernel usually runs with a cold(er) icache, which is why they compile for size rather than speed (last I checked anyway, which was long ago) and why their memmove may make more sense in the context of the kernel. Also I suspect copies in the kernel are more likely to be larger (e.g. packets, pages, blocks) as opposed to small objects in userspace.
[1] http://www.intel.com/content/www/us/en/architecture-and-tech...
[2] https://github.com/torvalds/linux/blob/master/arch/x86/lib/m...
comment 10y ago · link · parent
A bigger problem is positive feedback loops. Melting ice means more dark water to absorb sunlight, and more melting. Melting permafrost releases CO2 and Methane and causes more warming. And somewhere around ~5 degrees warming the frozen methane on the ocean floor will bubble up and cause the mother of all feedback cycles. We'd be in for about 10 degrees warming and a mass extinction that would wipe out 90% or more of all species on Earth. From what I've seen of global warming predictions we won't get there - but I'm mentioning this because at some point warming temperatures doesn't just mean major changes and flooding our cities - at some point it means a terrible calamity like the Earth has only occasionally seen.
comment 10y ago · link · parent
For sequential access giving a latency number doesn't make sense - you need to talk throughput. You can get upwards of 20gb/s with a single core for DRAM. Here you're at least bounded by the 4x PCI interface (more likely the Optane device) so maybe 3GB/s if you're feeling generous.
comment 10y ago · link · parent
comment 10y ago · link · parent
Schemas don't change that much compared to code, having a strict schema enforced by the database saves you so much time and pain and downtime in the long run.
comment 10y ago · link · parent
comment 10y ago · link · parent
comment 10y ago · link · parent