W3C home > Mailing lists > Public > public-webapps@w3.org > January to March 2011

Re: [chromium-html5] LocalStorage inside Worker

From: Keean Schupke <keean@fry-it.com>
Date: Thu, 6 Jan 2011 23:39:11 +0000
Message-ID: <AANLkTin-YR9sp8gK2ovycdpjy15Un45ck987EJGWghBi@mail.gmail.com>
To: Jonas Sicking <jonas@sicking.cc>
Cc: Joćo Eiras <joao.eiras@gmail.com>, public-webapps WG <public-webapps@w3.org>
Here's a link to some papers on STM:

http://research.microsoft.com/en-us/um/people/simonpj/papers/stm/

A simple example:

http://www.haskell.org/haskellwiki/Simple_STM_example

Here's a tutorial:

http://book.realworldhaskell.org/read/software-transactional-memory.html

Here's a link to the docs:

http://hackage.haskell.org/package/stm


Cheers,
Keean.


2011/1/6 Keean Schupke <keean@fry-it.com>

> Did you see section 7 in the link I posted?
>
> 7 Implementations
> 7.1 C/C++
> 7.2 C#
> 7.3 Common Lisp
> 7.4 Haskell
> 7.5 Java
> 7.6 OCaml
> 7.7 Perl
> 7.8 Python
> 7.9 Scala
> 7.10 Smalltalk
>
> JavaScript as a functional language (first class functions, closures,
> anonymous functions) has a lot in common with Haskell and other functional
> languages (Lisp)... Although as you can see there are plenty of OO
> implementations too.
>
>
> Cheers,
> Keean.
>
>
> 2011/1/6 Jonas Sicking <jonas@sicking.cc>
>
> 2011/1/6 Keean Schupke <keean@fry-it.com>:
>> > There is always Software Transactional Memory that provides a safe model
>> for
>> > memory shared between threads.
>> > http://en.wikipedia.org/wiki/Software_transactional_memory
>> > This has been used very successfully in Haskell for overcoming threading
>> /
>> > state issues. Combined with Haskells Channels (message queues) it
>> provides
>> > for very elegant multi-threading.
>>
>> Can you provide a link to the Haskell API which you think has been
>> working well for haskell. Or even better, considering that haskell is
>> a vastly different language from javascript, could you propose a
>> javascript API based on Software Transactional Memory.
>>
>> / Jonas
>>
>
>
Received on Thursday, 6 January 2011 23:40:32 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 18:49:42 GMT