News for hackers. Stuff that matters.
Re:Show HN: A star map creation tool with Common Lisp by juanre on Thursday June 20, 2019 @06:01AM (#20231329)
Reading PG's ANSI Common Lisp was a pivotal event on my career as a programmer. I wrote a high-resolution star map generation tool in CL about 14 years ago, and have been working on it and selling the maps it produces for many years.

Now I am moving away from the things I don't do well (ranking in Google and promoting) to what I think I do best (making beautiful maps) with this new site, where I open the engine to people who want to add custom star maps to their own products.

Re:Show HN: A star map creation tool with Common Lisp by nnq on Thursday June 20, 2019 @07:32AM (#20231749)
> PG's ANSI Common Lisp

Would you say PG's ANSI Common Lisp is better or worse (as a zero-to-hero intro to CL for an "experienced" programmer in other languages) than Peter Seibel's Practical Common Lisp?

I'm curious because I'm currently teaching myself CL (slowly, as a leisurely hobby), mainly because I realized that I need a hyper-flexible un-opinionated language in my toolkit for some types of experiments I want to try on and CL seems to fit the job. But I found the "practical" part missing from Practical Common Lisp with the non-plausible problems/examples and also missing stuff about packaging/ecosystem and little on modern concurrency patterns...

Re:Show HN: A star map creation tool with Common Lisp by UYChuH on Thursday June 20, 2019 @07:59AM (#20231946)
PG's ANSI common lisp was one of the first books I learned to program from. I still prefer it over Practical Common Lisp, partly because I appreciated the greater depth (I felt) it covered the basics in, and in that it was slightly more abstract...

But mostly because Appendix D gives a really succinct description of the language, key functions, all the different parameters to FORMAT and LOOP, and all the different read macros. Never underestimate the value of a good appendix!

Re:Show HN: A star map creation tool with Common Lisp by aidenn0 on Thursday June 20, 2019 @12:00PM (#20234182)
ANSI CL isn't going to be better on any of the parts you are complaining about from PCL.

https://lispcookbook.github.io/cl-cookbook/ is of varying quality but might have more of what you are looking for.

Out of curiosity, what do you mean by "modern concurrency"?

Re:Show HN: A star map creation tool with Common Lisp by nnq on Thursday June 20, 2019 @02:27PM (#20235751)
OK "modern" might be a misnomer, all concepts are 20+ yo here, but... async with promises (like in basic concurrency without execution parallelism, just io p), channels, then actors, stm maybe. Most books seem to have a chapter on threads and stop there. I know CL has libs for all these and the libs have docs, but was hoping for some "big picture" summary of what's worth using and learning from the entire ecosystem and when etc.
Re:Show HN: A star map creation tool with Common Lisp by flavio81 on Thursday June 20, 2019 @03:56PM (#20236708)
>but was hoping for some "big picture" summary of what's worth using and learning from the entire ecosystem and when etc.

Google "Common Lisp Cookbook", it has a chapter that will give you something of a "big picture".

Re:Show HN: A star map creation tool with Common Lisp by aidenn0 on Thursday June 20, 2019 @07:39PM (#20238554)
If you find a good actors library, let me know. I've been using CL for 20 years and have not found a satisfying one.

[edit]

CL is in a slightly uncomfortable position here; scheme has first-class continuations, which makes implementing actors and async the sort of thing that could be an undergrad assignment, most other languages have a single source of truth (either with a language committee like C++ or with a one-true-implementation like Python).

cl-async is perfectly good for async.

Re:Show HN: A star map creation tool with Common Lisp by snazz on Thursday June 20, 2019 @08:16AM (#20232080)
Packaging and ecosystem has changed a lot recently, so On Lisp or ANSI Common Lisp would both be outdated quickly (as would Seibel’s PCL; PG does not have a book with that title). Most of that you can find online: practically everything is available through Quicklisp and it’s a very intuitive piece of software. Concurrency is harder and Bordeaux Threads might be too new for detailed inclusion in On Lisp or PCL.

I would highly recommend On Lisp once you have gotten the syntax down. I ordered a printed copy of the PDF (legal since PG released it) and have been working through it. On Lisp won’t show you things that are easily done in other languages; its goal is to teach the power of CL. Certainly by the time you’re done you’d be comfortable with many types of macros, closures, the REPL-based workflow, and other strengths if CL, able to find more about how one uses it in practice without much trouble.

Re:Show HN: A star map creation tool with Common Lisp by weavie on Thursday June 20, 2019 @11:02AM (#20233587)
Be aware that On Lisp was written before ANSI common lisp was standardised so there are a few areas towards the end (if I recall, in the continuations chapter) that won't work as written.
Re:Show HN: A star map creation tool with Common Lisp by juanre on Thursday June 20, 2019 @08:34AM (#20232196)
PG's Lisp books don't deal with packaging and ecosystem at all, do they? I think they are still very much relevant, and I completely agree with your recommendation.
Re:Show HN: A star map creation tool with Common Lisp by snazz on Thursday June 20, 2019 @08:53AM (#20232366)
I don’t think so. I only have On Lisp on hand and it deals solely with the language itself.
Re:Show HN: A star map creation tool with Common Lisp by lispm on Thursday June 20, 2019 @10:22AM (#20233185)
ANSI Common Lisp from PG gives you a basic overview of the language, has some examples and has also a short reference section. It doesn't teach you anything useful about the eco-system, IIRC.

Practical Common Lisp teaches the language a bit more by example tasks...

Re:Show HN: A star map creation tool with Common Lisp by juanre on Thursday June 20, 2019 @08:07AM (#20232001)
I learned with ANSI CL, then read PG's On Lisp (which I downloaded from somewhere and printed, I don't think it was available). ANSI CL is great, the chapter where he writes an OO framework is just amazing. And On Lisp blew my mind.

Seibel's Practical Common Lisp is a good book, worth reading, but quite lacking in the "practical" aspect, which tends to be implementation-dependent.

Re:Show HN: A star map creation tool with Common Lisp by adamc on Thursday June 20, 2019 @09:54AM (#20232919)
They're both good, but I still prefer PG's ANSI Common Lisp.
Re:Show HN: A star map creation tool with Common Lisp by vallode on Thursday June 20, 2019 @07:30AM (#20231731)
I was slightly confused at first due to the simplified map svgs on the right hand side thinking: "is this all that it generates?"

Looking at your gallery had me very impressed, this is a very cool project and I hope that you get many more people taking a look at it :)

Re:Show HN: A star map creation tool with Common Lisp by juanre on Thursday June 20, 2019 @08:03AM (#20231981)
Thank you :-) I should probably feature the samples more clearly.
Re:Show HN: A star map creation tool with Common Lisp by dig1 on Thursday June 20, 2019 @07:21AM (#20231680)
The site and overall feeling looks clean, focused and built with a lot of love and passion. Kudos! I'd be happy to see more products like this, instead of frequent mishmash where visitor has no idea what it is looking at.

Are you able to sustain yourself with this app and selling maps?

Re:Show HN: A star map creation tool with Common Lisp by juanre on Thursday June 20, 2019 @08:03AM (#20231973)
Thanks! Yes, I do make a living. My other site, https://greaterskies.com/, supports my family and two employees.
Re:Show HN: A star map creation tool with Common Lisp by sjamaan on Thursday June 20, 2019 @10:40AM (#20233346)
This is awesomely inspiring. Such a simple yet cool idea!