Skip to content

Instantly share code, notes, and snippets.

@Niquarl
Niquarl / gist:5f8bd756a51b55ccc1785444e64c416e
Created September 30, 2018 23:10
Radio France | Adresses des flux Live mp3 Octobre 2016
Radio France | Adresses des flux Live mp3 Octobre 2016
Ces adresses sont fournies pour des usages privés uniquement. Pour tout autre usage, merci de contacter [email protected].
Sont listés ici les flux de qualité "FM". En as de problème de coupures récurrentes dûes à une bande passante disponible trop faible, reportez-vous à la liste des flux «bas débit» en fin de document.
France Inter
http://direct.franceinter.fr/live/franceinter-midfi.mp3
franceinfo
http://direct.franceinfo.fr/live/franceinfo-midfi.mp3
@ralt
ralt / foo.lisp
Last active October 30, 2024 15:42
Parenscript async/await support
(ps::defprinter ps-js::await (x)
(ps::psw (string-downcase "(await "))
(ps::print-op-argument 'ps-js::await x)
(ps::psw ")"))
(ps::define-trivial-special-ops
await ps-js::await)
(ps::define-statement-operator async-defun (name lambda-list &rest body)
(multiple-value-bind (effective-args body-block docstring)
@WetHat
WetHat / CL-Queues.ipynb
Last active February 11, 2025 16:44
Implementing the QUEUE abstract data type while exploring Common Lisp generic functions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@WetHat
WetHat / CL-PrettyPrintTableData.ipynb
Last active August 1, 2024 16:36
Pretty Print Table Data in Common Lisp
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@WetHat
WetHat / CL-PrettyPrintTrees.ipynb
Last active January 14, 2025 21:23
Pretty Print Tree Data Structures in Common Lisp
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@Goheeca
Goheeca / braille-pixels.lisp
Last active November 17, 2019 18:36
Braille pixels images using cl-charms (@ SBCL)
#!/usr/bin/sbcl --script
#|
Usage
=====
$ ./braille-pixels.lisp [path]
Main
====
@vindarel
vindarel / common-lisp-VS-clojure.md
Last active January 31, 2025 14:21
Notes on Common Lisp VS Clojure

Testimonies

CL's compiler

The thing in CL I miss most doing Clojure as my day job? CL's compiler. I like having a compiler tell me at compile time about the mistakes I've made. Bogus arguments. Unreachable code because of unhandled exceptions, and so on. CL saves me round after round of bugs that in clojure aren't found until you run the code. If you test well, it's found when testing, if you don't it's found in production. "Clojure compiler" almost demands air quotes.

CL's optional but oh-so-useful model of type declarations is also infinitely more useful (to me) than Clojure's use of "spec", and instrumentation that happens only at test time because of the cost. Depending on the OPTIMIZE declarations, other type defs are a floor wax and dessert topping. Want checks for argument types? Lower optimizations. Want most efficient machine code? High optimizations.

/u/Decweb, March 2023 https://www.reddit.com/r/lisp/comments/11ttnxk/the_rise_fall_of_lisp_too_good_for_the_rest_of/jczpysp/

@phoe
phoe / package-local-nicknames.md
Last active February 15, 2025 09:28
Package-local nicknames in Common Lisp - a semishitpost about PLNs

Package-local nicknames in Common Lisp

Warning: this is a rant.

Warning: you have been warned.

Note: actually worthwhile content starts in the second subsection. You are free to skip the first one.

Story time

#!/usr/bin/env python
import math
import sys
from moviepy.editor import AudioClip, VideoFileClip, concatenate_videoclips
# Get average RGB of part of a frame. Frame is H * W * 3 (rgb)
# Assumes x1 < x2, y1 < y2
@vindarel
vindarel / Common Lisp VS Racket - testimonies.md
Last active February 1, 2025 20:24
Common Lisp VS Racket. Feedback from (common) lispers.

Developer experience, libraries, performance… (2021/11)

I'll preface this with three things. 1. I prefer schemes over Common Lisps, and I prefer Racket of the Schemes. 2. There is more to it than the points I raise here. 3. I assume you have no previous experience with Lisp, and don't have a preference for Schemes over Common Lisp. With all that out of the way... I would say Common Lisp/SBCL. Let me explain

  1. SBCL Is by far the most common of the CL implementations in 2021. It will be the easiest to find help for, easiest to find videos about, and many major open source CL projects are written using SBCL
  2. Download a binary directly from the website http://www.sbcl.org/platform-table.html (even for M1 macs) to get up and running (easy to get started)
  3. Great video for setting up Emacs + Slime + Quick Lisp https://www.youtube.com/watch?v=VnWVu8VVDbI

Now as to why Common Lisp over Scheme