[Agavi-Users] Porting Agavi to languages in desperate need of MVC

10 views
Skip to first unread message

Ben Wilhelm

unread,
Oct 23, 2012, 7:01:57 PM10/23/12
to us...@lists.agavi.org
Heresy, perhaps, but has ever the idea or porting Agavi to a non-PHP language been considered? There is a new (server- and client-side) language on the horizon, Dart, in which language a classical OO MVC framework like Agavi would really do well, and for which there is of yet nothing close to Agavi in the making.

(This is work in which I would have a lot of interest in participating, myself.)

Ben

Michael McHugh

unread,
Oct 23, 2012, 7:18:33 PM10/23/12
to Agavi Users Mailing List
Hi Ben,

Just wanted to voice I too have been looking at Dart recently and think a good structured MVC like Agavi would be a great match.

I've only looked at it cursorily as of yet, but I couldn't find any non-trivial way to set it up as a server, perhaps that needs to be developed before, or as part of a good MVC framework ( Dartgavi ?? ;).

Regards,
Michael
> _______________________________________________
> users mailing list
> us...@lists.agavi.org
> http://lists.agavi.org/mailman/listinfo/users


_______________________________________________
users mailing list
us...@lists.agavi.org
http://lists.agavi.org/mailman/listinfo/users

Ben Wilhelm

unread,
Oct 23, 2012, 8:05:14 PM10/23/12
to Agavi Users Mailing List
There is an apache dart module in (arrested) development, and there is also an HttpServer class in the dart:io library, with which you can run your own http server and handle requests as you please. For development purposes, this should suffice. Certainly it should be possible to simulate Agavi's index.php script in a similar index.dart file, given data from the dart:io HttpRequest, and bootstrap from there, although I'll be the first to admit that how the AgaviContext gets its AgaviRequest and AgaviExecutionContainer instances has always been a mystery to me. I suspect it's some magic to do with factories.xml... :-)

Ben

Michael McHugh

unread,
Oct 23, 2012, 9:21:28 PM10/23/12
to Agavi Users Mailing List

Thanks for the tip on dart apache module, I saw the HttpServer class in the dart:io library but dismissed it as too low level just to start serving up files. However in the context of building a robust framework like Agavi onto it, it could be a great place to start - perhaps something like express for node but with a robust MVC based on Agavi baked in from the start.

You are right about the factories.xml, here at CompliSpace we usually extend a handful of the default factory classes  for our own needs, but this is interesting with Dart as it supports factories as part of the language, not just as a pattern: http://www.dartlang.org/docs/dart-up-and-running/ch02.html#ch02-constructor-factory

Regards,
Michael

Ben Wilhelm

unread,
Oct 24, 2012, 12:00:06 AM10/24/12
to Agavi Users Mailing List
Yes! Dart factory constructors would be a nice way to build a context and its components, even if they in turn looked to a cached config file for directives. I also like the idea of rendering views/slots as web components. :)

Guilherme Aiolfi

unread,
Oct 24, 2012, 6:57:58 AM10/24/12
to Agavi Users Mailing List
Dart can be transpiled/compiled to JS, right? That would make agavi an option as framework for a lot more people, not just the ones using Dart, but for all JS developers. That would be great.

Mike Seth

unread,
Nov 6, 2012, 9:25:29 AM11/6/12
to Agavi Users Mailing List
golang :P
Reply all
Reply to author
Forward
0 new messages