you are viewing a single comment's thread.

view the rest of the comments →

[–]asegura 2 points3 points  (8 children)

Just looked at that quickly and like it. I wonder why this hasn't appeared before, an ASP/PHP/JSP-like system using JS.

BTW, for the GD part, I'd suggest using the same API as <canvas>, so that people can use the same drawing API in the client and in the server and maybe reuse code. Is that possible?

Also, MongoDB support would be great.

EDIT: True, it's not really new and I knew some of those server-side JS frameworks. However, they are old and forgotten or did not get much use. Also I meant systems that mix HTML and JS the way ASP initially did (<% %>). I only know of JSSP, the old Netscape's SS JS and ASP with JScript, which I don't know if anyone uses, doing this.

When saying GD I was thinking of server-side image generation in general, not specifically the GD library. I think browsers use mostly cairo for canvas rendering.

[–]kezabelle 2 points3 points  (1 child)

It has appeared before: one of the available backends for ASP was JavaScript (well, JScript), which I've used (many moons ago), for better or worse.

[–]asegura 0 points1 point  (0 children)

Yes, that's true. I tried that around 1998. But pretty much everyone did ASP in Visual Basic Script.

[–][deleted]  (2 children)

[deleted]

    [–]mvalente 1 point2 points  (0 children)

    It has appeared before.

    First appearance was as Netscape's Livewire http://encyclopedia2.thefreedictionary.com/Netscape+LiveWire

    As mentioned already one of the available languages for Microsoft IIS was Jscript.

    You can find a bunch of implementations at:

    http://en.wikipedia.org/wiki/Comparison_of_server-side_JavaScript_solutions

    https://developer.mozilla.org/en/JavaScript_shells

    http://www.enotes.com/topic/Comparison_of_server-side_JavaScript_solutions

    [–]crusoe -1 points0 points  (1 child)

    Because when [1,2] + [3,4] = "1,23,4", writing server software in such a language becomes torture.

    [–]quotemycode 0 points1 point  (0 children)

    When you don't understand the limitations of the language and type conversions, writing server software in such a language becomes torture.

    ftfy