{"id":499,"date":"2009-01-22T23:45:53","date_gmt":"2009-01-23T07:45:53","guid":{"rendered":"http:\/\/www.codebelay.com\/blog\/?p=499"},"modified":"2009-01-22T23:46:37","modified_gmt":"2009-01-23T07:46:37","slug":"setting-up-a-newlisp-webserver","status":"publish","type":"post","link":"https:\/\/www.codebelay.com\/blog\/2009\/01\/22\/setting-up-a-newlisp-webserver\/","title":{"rendered":"Setting Up a newLISP Webserver"},"content":{"rendered":"<p>How fast can you get on the web? With <a href=\"http:\/\/newlisp.org\/\">newLISP<\/a> it&#8217;s about as fast as typing:<\/p>\n<div style=\"color: #fff; background: #000; padding: 5px;\">\nnewlisp -http -d 8080 -w \/usr\/home\/www\/httpdocs &#038;\n<\/div>\n<p>How fast can you create a backdoor with newLISP?<\/p>\n<div style=\"color: #fff; background: #000; padding: 5px;\">\nnewlisp -p 1234 &#038;\n<\/div>\n<p>If you telnet into port 1234 in localhost, you&#8217;ll see something that looks like this:<\/p>\n<div style=\"color: #fff; background: #000; padding: 5px;\">\n<p>Trying 127.0.0.1&#8230;<br \/>\nConnected to localhost.<br \/>\nEscape character is &#8216;^]&#8217;.<br \/>\nnewLISP v.10.0.0 on OSX IPv4 UTF-8.<\/p>\n<p>><\/p>\n<\/div>\n<p>This opens up a lot of possibilities for distributed computing.<\/p>\n<p>For example, you can set up a newLISP server that&#8217;s ready to respond to a newLISP client with this command:<\/p>\n<div style=\"color: #fff; background: #000; padding: 5px;\">\nnewlisp -c -d 1234\n<\/div>\n<p>Your newLISP client can have code that sends a computing problem to be solved to the server:<\/p>\n<div style=\"color: #fff; background: #000; padding: 5px;\">\n(net-eval &#8220;localhost&#8221; 1234 &#8220;(+ 3 4)&#8221; 1000)\n<\/div>\n<p>Or let&#8217;s say you had a farm of newLISP servers:<\/p>\n<div style=\"color: #fff; background: #000; padding: 5px;\">\n#!\/usr\/bin\/newlisp<\/p>\n<p>    (set &#8216;result (net-eval &#8216;(<br \/>\n        (&#8220;192.168.1.100&#8221; 4711 {(+ 3 4)})<br \/>\n        (&#8220;192.168.1.101&#8221; 4711 {(+ 5 6)})<br \/>\n        (&#8220;192.168.1.102&#8221; 4711 {(+ 7 8)})<br \/>\n        (&#8220;192.168.1.103&#8221; 4711 {(+ 9 10)})<br \/>\n        (&#8220;192.168.1.104&#8221; 4711 {(+ 11 12)})<br \/>\n    ) 1000))<\/p>\n<p>    (println &#8220;result: &#8221; result)<\/p>\n<p>    (exit)\n<\/p><\/div>\n<p>If the above example reminds you of <a href=\"http:\/\/www.danga.com\/gearman\/\">Gearman<\/a>, you get +12 points.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>How fast can you get on the web? With newLISP it&#8217;s about as fast as typing: newlisp -http -d 8080 -w \/usr\/home\/www\/httpdocs &#038; How fast can you create a backdoor with newLISP? newlisp -p 1234 &#038; If you telnet into port 1234 in localhost, you&#8217;ll see something that looks like this: Trying 127.0.0.1&#8230; Connected to [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[170,4,33],"tags":[272,273,270,271],"class_list":["post-499","post","type-post","status-publish","format-standard","hentry","category-command-line","category-how-to","category-webapps","tag-backdoor","tag-distributed-computing","tag-newlisp","tag-webserver"],"_links":{"self":[{"href":"https:\/\/www.codebelay.com\/blog\/wp-json\/wp\/v2\/posts\/499","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.codebelay.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.codebelay.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.codebelay.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.codebelay.com\/blog\/wp-json\/wp\/v2\/comments?post=499"}],"version-history":[{"count":0,"href":"https:\/\/www.codebelay.com\/blog\/wp-json\/wp\/v2\/posts\/499\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.codebelay.com\/blog\/wp-json\/wp\/v2\/media?parent=499"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.codebelay.com\/blog\/wp-json\/wp\/v2\/categories?post=499"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.codebelay.com\/blog\/wp-json\/wp\/v2\/tags?post=499"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}