[OT] OpenBSD AJAX
On Wed, Nov 01, 2006 at 07:20:05AM -0600, David Terrell wrote: On Wed, Oct 25, 2006 at 02:43:21PM +1000, Damien Miller wrote: I think you would be nuts to write your web applications in C, unless you are a master with a good reason. I just want to say, writing thick web-applications with C cgi isn't as crazy as it used to be, with the rise of client side javascript frameworks. Do you have a recommendation for a client-side Ajax lib to use with C? Other than OAT, most seem to be tied to some interpreted language. m
Re: [OT] OpenBSD AJAX
On Wed, Nov 01, 2006 at 03:24:24PM -0500, Mark Bucciarelli wrote: On Wed, Nov 01, 2006 at 07:20:05AM -0600, David Terrell wrote: On Wed, Oct 25, 2006 at 02:43:21PM +1000, Damien Miller wrote: I think you would be nuts to write your web applications in C, unless you are a master with a good reason. I just want to say, writing thick web-applications with C cgi isn't as crazy as it used to be, with the rise of client side javascript frameworks. Do you have a recommendation for a client-side Ajax lib to use with C? Other than OAT, most seem to be tied to some interpreted language. Huh. I've worked with MochiKit and I haven't found it tied to any particular server-side functionality at all. It's very pythonic in terms of functionality though. -- David Terrell [EMAIL PROTECTED] ((meatspace)) http://meat.net/
Re: [OT] OpenBSD AJAX
On Wed, 1 Nov 2006, Mark Bucciarelli wrote: Do you have a recommendation for a client-side Ajax lib to use with C? Huh? How can you run C code in a browser? Lee
Re: [OT] OpenBSD AJAX
On 11/1/06, Mark Bucciarelli [EMAIL PROTECTED] wrote: Do you have a recommendation for a client-side Ajax lib to use with C? Despite this being horribly off topic, I'm wondering who here actually gets AJAX's actual usefulness.
Re: [OT] OpenBSD AJAX
On Wed, Nov 01, 2006 at 03:46:59PM -0600, L. V. Lammert wrote: On Wed, 1 Nov 2006, Mark Bucciarelli wrote: Do you have a recommendation for a client-side Ajax lib to use with C? Huh? How can you run C code in a browser? ajax means javascript on the client; being fed data from the server. That data can come from whatever. C works as well as anything else, especially if you're doing most of your user-specific data manipulation on the client. -- David Terrell [EMAIL PROTECTED] ((meatspace)) http://meat.net/
Re: [OT] OpenBSD AJAX
On 01/11/06, L. V. Lammert [EMAIL PROTECTED] wrote: On Wed, 1 Nov 2006, Mark Bucciarelli wrote: Do you have a recommendation for a client-side Ajax lib to use with C? Huh? How can you run C code in a browser? Lee The short answer: You don't. The long answer: Ok, so here goes -- for the benefit of the archives: Read http://www.webpasties.com/xmlHttpRequest/ . Note how XMLHttpRequest is key here. It links the client side (where we have HTML/CSS/ECMAscript and possibly other clientside stuff) with whatever code is running on the server. I'm using the word link very loosely here: XMLHttpRequest can make the browser request data without page reloads. That data doesn't really have to be in XML format (cf. JSON). The code on the server (that talks to XMLHttpRequest) could effectively be just about anything: PHP, Perl, Python, Ruby, Java/JSP, even C. /* begin increasingly off-topic techno-giddy mullarkey */ And while I don't know that it has been done, in theory at least, there's nothing to stop you from writing the server side logic in pure assembly language. Oh, don't just write it in assembly language. Write it in assembly language by hand editing in a hex editing environment inside vi (:%!xxd / :%!xxd -r) via a 2400 baud teletype using this programming technique when writing your loops: http://tinyurl.com/y65oeu PS: I once read that Google allegedly, allegedly generated their fancy-schmancy AJAXian Javascript code by first writing Java code and then using some kind of cross-converter to turn the Java code into JavaScript code. Either the person who wrote that was seriously confused and STILL didn't get that Java and JS are completely different animals, or Google is doing something that I can only marvel and awe at. PPS: Someplace else I read that reportedly, reportedly most people who code for a living do so in Java. No idea if that's true, though if it is, it could explain what Google is reportedly doing...
Re: [OT] OpenBSD AJAX
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of ropers Sent: Wednesday, November 01, 2006 6:44 PM To: L. V. Lammert Cc: Mark Bucciarelli; David Terrell; Damien Miller; Sam Fourman Jr.; OpenBSD Subject: Re: [OT] OpenBSD AJAX On 01/11/06, L. V. Lammert [EMAIL PROTECTED] wrote: On Wed, 1 Nov 2006, Mark Bucciarelli wrote: Do you have a recommendation for a client-side Ajax lib to use with C? Huh? How can you run C code in a browser? Lee The short answer: You don't. The long answer: Ok, so here goes -- for the benefit of the archives: Read http://www.webpasties.com/xmlHttpRequest/ . Note how XMLHttpRequest is key here. It links the client side (where we have HTML/CSS/ECMAscript and possibly other clientside stuff) with whatever code is running on the server. I'm using the word link very loosely here: XMLHttpRequest can make the browser request data without page reloads. That data doesn't really have to be in XML format (cf. JSON). The code on the server (that talks to XMLHttpRequest) could effectively be just about anything: PHP, Perl, Python, Ruby, Java/JSP, even C. /* begin increasingly off-topic techno-giddy mullarkey */ And while I don't know that it has been done, in theory at least, there's nothing to stop you from writing the server side logic in pure assembly language. Oh, don't just write it in assembly language. Write it in assembly language by hand editing in a hex editing environment inside vi (:%!xxd / :%!xxd -r) via a 2400 baud teletype using this programming technique when writing your loops: http://tinyurl.com/y65oeu PS: I once read that Google allegedly, allegedly generated their fancy-schmancy AJAXian Javascript code by first writing Java code and then using some kind of cross-converter to turn the Java code into JavaScript code. Either the person who wrote that was seriously confused and STILL didn't get that Java and JS are completely different animals, or Google is doing something that I can only marvel and awe at. PPS: Someplace else I read that reportedly, reportedly most people who code for a living do so in Java. No idea if that's true, though if it is, it could explain what Google is reportedly doing... That's exactly what they do: http://code.google.com/webtoolkit/
Re: [OT] OpenBSD AJAX
On Thu, Nov 02, 2006 at 12:43:42AM +0100, ropers wrote: PS: I once read that Google allegedly, allegedly generated their fancy-schmancy AJAXian Javascript code by first writing Java code and then using some kind of cross-converter to turn the Java code into JavaScript code. Either the person who wrote that was seriously confused and STILL didn't get that Java and JS are completely different animals, or Google is doing something that I can only marvel and awe at. It's real: http://code.google.com/webtoolkit/ -- David Terrell [EMAIL PROTECTED] ((meatspace)) http://meat.net/
Re: [OT] OpenBSD AJAX
On Wed, Nov 01, 2006 at 01:51:18PM -0800, Aaron Glenn wrote: On 11/1/06, Mark Bucciarelli [EMAIL PROTECTED] wrote: Do you have a recommendation for a client-side Ajax lib to use with C? Despite this being horribly off topic, I'm wondering who here actually gets AJAX's actual usefulness. If done well, it's a perfectly fine way to make responsive, useful webapps. -- David Terrell [EMAIL PROTECTED] ((meatspace)) http://meat.net/
Re: [OT] OpenBSD AJAX
On 11/1/06, L. V. Lammert [EMAIL PROTECTED] wrote: On Wed, 1 Nov 2006, Mark Bucciarelli wrote: Do you have a recommendation for a client-side Ajax lib to use with C? Huh? How can you run C code in a browser? How do you run php in a browser? or python? or ruby? AJAX refers to using the javascript xml functionality to run some server code, then display the results. The server language doesn't make a bit of difference.