Page 1 of 3

Dragonfly - a web framework for newLISP

Posted: Fri Jun 26, 2009 9:51 am
by hilti
Hi newLISPER,

a week ago I started my project "Dragonfly". Now there's something to show, so it needs his own topic.

Currently Dragonfly (version 0.06) includes the following features

- generating HTML tables from lists
- generate several HTML tags (e.g. image, script, rss)
- a sliding panel with debugging information
- a very simple page-controller
- some basic functions for form generation

You can download on Google Code
http://code.google.com/p/dragonfly-newlisp/

I'd like to hear comments, feedback, ideas - just feel free to do.

Cheers
Marc aka Hilti

Posted: Fri Jun 26, 2009 2:56 pm
by cormullion
It's cool!

Am I supposed to be picking up the css styles? I'm seeing the plain old Times on white background...

Posted: Fri Jun 26, 2009 7:55 pm
by hilti
cormullion, feel free to do so.

I just added a twitter search function including the generation of some nice bubbles.
Here's a screenshot

Image

Oh - rest in peace Michael Jackson!


Dragonfly 0.08 is updated on Google Code.

Posted: Sun Jul 05, 2009 9:47 am
by ale870
It is very interesting!
Thank you! I will check it as soon as possible (I think it contains a big potential!)

Posted: Sun Jul 05, 2009 9:51 am
by ale870
A note: carefully check the name of your framework, since Opera Browser has a debugger called "Dragonfly".
See here:

http://www.opera.com/dragonfly/

You could have problems from Opera company... since because they are in a similar working area: web...

Posted: Thu Jul 09, 2009 3:04 pm
by hilti
ale870 wrote:A note: carefully check the name of your framework, since Opera Browser has a debugger called "Dragonfly".
See here:

http://www.opera.com/dragonfly/

You could have problems from Opera company... since because they are in a similar working area: web...
Hi,

I think the name "Dragonfly web framework" shouldn't get me into trouble. because there are a lot of projects or companies which include the name "Dragonfly" like "Dragonfly BSD", "Dragonfly Webdesign", "Dragonfly CMS" ...

Are there any lawyers in this forum who may help?

Best Regards and I hope You like my project. Version 0.10 is coming soon!!

hilti

Posted: Thu Jul 09, 2009 4:28 pm
by hilti
I love the speed of newLISP!!!

Check out this picture in my blog post:
http://dragonfly-newlisp.blogspot.com/2 ... wlisp.html

Posted: Thu Jul 09, 2009 4:58 pm
by ale870
Yes I agrree with you, newList is very fast!
In fact I'm using it as scripting language for a new 2d game engine I'm creating!

Posted: Wed Jul 15, 2009 4:54 pm
by cormullion
unbalanced-parentheses is now running Dragonfly, although just serving up random posts from the archive at the moment. It's working, but only just!

Just one thing I had to change - weird, this one.

In web.lsp:

Code: Select all

(define headers '(("Content-type" "text/html")))
didn't work. But:

Code: Select all

(define headers '(("Content-Type" "text/html")))
did. Must be some FreeBSD thing...

Jeff and Hilti: thanks for your efforts!

Posted: Wed Jul 15, 2009 6:41 pm
by m35
hilti wrote:
ale870 wrote:A note: carefully check the name of your framework, since Opera Browser has a debugger called "Dragonfly".
See here:

http://www.opera.com/dragonfly/

You could have problems from Opera company... since because they are in a similar working area: web...
I think the name "Dragonfly web framework" shouldn't get me into trouble. because there are a lot of projects or companies which include the name "Dragonfly" like "Dragonfly BSD", "Dragonfly Webdesign", "Dragonfly CMS" ...
Fans of a certain web site that would humorously respond to weekly emails might enjoy a slight name change to "Dagronfly" (I said consummate v's! Consummate!)

Posted: Wed Jul 15, 2009 7:18 pm
by hilti
WOW! So great to see it working on Your website.

hilti

Posted: Wed Jul 15, 2009 8:43 pm
by ale870
m35 wrote:
hilti wrote:
ale870 wrote:A note: carefully check the name of your framework, since Opera Browser has a debugger called "Dragonfly".
See here:

http://www.opera.com/dragonfly/

You could have problems from Opera company... since because they are in a similar working area: web...
I think the name "Dragonfly web framework" shouldn't get me into trouble. because there are a lot of projects or companies which include the name "Dragonfly" like "Dragonfly BSD", "Dragonfly Webdesign", "Dragonfly CMS" ...
Fans of a certain web site that would humorously respond to weekly emails might enjoy a slight name change to "Dagronfly" (I said consummate v's! Consummate!)
Hello @m35, but are you referring to me when you say "Fans of a certain web site that would humorously respond to weekly emails" ?!

Posted: Wed Jul 15, 2009 9:49 pm
by cormullion
(See sbemail)

Hilti - I'm looking at dragonfly v12 now!

If you made Dragonfly:listener able to accept single queries such as "www.example.com/?teststring", then could I use .htaccess mod_rewrite to redirect URIs of the form "www.example.com/teststring" to "www.example.com/?teststring"? Not quite sure about your 'action' yet...

Cheers!

Posted: Thu Jul 16, 2009 3:03 pm
by hilti
cormullion wrote: If you made Dragonfly:listener able to accept single queries such as "www.example.com/?teststring", then could I use .htaccess mod_rewrite to redirect URIs of the form "www.example.com/teststring" to "www.example.com/?teststring"? Not quite sure about your 'action' yet...
Hi!

Using htaccess mod_rewrite should be possible, but I didn't test it, because I just use newLISP as a webserver at the moment.

The "action" idea is about simulating something like a REST Interface, because newLISP always returns the 200 status code in CGI mode. Maybe I'm not finding the right switch ...

An "action" can be something like

/customer/show/1
/customer/findall
/customer/delete/1

You know what I mean?

cheers
hilti

Posted: Thu Jul 16, 2009 4:42 pm
by Lutz
because newLISP always returns the 200 status code in CGI mode. Maybe I'm not finding the right switch ...
You can force a different status code and text using the "Status: ..." directive from the CGI specification. This is described here:

http://www.newlisp.org/downloads/CodePa ... tml#toc-22

in the sub chapter: "CGI processing in HTTP mode"

Posted: Thu Jul 16, 2009 4:56 pm
by m35
ale870 wrote:Hello @m35, but are you referring to me when you say "Fans of a certain web site that would humorously respond to weekly emails" ?!
Ah no sorry ale870. I was making a (perhaps too obscure) reference to a bit of internet culture/humor. cormullion seems to have picked up on it and provided an informative link. :)
cormullion wrote:(See sbemail)

Posted: Thu Jul 16, 2009 6:28 pm
by ale870
Sorry m35 for my misunderstanding!

Posted: Sat Jul 25, 2009 9:36 am
by hilti
Just a short notice: Dragonfly version 0.17 is out!

Dragonfly 0.17 provides some cool functions for auto-loading modules and custom helpers. Just put them into the specified directories "helpers-active" or "modules-active" and Dragonfly loads them on startup.

This way the Dragonfly web framework keeps small and efficient. You just load what You need.

Download it now and have fun!
http://code.google.com/p/dragonfly-newl ... loads/list

Image

Posted: Sat Jul 25, 2009 9:45 am
by ale870
In these days I'm starting to work with Dojo framework, a language-independent AJAX client (one of the most famous). It is open source. See here:

http://www.dojotoolkit.org/

Since it is language independent, it means it can be used even from newLisp...

So I think you could start to introduce such framework (or another one) instead producing pure html.
Dojo works in xml and json (and newLisp can do that very well).
I think in this way to could give a BIG improvement to your framework (and a lot of work is done, since Dojo is stable and really well done!).

Posted: Sat Jul 25, 2009 12:50 pm
by newdep
On itself those kits are nice like http://qooxdoo.org/..
but a big disadvantgage I encountered is the speed and browser
compatibility...But they sure do have nice widgets ;-)

Posted: Sat Jul 25, 2009 1:51 pm
by ale870
Try to use Dojo (check the demos). There is a delay on first usage (download javascript: about 130kb) but the system is really responsive.

Posted: Sun Jul 26, 2009 6:43 pm
by hilti
ale870 wrote:Try to use Dojo (check the demos). There is a delay on first usage (download javascript: about 130kb) but the system is really responsive.
Hi Alessandro,

the Dojo Toolkit is really impressive. Although I like fancy AJAX-Stuff, drag & drop and those things I'm a bit aware of these bloated libraries. They're like MS Excel or Word where users just utilize 10% of the whole software.

Think about what users really need: isn't it a fast loading website, an interface/design which runs on mobiles like the iPhone too, content which is accessible by search engine bots.

If You try to load 130kb via Edge on a Mobile ... users will quit before they read Your first headline. And making things worse: most of the cool JS-Stuff won't really work in a touch environment like the iPhone.

cheers
Marc

dragonfly web framework license

Posted: Mon Sep 07, 2009 6:34 pm
by joejoe
hi hilti - looks like really cool code you've released.

im curious to know why you chose the mit license instead of the license that newlisp uses, the gpl? any chance you might consider the gpl for future releases?

thanks in any case! - :0)

Posted: Mon Sep 07, 2009 8:01 pm
by TedWalther
How about the two-clause BSD license?

Posted: Mon Sep 07, 2009 9:30 pm
by cormullion
just out of interest, what's the difference between the suggested licences?