From: Panicz Maciej Godek <godek.maciek@gmail.com>
To: swedebugia@riseup.net
Cc: guile-user@gnu.org
Subject: Re: Send/link your favorite guile script
Date: Tue, 11 Dec 2018 15:37:29 +0100 [thread overview]
Message-ID: <CAMFYt2ap69m3dNmforZfTod92wBsiCQFBxRNpJSLYvhOZ2tTNA@mail.gmail.com> (raw)
In-Reply-To: <6b2599b5756b88c5dbf4ccf061742656@riseup.net>
Hi!
pon., 10 gru 2018 o 20:13 <swedebugia@riseup.net> napisał(a):
> Dear guilers
>
> RMS once said "to become a programmer you should read lots of code and
> write lots of code".
>
> To make this easier I thought out the following:
>
> I would like to receive a link/attached guile script that you are proud
> of.
>
> I was thinking of 3 categories:
> * below 100 lines
> * between 101-299 lines
> * longer scripts
>
> If you want to you can send multiple!
>
> Please include a line why you think just this script is
> outstanding/nice/choosen.
>
Here's my implementation of Held-Karp-Bellman dynamic programming approach
to Travelling Salesman Problem:
https://www.quora.com/How-do-I-solve-a-problem-using-dynamic-programming-approach-and-which-function-should-I-use-recursively-using-loops/answer/Panicz-Godek
note that it also contains an implementation of "define/memoized" form,
that has also been used in the definition of Levinshtein distance that I
added to "Algorithm Implementations" Wikibook:
https://en.wikibooks.org/wiki/Algorithm_Implementation/Strings/Levenshtein_distance#Scheme
Here's my implementation of the A* search algorithm (compared with the one
from Peter Norvig's book "Paradigms of Artificial Intelligence
Programming"):
https://www.quora.com/What-are-the-pros-and-cons-of-functional-programming-compared-to-imperative-programming/answer/Panicz-Godek
Here's a simple "expression compiler":
https://www.quora.com/What-lasting-effects-did-learning-LISP-have-on-you/answer/Panicz-Godek
All these examples use the (grand scheme) glossary that I maintain, which -
among other things - integrates the Scheme syntax with the (ice-9 match)
module closely:
https://github.com/plande/grand-scheme
If you like to read code, you can also try reading a lousy booklet that I
once wrote, titled "A Pamphlpet against R":
https://github.com/panicz/pamphlet/
prev parent reply other threads:[~2018-12-11 14:37 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-12-10 19:13 Send/link your favorite guile script swedebugia
2018-12-11 14:37 ` Panicz Maciej Godek [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/guile/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CAMFYt2ap69m3dNmforZfTod92wBsiCQFBxRNpJSLYvhOZ2tTNA@mail.gmail.com \
--to=godek.maciek@gmail.com \
--cc=guile-user@gnu.org \
--cc=swedebugia@riseup.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).