Just share what newlisp does for me here

Featuring the Dragonfly web framework

Just share what newlisp does for me here

Postby csfreebird » Tue Jul 30, 2013 4:26 pm

1. I just write a newlisp app for replacing CMake to build my C++ app on Ubuntu using GCC.
The article is written in Chinese, I have no time to translate it in English.
http://blog.csdn.net/csfreebird/article/details/9635529
Newlisp is more powerful than many script languages, I never realized it could do build jobs before. :)

2. In our company,we have a lot continuous system, pull newest codes from Git repository, compile it and test it. We use Jenkins and other modern CI applications, but newlisp helps me to fill in gaps where those systems cannot do or not easy to do. For example, analysis git tags and setup web report site according to all tag names.

3. system admin job
I use newlisp to backup our MySQL database, git repositories every night. It's much easier than programming bash script.

4. My biggest newlisp app is to simulate many (about 7,000) smart devices to talk to C++ TCP server.

5. I also create some system setup scripts using newlisp, that help us to install our complex systems on both Ubuntu and Windows quickly.

That's all I have done with the help of newlisp.

How do you use newlisp? Could you share your experience with me here?
csfreebird
 
Posts: 107
Joined: Tue Jan 15, 2013 11:54 am
Location: China, Beijing

Re: Just share what newlisp does for me here

Postby cormullion » Tue Jul 30, 2013 7:50 pm

Interesting post! Thanks for contributing it.

I think Lutz uses newLISP for everything... :) But I don't use it so much at present - but I still have half a dozen scripts running every day on my machine. These are usually triggered by typing strings while Keyboard Maestro or TextExpander are running in the background - so when I type certain abbreviations they 'expand' into doing actions or tasks. Some scripting languages would take more than a few milliseconds to start up, and so couldn't be used for this level of interactivity. newLISP is also running a few CGI scripts and blogs for me. I've not written anything large-ish for ages though.
cormullion
 
Posts: 2037
Joined: Tue Nov 29, 2005 8:28 pm
Location: latiitude 50N longitude 3W

Re: Just share what newlisp does for me here

Postby HPW » Tue Jul 30, 2013 8:03 pm

I still use newLISP.dll together with the windows GUI-RAD-tool neobook to develop inhouse tools and product configurators. Also I ported some autolisp code, to get the logik run outside of AutoCAD.

Regards
Hans-Peter
HPW
 
Posts: 1352
Joined: Thu Sep 26, 2002 9:15 am
Location: Germany

Re: Just share what newlisp does for me here

Postby jopython » Wed Jul 31, 2013 1:55 pm

Log parsing and reporting primarily. Due to its very smallish size I am able to distribute it and run across thousands of servers with ease. No lisp out there comes close to that feature.
jopython
 
Posts: 123
Joined: Tue Sep 14, 2010 3:08 pm

Re: Just share what newlisp does for me here

Postby hilti » Sun Aug 04, 2013 1:14 pm

My current project is a dashboard analytics for a field sales force. Sales people can track in real-time their leads, offers and sales. The CEO Board have a nice visualization with many charts and graphics.

It's powered by a custom tuned Dragonfly Framework with Twitter Bootstrap and lot's of JQuery. In the back their is a REST API.

The best: newLISP is so blazing fast, that their IT Department always wondered.

Cheers
Marc
--()o Dragonfly web framework for newLISP
http://dragonfly.apptruck.de
hilti
 
Posts: 139
Joined: Sun Apr 19, 2009 10:09 pm
Location: Hannover, Germany

Re: Just share what newlisp does for me here

Postby rickyboy » Sun Aug 04, 2013 7:26 pm

Thanks for the update, Marc. BTW, will there be a forthcoming open source release for "Dragonfly II"? :)
(λx. x x) (λx. x x)
rickyboy
 
Posts: 554
Joined: Fri Apr 08, 2005 7:13 pm
Location: Front Royal, Virginia

Re: Just share what newlisp does for me here

Postby hilti » Sun Aug 04, 2013 9:18 pm

Hi Ricky!

Dragonfly is rock-solid for my needs. By using the internal Resources API it's very flexible when talking to or receiving web services. So I'm not working on Dragonfly II. ;)

Here's a sample CRUD skeleton for a model "coaching":

Code: Select all
(DF:activate-plugin "official/sqlite3")

(new Resource 'Resource.Coaching)
(context 'Resource.Coaching)

(define (Resource.Coaching:Resource.Coaching action id response-format)
   (catch-all action id response-format)
)

(define (catch-all action id response-format)
   
   (case action
      ("create"

      )

      ("read"

      )

      ("update"

      )

      ("delete"

      )

      (true
         (Response:content-type Response:text)
            (println "This is API Version 1.0\r\n")
            (println "Can't find called Action: " action "\r\n")
            (println "Can't find called ID: " id "\r\n")
            (println "Response format: " response-format "\r\n")
      ) ; END default

   ) ; END CASE


) ; END catch-all

(context MAIN)


Just put in Your newLISP scripts into the actions and You get an API which responds to calls like
Code: Select all
http://localhost/coaching/create/1
http://localhost/coaching/read/1
http://localhost/coaching/delete/1
http://localhost/coaching/update/1


If You need help on scrapers, SQLite or something else in newLISP just ping me. I've got a lot of libraries.

Cheers
Marc
--()o Dragonfly web framework for newLISP
http://dragonfly.apptruck.de
hilti
 
Posts: 139
Joined: Sun Apr 19, 2009 10:09 pm
Location: Hannover, Germany

Re: Just share what newlisp does for me here

Postby rickyboy » Sun Aug 04, 2013 10:15 pm

Thanks, Marc!
(λx. x x) (λx. x x)
rickyboy
 
Posts: 554
Joined: Fri Apr 08, 2005 7:13 pm
Location: Front Royal, Virginia


Return to So, what can you actually DO with newLISP?

Who is online

Users browsing this forum: No registered users and 2 guests