Why NH Prof isn't functional

One of the things that I wanted to do with NH Prof is to build it in a way that would be very close to the Erlang way. That is, functional, immutable message passing. After spending some time trying to do this, I backed off, and used mutable OO with message passing.

The reason for that is quite simple. State.

Erlang can get away with being functional language with immutable state because it has a framework that manages that state around, and allow you to replace your state all the time. With C#, while I can create immutable data structures, if I want to actually create a large scale application using this manner, I have to write the state management framework, which is something that I didn't feel like doing.

Instead, I am using a more natural model for C#, and using the bus model to manage thread safety and multi threading scenarios.

Print | posted on Tuesday, November 18, 2008 3:57 PM

Feedback


Gravatar

# re: Why NH Prof isn't functional 11/18/2008 8:10 PM William Riley-Land

That sounds very interesting. This is the one that isn't open source right? I'm not complaining, and I look forward to purchasing it when it is complete. What's a good reference for this kind of design pattern? Where can I see source that deals in what you are talking about (obviously not from NHP itself)?


Gravatar

# re: Why NH Prof isn't functional 11/19/2008 2:08 PM Dajo

i think there could be a way to do it in the erlang style, because there is an erlang compiler for .Net (http://erlangdotnet.net/). i dont know wich language is used for it, but i think it's c#.


Gravatar

# re: Why NH Prof isn't functional 11/19/2008 4:01 PM Ted

How does the bus model manage thread safety/multi-threading?

Title  
Name  
Email
Url
Comments   
Please add 5 and 2 and type the answer here: