4

Web frameworks are everywhere, and I can't think of a programming language that hasn't a web framework implementation (at least those that I know of). Vala seems the programming language Linux developers were waiting for since ages, it borrows a lot from C# which is very good IMHO.

Yes, Vala was implemented to develop good Gnome applications, but still; we've seen crazy implementations like node.js. How likely are we to see a Vala based web framework? Is it feasible? Is it a good idea?

1 Answer 1

7

There is a web framework called Valum in development. It's just been started, so it still very basic.

As an aside, I've not seen a web framework in plain C, otherwise, that could be bound to Vala.

6
  • 1
    One interesting perspective for Valum is possibility to use this framework from other languages via GObject Introspection. So Valum is not only for vala but for everyone :)
    – antono
    Commented Jan 16, 2012 at 18:53
  • Isn't there an inherent detriment to using compiled languages for web development (i.e., languages without a VM or runtime)? I'm under the impression that such languages require CGI which is inherently bad for the web (lots of OS overhead in dispatching a new task for each page request, perhaps?) Is this true and if so would Valum or any other Vala web framework share this woe?
    – weberc2
    Commented Jan 14, 2013 at 19:26
  • 1
    No. A compiled language can have a persistent server with an event dispatch model too. The FastCGI interface can be consumed just as efficiently with C. In fact, think of how efficient Apache is, written in C, using an internal dispatch to some languages via the mod_ system.
    – apmasell
    Commented Jan 15, 2013 at 15:10
  • Right, but Apache stays up all the time. The OS doesn't kick off a new process every time the user makes an HTTP request. With PHP or Python, you have a persistent interpreter managing the PHP programs running therein (not the OS), and you aren't required to implement your own server. I'm curious if you can write your own compiled program without having to write your own persistent server, but without having the expense of traditional CGI. Also, I vaguely recall reading in the Python docs that FastCGI still isn't on par with Python's standard web solution, but I may be mistaken.
    – weberc2
    Commented Jan 15, 2013 at 15:26
  • You can simply keep your server persistently up. Also, the OS does not start the process, that is a design decision of the web server; CGI kicks of new processes, FastCGI or other proxying connects to a running external server, Apache's mod_ infrastructure loads the sever into Apache's own memory space. Alternatively, your external process can simply be a webserver (e.g., Tomcat). Also, this is now irrelevant to the OP.
    – apmasell
    Commented Jan 16, 2013 at 15:44

Not the answer you're looking for? Browse other questions tagged or ask your own question.