Ruby-Style 'Modules' In Slag/Plasmacore

0 views
Skip to first unread message

noe...@gmail.com

unread,
Jan 27, 2009, 4:16:34 PM1/27/09
to Plasmacore
Ruby offers a fairly simple mechanism to create extensions in C. This
allows for developers to either tie-in some low-level functionality
that could not be implemented or reduce redundancy by bridging an
already implemented library into the higher-level language. If other
developers want to use these extensions they can download the module
with the C code or a compiled binary and simply include that module in
their ruby application.

So how does this pertain to Slag/Plasmacore? Well this is mostly in
response to the request for implementing native matrix transformations
in Plasmacore. Rather than implementing functionality such as this and
even more advanced functions (3d perhaps) it would be interesting to
allow Plasmacore to create/include modules such as these rather than
manually implementing them in the native layer of Plasmacore.
Basically allowing a mechanism to bridge low-level native functions in
the Plasmacore VM to be used in Slag.

Thoughts?

Abe

unread,
Jan 29, 2009, 12:56:32 AM1/29/09
to Plasmacore
This would definitely be a cool feature - and I can imagine a way to
implement it with DLL files - but I think it'll have to wait for
later. Primarily since I'm the only person doing major work on Slag
native stuff right now, it'd be the same amount of work for me to
implement a matrix library in this module system as in the regular
native layer - but a lot of EXTRA work to get the module system
working to begin with.

I'll keep it in mind though!

Abe
Reply all
Reply to author
Forward
0 new messages