Тёмный

Practical Chicken Scheme with Emacs: hello-world webserver 

K LM
Подписаться 75
Просмотров 11 тыс.
50% 1

Make a simple hello-world webserver using Chicken Scheme. This screencast shows how you can go about this, with many of the practicalities of using a REPL in Emacs, Chicken Scheme threads and a webserver API.
The main focus is on workflow: The interpreter is started, and you build up your program incrementally as it's running. When you're done, you save, compile and "deploy".
Content:
- REPL basics: send code surrounding the cursor to an interpreter
- Spawning and terminating srfi-18 threads interactively
- Webserver API: spiffy
- Compiling your result
Some links:
Chicken Scheme: call-cc.org/
Chicken API docs: api.call-cc.org...
Emacs Paredit: www.emacswiki....
Talk to us on IRC in #chicken on Freenode!
"Errata":
- 7:30: No! They called "green threads", not "cooperating threads". Sorry about the confusion.

Опубликовано:

 

18 сен 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 29   
@sbef
@sbef 2 года назад
Great demo of both Scheme, Emacs and Paredit. It's certainly piqued my curiosity to dive into this world. Thanks.
@kristianlm
@kristianlm 2 года назад
Thanks! I'm glad I managed to create a spark! I hope you will learn to enjoy the strange Lisp ecosystem.
@raretapes8057
@raretapes8057 Год назад
Would absolutely love to see some more videos like this. I've picked up so many movement tips just from this video. Thank you.
@kristianlm
@kristianlm Год назад
Thanks! When I decided to learn Emacs, I set out to learn and use one new keystroke combo each day. It slows you down a lot of course but I would say it has paid off in the end. Some can even be used inside your standard terminal (eg C-a, C-e, C-n, C-p). I never managed to do the same with Dvorak/Colemak which I also wanted to learn.
@nbme-answers
@nbme-answers 9 месяцев назад
Incredible! So sad to see only 1 other video on this channel 😭
@denisfuenzalida3746
@denisfuenzalida3746 6 лет назад
Thanks a lot for taking the time to create this video. I was curious about Chicken, now I think I'll try it myself for a small project.
@kristianlm
@kristianlm 6 лет назад
Denis Fuenzalida thanks! CHICKEN has a great community thats always eager to help newcomers! Feel free to stick around on #chicken on IRC (I go by klm`)
@andrewsackville-west1609
@andrewsackville-west1609 6 лет назад
Hi, thanks for this!
@nbme-answers
@nbme-answers 9 месяцев назад
So sad to see only 1 other video on this channel! 😭
@cellularmitosis2
@cellularmitosis2 5 лет назад
Very cool to see the workflow. What screen recording software did you use which shows all of the key combos on-screen like that?
@kristianlm
@kristianlm 5 лет назад
Hi Jason! I used: - ffmpeg -f x11grab for recording - aur.archlinux.org/packages/screenkey/ for showing my keyboard presses onscreen - wiki.archlinux.org/index.php/Compton to make things nice and transparent (I'm on i3-wm)
@oneofvalts
@oneofvalts 2 года назад
this is cool.
@hebertmn
@hebertmn 2 года назад
Hi KLM. Really cool video. I am surprised you haven't done more! How do I get the cat software you mention for Mac?
@kristianlm
@kristianlm 2 года назад
Thanks, Herbert. I don't use a Mac, but I suspect it would require different software than what I used. You could see if compton is available in brew for Mac, perhaps.
@SimGunther
@SimGunther 2 года назад
That's more of a GNU binutils thing and not so much a "shady standalone" program you'd download from a random place on the interwebs. Homebrew has coreutils as a package that you can get with a "brew install". Plenty of tutorials online for that.
@aneslihovac3016
@aneslihovac3016 3 года назад
I enjoyed this. Are you planning to make more videos/turorials? Thanks!
@kristianlm
@kristianlm 3 года назад
Thanks Anes, I'm glad you liked this. I'm not planning anything at the moment. Let me know if you had anything particular in mind.
@lemonmango8
@lemonmango8 6 лет назад
Hey what is that color theme you are using? Could you also share your dotfiles or emacs init file :P?
@kristianlm
@kristianlm 6 лет назад
Hi Ode, and sorry for not getting back to you. I never had an Emacs config I felt I could share with anyone until a few days ago: github.com/kristianlm/.config/blob/master/emacs.d/init.el See if there's anything in there that helps you along. Please don't hesitate to ask if there's anything in the video that unclear!
@basscass710
@basscass710 Год назад
Do you use the geiser debug output? I dont use the standard repl very much cause of the work flow geiser brings is unmatched
@kristianlm
@kristianlm Год назад
Hi, and thanks for watching my video. I have always been very curious about what Geiser brings to the table. I'm sure it adds a lot to the interactivity. I have, however, have never gotten it to work properly (in either Guile or Chicken). I should probably not have given up as easily, but the robustness and uncomplicated nature of what I have without it is very satisfying to me.
@basscass710
@basscass710 Год назад
@@kristianlm I would give it a shot, it brings the emacs way of interacting with the code to scheme. Eval, debugging and all other things. Its really neet I would try and check it out
@kristianlm
@kristianlm Год назад
@@basscass710 Okey, I will add it to the list. Thanks :-)
@StephenThorley
@StephenThorley Год назад
How do you get the lambda character rather than the word lambda?
@kristianlm
@kristianlm Год назад
It's been a while and I don't remember tha package that did that. Perhaps you can look around on www.emacswiki.org/emacs/PrettyLambda.
@mochdeden338
@mochdeden338 6 лет назад
are u using i3, mate ?
@kristianlm
@kristianlm 6 лет назад
yup, i3 is my wm! I also used aur.archlinux.org/packages/screenkey/ for showing my keyboard presses onscreen, and wiki.archlinux.org/index.php/Compton to get transparency working.
@completemadlad15
@completemadlad15 4 года назад
check out a general comparison of python versus scheme(tiny lisp) : /watch?v=f-qtqWUKspA​
Далее
A Guiler's Year of Racket
26:56
Просмотров 12 тыс.
БЕЛКА РОЖАЕТ? #cat
00:29
Просмотров 163 тыс.
Reproducible Research with GNU Emacs and Org-mode
33:00
Lets LISP like it's 1959
48:01
Просмотров 81 тыс.
Introduction to Scheme Programming
44:12
Просмотров 50 тыс.
Literate Devops with Emacs
28:36
Просмотров 96 тыс.
[Scheme'22]  Programming is (should be) fun!
52:26
Просмотров 31 тыс.
Getting Started With Org Mode
56:21
Просмотров 274 тыс.