Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View y2q-actionman's full-sized avatar
🕹️
👾👾👾👾👾👾👾👾👾

Yokota Yuki y2q-actionman

🕹️
👾👾👾👾👾👾👾👾👾
View GitHub Profile
@y2q-actionman
y2q-actionman / a_road_to_common_lisp_jp.md
Last active January 6, 2024 11:32
A Road to Common Lisp 翻訳

この文章は、 Steve Losh 氏の記事 "A Road to Common Lisp" の翻訳です。

原文はこちらです: http://stevelosh.com/blog/2018/08/a-road-to-common-lisp/


A Road to Common Lisp (Common Lisp への道)

これまで、「最近のCommon Lispをどう学ぶとよいでしょう?」と助言を求めるメールをたくさん受け取ってきました。そこで私は、これまでメールやソーシャルメディアに投稿した全てのアドバイスを書き下すことにしました。これが誰かに有益ならば幸いです。

;; 前置きとして…
;; どんな言語にもあると思いますが、 Common Lisp にも一般的なスタイルがあります。
;; まずは、それに目を通すことをおすすめします。
;;
;; Google Common Lisp Style Guide
;; en: https://google-styleguide.googlecode.com/svn/trunk/lispguide.xml
;; jp: http://lisphub.jp/doc/google-common-lisp-style-guide/
;;
;; Tutorial on Good Lisp Programming Style
;; en: http://www.norvig.com/luv-slides.ps
@y2q-actionman
y2q-actionman / test.lisp
Last active August 27, 2022 09:26
(eval-when (:compile-toplevel)) in (eval-when (:compile-toplevel))
#|
Some experiments to understand the example of CLHS eval-when explanations.
( http://clhs.lisp.se/Body/s_eval_w.htm#eval-when )
;;; #4: This always does nothing. It simply returns NIL.
(eval-when (:compile-toplevel)
(eval-when (:compile-toplevel)
(print 'foo4)))
|#
@y2q-actionman
y2q-actionman / coon_monster_ability.org
Last active May 23, 2022 06:16
サガフロ リマスター プレイ日記

所有:58/124

頭部(全13種)

  • [X] 牙
  • [X] 吸血
  • [X] クチバシ
  • [X] 催眠
  • [X] 死の凝視
  • [X] 石化凝視
@y2q-actionman
y2q-actionman / write_ltsv_using_cl_format.lisp
Created April 14, 2022 10:32
Writing LTSV using 'format' of Common Lisp.
(format t "~:{~A:~S~:^ ~}"
'((:foo "100") (:bar "200") (:baz 9999))) ; Using a list of lists, not an alist.
; => FOO:"100" BAR:"200" BAZ:9999
@y2q-actionman
y2q-actionman / agenda.org
Last active December 27, 2021 07:26
型宣言を付けたら遅くなった話

型宣言を付けたら遅くなった話

@y2q-actionman
y2q-actionman / feel_about_asdf.md
Last active October 8, 2021 02:56
Re: (ご意見募集)Common LispのASDF3のここが気に入らない・難しい に向けて

原典 : https://blog.3qe.us/entry/2019/04/15/194201

ASDF難しい

わかる。正直いって全然わからん。

どうでもいい実験を書くときや、手元で動けばいいスクリプトを書くときには、そもそも defsystem を書いたりしない。 「CL:LOAD で順に読む」というだけで十分なので。 (まあそもそも、 asdf がやってることも「いい感じに compile / load する」のだと考えられるが。)

@y2q-actionman
y2q-actionman / with-hq9+.lisp
Last active April 11, 2021 14:53
with-hq9+
(in-package :cl-user)
(defpackage :HQ9+
(:use #:cl)
(:shadow #:+) ; for avoiding package lock!!
(:export
#:HQ9+
#:with-HQ9+))
(in-package :HQ9+)
@y2q-actionman
y2q-actionman / logical_pathname-translations-test.lisp
Last active April 8, 2021 14:46
Logical Pathname Translations の実験
(setf (logical-pathname-translations "asdf-cache")
`(("**;*.*.*"
,(merge-pathnames
(make-pathname :directory '(:relative :wild-inferiors))
asdf:*user-cache*))))
; => (("**;*.*.*" #P"/Users/yokota/.cache/common-lisp/acl-10.1s-macosx-x64/**/"))
(translate-logical-pathname "asdf-cache:bar;baz;mum.quux")
; => #P"/Users/yokota/.cache/common-lisp/acl-10.1s-macosx-x64/bar/baz/mum.quux"
@y2q-actionman
y2q-actionman / advent-2014-12-11.org
Last active January 17, 2021 07:08
Lisp Advent Calendar 2014-12-11

C系言語から Common Lisp に移行した時に戸惑ったこと

この文章は、 Lisp Advent Calendar 2014 の 12/11 担当分の記事として書かれました。

概要

C系言語から Common Lisp に移行した時、「どうして Lisp はこんなに書き辛いんだ?」と思っていたことを記憶しています。