{"id":309,"date":"2017-01-11T22:07:24","date_gmt":"2017-01-11T13:07:24","guid":{"rendered":"http:\/\/www.raythebm.net\/weblog\/?p=309"},"modified":"2017-01-12T00:36:55","modified_gmt":"2017-01-11T15:36:55","slug":"%e3%81%84%e3%81%8d%e3%81%aa%e3%82%8a-slime-%e3%81%8c%e5%8b%95%e3%81%8b%e3%81%aa%e3%81%8f%e3%81%aa%e3%81%a3%e3%81%9f%e4%bb%b6","status":"publish","type":"post","link":"https:\/\/www.raythebm.net\/weblog\/archives\/309","title":{"rendered":"\u3044\u304d\u306a\u308a slime \u304c\u52d5\u304b\u306a\u304f\u306a\u3063\u305f\u4ef6"},"content":{"rendered":"<p>\u539f\u56e0\u306f\u4e0d\u660e\u306a\u304c\u3089\u3001slime \u304c\u6025\u306b\u30a8\u30e9\u30fc\u3067\u52d5\u304b\u306a\u304f\u306a\u3063\u3066\u3057\u307e\u3063\u305f\u306e\u3067\u7d4c\u904e\u3092\u30e1\u30e2\u3002<br \/>\n(\u601d\u3044\u51fa\u3057\u306a\u304c\u3089\u66f8\u3044\u3066\u3044\u308b\u306e\u3067\u3001\u3042\u3084\u3075\u3084\u306a\u90e8\u5206\u3042\u308a)<\/p>\n<p>\u691c\u7d22\u3057\u305f\u30b5\u30a4\u30c8\u3092\u898b\u306a\u304c\u3089 popwin \u306e\u8a2d\u5b9a\u3084\u3089 ac-slime \u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3084\u3089\u3092\u3057\u3066\u3044\u305f\u3089\u3001\u3042\u308b\u6642 M-x slime \u3059\u308b\u3068\u30a8\u30e9\u30fc\u3059\u308b\u3088\u3046\u306b\u306a\u3063\u3066\u3057\u307e\u3063\u305f\u3002<br \/>\n\u203b\u6b63\u78ba\u306b\u306f swank \u30b5\u30fc\u30d0\u3078\u306e\u63a5\u7d9a\u5f85\u3061\u306e\u307e\u307e\u306b\u306a\u3063\u305f\u3002\u8868\u793a\u901a\u308a\u306b M-x slime-abort-connection \u3059\u308b\u3068\u30ad\u30e3\u30f3\u30bb\u30eb\u3055\u308c\u3066 REPL \u306b\u306f\u5165\u308c\u308b\u3002<\/p>\n<p>\u305d\u306e\u72b6\u614b\u3067 <code>(require 'asdf) (require 'alexandria)<\/code> \u3059\u308b\u3068 \/usr\/share\/common-lisp\/source\/cl-asdf\/build\/asdf-TMP.lisp \u304c FILE OPEN \u30a8\u30e9\u30fc\u306b\u306a\u3063\u3066\u30c7\u30d0\u30c3\u30ac\u306b\u5165\u3063\u3066\u3057\u307e\u3063\u305f\u3002<br \/>\nemacs \u3092\u7d42\u4e86\u3057\u3066\u30b3\u30f3\u30bd\u30fc\u30eb\u304b\u3089\u76f4\u63a5 sbcl \u3067\u5b9f\u884c\u3057\u3066\u3082\u540c\u3058\u30a8\u30e9\u30fc\u306b\u306a\u3063\u305f\u3002<\/p>\n<p>~\/.cache\/common-lisp\/ \u3092\u524a\u9664\u3057\u3066\u307f\u305f\u304c\u76f4\u3089\u305a\u3002<br \/>\napt \u3067 slime \u3068 cl-asdf \u3092\u518d\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u3082\u30c0\u30e1\u3002<\/p>\n<p>\u4ee5\u524d\u306b\u4f5c\u6210\u3057\u305f\u4ee5\u4e0b\u306e\u30d5\u30a1\u30a4\u30eb\u3092\u524a\u9664\u3057\u305f\u3089 slime \u306f\u8d77\u52d5\u3059\u308b\u3088\u3046\u306b\u306a\u3063\u305f\u3002<br \/>\n<code><\/p>\n<pre>;;;; ~\/.config\/common-lisp\/source-registry.conf\r\n(:source-registry\r\n  (:tree \"~\/quicklisp\/dists\/\")\r\n  :INHERIT-CONFIGURATION)\r\n<\/pre>\n<p><\/code><br \/>\n<code>require<\/code> \u3082\u30a8\u30e9\u30fc\u3057\u306a\u304f\u306a\u3063\u305f\u2026 \u306f\u305a\u3002\u305f\u3060\u3001\u76f8\u5909\u3089\u305a <code>(require 'alexandria)<\/code> \u306e\u8fd4\u308a\u5024\u304c nil \u3060\u3063\u305f\u306e\u3067\u30c0\u30e1\u304b\u3068\u601d\u3063\u3066\u4f5c\u696d\u3092\u7d99\u7d9a\u3057\u305f\u3002<br \/>\n\u3053\u306e\u6642\u70b9\u3067\u6700\u7d42\u7d50\u679c\u3068\u540c\u3058\u72b6\u614b\u306b\u623b\u3063\u3066\u3044\u305f\u306e\u304b\u3082\u3057\u308c\u306a\u3044\u3002<br \/>\n<code>(require 'asdf)<\/code> \u306e\u8fd4\u308a\u5024\u304c nil \u3060\u3063\u305f\u304b\u306f\u899a\u3048\u3066\u3044\u306a\u3044\u3002<\/p>\n<p>\u305d\u306e\u5f8c\u3001~\/quicklisp\/ \u3082\u524a\u9664\u3057\u3066 slime \u304b\u3089 <code>(load \"\/usr\/share\/cl-quicklisp\/quicklisp.lisp\") (quicklisp-quickstart:install)<\/code> \u3067\u518d\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u307f\u305f\u3002<br \/>\n\u3053\u3053\u3067 <code>(ql:quickload 'alexandria)<\/code> \u3059\u308b\u3068\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u304c\u884c\u308f\u308c\u3001<code>(alexandria:lastcar '(a b c))<\/code> \u304c\u52d5\u4f5c\u3057\u305f\u3002<br \/>\n\u305d\u306e\u307e\u307e\u66f4\u306b <code>(ql:add-to-init-file)<\/code> \u3092\u5b9f\u884c\u3057\u3066\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb(sbcl \u3060\u3063\u305f\u306e\u3067 ~\/.sbclrc)\u306b quicklisp \u306e\u81ea\u52d5\u30ed\u30fc\u30c9\u3092\u8a2d\u5b9a\u3057\u305f\u3002<br \/>\n\u4e00\u65e6 emacs \u3092\u518d\u8d77\u52d5\u3057\u3001<code>require<\/code> \u3059\u308b\u3082\u8fd4\u308a\u5024\u306f nil \u306e\u307e\u307e\u3002<br \/>\n\u30b3\u30f3\u30bd\u30fc\u30eb\u304b\u3089 sbcl \u3067\u3084\u3063\u3066\u3082\u540c\u3058\u304f nil \u304c\u8fd4\u3063\u3066\u3044\u305f\u304c\u3001\u4f55\u306e\u6c17\u306a\u3057\u306b <code>alexandria:lastcar<\/code> \u3092\u3084\u3063\u3066\u307f\u305f\u3089\u52d5\u4f5c\u3057\u305f\u3002<\/p>\n<p>\u3075\u3068\u601d\u3044\u4ed8\u3044\u3066 .sbclrc \u306e quicklisp \u8a2d\u5b9a\u3092\u30b3\u30e1\u30f3\u30c8\u30a2\u30a6\u30c8\u3057\u3066\u304b\u3089\u3001\u30b3\u30f3\u30bd\u30fc\u30eb\u3067 <code>(require 'alexandria)<\/code> \u3057\u305f\u3089\u30a8\u30e9\u30fc\u306b\u306a\u3063\u305f\u3002<br \/>\n\u305d\u306e\u307e\u307e <code>(load \"~\/quicklisp\/setup.lisp\")<\/code> \u3057\u305f\u3068\u3053\u308d <code>alexandria:lastcar<\/code> \u304c\u52d5\u4f5c\u3057\u305f\u3002<\/p>\n<p>quicklisp \u8a2d\u5b9a\u3092\u30b3\u30e1\u30f3\u30c8\u30a2\u30a6\u30c8\u3057\u305f\u307e\u307e\u306e\u72b6\u614b\u3067 ~\/.config\/common-lisp\/source-registry.conf \u3092\u30a8\u30e9\u30fc\u524d\u306b\u623b\u3057\u3066\u307f\u305f\u3002<br \/>\n\u305d\u3046\u3057\u305f\u3089 <code>(require 'alexandria)<\/code> \u304c\u30a8\u30e9\u30fc\u305b\u305a\u306b nil \u3092\u8fd4\u3057\u3001<code>alexandria:lastcar<\/code> \u3082\u52d5\u4f5c\u3059\u308b\u3088\u3046\u306b\u306a\u3063\u305f\u3002<\/p>\n<p>\u5143\u3005\u306f .sbclrc \u306e quicklisp \u8a2d\u5b9a\u306f\u30b3\u30e1\u30f3\u30c8\u30a2\u30a6\u30c8\u3055\u308c\u3066\u3044\u305f\u306e\u3067\u3001\u7d50\u5c40\u30a8\u30e9\u30fc\u524d\u3068\u540c\u3058\u8a2d\u5b9a\u306b\u623b\u3063\u305f\u3053\u3068\u306b\u306a\u308b\u3002<br \/>\n\u7d4c\u904e\u304b\u3089\u898b\u308b\u3068\u30ad\u30e3\u30c3\u30b7\u30e5\u3092\u58ca\u3057\u3066\u3044\u305f\u78ba\u7387\u304c\u9ad8\u3044\u304c\u3001\u554f\u984c\u306e\u539f\u56e0\u306f\u7279\u5b9a\u3067\u304d\u305a\u2026<br \/>\n\u3068\u308a\u3042\u3048\u305a\u52d5\u4f5c\u3059\u308b\u306e\u3067\u3001\u307e\u3042\u3044\u3044\u304b\u3068\u3002<\/p>\n<p>\u6700\u7d42\u7684\u306b\u306f\u30b3\u30f3\u30bd\u30fc\u30eb\u3067\u3082 slime \u3067\u3082\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u52d5\u3044\u3066\u3044\u308b\u3002<br \/>\n(\u884c\u982d\u306b\u300c?>\u300d\u304c\u3042\u308b\u306e\u304c\u30d7\u30ed\u30f3\u30d7\u30c8\u3068\u5165\u529b\u5185\u5bb9\u3067\u3001\u6b21\u306e\u30d7\u30ed\u30f3\u30d7\u30c8\u307e\u3067\u304c\u51fa\u529b)<br \/>\n<code><br \/>\n?> (require 'asdf)<br \/>\n(\"ASDF\" \"asdf\" \"UIOP\" \"uiop\")<\/p>\n<p>?> (alexandria:lastcar '(a b c))<br \/>\n\u203b\u4ee5\u4e0b\u306e\u30a8\u30e9\u30fc\u304c\u767a\u751f\u3057\u305f<br \/>\ndebugger invoked on a SB-INT:SIMPLE-READER-PACKAGE-ERROR in thread<br \/>\n#<THREAD \"main thread\" RUNNING {100399C4A3}>:<br \/>\n  Package ALEXANDRIA does not exist.<\/p>\n<p>    Stream: #<SYNONYM-STREAM :SYMBOL SB-SYS:*STDIN* {10001CEF83}><\/p>\n<p>Type HELP for debugger help, or (SB-EXT:EXIT) to exit from SBCL.<\/p>\n<p>restarts (invokable by number or by possibly-abbreviated name):<br \/>\n  0: [ABORT] Exit debugger, returning to top level.<\/p>\n<p>(SB-IMPL::READER-FIND-PACKAGE \"ALEXANDRIA\" #<SYNONYM-STREAM :SYMBOL SB-SYS:*STDIN* {10001CEF83}>)<\/p>\n<p>\u203b 0 \u3067\u30c7\u30d0\u30c3\u30ac\u3092\u7d42\u4e86\u3057\u3066\u30c8\u30c3\u30d7\u30ec\u30d9\u30eb\u306b\u623b\u308b<\/p>\n<p>?> (require 'alexandria)<br \/>\nnil<\/p>\n<p>?> (alexandria:lastcar '(a b c))<br \/>\nc<br \/>\n<\/code><\/p>\n<p>\u4ee5\u4e0a\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u539f\u56e0\u306f\u4e0d\u660e\u306a\u304c\u3089\u3001slime \u304c\u6025\u306b\u30a8\u30e9\u30fc\u3067\u52d5\u304b\u306a\u304f\u306a\u3063\u3066\u3057\u307e\u3063\u305f\u306e\u3067\u7d4c\u904e\u3092\u30e1\u30e2\u3002 (\u601d\u3044\u51fa\u3057\u306a\u304c\u3089\u66f8\u3044\u3066\u3044\u308b\u306e\u3067\u3001\u3042\u3084\u3075\u3084\u306a\u90e8\u5206\u3042\u308a) \u691c\u7d22\u3057\u305f\u30b5\u30a4\u30c8\u3092\u898b\u306a\u304c\u3089 popwin \u306e\u8a2d\u5b9a\u3084\u3089 ac-slime \u306e\u30a4\u30f3\u30b9\u30c8\u30fc &hellip; <a href=\"https:\/\/www.raythebm.net\/weblog\/archives\/309\">\u7d9a\u304d\u3092\u8aad\u3080 <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[7,19,14,23,46],"class_list":["post-309","post","type-post","status-publish","format-standard","hentry","category-it","tag-emacs","tag-lisp","tag-memo","tag-programming","tag-46"],"_links":{"self":[{"href":"https:\/\/www.raythebm.net\/weblog\/wp-json\/wp\/v2\/posts\/309","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.raythebm.net\/weblog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.raythebm.net\/weblog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.raythebm.net\/weblog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.raythebm.net\/weblog\/wp-json\/wp\/v2\/comments?post=309"}],"version-history":[{"count":7,"href":"https:\/\/www.raythebm.net\/weblog\/wp-json\/wp\/v2\/posts\/309\/revisions"}],"predecessor-version":[{"id":316,"href":"https:\/\/www.raythebm.net\/weblog\/wp-json\/wp\/v2\/posts\/309\/revisions\/316"}],"wp:attachment":[{"href":"https:\/\/www.raythebm.net\/weblog\/wp-json\/wp\/v2\/media?parent=309"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.raythebm.net\/weblog\/wp-json\/wp\/v2\/categories?post=309"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.raythebm.net\/weblog\/wp-json\/wp\/v2\/tags?post=309"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}