On May 29, 2012, at 11:47 PM, Konrad Hinsen <konrad.hin...@fastmail.net>
wrote:
Is there support for memory-mapped files? I'd have to be able to create data
structures in such memory areas.
Yes. Factor has a full-featured C FFI, and you can define and use structs
and packed arrays that live in mapped or malloced memory. There are however
no atomic or synchronization primitives implemented, which you would want
for using memory mapped files as shared memory.
Is there a technical reason for not having better thread support, or is
it just something that nobody got around to do yet? At first sight, the
language seems well adapted to parallelism: give each thread its own
data stack, and use immutable data structures at the interfaces. If the
VM could enforce the "immutable data structures at the interfaces" rule,
it wouldn't have to worry about data access synchronization at all.
If Factor were to gain concurrency support, this would probably be the best
model to use. Even an immutable shared heap would still require some fairly
substantial VM infrastructure improvements.
-Joe
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Factor-talk mailing list
Factor-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/factor-talk