Rvalue References: C++0x Features in VC10

Ogromnie polecam. Dawno nie czytałem z takimi wypiekami ;)
Na razie dotarłem do połowy, ale polecam poświęcić czas.


http://blogs.msdn.com/vcblog/archive/2009/02/03/rvalue-references-c-0x-features-in-vc10-part-2.aspx

Opinie ekonomiczne - Krajowy rynek finansowy w czerwcu

http://opinieekonomiczne.blox.pl/2009/06/Krajowy-rynek-finansowy-w-czerwcu.html

Referencja do r-wartości

http://pl.wikipedia.org/wiki/C%2B%2B0x#Referencja_do_r-warto.C5.9Bci.2FSemantyka_przeniesienia

Stopy w dół... i co dalej?

http://bankier.tv/video/Stopy-w-dol-i-co-dalej-43868.html

Paradigm shift: Design Considerations For Parallel Programming


Concurrent programming is notoriously difficult, even for experts. When logically independent requests share various resources (dictionaries, buffer pools, database connections, and so forth), the programmer must orchestrate the sharing, introducing new problems. These problems—data races, deadlocks, livelocks, and so forth—generally derive from a variety of uncertainties that arise when concurrent tasks attempt to manipulate the same data objects in a program. These problems make the basic software development tasks of testing and debugging extremely difficult [...]



The combination of extra concepts, new failure modes, and testing difficulty should give every developer pause. Is this something you really want to bite off? Clearly, the answer is no! However, many will be forced into this swamp in order to deliver the necessary performance. Microsoft is actively developing solutions to some of the core problems, but high-productivity solution stacks are not yet available.



Current multicore chip architectures are able to increase the number of cores faster than memory bandwidth, so for most problems where the data set does not fit in memory, using the memory hierarchy is an important concern. This imbalance gives rise to a style of programming called stream processing where the focus is to stage blocks of data into the on-chip cache (or perhaps private memory) and then perform as many operations against that data as possible before displacing it with the next block. Those operations may be internally parallel to use the multiple cores or they may be pipelined in a data flow style, but the key issue is to do as much work on the data in the cache while it is there.


http://msdn.microsoft.com/en-us/magazine/cc872852.aspx

Concurrency and exceptions

http://www.bluebytesoftware.com/blog/2009/06/24/ConcurrencyAndExceptions.aspx

Budżet w czasach kryzysu

http://januszjankowiak.bblog.pl/wpis,budzet;w;czasach;kryzysu,29334.html

ATI Stream Software Development Kit

http://developer.amd.com/gpu/ATIStreamSDK/Pages/default.aspx

C++, the volatile / memory barrier

The C and C++ standards do not address multiple threads (or multiple processors), and as such, the usefulness of volatile depends on the compiler and hardware. Although volatile guarantees that the reads and writes will happen in the exact order specified in the source code, the compiler may generate code which reorders a volatile read or write with non-volatile reads or writes, thus limiting its usefulness as an inter-thread flag or mutex. Moreover, you are not guaranteed that volatile reads and writes will be seen in the same order by other processors due to caching, meaning volatile variables may not even work as inter-thread flags or mutexes.

Some languages and compilers may provide sufficient facilities to implement functions which address both the compiler reordering and machine reordering issues. In Java version 1.5 (also known as version 5), the volatile keyword is now guaranteed to prevent certain hardware and compiler re-orderings, as part of the new Java Memory Model. The proposed C++ memory model does not use volatile, instead C++0x will include special atomic types and operations with semantics similar to those of volatile in the Java Memory Model.


http://en.wikipedia.org/wiki/Memory_barrier



The code you write is not necessarily executed in the order in which the instructions appear in the source.

Optimizing compilers, such as the Microsoft C compiler, sometimes eliminate or reorder read and write instructions if the optimizations do not break the logic of the routine being compiled. In addition, certain hardware architectures sometimes reorder read and write instructions to improve performance. Furthermore, on multiprocessor architectures, the sequence in which read and write operations are executed can appear different from the perspective of different processors.

Most of the time, reordering by the compiler or the hardware is completely invisible and has no effect on results other than generating them more efficiently. However, in a few situations, you must prevent or control reordering. The volatile keyword in C and the Windows synchronization mechanisms can ensure program order of execution in nearly all situations. In some rare instances, the executable code must contain memory barriers to prevent hardware reordering.

Complete information about compiler and hardware reordering and the use of memory barriers is now available in Multiprocessor Considerations for Kernel-Mode Drivers. This information expands on the information previously available in the paper "Memory Barriers in Kernel-Mode Drivers."


http://www.microsoft.com/whdc/driver/kernel/MPmem-barrier.mspx



If you look at the sample drivers shipped with the Windows DDK, you will see that volatile appears infrequently. In general, volatile is of limited use in driver code for the following reasons:
•    Using volatile prevents optimization only of the volatile variables themselves. It does not prevent optimizations of nonvolatile variables relative to volatile variables. For example, a write to a nonvolatile variable that precedes a read from a volatile variable in the source code might be moved to execute after the read.
•    Using volatile does not prevent the reordering of instructions by the processor hardware.
•    Using volatile correctly is not enough on a multiprocessor system to guarantee that all CPUs see memory accesses in the same order. 
Windows synchronization mechanisms are more useful in preventing all these potential problems.


http://download.microsoft.com/download/e/b/a/eba1050f-a31d-436b-9281-92cdfeae4b45/MP_issues.doc

Anti-convoy locks in Windows Server 2003 SP1 and Windows Vista

http://www.bluebytesoftware.com/blog/PermaLink,guid,e40c2675-43a3-410f-8f85-616ef7b031aa.aspx

debugging custom filters for unhandled exceptions

http://www.debuginfo.com/articles/debugfilters.html

Rebase DLL

http://harshdeep.wordpress.com/2007/05/14/thou-shalt-rebase-thy-dll/
http://www.codeproject.com/KB/DLL/RebaseDll.aspx
http://msdn.microsoft.com/en-us/library/ms810432.aspx
http://msdn.microsoft.com/en-us/library/bb384887.aspx

A scalable reader/writer scheme with optimistic retry

http://www.bluebytesoftware.com/blog/PermaLink,guid,45fe761f-2f83-4b87-8f99-aee2a1b40b8c.aspx

WinAPI Kernel Prefixes

http://blogs.msdn.com/oldnewthing/archive/2009/06/03/9687937.aspx

 
Tomasz Kulig