1 (use-modules (haunt asset)
9 (haunt reader commonmark)
15 (define my-scheme 'https)
16 (define my-domain "bandali.eu.org")
18 (string-append (symbol->string my-scheme) "://" my-domain))
20 (define (stylesheet name)
21 `(link (@ (rel "stylesheet")
22 (href ,(string-append "/" name ".css")))))
24 (define* (aa content #:optional (uri content) . title)
25 `(a (@ (href ,uri) (title ,(apply string-append title))) ,content))
27 (define* (base-layout site body #:key title)
31 (meta (@ (charset "utf-8")))
32 (title ,(if title (string-append title " — " (site-title site))
33 "Amin Bandali’s Personal Site"))
35 ,(stylesheet "style"))
40 "Copyright 2016–2019 Amin Bandali. See " ,(aa "license.html")
41 " for license conditions. Please copy and share."))))))
43 (define my-date-format "~B ~d, ~Y")
45 (define (my-post-template post)
47 (h1 ,(post-ref post 'title))
48 (address "By " ,(aa (post-ref post 'author) "/")
49 " <" ,(post-ref post 'email) ">")
51 ,(date->string (post-date post) my-date-format)))
53 (p (@ (class "muted inbox"))
54 "Have a question or comment? Start a discussion in my "
55 ,(aa "public inbox" "https://lists.sr.ht/~bandali/public-inbox")
56 " by sending an email to "
57 ,(aa "~bandali/public-inbox@lists.sr.ht"
58 "mailto:~bandali/public-inbox@lists.sr.ht")
60 " [" ,(aa "mailing list etiquette"
61 "https://man.sr.ht/lists.sr.ht/etiquette.md") "]")
64 (define (my-collection-template site title posts prefix)
65 (define (post-uri post)
66 (string-append (or prefix "") "/"
67 (site-post-slug site post) ".html"))
73 ,(aa (post-ref post 'title) (post-uri post))
75 ,(date->string (post-date post) my-date-format)))
79 (theme #:name "bandali"
81 (lambda (site title body)
82 (base-layout site body
84 #:post-template my-post-template
85 #:collection-template my-collection-template))
87 (define (static-page title file-name body)
90 (with-layout bandali-theme site title body)
93 (define (index-material site posts)
95 (h1 (@ (style "font-size: 0;"))
97 (p (@ (style "margin-top: 0;"))
99 ,(aa "Amin Bandali" "images/bandali-with-rms.jpg"
100 "photo of bandali with rms wearing a "
101 "“pay cash don’t be tracked” pin")
102 ". I’m a graduate student at "
103 ,(aa "WatForm" "https://watform.uwaterloo.ca")
104 " at University of Waterloo, supervised by "
105 ,(aa "Dr. Nancy Day" "https://cs.uwaterloo.ca/~nday/")
106 ". The main goal of my research is improving "
107 (strong "software and systems reliability")
108 " through application of " (em "formal methods") ".")
109 (p "My research at WatForm focuses on formal logic, model "
110 "checking, and verification. I’m also interested in "
111 "programming languages, theorem provers, and their "
112 "type systems. You may wish to view my academic "
113 ,(aa "curriculum vitae" "bandali-cv.html") ".")
114 (p (@ (class "notice"))
115 (strong "SE 212 students: ")
116 "see " ,(aa "here" "se212-f19/") " for slides and other "
117 "material from the tutorials.")
118 (p "On the side, I dabble in "
119 ,(aa "Lean" "https://leanprover.github.io") " and enjoy "
120 ,(aa "hacking" "https://stallman.org/articles/on-hacking.html")
123 "https://www.gnu.org/software/emacs/manual/elisp.html")
124 ". I’m a " ,(aa "Free Software"
125 "https://www.gnu.org/philosophy/free-sw.html")
127 ,(aa "maintainer" "https://www.gnu.org/people/#bandali")
130 "https://www.gnu.org/people/webmeisters.html#bandali")
131 ", and an " ,(aa "associate member"
132 "https://www.fsf.org/associate/")
133 " of the " ,(aa "FSF" "https:///www.fsf.org"
134 "Free Software Foundation")
135 ". I co-host the " ,(aa "Emacs.el" "https://emacsel.com")
136 " podcast with " ,(aa "Daniel Gopar" "https://www.pygopar.com")
137 ", and organize " ,(aa "EmacsConf" "https://emacsconf.org")
138 " with help from many wonderful people. I am also a member of"
139 " the Systems Committee for the "
140 ,(aa "CSC" "https://csclub.uwaterloo.ca"
141 "Computer Science Club of the University of Waterloo")
143 (p "See my " ,(aa "contact" "contact.html") " page for how to "
145 (h2 (@ (id "papers")) "Papers")
147 (dt "A Comparison of the Declarative Modelling Languages B, DASH,
150 " [ " ,(aa "pdf" "papers/modre2018-declarative.pdf") " | "
151 ,(aa "bib" "papers/modre2018-declarative.bib") " ]"))
153 ,(aa "Amin Bandali" my-url) ", "
154 ,(aa "Nancy A. Day" "https://cs.uwaterloo.ca/~nday/") ", "
157 (em "2018 IEEE 8th International Model-Driven Requirements"
158 " Engineering Workshop (MoDRE)")
160 "Copyright © 2018 IEEE. All Rights Reserved. Sadly."))
161 (h2 (@ (id "talks")) "Talks")
164 "The Magic of Specifications and Type Systems"
167 ,(aa "slides" "talks/cucsc-2017-slides.pdf"
168 "presented at the Canadian Undergraduate Computer Science"
169 " Conference 2017,\n"
170 "University of Toronto, Canada, June 15–17, 2017")
172 ,(aa "poster" "talks/eecs4080-poster.pdf"
173 "presented at the Lassonde Undergraduate Summer Student"
174 " Research Conference,\n"
175 "York University, Toronto, Canada, August 15, 2017")
177 (dd ,(aa "Amin Bandali" my-url) ", "
178 ,(aa "Simon Hudon" "https://github.com/cipher1024") ", "
179 ,(aa "Jonathan S. Ostroff"
180 "http://www.cse.yorku.ca/~jonathan/")))
181 (h2 (@ (id "projects")) "Projects")
182 (p "Below are a number of free software projects I have worked "
185 (dt ,(aa "george-mode" "https://git.sr.ht/~bandali/george-mode"))
186 (dd "Emacs major mode for editing George files")
187 (dt ,(aa "alloy-catalyst"
188 "https://git.uwaterloo.ca/bandali/alloy-catalyst"))
189 (dd "Framework for performance analysis of Alloy models")
190 (dt ,(aa "unitb-web" "https://github.com/unitb/unitb-web"))
191 (dd "Web interface for Unit-B")
192 (dt ,(aa "tex2png-hs" "https://github.com/unitb/tex2png-hs"))
193 (dd "Library and CLI for converting TeX and LaTeX to PNG "
195 (h2 (@ (id "notes")) "Notes")
197 (@ (class "post-list"))
201 (define (post-uri post)
203 (site-post-slug site post) ".html"))
205 (td ,(aa (post-ref post 'title) (post-uri post)))
206 (td (@ (style "font-size: 0.875em;"))
207 ,(date->string (post-date post) my-date-format))))
208 (take-up-to 10 (posts/reverse-chronological posts)))))))
210 (define (index-page site posts)
213 (base-layout site (index-material site posts))
218 "Licensing Information"
220 `((h1 "License information for " ,my-domain)
221 (p "I strongly believe in "
223 "https://questioncopyright.org/what_is_free_culture")
224 " and that all creative works everywhere should be "
225 ,(aa "free" "https://freedomdefined.org/Definition") ".")
226 (p "Unless otherwise noted material on this site is licensed "
227 "under the GNU General Public License as published by the "
228 "Free Software Foundation, either version 3 of the License, "
229 "or (at your option) any later version. A copy of the "
230 "license is included at " ,(aa "gpl-3.0.html") ".")
231 (p "Some resources on free software and licenses:")
233 (li ,(aa "What is free software?"
234 "https://www.gnu.org/philosophy/free-sw.html"))
235 (li ,(aa "Various Licenses and Comments about Them"
236 "https://www.gnu.org/licenses/license-list.html"))
237 (li ,(aa "Proprietary Software Is Often Malware"
238 "https://www.gnu.org/proprietary/proprietary.html"))))))
242 "Contact Information"
244 `((h1 "Contact information")
245 (p "Email is by far my preferred method of communication. I may"
246 " be contacted at any of the following addresses (choose the"
247 " most closely related):")
249 (li "bandali@gnu.org")
250 (li "bandali@uwaterloo.ca")
251 (li "bandali@csclub.uwaterloo.ca"))
252 (p "If you want to send me GPG-encrypted mail, you can use my "
253 ,(aa "public key" "bandali-pubkey.txt") " with the"
255 (code "BE62 7373 8E61 6D6D 1B3A 08E8 A21A 0202 4881 6103")
261 (td "bandali on " ,(aa "freenode" "https://freenode.net") ", "
262 ,(aa "moznet" "https://wiki.mozilla.org/IRC") ", and "
263 ,(aa "oftc" "https://www.oftc.net")))
266 (td ,(aa "bandali@member.fsf.org"
267 "xmpp:bandali@member.fsf.org")))
270 (td ,(aa "@bandali:matrix.org"
271 "https://matrix.to/#/@bandali:matrix.org")))
274 (td ,(aa "@bandali@pleroma.site"
275 "https://pleroma.site/bandali")))))
277 (p "You may also find me at a few other places online. Stricken"
278 " through accounts are those I don’t use anymore, unless"
279 " absolutely necessary.")
281 (li ,(aa "bandali" "https://libreplanet.org/wiki/User:Bandali")
283 (li ,(aa "bandali" "https://emacsconf.org/bandali")
285 (li ,(aa "bandali" "https://savannah.gnu.org/users/bandali")
287 (li ,(aa "bandali" "https://git.sr.ht/~bandali")
289 (li ,(aa "bandali" "https://lobste.rs/u/bandali")
291 (li ,(aa "bandali" "https://hackage.haskell.org/user/bandali")
293 (li ,(aa "bandali" "https://gitlab.com/bandali")
296 "https://news.ycombinator.com/user?id=bandali")
298 (li ,(aa "bandali" "https://www.reddit.com/u/bandali")
300 (li (del ,(aa "bandali0" "https://github.com/bandali0")
302 (li (del ,(aa "bandali0" "https://twitter.com/bandali0")
305 (site #:title "Amin Bandali"
306 ;; TODO: uncomment after new haunt release
307 ;; #:scheme my-scheme
310 '((author . "Amin Bandali")
311 (email . "bandali@gnu.org")
312 (domain . my-domain))
313 #:readers (list commonmark-reader)
314 #:builders (list (blog #:theme bandali-theme
316 `(("Notes" "notes.html"
317 ,posts/reverse-chronological)))
320 #:file-name "feed.atom")
324 #:file-name "feed.rss")
327 (static-directory "static" "")))