Creating Your First Lisp Project - Quicklisp, asdf, and Packages
Vložit
- čas přidán 13. 05. 2022
- In this tutorial, we will create a simple REST API in Common Lisp and learn about Quicklisp and asdf. You will know everything needed to create a professional Lisp library or executable by the end.
www.quicklisp.org/beta/
Let me know what you think and if there is anything specific you would like to learn about.
---------------► Wanna Support Me? ◀︎---------------
Github:
www.github.com/sponsors/gavinok
Patreon:
/ gavinfreeborn
---------------► Wanna Checkout My Dots? ◀︎---------------
Vimrc:
github.com/Gavinok/dotvim
Emacs Config:
github.com/Gavinok/emacs.d
---------------► Come Join The Community◀︎---------------
LBRY:
open.lbry.com/@GavinFreeborn:...
Matrix Space:
matrix.to/#/%23gavinfreeborn:...
Discord:
/ discord
00:00 Intro - Věda a technologie
Thank you Gavin, you consistently produce the best CL content for people on the path to becoming intermediate lispers. Very appreciated.
This is actually the exact type of video I was looking for!
Gavin, thank you so much for all the recent Lisp content! This sort of info is hard to come by in video format. Looking forward to another video.
My pleasure! There is plenty more where that came from.
I love LISP... it is amazing. Thank you for the contents. I hope there will be more similar material in the near future.
Indeed there is haha might be coming out a little late this week but still coming
Glad I found your channel. Subbed.
thank you, I want to learn asdf but the asdf manual was confusing me, this video made my confusion go away
Please make more lisp content!
love your voice
Hi thanks for the tutorial. I have a question, I created a web-project and then when I go to static/css to change the color of h1 for example to 'red', I don't see the change on the page. My question is very simple: do I re-compile a file in order for the changes to take effect? In this case, do I re-compile the web.lisp file? and what is the command, is it C-c C-c ?
It would be great if you could make a web app tutorial from start to finish, going into the different files, making CSS changes, etc. Thank you!
Is there any chance you'd consider doing a video on how to develop TUI applications with croatoan or similar? I've never figured out how to make curses libraries mesh well with repl-driven development
Sure. I would definitely be open to making such a video. I've just hardly had the time to record a video recently. I have a few videos on the backlog but this is definitely worth tackling
I actually basically rebuilt cl-cookieproject within cl-project's templating system. Very nice system fukamachi set up, not sure who to contribute that to, lol
Would love to see that since I haven't gotten a chance to do that haha. I did realize that it had one just never got into understanding it 😅
hey, great content! In a different tangent, what modeline are you using in emacs?
I made it myself github.com/Gavinok/emacs.d/blob/main/lisp%2Fmodeline.el
@@GavinFreeborn nice! Thank you.
9:49 Hi Gavin, i don´t understand the command for going to the definition of ´ningle, is that M - . ( alt + periot) ?? Ty
yes, M - . then M - , to return
i am learning lisp. Do you have any notes/tutorial on how to build non-web simple application. For example- i want to create a package, add calculator class with basic operations.. and make a executable from it. ?
What a great explanation.
I am quite new to common lisp, but why is that #:something we see everywhere?
Also #''functionname was used as well.
There isn't really any difference. There may be an actual distinction for a style guide but they are treated the same by defpackage thing as far as I know.
Quick update. For the #: www.lispworks.com/documentation/HyperSpec/Body/02_dhe.htm is what you are looking for. Can't remember if I explained #'functionname (youtube won't show me) but it's basically saying we are refering to a function and not a variable. I have a video on emacs lisp that explains it. czcams.com/video/NocDm4zzToo/video.html
i love lisp, but my brain doesn't. haha
I have an error with 12:25 code, I dont know how to put the lambda symbol so write lambda, is this could be the cause of the error?, or have the same effect if I put lambda symbol or not?, thanks for the videos, I was getting a error from slime when I installed so thanks to your video of sly solve that problem
You can just write the word "lambda". I think Gavin has a plug-in for his editor that displays the Greek letter when he writes the word lambda
What's this shell program you are using towards the beginning?
Are you talking about sly? It's an emacs plugin. The whole demo was done in emacs
@@GavinFreeborn But I thought lem was better than emacs. What happened mate?
@@winter_light never really said that just said I like the project and why I like it. There is still plenty of things lem needs to do to catch up. Still depend on emacs for org mode and sly had stickers which I use extensively.
@@GavinFreeborn Mate, I just tried to pull your leg. Keep doing the great work as usual and thanks for keeping us motivated.
Ironclad refuses to install for some reason :(
Thank you for the tutorial, Gavin! Excellent CL content as always :) Just wanted to add something I found out recently that may save you time when writing build.lisp scripts: you can tell asdf to make all lisp systems available in a directory of your choice!
If you had your systems in a ~/projects dir, just make a file called projects.conf in the directory ~/.config/common-lisp/source-registry.conf.d/ and give it the contents: (:tree "/home/gavinok/projects/")
Thanks for sharing! I had heard about that before but hadn't actually given it a try. I'll have to add that config some time soon
what kind of stuff do you do with lisp? i love lisp, other than emacs, I haven't seen it being used alot. Just curious.
Personally I consider it good for nearly anything! I recently wrote a basic static site generator in lisp. For my last job I made a web service in lisp. I use lisp to program and control my window manager. I kinda use it for everything! Probably the biggest selling point for using it is how fast you can get a prototype going and start developing core features of an application.
That's pretty cool to know. I'd love to see how you tackle more problems with lisp both for daily tasks and maybe even professionally.
This just made things more confusing
I'm sorry to hear that. Where did the confusion start? I'd be happy to clarify
; compilation unit aborted
; caught 1 fatal ERROR condition
; Loading "ningle"
"SYNTAX" is a package name, so it cannot be a nickname for "CL-SYNTAX".
I do not understand your starting point. Your first screen - what is it. It's not bash. It's not emacs. It's not lem. What am I looking at?
The only screen I can think you are referring to is the directory (shown in emacs's dired)
@@GavinFreeborn Wow! I've been using emacs since the '90. Your use of dir-mode is incredible. I'll have to look into that. Thanks!
If only the IDE was decent. Using REPL is so frustrating, thank god we don't have to program in LISP with punchcards anymore :/
I wish there were some tutorial how to use LISP with Visual Studio Code and get all the benefits of modern IDE.
Ps I've programmed a bit in LISP in the past. It's an awesome language, though I'm not touching it with a 10 foot pole unless I can be productive in it from the get go.
There is lisp works but I've never tried it
Why was nobody talking about this deep eyes?
This sucks bro