A new model for universal objects/OBEX needed
Invent-O-Doc
Posts: 768
Here is something that impairs our ability to develop using multiple languages: Each language C, PropBASIC, SPIN,etc requires its own set of libraries and objects unique to that language, resulting in incomplete libraries in some language and a lot of duplicative work.
Is there a way we can make things so that ANY language can use SPIN/PASM objects on the OBEX???? Or even compiled C objects?
If we had that capability, some of us can use higher level languages and still enjoy the benefits of the large object library in SPIN/PASM. This might be really critical for getting new users to the propeller.
I'm posting this as a thread because I really believe that something along these lines will increase accessibily and success of the prop, and also the Prop II which really will be better suited to richer language implementations.
This concept works well in Visual Studio and .NET. Any thoughts??
(and please hold off on straw man criticisms of .NET being bloated, etc. - we know that. I intend to introduce the concept of making the objects cross language compatible.)
Is there a way we can make things so that ANY language can use SPIN/PASM objects on the OBEX???? Or even compiled C objects?
If we had that capability, some of us can use higher level languages and still enjoy the benefits of the large object library in SPIN/PASM. This might be really critical for getting new users to the propeller.
I'm posting this as a thread because I really believe that something along these lines will increase accessibily and success of the prop, and also the Prop II which really will be better suited to richer language implementations.
This concept works well in Visual Studio and .NET. Any thoughts??
(and please hold off on straw man criticisms of .NET being bloated, etc. - we know that. I intend to introduce the concept of making the objects cross language compatible.)
Comments
Hi Invent-O-Doc, that would definitely be a wonderful goal to achieve. If you look at some of the other posts, you will find the deep thought necessary to convert one language to another (i.e. spin to pasm). Here, we are talking about converting SPin to other languages including C and its derivatives. Take a look at the spin to pasm example. It would be possible to convert some languages to other languages in a one on one basis. There is no universal translator in this regard. I have written a program in one language that wrote programs in another language so I know this can be accomplished. But such a project with Spin seeks out those who have studied the prop over the past 3 or more years.
Humanoido
Some implementations use a rendezvous area. However, each implementation uses different assignments for the rendezvous locations. Maybe we need to define a standard way to allocate rendezvous locations, and a standard method for passing commands and parameters between cogs.
http://forums.parallax.com/showthread.php?t=123630
This example is used between two cogs that are both running Spin code. However, it can be applied to any mix of languages between the two cogs. A lock could be added to make it cog-safe.