Web Hosting Forum | Lunarpages


*
Welcome, Guest. Please login or register.
Did you miss your activation email?



Login with username, password and session length
August 21, 2014, 02:04:54 PM

Pages: [1]   Go Down
  Print  
Author Topic: Beginner questions with Wt  (Read 5502 times)
jacquesbas
Space Explorer
***
Offline Offline

Posts: 6


WWW
« on: December 09, 2012, 12:31:58 PM »

Hi,

Is someone here using Wt (www.webtoolkit.eu)?

I have succeeded compiling it in Windows and running examples locally, but I don't know how to put it on the server. The server is UNIX based. I guess I have to compile it for Linux (I have Debian in VirtualBox) and upload it.

Is this correct? What do you feel about Wt? Is there some other solution for C++ web development? What limitations apply (CPU-wise, RAM-wise, other) when running executables on the server?
Logged
MrPhil
Senior Moderator
Berserker Poster
*****
Offline Offline

Posts: 5863



« Reply #1 on: December 09, 2012, 04:38:20 PM »

It's an interesting concept, but I'm not sure what problem they're trying to solve. Anyway, the problem with compiled and linked code such as this is that you have to make sure your compiler and library are 100% compatible with what the server is running. Usually this is done by installing (locally) an exact copy of the server. I think LP is using CentOS Linux, but I'm not sure. You'd probably be best off submitting a ticket to ask the techs exactly what setup you need to ensure that your modules will work on a Linux server (especially a shared one). I wouldn't even count on being allowed to run compiled modules on a shared server! LP didn't offer compilers and linkers on its servers, either, last time I checked. I think there is some discussion pertaining to hosting a copy of the system in the PHP board.

Is there something special about Wt that you absolutely can't get with the more traditional web languages (PHP, Perl, ASP), or are you just enamored of C++?

Edit: corrected OS name
« Last Edit: December 10, 2012, 07:57:37 PM by MrPhil » Logged

Visit My Site

E-mail Me
  
-= From the ashes shall rise a sooty tern =-
jacquesbas
Space Explorer
***
Offline Offline

Posts: 6


WWW
« Reply #2 on: December 10, 2012, 03:20:10 AM »

>Is there something special about Wt that you absolutely can't get with the more traditional web languages (PHP, Perl, ASP), or are you just enamored of C++?

I feel more comfortable working in C++ and I am working on a program that is both online and a native application. Using C++ allows me to reuse most of the code rather than writing two completely different programs.

Anyway, the forums section is named "C++ / PERL / CGI Support". What other options do I have in C++?
Logged
MrPhil
Senior Moderator
Berserker Poster
*****
Offline Offline

Posts: 5863



« Reply #3 on: December 10, 2012, 06:37:12 AM »

As Lunarpages does not provide compilers and linkers, nor publish information on how to set up a system to do it yourself, it seems that they are not actively encouraging the use of compiled languages such as C++. That said, why this board mentions C++ in its title is a mystery to me.

If your objective is to reuse a great deal of code from a native PC application, I don't know if it's worth the effort for C++, as opposed to, say, Perl. It's supposedly possible, but it will take a good deal of work just to get to the point of being able to run something written in C++, as compared to using a scripting language such as Perl. I think that most of the complexity of a PC application is going to be I/O, GUI, and database, which aren't really translatable to a server (as opposed to general processing algorithms) without a massive rewrite anyway. If your native PC application is to be sold, being not in source would be a good idea, but you might see if there is some sort of bytecode compiler for Perl that would provide a level of theft/reverse engineering protection while smoothing cross-platform development. Other than that, be sure to read all the old topics (threads) in this board, to see if anyone ever actually successfully did what you're trying to do. You might also want to look at Java (Java Server Pages on the server) as a platform alternative.

Going to a VPS or dedicated server might give you enough control over your operating environment that you can specify a server configuration that is a match for your development PC.
Logged

Visit My Site

E-mail Me
  
-= From the ashes shall rise a sooty tern =-
Pages: [1]   Go Up
  Print  
 
Jump to: