News for hackers. Stuff that matters.
Re:Lucerne: A Common Lisp web framework by allendoerfer on Monday July 06, 2015 @09:36PM (#9843177)
I quite enjoyed learning Scheme at university. Coming from OOP, I loved when it just clicked and you began to look for opportunities to use higher order functions. I never actually used Lisp, so I might try that one with a small project.

For what type of web project could Common Lisp be a good fit? It should probably have something to do with huge lists of data that have to be processed, so that you can map, filter and fold them. The data should be relatively simple to obtain, too, so that the missing libraries are not that huge of a problem.

Re:Lucerne: A Common Lisp web framework by chaoky on Monday July 06, 2015 @10:34PM (#9843327)
Good Common Lisp doesn't use lists. A Lisp app does nothing like processing lists; in fact, Common Lisp only uses list-processing for processing source-code (aka macros). It is much more like a faster, more functional Ruby or Python in that it uses classes, looping, but encouraging good functional abstractions. Real-world Common Lisp looks nothing like scheme.
Re:Lucerne: A Common Lisp web framework by allendoerfer on Monday July 06, 2015 @10:37PM (#9843336)
So what would be a good example use case in your mind?
Re:Lucerne: A Common Lisp web framework by martinflack on Tuesday July 07, 2015 @02:09AM (#9843866)
CL is a powerful general purpose language in which you can accomplish much the same things as other programming languages. Where it will really shine is when you benefit from extending the language or environment to suit a domain and then you solve problems of that domain.

Try this as an explanation (and keep reading the book): http://www.gigamonkeys.com/book/introduction-why-lisp.html

Re:Lucerne: A Common Lisp web framework by nemoniac on Tuesday July 07, 2015 @04:40PM (#9847960)
I must confess I'm conflicted about this. While it's encouraging that Lisp is being used to build a web framework, this is not a Lispy approach. It's more like Python written in Lisp. In particular the use of Python decorators in Lisp grates.

A more Lisp-native approach could be to use higher order functions in Lisp as well as to use macros instead of adapting Django templates.

Re:Lucerne: A Common Lisp web framework by someguy1233 on Tuesday July 07, 2015 @06:03AM (#9844478)
Seems to be a slight issue with your site on mobiles, somehow your button is overflowing onto a new line: https://imgrush.com/Qryn4-uvcegH.png

(resolution is 1080x1920, using Firefox on my Android 4.4.4 OnePlus One)

Re:Lucerne: A Common Lisp web framework by tantalor on Monday July 06, 2015 @07:45PM (#9842827)
Name is uncomfortably close to "Lucene"
Re:Lucerne: A Common Lisp web framework by techwizrd on Monday July 06, 2015 @08:14PM (#9842912)
Agreed. It would also be nice to see a simple snippet of source on the front page similar to Flask[0] or Iron[1]. Perhaps something above or to the right of the "

0: http://flask.pocoo.org/

1: http://ironframework.io/

Re:Lucerne: A Common Lisp web framework by eggy on Tuesday July 07, 2015 @11:39AM (#9846097)
I had immediate association of Lucerne with Mary Shelley's Frankenstein, and for some odd reason CERN's LHC, the particle collider, in Geneva, Switzerland. Funny how associations bubble up. Why uncomfortable? Not a nitpick, just trying to grok what you wrote. I am very happy to see a CL framework along the lines of flask. I prefer CL to python, although, I use python too, and appreciate its ubiquity - in Blender3D, FreeCad, Vectorworks, etc... I am in the middle of the 1990 book, The Architecture of Symbolic Computers, by Peter M. Kogge. Amazing book. All about non-Von Neumann architectures, Lisp and functional programming.
Re:Lucerne: A Common Lisp web framework by skeuomorf on Monday July 06, 2015 @09:26PM (#9843151)
Well, there's kinda an example in the docs [0]. Kinda related: this appears to be built on the Clack webserver and its homepage lists code snippets of Lucerne alternatives that are built on top of Clack as well [1].

[0] http://eudoxia.me/lucerne/docs/example--a-twitter-clone.html

[1] http://clacklisp.org/

Re:Lucerne: A Common Lisp web framework by techwizrd on Monday July 06, 2015 @09:55PM (#9843227)
I read through the Twitter-clone example in the docs after I posted my comment. The Twitter-clone is a little bit longer than a quick snippet. I just wanted something that showed a route pointing to an index function returning a hello world and a line of code starting the server.

Also, it is definitely Flask inspired. I might have to do a more in depth comparison of the two.

Re:Lucerne: A Common Lisp web framework by rubiquity on Monday July 06, 2015 @08:29PM (#9842953)
Lucerne is also name of the brand that Safeway/Von's/Pavillion's uses for their dairy products.
Re:Lucerne: A Common Lisp web framework by nemoniac on Tuesday July 07, 2015 @04:08PM (#9847757)
Lucerne is a city in Switzerland. It exists for about 1200 years longer than Lucene.

https://en.wikipedia.org/wiki/Lucerne