CGI programming in C/alternatives
This is my first post. Hope to contribute constructively at some point :). I'm a university student, new to C and not quite capable of C++ yet. I was thinking of writing some simulation software in C as a practical exercise. I'd like to deploy it rather quickly, and perhaps in parts, so I was thinking of writing it up as a set of cgi scripts that would get called on a website, and use the browser's presentation capabilities to draw or at least present the output.
I'm considering the web deployment because it seems the quickest path to having a useable (and user-friendly) program, and I'm far from GUI programming in C. Furthermore, once my C programming skills improve to that level, I'm under the impression it won't take much to convert them to an executable.
I haven't been able to find many books or resources that cover C CGI programming. Is there a reason for this? Is my approach wrong? Will CGI in C be too slow compared with other server-side languages (PHP is the only one I'm seriously considering)?
Could anyone point me towards some CGI in C programming resources if this does seem like a viable option?
Thanks for your insight, and sorry for the long post,
Have a good one,
CGI in C: Outdated Server-Side Technology?
Hello again, I think I need to clarify.
I'm trying to decide in which direction I oughta guide my programming studies.
sorry for the long post again, the last three paragraphs highlight my question.
The fact that you can do this in C excites me because I'm under the impression that I could write the program as a series of CGI scripts and then, at a later date, simply put them together in a C executable when I'm ready to make a proper downloadable program. This would avoid having to learn a second programming language to make a server program, and still learn C well enough to make a proper executable.
My biggest hurdle is that while there are many resources (safariTechBooks) that cover CGI and Perl, there aren't many that cover CGI and C and I'm wondering if this is because C just isn't suited to run this way or if it's too slow to be practical etc.
Do you all think that it's a good idea to pursue writing CGI scripts in C for the sole benefit of being able to later put them together in a C executable?
Are other CGI or server-side languages better suited for this to where the convenience of porting to an executable is nullified?
Might this (writing a server-side app and .exe in same language) be a lost cause? Thanks again,
p.s. Java seems hard, and for numerical computations, reportedly ALOT slower:
However, other authors note that when benchmarks are written to be algorithmically comparable, overall C++ runs about twice as fast as Java