Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

About functional programming and object oriented programming..

27 views
Skip to first unread message

Ramine

unread,
Dec 2, 2016, 2:48:25 PM12/2/16
to
Hello...........

About functional programming and object oriented programming..

I have continued to read about Lisp and Haskel functional languages,
and i have finally understood functional programming, in Lisp and
Haskel the functions are pure , that means that they don't call
global variables, but when you want to do mutability, you have
,like in message passing, to pass the local variable to an Mvar
in Haskel, it's like a queue, where the other threads must grap
this local variable and copy it in a local variable and
change it and put back this local variable in the queue for the other
threads to change it, so you will avoid race conditions in parallel
programming with this mechanism, but Mvar or the queues are still prone
to Deadlock or starvation. I have learned Lisp and Haskel and i have
noticed that to avoid the readability problem that i have spook about in
my previous post you have to decompose the many brackets with the defun.

In object oriented programming you can implement the Mvar of Haskel with
queues and you can avoid the problem of race conditions.


Thank you,
Amine Moulay Ramdane.





Mr Flibble

unread,
Dec 2, 2016, 2:54:25 PM12/2/16
to
Maybe someone should e-mail ab...@eternal-september.org to try and get
this spambot turned off?

/Flibble

Ramine

unread,
Dec 2, 2016, 2:58:15 PM12/2/16
to
Sorry, i have spook about object oriented programming like in C++ ,
and how to avoid race conditions.

Ramine

unread,
Dec 2, 2016, 3:03:19 PM12/2/16
to
On 12/2/2016 2:54 PM, Mr Flibble wrote:
Don't be stupid Flibble, i have explained to you what is good in Lisp
and Haskek an how to implement in C++ the Mvar like in Haskel to make
your C++ methods pure like in Lisp and use like a message passing
mechanism with queues to avoid race conditions like in Lisp and
Haskel.


Thank you,
Amine Moulay Ramdane.,

Ramine

unread,
Dec 2, 2016, 3:03:44 PM12/2/16
to
On 12/2/2016 2:54 PM, Mr Flibble wrote:

Chris Vine

unread,
Dec 2, 2016, 3:13:09 PM12/2/16
to
On Fri, 2 Dec 2016 19:54:15 +0000
Mr Flibble <flibbleREM...@i42.co.uk> wrote:
[snip]
> Maybe someone should e-mail ab...@eternal-september.org to try and
> get this spambot turned off?

Out of the blue, my usenet provider has started blacklisting him in
recent weeks (I hadn't realised until you started replying to him, I
assumed he was taking a break from it). Eternal september seem to be
one of the few who are still OK with being used for spamming.

Melzzzzz

unread,
Dec 2, 2016, 4:06:21 PM12/2/16
to
On Fri, 2 Dec 2016 19:54:15 +0000
Mr Flibble <flibbleREM...@i42.co.uk> wrote:

>
> Maybe someone should e-mail ab...@eternal-september.org to try and
> get this spambot turned off?
>
> /Flibble
>
you don't have to quote it as my news server already filters his
messages...


--
press any key to continue or any other to quit

Christopher J. Pisz

unread,
Dec 2, 2016, 4:42:47 PM12/2/16
to
I elect Mr Fibble for the task.

Stuart Redmann

unread,
Dec 3, 2016, 4:26:28 AM12/3/16
to
>> On 02/12/2016 19:48, Ramine wrote:
[snip]

> On 12/2/2016 1:54 PM, Mr Flibble wrote:
>> Maybe someone should e-mail ab...@eternal-september.org to try and get
>> this spambot turned off?


Christopher J. Pisz <cp...@austin.rr.com> wrote:
> I elect Mr Fibble for the task.
>

+1

Stuart (to be scolded by Mr. Flibble)


0 new messages