(require 'sb-simd)
(defpackage :simd-pack-user
(:use :sb-simd-avx :cl))
(in-package :simd-pack-user)
I'm assuming you are referring to the following operation:
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 distribution@radiofrance.com. | |
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 |
#!/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 |
(defun print-dependency-graph (system-name &key (level 0)) | |
(loop repeat level | |
do (format t " ")) | |
(format t "~A~%" system-name) | |
(typecase system-name | |
((or string symbol) | |
(let ((system (asdf/system:find-system system-name))) | |
(loop for dep in (asdf/system:system-depends-on system) | |
do (print-dependency-graph dep :level (1+ level))))))) |
data_uri = open("sample.png", "rb").read().encode("base64").replace("\n", "") | |
# HTML Image Element | |
img_tag = '<img alt="" src="data:image/png;base64,{0}">'.format(data_uri) | |
print img_tag | |
# CSS Background Image | |
css = 'background-image: url(data:image/png;base64,{0});'.format(data_uri) | |
print css |
If programming is more than just a means of getting things done for you, then Common Lisp is for you!
Table of Contents
The ReadLine Wrapper (rlwrap) utility is actually a must have when you want to run SBCL from the command line, because by default, SBCL in the terminal:
[[[A
instead), nor any default readline keybindings,
the ones we find in bash et all: C-e, C-a, C-u, C-k, Alt-b, Alt-f etc.We can actually fix this with rlwrap options.
Numpy is great, in fact it’s one of the things that pulls people to Python. But can it be better?
Common Lisp is great, in fact it’s one of the things that pulls people to Common Lisp. But can it be better? Indeed Python can’t be better than Common Lisp without it becoming another Lisp. The closest we have is Julia. And while it gets some things right, Julia lacks certain features that limit the goodness of a numerical computing library.
All combined, below I will highlight some of the features that I wish a numerical computing library or ecosystem had. I also want to request the readers for their own inputs about how things can be even better. The goal amidst this is solely to keep things numpy-like. I do not intend to - nor have the background to - make a DSL like April or Petalisp.
While I take some interest in performance and numerical computing, I have m