Design notes for RSwig

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Design notes for RSwig

Joseph Wang
I've started a wiki page that has some design notes for the R-Swig
interface I'm working with.  The wiki page also attaches the file for
the interface.

http://wiki.quantlib.org/twiki/bin/view/Quantlib/RSwig

I've gotten some basic functionality to work, and in the next week, I'm
planning to be able to be able to write a test program that does some
simple calculating (and more importantly plotting) of option values.

Once work starts on 1.3.29, I'd like to see what it would take to get
this into the mainline R distribution.

 > s <- new_DoubleVector()
 > s$append(x=1)
NULL
 > s$append(x=2)
NULL
 > s$append(x=3)
NULL
 > s$append(x=4)
NULL
 > s$size()
[1] 4
 > s[0]
[1] 1
 > s[1]
[1] 2






Reply | Threaded
Open this post in threaded view
|

Re: [Swig-devel] Design notes for RSwig

Marcelo Matus
nice, you are even using the Lib/std files.

William probably will give you instructions about how to use and/or
access the
CVS swig repository,  and what is needed to add a new language module.

Marcelo



Joseph Wang wrote:

> I've started a wiki page that has some design notes for the R-Swig
> interface I'm working with.  The wiki page also attaches the file for
> the interface.
>
> http://wiki.quantlib.org/twiki/bin/view/Quantlib/RSwig
>
> I've gotten some basic functionality to work, and in the next week,
> I'm planning to be able to be able to write a test program that does
> some simple calculating (and more importantly plotting) of option values.
> Once work starts on 1.3.29, I'd like to see what it would take to get
> this into the mainline R distribution.
>
> > s <- new_DoubleVector()
> > s$append(x=1)
> NULL
> > s$append(x=2)
> NULL
> > s$append(x=3)
> NULL
> > s$append(x=4)
> NULL
> > s$size()
> [1] 4
> > s[0]
> [1] 1
> > s[1]
> [1] 2
>
>
>
>
>
>
> -------------------------------------------------------
> This SF.net email is sponsored by: Splunk Inc. Do you grep through log
> files
> for problems?  Stop!  Download the new AJAX search engine that makes
> searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
> _______________________________________________
> Swig-devel mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/swig-devel




Reply | Threaded
Open this post in threaded view
|

Re: [Swig-devel] Design notes for RSwig

wsfulton
I've written up what the prerequisites are for new language modules to
be added to SWIG as this is turning into a common question. See it in
the Extending.html documentation which should be viewable shortly in the
cvs repository and online at:
http://cvs.sourceforge.net/viewcvs.py/swig/SWIG/Doc/Manual/Extending.html#Extending_prerequisites

Let me know when you are ready and I'll arrange cvs access.

William

Marcelo Matus wrote:

> nice, you are even using the Lib/std files.
>
> William probably will give you instructions about how to use and/or
> access the
> CVS swig repository,  and what is needed to add a new language module.
>
> Marcelo
>
>
>
> Joseph Wang wrote:
>
>> I've started a wiki page that has some design notes for the R-Swig
>> interface I'm working with.  The wiki page also attaches the file for
>> the interface.
>>
>> http://wiki.quantlib.org/twiki/bin/view/Quantlib/RSwig
>>
>> I've gotten some basic functionality to work, and in the next week,
>> I'm planning to be able to be able to write a test program that does
>> some simple calculating (and more importantly plotting) of option values.
>> Once work starts on 1.3.29, I'd like to see what it would take to get
>> this into the mainline R distribution.
>>
>> > s <- new_DoubleVector()
>> > s$append(x=1)
>> NULL
>> > s$append(x=2)
>> NULL
>> > s$append(x=3)
>> NULL
>> > s$append(x=4)
>> NULL
>> > s$size()
>> [1] 4
>> > s[0]
>> [1] 1
>> > s[1]
>> [1] 2
>>
>>
>>
>>
>>
>>
>> -------------------------------------------------------
>> This SF.net email is sponsored by: Splunk Inc. Do you grep through log
>> files
>> for problems?  Stop!  Download the new AJAX search engine that makes
>> searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
>> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
>> _______________________________________________
>> Swig-devel mailing list
>> [hidden email]
>> https://lists.sourceforge.net/lists/listinfo/swig-devel
>
>
>
>
> -------------------------------------------------------
> This SF.net email is sponsored by: Splunk Inc. Do you grep through log
> files
> for problems?  Stop!  Download the new AJAX search engine that makes
> searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
> _______________________________________________
> Swig-devel mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/swig-devel
>



Reply | Threaded
Open this post in threaded view
|

Re: [Swig-devel] Design notes for RSwig

Joseph Wang
I think it's ready to be checked into CVS.  I've created some basic
documentation on how to run it, and I've ported both simple and class over to
R swig and they run.  My sourceforge username is drjoe.


On Tuesday 14 February 2006 13:58,William S Fulton you wrote:
> I've written up what the prerequisites are for new language modules to
> be added to SWIG as this is turning into a common question. See it in
> the Extending.html documentation which should be viewable shortly in the
> cvs repository and online at:
> http://cvs.sourceforge.net/viewcvs.py/swig/SWIG/Doc/Manual/Extending.html#E
>xtending_prerequisites
>