News for hackers. Stuff that matters.
Re:An update about the Software Transactional Memory subproj... by apendleton on Wednesday June 05, 2013 @04:11PM (#5828246)
If I'm reading the post correctly, the HN title is inaccurate. The in-progress STM was already written in C. It was the garbage collector that was written in RPython, and that has been rewritten in C as part of a combined STM/GC library.

edit: fixed now.

Re:An update about the Software Transactional Memory subproj... by tshepang on Wednesday June 05, 2013 @04:22PM (#5828328)
Thanks for the correction. Must be more careful next time.
Re:An update about the Software Transactional Memory subproj... by hartror on Wednesday June 05, 2013 @07:06PM (#5829264)
The original blog post they did on STM is well worth reading, especially if you're not familiar with the python GIL and STM.

http://morepypy.blogspot.com.au/2011/08/we-need-software-tra...

Re:An update about the Software Transactional Memory subproj... by Tobu on Thursday June 06, 2013 @07:23AM (#5831682)
This is also informative: http://pypy.org/tmdonate.html

There haven't been any recent blog posts on that topic (and they aren't tagged consistently), this is the latest, which may explain the choice to go with C: http://morepypy.blogspot.com/2012/08/multicore-programming-i...

Re:An update about the Software Transactional Memory subproj... by fiatmoney on Wednesday June 05, 2013 @10:14PM (#5829968)
Any potential to leverage the Haswell hardware TM intrinsics?
Re:An update about the Software Transactional Memory subproj... by timbaldridge on Wednesday June 05, 2013 @10:38PM (#5830045)
As mentioned in their 2013 PyCon talk, the problem with HTM (at least with current designs) is the hard limits to transaction sizes. They are attempting run run entire interpreted code loops in transactions, while HTM is designed more around smaller transactions.

Specifically I think Haswell requires that all mutated references must fit in the L1 cache. That doesn't really leave much wiggle room