Page 1 of 1

Just share what newlisp does for me here

PostPosted: Tue Jul 30, 2013 4:26 pm
by csfreebird
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?

Re: Just share what newlisp does for me here

PostPosted: Tue Jul 30, 2013 7:50 pm
by cormullion
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.

Re: Just share what newlisp does for me here

PostPosted: Tue Jul 30, 2013 8:03 pm
by HPW
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

Re: Just share what newlisp does for me here

PostPosted: Wed Jul 31, 2013 1:55 pm
by jopython
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.

Re: Just share what newlisp does for me here

PostPosted: Sun Aug 04, 2013 1:14 pm
by hilti
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

Re: Just share what newlisp does for me here

PostPosted: Sun Aug 04, 2013 7:26 pm
by rickyboy
Thanks for the update, Marc. BTW, will there be a forthcoming open source release for "Dragonfly II"? :)

Re: Just share what newlisp does for me here

PostPosted: Sun Aug 04, 2013 9:18 pm
by hilti
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

Re: Just share what newlisp does for me here

PostPosted: Sun Aug 04, 2013 10:15 pm
by rickyboy
Thanks, Marc!