Erlang/OTP Forums

Author Message

<  Erlang  ~  TupleSpace?

Gizmo
Posted: Tue Oct 09, 2007 7:47 pm Reply with quote
Joined: 09 Oct 2007 Posts: 2
I do apologies if this question does not fit the standard of this forum, although i'm a newbie with functional programming.

I am wandering how to create a new TupleSpace and return a new Pid of that tuplespace.

I know that i have to use a spawn function and the pid but not how to initilize a new tuplespace.

tnx for your help
View user's profile Send private message
Mazen
Posted: Wed Oct 10, 2007 8:46 am Reply with quote
User Joined: 20 Jul 2006 Posts: 164 Location: London
What is a TupleSpace? Could you please elaborate?

Normally when you spawn a new process you call
Code:

Pid = proc_lib:spawn(M,F,A).


Where M F A is the Module, Function Arguments to the initial function for the process.

Hope this helped out somewhat...
check out this link for processes:

http://www.erlang.org/doc/reference_manual/part_frame.html

/M
View user's profile Send private message
Gizmo
Posted: Wed Oct 10, 2007 9:35 am Reply with quote
Joined: 09 Oct 2007 Posts: 2
Mazen wrote:
What is a TupleSpace? Could you please elaborate?

Normally when you spawn a new process you call
Code:

Pid = proc_lib:spawn(M,F,A).


Where M F A is the Module, Function Arguments to the initial function for the process.

Hope this helped out somewhat...
check out this link for processes:

http://www.erlang.org/doc/reference_manual/part_frame.html

/M


Tnx for your reply, much appreciated, a tuple space is an implementation of the associative memory paradigm for parallel/distributed computing. It provides a repository of tuples that can be accessed concurrently.
"source: wikipedia"

I'm trying to create a new function that returns the Pid of a new (empty) tuplespace.
View user's profile Send private message
zhesto
Posted: Fri Nov 02, 2007 3:00 am Reply with quote
Joined: 29 Jan 2007 Posts: 5 Location: Osaka
http://code.google.com/p/erlinda/ will be maybe interesting for you.

_________________
Erlang Search: http://tinyurl.com/24b3lv
Erlang Chat Room: http://lingr.com/room/erlang
Reverl: http://code.google.com/p/reverl/
View user's profile Send private message Visit poster's website ICQ Number
thanos
Posted: Mon Jan 14, 2008 4:04 pm Reply with quote
Joined: 23 Nov 2007 Posts: 5 Location: new york
Your tuple space can be a process with the following interface:

* out(tuple)

* in(match)

* rd(match)

Implementing the routines in dets or ets, mnesia.

All three databases offer all you need for the classic Linda interface.
View user's profile Send private message AIM Address Yahoo Messenger

Display posts from previous:  

All times are GMT
Page 1 of 1
This forum is locked: you cannot post, reply to, or edit topics.

Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum