newLISP and big data?
Posted: Wed May 08, 2013 11:49 am
Hi!
I've just come across this blog post and wondered if the Gist shown there is newLISP? Because the use of (nth) looks pretty familiar to me.
http://blog.bugsense.com/post/499247554 ... me-android
What Do You think?
Update:
I've just come across this blog post and wondered if the Gist shown there is newLISP? Because the use of (nth) looks pretty familiar to me.
http://blog.bugsense.com/post/499247554 ... me-android
What Do You think?
Code: Select all
(load "stdlib.lql")
(load "dblib.lql")
(timespace "day")
(define string-row *stream*)
(let ((row (reverse
(string-split (str string-row) ":"))))
(if (= (length row) 4)
(begin
(let ((os-ver (nth row 0))
(phone-model (nth row 1))
(error-class (nth row 2)))
(incdb "sessions" 1)
(incdb (session-by "osver" os-ver) 1)
(incdb (session-by "device" phone-model) 1)
(incdb (session-by "error" error-class) 1)
(incdb (session-by-crash "os_ver_class" os-ver error-class) 1)
(incdb (session-by-crash "device_class" phone-model error-class) 1)
(push! (unique "os_ver") os-ver)
(push! (unique "device") phone-model)
(push! (unique "error_class") error-class)))
#f))
Update:
http://highscalability.com/blog/2012/11 ... -mobi.htmlA full blown custom LISP language written in C to implement queries, which is many times faster that having a VM (with a garbage collector) online all the time