Re: Prototype-Based Programming
- Posted by TheresNoTime Sep 28, 2013
- 2103 views
But how to glue DLLs writed in Euphoria? Get and send parameters by win32lib?
No, there are much easier ways. Read the documentation.
Either I do not understand documentation, or you do not understand what I meant. Please indicate appropriate chapter of manual by your finger.
I started the program in Euphoria, it was very simple, but now simplicity prevent me to continue.
Why? Nothing in Euphoria prevents complex programs from being developed.
Complex program can be developed in any language. Cobol is ugly, but many large cobol-applications are still living, and even continue to grow.
Erlang based on unique paradigm, where each part of program is independent process (with it's own memory, data flow, garbage collector). Processes can send messages similar to e-mail. Processes receive the messages sent to them (as well as broadcast messages). What will they do with them - it depends on the process, on nothing else. This allows you to do these tricks, as an update of the program during its operation.
Yes, I do this all the time with Euphoria.
WHAT??? HOW??? For example, I create ineffective function Factorial. When i=1000, I noticed it and create effective version. How to change contents of Factorial() on the fly, that the program has continued to work and previous calculations are not lost?
export function Factorial(integer x) ... end function for i = 1 to 1_000_000 do puts(1, Factorial(i)) end for
So you can reinstall the operating system, and then proceed to answer your interlocutors by e-mail. These will look like you were late with a response, but communication is not interrupted.
Or you could reinstall a more conventional/traditional operating system without these features, then proceed to answer your e-mail. E-mail is not meant to be real-time, there's no need to use any of Erlang's tricks or novel features to do what you are describing here.
OMG. You don't understand. Emails and OS was analogy. You can shutdown part of Erlang-program and install new version. All the other parts did not notice.