Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - hilti

#31
Whither newLISP? / How to get newLISP popular?
January 08, 2013, 08:04:01 AM
Over three years now I'm using newLISP for several projects, most of them were web projects. During these years I've experimented with other LISPs like clisp, clojure and so on, but always coming back to newLISP because it's more fun and easier to solve my computing tasks.



So how will get newLISP more popular - what do we have to do in 2013?



I've written down some ideas I'd like to share with You:



1. Make newlisp.org more sexy - I'm working on some styles Lutz can easy use with his wiki

2. Write an ebook for children about "Programming with newLISP on the Raspberry Pi"

=> The internet of things is right around the corner and I think children like to influence their world via a computer. With newLISP it's easy to access the GPIO Pins from the Raspberry Pi to read out sensors or do some home automation.

3. Developing a portable, embedded social network device. Something like "Facebook to Go" using newLISPs networking functions, because I think the discussions about personal data and privacy will become more active.



What are you thinking?



Cheers

Marc
#32
newLISP and the O.S. / Re: Benchmarking newLISP
December 29, 2012, 11:51:43 AM
Corrected. I've just played around ;-)



I think newLISP and the Raspberry Pi are a wonderful couple, because



1. newLISP can be used for distributed computing tasks between several Raspberry Pi's

2. Uses less memory than other scripting languages (I think Python on a Pi is too much)

3. Is fast enough to serve simple dynamic websites (faster than PHP+MySQL on a Pi)



Has anyone a Raspberry Pi at home?



Cheers

Hilti
#33
newLISP and the O.S. / Re: Benchmarking newLISP
December 29, 2012, 12:31:12 AM
Here is a result at 900 mHz (overclocked with the raspi-config tool)



>>>>> Benchmarking all non I/O primitives ... may take a while ...
   13575.5 ms
>>>>> Performance ratio: 5.37 (1.0 on Mac OSX, 1.83 GHz Core 2 Duo, newLISP v10.2.8)
#34
newLISP and the O.S. / Re: Benchmarking newLISP
December 29, 2012, 12:19:45 AM
Here's a result for newLISP 10.4.5 on a Raspberry Pi (700 mHZ, 256 MB RAM)



pi@raspberrypi /tmp/newlisp-10.4.5/qa-specific-tests $ newlisp qa-bench

>>>>> Benchmarking all non I/O primitives ... may take a while ...
   17001.4 ms
>>>>> Performance ratio: 6.72 (1.0 on Mac OSX, 1.83 GHz Core 2 Duo, newLISP v10.2.8)


Next step is to host some newLISP sites on my Raspberry Pi.



Update:

Now http://www.rundragonfly.com">//http://www.rundragonfly.com is running on the Raspberry Pi. Performance feels quite good.
#35
newLISP in the real world / Re: SHA2 Module
December 26, 2012, 11:36:30 AM
Good idea doing a native newLISP SHA2.



Here's another version written in Common Lisp. Maybe it's another starting point.

http://common-lisp.net/project/clbuild/mirror/ironclad/sha256.lisp">//http://common-lisp.net/project/clbuild/mirror/ironclad/sha256.lisp
#36
newLISP in the real world / Re: newLISP on Rockets
October 27, 2012, 11:22:05 AM
@Darth Severus
QuoteOh, I just started to learn how dragonfly works, as a complete beginner in webdesign.


Isn't http://www.rundragonfly.com">//http://www.rundragonfly.com a good starting point to learn Dragonfly? Greg and I wrote a lot documentation to get used to the simple development cycle when using Dragonfly.



What's missing?



Cheers

Marc
#37
No. But seems indeed possible to solve.



How did You manage to get CouchDB working? Because I think the interface is only accessible via https.



Cheers

Hilti
#38
newLISP in the real world / newLISP on Rockets
October 23, 2012, 12:39:01 PM
Hi!



Does anyone know who's behind "Dragonfly reloaded" ;)

http://newlisponrockets.com/">//http://newlisponrockets.com/



bye

Marc
#39
newLISP in the real world / Socket webserver
September 10, 2012, 10:15:09 PM
Hi!



I don't understand why I can't access an established socket connection via my browser or telnet? I'm trying to build a simple socket-based webserver.



server.lsp
#!/usr/bin/env newlisp

;; SET IP and PORT
(set 'ip "127.0.0.2")
(set 'port 8080)

;; BUILD UP SOCKET
(set 'connection (net-listen port ip "multi"))
(if connection
(println "LispIO webserver started on " ip ":" port)
    (println (net-error))
)

;; ENTER LOOP
(while (not (net-error))
(set 'msg (net-receive-from connection 1024))
;(println "->" msg)
(set 'response [text]
"HTTP/1.0 200 OKrn"
"Server: LispIOrn"
"Content-Type: text/htmlrn"
"rn"
[/text]
)
(net-send-to (nth 1 msg) (nth 2 msg) response connection)
(println "Hello World")
)

(exit)




client.lsp

#!/usr/bin/newlisp

(set 'socket (net-listen 8081 "" "multi"))
(if (not socket) (println (net-error)))
(while (not (net-error))
(print "Enter something -> ")
(net-send-to "localhost" 8080 (read-line) socket)
(net-receive socket buff 255)
(println "=> " buff)
)


Starting up server.lsp and client.lsp in two different terminal windows. Entering some text in the client window is immediately pushed to the server, which response with:



Enter something -> hello
=>
"HTTP/1.0 200 OKrn"
"Server: LispIOrn"
"Content-Type: text/htmlrn"
"rn"


But why can I not access http://127.0.0.2:8080">http://127.0.0.2:8080 in my browser?



Thanks for help.

-Hilti
#40
Thanks cormullion! Hopefully my site is usefully for You.


QuoteDid you go with Dragonfly or a newer framework...?

Dragonfly and some custom developed modules. I used it again, because developing is straightforward and I want a minimum viable product after a hacking session at the weekend.



A new web framework should at least include more functions as Dragonfly (like form-error handling, named routes, advanced ajax stuff), but that requires a lot of work.
#41
Hi newLISPers!



Today my first bootstrapped website project launched. DESBUY http://www.desbuy.com">//http://www.desbuy.com. It's a platform for finding local design furniture. Currently is backed by eBay, local dealers coming soon.



It's entirely based on newLISP Code and runs on Amazon EC2 (micro instance). Geolocation is done by passing (env "REMOTE_ADDR") to a webservice.

Dynamic translation is provided by a list and lookup - no database required there ;-)



More newLISP projects are on the way.



Cheers

Hilti
#42
newLISP in the real world / Amazon.lsp module
August 27, 2012, 11:40:12 AM
Hi!



Does anyone successfully used the amazon.lsp library? I get an error when trying to list all my S3 buckets with


(amazon:list-all-buckets 1000)

The error  code is



ERR: server code 400: HTTP/1.1 400 Bad Request
<Error><Code>InvalidArgument</Code><Message>AWS authorization header is invalid.  Expected AwsAccessKeyId:signature</Message>


Any help is appreciated.



- Marc
#43
Hi Guys!



I'm providing my script to install newLISP on an Amazon EC2 instance. It installs all depending libraries and automatically installs newLISP. Tested on EC2 micro instance with Ubuntu AMI.



Cheers

Hilti



#!/bin/bash
# Simple bash script for installing newLISP on Amazon EC2, Ubuntu 12.04 AMI
# Author: Marc Hildmann, July 2012
#

read -p "Install necessary default building libraries (y/n)?" CONT
if [ "$CONT" == "y" ]; then
  sudo apt-get install libffi-dev build-essential libreadline-dev
else
  echo "No libraries were installed.";
fi

read -p "Now changing to /tmp and download newLISP (y/n)?" CONT
if [ "$CONT" == "y" ]; then
  cd /tmp
wget http://www.newlisp.org/downloads/newlisp-10.4.3.tgz
tar xvfz newlisp-10.4.3.tgz
cd newlisp-10.4.3
else
  echo "Nothing happened.";
fi

read -p "Build and install newLISP (y/n)?" CONT

if [ "$CONT" == "y" ]; then
make
sudo make install
echo "### Installation finished ###"
else
  echo "Nothing happened.";
fi
#44
Hi Guys!



I've just pushed two new libraries to my Github.



GeoTools

Using the Google Maps API You are able to get an address by given latitude and longitude (vice versa) and calculate distance between two points.

https://github.com/marchildmann/newlisp-geotools">//https://github.com/marchildmann/newlisp-geotools



GooglePlaces

This is the world's first newLISP wrapper to the Google Places API ;) Have fun.

https://github.com/marchildmann/newlisp-googleplaces">//https://github.com/marchildmann/newlisp-googleplaces



More to come soon.



Cheers

Hilti
#45
Anything else we might add? / Scheme on the iPad
April 05, 2012, 08:18:42 AM
I'm wondering if this way a newLISP iPad App is possible? I always thought, that scripting languages and interpreter are not allowed in an app.



http://slidetocode.com/2012/04/05/lisping-released/">//http://slidetocode.com/2012/04/05/lisping-released/



- Hilti