getting quantlib functionality available via web interface

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

getting quantlib functionality available via web interface

P Nelnik
Greetings all,

What's the best way to get quantlib functionality available online?

I've written some C++ code which uses the quantlib code.
I've compiled it into an executable which runs on windows.
It reads in some xml files for input
does some calculations and then writes some xml files.

I have a web-server which uses Linux.

How can I get the functionality available?

One solution would be:
1: compile the project on Unix, ( may need to convert it to a server from an executible )
2: set-up the swig interface
3: call the swig interface from say PHP

I wonder what other solutions exist?

As I understand it ( though please do correct me if I'm wrong):
 JQuantlib doesn't use the quantlib C++ code, it is a re-write in Java. currently the JQuantlib seems to have a smaller group of developers involved.

Cheers
Philip


------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the
lucky parental unit.  See the prize list and enter to win:
http://p.sf.net/sfu/thinkgeek-promo
_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users
Reply | Threaded
Open this post in threaded view
|

Re: getting quantlib functionality available via web interface

simoncourtenage
What about:

1. add code to make C++ program use CGI interface to communicate with web server
2. compile and run on *nix

or

do as you suggest below but use PHP to write and read XML files and, in-between, use PHP system call to run C++ program on xml files?

Simon Courtenage

On Fri, Jun 11, 2010 at 5:53 AM, P Nelnik <[hidden email]> wrote:
Greetings all,

What's the best way to get quantlib functionality available online?

I've written some C++ code which uses the quantlib code.
I've compiled it into an executable which runs on windows.
It reads in some xml files for input
does some calculations and then writes some xml files.

I have a web-server which uses Linux.

How can I get the functionality available?

One solution would be:
1: compile the project on Unix, ( may need to convert it to a server from an executible )
2: set-up the swig interface
3: call the swig interface from say PHP

I wonder what other solutions exist?

As I understand it ( though please do correct me if I'm wrong):
 JQuantlib doesn't use the quantlib C++ code, it is a re-write in Java. currently the JQuantlib seems to have a smaller group of developers involved.

Cheers
Philip


------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the
lucky parental unit.  See the prize list and enter to win:
http://p.sf.net/sfu/thinkgeek-promo
_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users




--
------------------------------------------------------------------------
Simon Courtenage                     | simoncourtenage.wordpress.com
Twitter: simoncourtenage         | Skype: simon99ctg
Facebook: Simon Courtenage   | IM: [hidden email]  

------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the
lucky parental unit.  See the prize list and enter to win:
http://p.sf.net/sfu/thinkgeek-promo
_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users
Reply | Threaded
Open this post in threaded view
|

Re: getting quantlib functionality available via web interface

Tawanda Gwena
What about Python CGI scripts? The CGI interface is already there and Quantlib-swig-python is easy to setup. I don't know much about how easy it is to do a PHP swig interface for QuantLib, but it's doable because I have done it for nonstandard languages.

On Fri, Jun 11, 2010 at 1:39 AM, Simon Courtenage <[hidden email]> wrote:
What about:

1. add code to make C++ program use CGI interface to communicate with web server
2. compile and run on *nix

or

do as you suggest below but use PHP to write and read XML files and, in-between, use PHP system call to run C++ program on xml files?

Simon Courtenage

On Fri, Jun 11, 2010 at 5:53 AM, P Nelnik <[hidden email]> wrote:
Greetings all,

What's the best way to get quantlib functionality available online?

I've written some C++ code which uses the quantlib code.
I've compiled it into an executable which runs on windows.
It reads in some xml files for input
does some calculations and then writes some xml files.

I have a web-server which uses Linux.

How can I get the functionality available?

One solution would be:
1: compile the project on Unix, ( may need to convert it to a server from an executible )
2: set-up the swig interface
3: call the swig interface from say PHP

I wonder what other solutions exist?

As I understand it ( though please do correct me if I'm wrong):
 JQuantlib doesn't use the quantlib C++ code, it is a re-write in Java. currently the JQuantlib seems to have a smaller group of developers involved.

Cheers
Philip


------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the
lucky parental unit.  See the prize list and enter to win:
http://p.sf.net/sfu/thinkgeek-promo

_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users




--
------------------------------------------------------------------------
Simon Courtenage                     | simoncourtenage.wordpress.com
Twitter: simoncourtenage         | Skype: simon99ctg
Facebook: Simon Courtenage   | IM: [hidden email]  

------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the
lucky parental unit.  See the prize list and enter to win:
http://p.sf.net/sfu/thinkgeek-promo
_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users




--


------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users