Re: Prototype-Based Programming

new topic     » goto parent     » topic index » view thread      » older message » newer message
TheresNoTime said...

Manner dosn't matter - Erlang's messages, PowerShell's cmdlets, Zonnon's components... Euphoria's C-like DLLs are in a different row.

Agreed. That's because they do something entirely different and are meant for a different purpose. Don't compare apples to oranges.

Take a look at what it takes to wrap a C library for Python http://docs.python.org/2/extending/extending.html or Java http://www.ibm.com/developerworks/java/tutorials/j-jni/

TheresNoTime said...

I did not say I need it. It was an example of the Erlang's versatility.

This sounds plausible.

However, based on your serious and significant misunderstands of Euphoria, I'm reluctant to take your word for this. Instead, show me an example Erlang program which uses this capability and demonstrates Erlang's versatility.

TheresNoTime said...

It looks completely different. The closest analogy - two (or more) programs that operate in parallel and communicate via sockets.

There is no communication via socket in my example. I contend that my example is essentially the same as PowerShell's cmdlets - both execute a helper script (akak a cmdlet), passing arguments via the command line: http://www.powershellpro.com/powershell-tutorial-introduction/tutorial-powershell-cmdlet/

TheresNoTime said...

Perhaps this complication in the form in which you are using it. Because there is no Euphoria means to do so, and your solution - it's a crutch. When the partition of the program into independent modules supported on the design level, it is a huge help.

Agreed. Although you can effectively write and use cmdlets-like scripts in Euphoria, you have to write a bit of crutch-like code to do so. Perhaps there is room in the standard library for a cmdlet library - or even a preprocessor, if you want syntax sugar - to make this easier and more elegant looking.

TheresNoTime said...

Concatenative programming languages ​​do not have this problem because the scalability, in fact, the only element of the language. :)

All programming languages have their warts. E.g. http://www.erlang.org/faq/academic.html#id56798

http://mylazycoding.blogspot.com/2011/04/my-love-hate-relationship-with-erlang.html

and so on.

TheresNoTime said...

But how to glue DLLs writed in Euphoria? Get and send parameters by win32lib?

Either I do not understand documentation, or you do not understand what I meant. Please indicate appropriate chapter of manual by your finger.

I knew all this before. As I suspected, you do not understand me.

Clearly. You knew how to use dlls before, but thought you should have gotten and sent parameters by win32lib instead of the simpler dll interface?

Very well. Please explain how to glue DLLs writed (sic) in Euphoria via getting and sending parameters by win32lib.

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu