Live data from Hacker News

Show HN: Full Stack Lisp – A book in progress about writing Common Lisp apps

fullstacklisp.com

11–20 of 110 posts

Re: Show HN: Full Stack Lisp – A book in progress about writing Common Lisp apps

#11
post #5

Why is this on the front page of Hacker News? Isn't this an advertisement?

Work in progress is a fine thing to have on Hacker News as long as there's a way for users to check the work out. In this case there's a sample chapter, which more than clears that bar. In fact we've added "Show HN" to the title, because this is the kind of thing that Show HN is for: https://news.ycombinator.com/showhn.html

Re: Show HN: Full Stack Lisp – A book in progress about writing Common Lisp apps

#12
post #10

Can you include a good description of reading macros? I'm still looking for good explanation with examples of their power.

Do you mean reader macros? Those are used to implement new kinds of syntax within Common Lisp's parser, the READ function. Even standard parts of Common Lisp syntax are defined this way, such as quote (') or backquote (`).

For more examples, see http://lisper.in/reader-macros/.

Re: Show HN: Full Stack Lisp – A book in progress about writing Common Lisp apps

#14
post #10

Can you include a good description of reading macros? I'm still looking for good explanation with examples of their power.

A reader macro is not a kind of macros [0].

It is a way to customize the Lisp reader by associating a custom function to an entry in the readtable.

So you can say that character '[' will be tied to a custom reader function, which reads from a stream and produces a Lisp object, at readtime.

The standard sharpsign[1] character is used to read different kind of structures: complex numbers #C(0 1), structs #S(tree :left nil :right nil), and so on.

In particular, you can have sharpsign-dot, which reads a lisp form, evaluates it at read time; the result is the form being read.

Also, you can use #1= and #1# to affect parts of your code to reader variables and reuse them in other places.

If the PRINT-CIRCLE (there are earmuffs around it, but I can't format it here) variable is set to true, here is a quine:

     #1=(print '#1#)
[0] http://www.lispworks.com/documentation/HyperSpec/Body/26_glo...

[1] http://www.lispworks.com/documentation/HyperSpec/Body/02_dh....

Re: Show HN: Full Stack Lisp – A book in progress about writing Common Lisp apps

#15
post #5

Why is this on the front page of Hacker News? Isn't this an advertisement?

Isn't everything an advertisement in that case? This is something cool and technical and useful.

Exactly. HN itself is one big advertisement.

Re: Show HN: Full Stack Lisp – A book in progress about writing Common Lisp apps

#16
Poor cover art.

How about fitting, into a single image, a joke about some ex-web developer, stacking pancakes at IHOP.

Or maybe a visual reference to this type of full stack: https://www.google.com/search?q=guitar+full+stack&tbm=isch

Re: Show HN: Full Stack Lisp – A book in progress about writing Common Lisp apps

#17
I'd love to see more books like this for less common languages (Haskell particularly), as I've found there's generally plenty of resources for learning the basic commands and code structure but there's little information for going from those first steps to creating an actual useful application.

Re: Show HN: Full Stack Lisp – A book in progress about writing Common Lisp apps

#18

Poor cover art. How about fitting, into a single image, a joke about some ex-web developer, stacking pancakes at IHOP. Or maybe a visual reference to this type of full stack: https://www.google.com/search?q=guitar+full+stack&tbm=isch

The critter is a reference to http://landoflisp.com/

Re: Show HN: Full Stack Lisp – A book in progress about writing Common Lisp apps

#19

I'd love to see more books like this for less common languages (Haskell particularly), as I've found there's generally plenty of resources for learning the basic commands and code structure but there's little information for going from those first steps to creating an actual useful application.

Working on a video course https://www.youtube.com/watch?v=04ZZKFcpUoo though there is also a great book for Haskell now http://haskellbook.com/

Re: Show HN: Full Stack Lisp – A book in progress about writing Common Lisp apps

#20

I'd love to see more books like this for less common languages (Haskell particularly), as I've found there's generally plenty of resources for learning the basic commands and code structure but there's little information for going from those first steps to creating an actual useful application.

I believe this is one of the major goals of http://book.realworldhaskell.org/read/

With this book, we want to show you how to use functional programming and Haskell to solve realistic problems. This is a hands-on book: every chapter contains dozens of code samples, and many contain complete applications.

Post reply on HN