[ANN] Anybody missing JSP, here comes GSP, yet another web framework

353 views
Skip to first unread message

David DENG

unread,
Feb 7, 2013, 10:59:11 PM2/7/13
to golan...@googlegroups.com
The idea is similar to JSP. Embeding Go code in HTML, a background daemon automatically compile it into CGI executables. Without mastering a new template language, you can write a web application with Go backend fast now.

The official site is here: http://gsp.daviddengcn.com/ , and the code is here: http://github.com/daviddengcn/gsp

The homepage is written in GSP, with most of the part using markdown. Very easy!

The current version is very primitive yet, but may be better soon.

Any suggestions are greatly welcome!

Enjoy it!
David

Russel Winder

unread,
Feb 8, 2013, 6:36:29 AM2/8/13
to David DENG, golan...@googlegroups.com
David,

Just to note that the Grails folk refer to Groovy Server Pages as GSP,
so having GSP as an acronym for Go Server Pages might lead to confusion
for some in the Server Pages arena?

--
Russel.
=============================================================================
Dr Russel Winder t: +44 20 7585 2200 voip: sip:russel...@ekiga.net
41 Buckmaster Road m: +44 7770 465 077 xmpp: rus...@winder.org.uk
London SW11 1EN, UK w: www.russel.org.uk skype: russel_winder
signature.asc

Fred Janon

unread,
Feb 8, 2013, 7:57:31 AM2/8/13
to golang-nuts
And also with the "gosu" language/libraries

https://groups.google.com/group/gosu-lang/search?group=gosu-lang&q=gsp&qt_g=Search+this+group

Fred

On Feb 8, 12:36 pm, Russel Winder <rus...@winder.org.uk> wrote:
> David,
>
> Just to note that the Grails folk refer to Groovy Server Pages as GSP,
> so having GSP as an acronym for Go Server Pages might lead to confusion
> for some in the Server Pages arena?
>
> --
> Russel.
> =========================================================================== ==
> Dr Russel Winder      t: +44 20 7585 2200   voip: sip:russel.win...@ekiga.net
> 41 Buckmaster Road    m: +44 7770 465 077   xmpp: rus...@winder.org.uk
> London SW11 1EN, UK   w:www.russel.org.uk skype: russel_winder
>
>  signature.asc
> < 1KViewDownload

David DENG

unread,
Feb 8, 2013, 9:47:43 AM2/8/13
to golan...@googlegroups.com
Ok, I may rename it later. Go Embedded Page? GEP.

David

Shane Hansen

unread,
Feb 10, 2013, 5:18:08 AM2/10/13
to David DENG, golan...@googlegroups.com
This looks like  a great library, but imho here's what an ideal architecture would look like:

1. GSP/GEP pages get dropped into a special folder/package (app.jsp.package_name.gsp
2. A filesystem watcher in the server would compile package_name.jsp on the fly to a go module which registered the "new" package and a render method in  a registry (it's possible this could be acoomplished with pure reflection)
3. The web server would recompile itself on the fly, and do a graceful restart ala nginx (without dropping any connnections).

This is as close to the performance of jsp pages as I think you can get, which, for all their faults are some of the highest performing templates I've ever seen. Other crazy implementations might involve compiling the page and loading it into a sanbox using the techniques planned for chrome/nacl/pnacl. This would allow you to load the code in-memory on the fly for only a small performance drop.

my .02
references:

--Shane


--
You received this message because you are subscribed to the Google Groups "golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

David DENG

unread,
Feb 10, 2013, 11:10:13 AM2/10/13
to golan...@googlegroups.com, David DENG
Good suggestion. I've ever thought of this before. But it's more complicated than CGI style. So put in next version. And a graceful restart may be quite important, is there any detailed information?

David
Reply all
Reply to author
Forward
0 new messages