[a / b / c / d / e / f / g / gif / h / hr / k / m / o / p / s / t / u / v / vg / vm / vmg / vr / vrpg / vst / w / wg] [i / ic] [r9k / s4s / vip] [cm / hm / lgbt / y] [3 / aco / adv / an / bant / biz / cgl / ck / co / diy / fa / fit / gd / hc / his / int / jp / lit / mlp / mu / n / news / out / po / pol / pw / qst / sci / soc / sp / tg / toy / trv / tv / vp / vt / wsg / wsr / x / xs] [Settings] [Search] [Mobile] [Home]
Board
▼ Settings Mobile Home
/g/ - Technology

Name
Options
Comment
Verification
4chan Pass users can bypass this verification. [Learn More] [Login]
File
  • Please read the Rules and FAQ before posting.
  • You may highlight syntax and preserve whitespace by using [code] tags.

08/21/20New boards added: /vrpg/, /vmg/, /vst/ and /vm/
05/04/17New trial board added: /bant/ - International/Random
10/04/16New board for 4chan Pass users: /vip/ - Very Important Posts
[Hide] [Show All]


[Advertise on 4chan]


File: solar eclipse.jpg (166 KB, 1000x1000)
166 KB JPG
>Lisp is a family of programming languages with a long history and a distinctive parenthesized prefix notation. There are many dialects of Lisp, including Common Lisp, Scheme, Clojure and Elisp.

>Emacs is an extensible, customizable, self-documenting free/libre text editor and computing environment, with a Lisp interpreter at its core.

>Emacs Resources
https://gnu.org/s/emacs
https://github.com/emacs-tw/awesome-emacs
https://github.com/systemcrafters/crafted-emacs

>Learning Emacs
C-h t (Interactive Tutorial)
https://emacs-config-generator.fly.dev
https://systemcrafters.net/emacs-from-scratch
http://xahlee.info/emacs
https://emacs.tv

>Browse imageboards in Emacs Org-Mode
https://github.com/eNotchy/4g

>Emacs Distros
https://github.com/caisah/emacs.dz

>Elisp
Docs: C-h f [function] C-h v [variable] C-h k [keybinding] C-h m [mode] M-x ielm [REPL]
https://gnu.org/s/emacs/manual/eintr.html
https://gnu.org/s/emacs/manual/elisp.html
https://github.com/emacs-tw/awesome-elisp

>Common Lisp
https://almightylisp.com
https://lispcookbook.github.io/cl-cookbook
https://cs.cmu.edu/~dst/LispBook
https://gigamonkeys.com/book
https://lisp-docs.github.io
https://awesome-cl.com

>Scheme
https://scheme.org
https://standards.scheme.org
https://go.scheme.org/awesome
https://research.scheme.org/lambda-papers

>Clojure
https://clojure.org
https://clojure-doc.org
https://clojure.land
https://www.clojure-toolbox.com
https://mooc.fi/courses/2014/clojure
https://jafingerhut.github.io/cheatsheet/clojuredocs/cheatsheet-tiptip-cdocs-summary.html

>Other
https://github.com/dundalek/awesome-lisp-languages

>Guix
https://guix.gnu.org
https://nonguix.org
https://systemcrafters.net/craft-your-system-with-guix
https://futurile.net/resources/guix
https://github.com/franzos/awesome-guix

>SICP/HtDP
https://web.mit.edu/6.001/6.037/sicp.pdf
https://htdp.org

>More Lisp Resources
https://lisp.nexus
https://rentry.org/lispresources

(set! thread-links '(>>>/g/λ >>>/g/lisp))
(set! prev-thread >>110217194)
>>
File: joe@gnu-framework.png (327 KB, 1386x923)
327 KB PNG
Guix
>>
Clojure

https://www.youtube.com/watch?v=P-p0H8f8beQ
>>
Scheme

https://www.youtube.com/watch?v=0jvN_qWsECU
>>
Coalton

https://www.youtube.com/watch?v=xuSrsjqJN4M
>>
>Clojure: The Documentary
https://www.youtube.com/watch?v=Y24vK_QDLFg
>>
Elisp

(cl-defun block-print (pattern &key (string "NIGGER") (times 3))
"Use STRING as a pixel and generate a larger string from PATTERN."
(let* ((blank (make-string (length string) 32)))
(apply #'append
(seq-map (lambda (row)
(seq-map (lambda (n)
(seq-map (lambda (pixel)
(if (= pixel 1)
string
blank))
row))
(number-sequence 1 times)))
pattern))))

(setq art (block-print '((1 0 1 1 1)
(1 0 1)
(1 1 1 1 1)
(0 0 1 0 1)
(1 1 1 0 1))))


Should block-print return the joined result?
(string-join (cl-loop for row in art
collect (string-join `(,@(cl-loop for col in row
collect col)
"\n"))))
>>
>>110436592
(string "N-WORD")

>>>/pol/
>>
File: femcel diplomacy.png (21 KB, 700x600)
21 KB PNG
>>110436748
>limp-wristed faggot who won't say nigger on 4chan
>>
>>110436870
>won't say the n-word
There is an entire board for that. That is enough.
>>
File: 1776384407443.jpg (243 KB, 1920x804)
243 KB JPG
>>110435940
>>
File: 1788295502178.mp4 (1.52 MB, 960x720)
1.52 MB
1.52 MB MP4
;; tinyscheme for gimp
;; mr.mxyzptlk
;; >>109705738
(define target-image (vector-ref (car (gimp-get-images)) 0))
(define base-layer (vector-ref (car (gimp-image-get-selected-layers target-image)) 0))

(let loop ((i 0))
(when (< i 360)
(let ((clone (car (gimp-layer-copy base-layer))))
(gimp-image-insert-layer target-image clone 0 -1)
(gimp-item-transform-rotate clone (* i (/ (* 2 *pi*) 360)) FALSE 900 475))
(loop (+ i 1))))
>>
>>110437020
There is an entire site for (You)
>>>/r/eddit
>>
File: 1788589853994.png (455 KB, 2062x1424)
455 KB PNG
Glisp
https://glisp.app/
https://github.com/baku89/glisp
>>
>>110437237
>r/lisp
>r/common_lisp
>r/scheme
>r/racket
>r/clojure
>r/emacs
Any others?
>>
File: Mirai (software).png (221 KB, 1500x1200)
221 KB PNG
>Software written in Common Lisp was used in the production of the Lord of the Rings
Anyone knows more about this?
>>
>>110437558
https://franz.com/success/customer_apps/animation_graphics/izware.lhtml
>>
>>110436592
Even when writing Common Lisp, I refer to the Elisp docs for cl-loop to help me use CL's loop. They're not exactly the same, but they're very close.
(info "(cl) Loop Facility")

https://www.gnu.org/software/emacs/manual/html_node/cl/Loop-Facility.html
>>
>>110436592
(cl-defun block-print (pattern string &optional (times 1) &aux s)
"Use STRING as a pixel and generate a larger string from PATTERN."
(let ((b (make-string (length string) ?\ )))
(while-let ((row (pop pattern)))
(while-let ((col (pop row)))
(cl-callf2 nconc (make-list times (if (= col 1) string b)) s))
(push "\n" s))
(apply #'concat (nreverse s))))
>>
File: 2026-11-26_04-20-44.png (44 KB, 1513x651)
44 KB PNG
>>110439629
That's an interesting take on it. I don't think I've ever seen cl-callf2 before. It's certainly more compact than the original too. However, there's one difference is the way `times` is used. The original used it for height while you used it for width.
>>
>>110439811
(cl-defun block-print (pattern string &optional (times 1) &aux s)
"Use STRING as a pixel and generate a larger string from PATTERN."
(let ((b (make-string (length string) ?\ )))
(dolist (row pattern (apply #'concat (nreverse s)))
(let ((nrow (list "\n")))
(dolist (c row) (push (if (= c 1) string b) (cdr nrow)))
(dotimes (_ times) (cl-callf2 append nrow s))))))
>>
>>110440273
Very nice.
Also, TIL what &aux does.
(info "(cl) Argument Lists")


> The fifth section of the argument list consists of “auxiliary
>variables”. These are not really arguments at all, but simply variables
>which are bound to ‘nil’ or to the specified INITFORMS during execution
>of the function. There is no difference between the following two
>functions, except for a matter of stylistic taste:

     (cl-defun foo (a b &aux (c (+ a b)) d)
BODY)

(cl-defun foo (a b)
(let ((c (+ a b)) d)
BODY))
>>
>>110244791
reminder



[Advertise on 4chan]

Delete Post: [File Only] Style:
[Disable Mobile View / Use Desktop Site]

[Enable Mobile View / Use Mobile Site]

All trademarks and copyrights on this page are owned by their respective parties. Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.