| 1 | (use-modules (haunt asset) |
| 2 | (haunt builder blog) |
| 3 | (haunt builder atom) |
| 4 | (haunt builder assets) |
| 5 | (haunt builder rss) |
| 6 | (haunt html) |
| 7 | (haunt page) |
| 8 | (haunt post) |
| 9 | (haunt reader commonmark) |
| 10 | (haunt site) |
| 11 | (haunt utils) |
| 12 | (ice-9 match) |
| 13 | (srfi srfi-19)) |
| 14 | |
| 15 | (define my-scheme 'https) |
| 16 | (define my-domain "bandali.eu.org") |
| 17 | (define my-url |
| 18 | (string-append (symbol->string my-scheme) "://" my-domain)) |
| 19 | |
| 20 | (define my-date-format "~B ~e, ~Y") |
| 21 | |
| 22 | (define (stylesheet name) |
| 23 | `(link (@ (rel "stylesheet") |
| 24 | (href ,(string-append "/" name ".css"))))) |
| 25 | |
| 26 | (define* (aa content #:optional (uri content) . title) |
| 27 | `(a (@ (href ,uri) (title ,(apply string-append title))) ,content)) |
| 28 | |
| 29 | (define* (base-layout site body #:key title copy license-page?) |
| 30 | `((doctype "html") |
| 31 | (html |
| 32 | (head |
| 33 | (meta (@ (charset "utf-8"))) |
| 34 | (title ,(if title (string-append title " — " (site-title site)) |
| 35 | "Amin Bandali’s Personal Site")) |
| 36 | ,(stylesheet "reset") |
| 37 | ,(stylesheet "style")) |
| 38 | (body |
| 39 | (main ,body) |
| 40 | (footer |
| 41 | (p "Copyright © " |
| 42 | ,(if copy copy "2016–2019") |
| 43 | " Amin Bandali. See " |
| 44 | ,(if license-page? "the above" |
| 45 | (aa "license.html" "/license.html")) |
| 46 | " for license conditions. Please copy and share.")))))) |
| 47 | |
| 48 | |
| 49 | (register-metadata-parser! 'updated string->date*) |
| 50 | |
| 51 | (define (my-post-template post) |
| 52 | `((header |
| 53 | (h1 ,(post-ref post 'title)) |
| 54 | (address "By " ,(aa (post-ref post 'author) "/") |
| 55 | " <" ,(post-ref post 'email) ">") |
| 56 | (p (@ (class "date")) |
| 57 | "Published " |
| 58 | ,(date->string (post-date post) my-date-format)) |
| 59 | ,(if (post-ref post 'updated) |
| 60 | `(p (@ (class "updated")) |
| 61 | "Updated " |
| 62 | ,(date->string (post-ref post 'updated) |
| 63 | my-date-format)) "")) |
| 64 | ,(post-sxml post) |
| 65 | (p (@ (class "muted inbox")) |
| 66 | "Have a question or comment? Start a discussion in my " |
| 67 | ,(aa "public inbox" "https://lists.sr.ht/~bandali/public-inbox") |
| 68 | " by sending an email to " |
| 69 | ,(aa "~bandali/public-inbox@lists.sr.ht" |
| 70 | "mailto:~bandali/public-inbox@lists.sr.ht") |
| 71 | (small |
| 72 | " [" ,(aa "mailing list etiquette" |
| 73 | "https://man.sr.ht/lists.sr.ht/etiquette.md") "]") |
| 74 | "."))) |
| 75 | |
| 76 | (define (my-collection-template site title posts prefix) |
| 77 | (define (post-uri post) |
| 78 | (string-append (or prefix "") "/" |
| 79 | (site-post-slug site post) ".html")) |
| 80 | |
| 81 | `((h2 ,title) |
| 82 | (table |
| 83 | (@ (class "post-list")) |
| 84 | (tbody |
| 85 | ,@(map (lambda (post) |
| 86 | `(tr |
| 87 | (td ,(aa (post-ref post 'title) (post-uri post))) |
| 88 | (td (@ (style "font-size: 0.875em;")) |
| 89 | ,(date->string (post-date post) |
| 90 | my-date-format)))) |
| 91 | posts))))) |
| 92 | |
| 93 | (define bandali-theme |
| 94 | (theme #:name "bandali" |
| 95 | #:layout |
| 96 | (lambda (site title body) |
| 97 | (base-layout site body |
| 98 | #:title title)) |
| 99 | #:post-template my-post-template |
| 100 | #:collection-template my-collection-template)) |
| 101 | |
| 102 | (define* (static-page title file-name body copy #:key license?) |
| 103 | (lambda (site posts) |
| 104 | (make-page file-name |
| 105 | (base-layout site body #:title title #:copy copy |
| 106 | #:license-page? license?) |
| 107 | sxml->html))) |
| 108 | |
| 109 | (define (index-material site posts) |
| 110 | `((h1 (@ (style "font-size: 0;")) |
| 111 | "Amin Bandali") |
| 112 | (p (@ (style "margin-top: 0;")) |
| 113 | "Hi, I’m " |
| 114 | ,(aa "Amin Bandali" "images/bandali-with-rms.jpg" |
| 115 | "photo of bandali with rms wearing a " |
| 116 | "“pay cash don’t be tracked” pin") |
| 117 | ". I’m a graduate student at " |
| 118 | ,(aa "WatForm" "https://watform.uwaterloo.ca") |
| 119 | " at University of Waterloo, supervised by " |
| 120 | ,(aa "Dr. Nancy Day" "https://cs.uwaterloo.ca/~nday/") |
| 121 | ". The main goal of my research is improving " |
| 122 | (strong "software and systems reliability") |
| 123 | " through application of " (em "formal methods") ".") |
| 124 | (p "My research at WatForm focuses on formal logic, model " |
| 125 | "checking, and verification. I’m also interested in " |
| 126 | "programming languages, theorem provers, and their " |
| 127 | "type systems. You may wish to view my academic " |
| 128 | ,(aa "curriculum vitae" "bandali-cv.html") ".") |
| 129 | (p (@ (class "notice")) |
| 130 | (strong "SE 212 students: ") |
| 131 | "see " ,(aa "here" "se212-f19/") " for slides and other " |
| 132 | "material from the tutorials.") |
| 133 | (p "On the side, I dabble in " |
| 134 | ,(aa "Lean" "https://leanprover.github.io") " and enjoy " |
| 135 | ,(aa "hacking" "https://stallman.org/articles/on-hacking.html") |
| 136 | " on " |
| 137 | ,(aa "Elisp" |
| 138 | "https://www.gnu.org/software/emacs/manual/elisp.html") |
| 139 | ". I’m a " ,(aa "Free Software" |
| 140 | "https://www.gnu.org/philosophy/free-sw.html") |
| 141 | " activist, a GNU " |
| 142 | ,(aa "maintainer" "https://www.gnu.org/people/#bandali") |
| 143 | " and " |
| 144 | ,(aa "webmaster" |
| 145 | "https://www.gnu.org/people/webmeisters.html#bandali") |
| 146 | ", and an " ,(aa "associate member" |
| 147 | "https://www.fsf.org/associate/") |
| 148 | " of the " ,(aa "FSF" "https:///www.fsf.org" |
| 149 | "Free Software Foundation") |
| 150 | ". I co-host the " ,(aa "Emacs.el" "https://emacsel.com") |
| 151 | " podcast with " ,(aa "Daniel Gopar" "https://www.pygopar.com") |
| 152 | ", and organize " ,(aa "EmacsConf" "https://emacsconf.org") |
| 153 | " with help from many wonderful people. I am also a member of" |
| 154 | " the Systems Committee for the " |
| 155 | ,(aa "CSC" "https://csclub.uwaterloo.ca" |
| 156 | "Computer Science Club of the University of Waterloo") |
| 157 | ".") |
| 158 | (p "See my " ,(aa "contact" "contact.html") " page for how to " |
| 159 | "best reach me.") |
| 160 | (h2 (@ (id "papers")) "Papers") |
| 161 | (dl |
| 162 | (dt "A Comparison of the Declarative Modelling Languages B, DASH, |
| 163 | and TLA" (sup "+") |
| 164 | (small |
| 165 | " [ " ,(aa "pdf" "papers/modre2018-declarative.pdf") " | " |
| 166 | ,(aa "bib" "papers/modre2018-declarative.bib") " ]")) |
| 167 | (dd "Ali Abbassi, " |
| 168 | ,(aa "Amin Bandali" my-url) ", " |
| 169 | ,(aa "Nancy A. Day" "https://cs.uwaterloo.ca/~nday/") ", " |
| 170 | "Jose Serna" |
| 171 | (br) |
| 172 | (em "2018 IEEE 8th International Model-Driven Requirements" |
| 173 | " Engineering Workshop (MoDRE)") |
| 174 | (br) |
| 175 | "Copyright © 2018 IEEE. All Rights Reserved. Sadly.")) |
| 176 | (h2 (@ (id "talks")) "Talks") |
| 177 | (dl |
| 178 | (dt |
| 179 | "The Magic of Specifications and Type Systems" |
| 180 | (small |
| 181 | " [ " |
| 182 | ,(aa "slides" "talks/cucsc-2017-slides.pdf" |
| 183 | "presented at the Canadian Undergraduate Computer Science" |
| 184 | " Conference 2017,\n" |
| 185 | "University of Toronto, Canada, June 15–17, 2017") |
| 186 | " | " |
| 187 | ,(aa "poster" "talks/eecs4080-poster.pdf" |
| 188 | "presented at the Lassonde Undergraduate Summer Student" |
| 189 | " Research Conference,\n" |
| 190 | "York University, Toronto, Canada, August 15, 2017") |
| 191 | " ]")) |
| 192 | (dd ,(aa "Amin Bandali" my-url) ", " |
| 193 | ,(aa "Simon Hudon" "https://github.com/cipher1024") ", " |
| 194 | ,(aa "Jonathan S. Ostroff" |
| 195 | "http://www.cse.yorku.ca/~jonathan/"))) |
| 196 | (h2 (@ (id "projects")) "Projects") |
| 197 | (p "Below are a number of free software projects I have worked " |
| 198 | "on:") |
| 199 | (dl |
| 200 | (dt ,(aa "george-mode" "https://git.sr.ht/~bandali/george-mode")) |
| 201 | (dd "Emacs major mode for editing George files") |
| 202 | (dt ,(aa "alloy-catalyst" |
| 203 | "https://git.uwaterloo.ca/bandali/alloy-catalyst")) |
| 204 | (dd "Framework for performance analysis of Alloy models") |
| 205 | (dt ,(aa "unitb-web" "https://github.com/unitb/unitb-web")) |
| 206 | (dd "Web interface for Unit-B") |
| 207 | (dt ,(aa "tex2png-hs" "https://github.com/unitb/tex2png-hs")) |
| 208 | (dd "Library and CLI for converting TeX and LaTeX to PNG " |
| 209 | "images")) |
| 210 | (h2 (@ (id "notes")) "Notes") |
| 211 | (p "Here are notes about a variety of topics and issues I care " |
| 212 | "about. They’re also available via " ,(aa "Atom" "feed.atom") |
| 213 | " and " ,(aa "RSS" "feed.rss") " feeds.") |
| 214 | (table |
| 215 | (@ (class "post-list")) |
| 216 | (tbody |
| 217 | ,@(map |
| 218 | (lambda (post) |
| 219 | (define (post-uri post) |
| 220 | (string-append "/" |
| 221 | (site-post-slug site post) ".html")) |
| 222 | `(tr |
| 223 | (td ,(aa (post-ref post 'title) (post-uri post))) |
| 224 | (td (small |
| 225 | ,(date->string (post-date post) my-date-format))))) |
| 226 | (take-up-to 10 (posts/reverse-chronological posts))))))) |
| 227 | |
| 228 | (define (index-page site posts) |
| 229 | (make-page |
| 230 | "index.html" |
| 231 | (base-layout site (index-material site posts)) |
| 232 | sxml->html)) |
| 233 | |
| 234 | (define license-page |
| 235 | (static-page |
| 236 | "Licensing Information" |
| 237 | "license.html" |
| 238 | `((h1 "License information for " |
| 239 | ,(aa my-domain my-url)) |
| 240 | (p "I strongly believe in " |
| 241 | ,(aa "free culture" |
| 242 | "https://questioncopyright.org/what_is_free_culture") |
| 243 | " and that all creative works everywhere should be " |
| 244 | ,(aa "free" "https://freedomdefined.org/Definition") ".") |
| 245 | (p "Unless otherwise noted material on this site is licensed " |
| 246 | "under the GNU General Public License as published by the " |
| 247 | "Free Software Foundation, either version 3 of the License, " |
| 248 | "or (at your option) any later version. A copy of the " |
| 249 | "license is included at " ,(aa "gpl-3.0.html") ".") |
| 250 | (p "Some resources on free software and licenses:") |
| 251 | (ul |
| 252 | (li ,(aa "What is free software?" |
| 253 | "https://www.gnu.org/philosophy/free-sw.html")) |
| 254 | (li ,(aa "Various Licenses and Comments about Them" |
| 255 | "https://www.gnu.org/licenses/license-list.html")) |
| 256 | (li ,(aa "Proprietary Software Is Often Malware" |
| 257 | "https://www.gnu.org/proprietary/proprietary.html")))) |
| 258 | "2019" |
| 259 | #:license? #t)) |
| 260 | |
| 261 | (define contact-page |
| 262 | (static-page |
| 263 | "Contact Information" |
| 264 | "contact.html" |
| 265 | `((h1 "Contact information") |
| 266 | (p "Email is by far my preferred method of communication. I may" |
| 267 | " be contacted at any of the following addresses (choose the" |
| 268 | " most closely related):") |
| 269 | (ul |
| 270 | (li "bandali@gnu.org") |
| 271 | (li "bandali@uwaterloo.ca") |
| 272 | (li "bandali@csclub.uwaterloo.ca")) |
| 273 | (p "If you want to send me GPG-encrypted mail, you can use my " |
| 274 | ,(aa "public key" "bandali-pubkey.txt") " with the" |
| 275 | " fingerprint " |
| 276 | (code "BE62 7373 8E61 6D6D 1B3A 08E8 A21A 0202 4881 6103") |
| 277 | ".") |
| 278 | (table |
| 279 | (tbody |
| 280 | (tr |
| 281 | (td "IRC") |
| 282 | (td "bandali on " ,(aa "freenode" "https://freenode.net") ", " |
| 283 | ,(aa "moznet" "https://wiki.mozilla.org/IRC") ", and " |
| 284 | ,(aa "oftc" "https://www.oftc.net"))) |
| 285 | (tr |
| 286 | (td "XMPP") |
| 287 | (td ,(aa "bandali@member.fsf.org" |
| 288 | "xmpp:bandali@member.fsf.org"))) |
| 289 | (tr |
| 290 | (td "Matrix") |
| 291 | (td ,(aa "@bandali:matrix.org" |
| 292 | "https://matrix.to/#/@bandali:matrix.org"))) |
| 293 | (tr |
| 294 | (td "Fediverse") |
| 295 | (td ,(aa "@bandali@pleroma.site" |
| 296 | "https://pleroma.site/bandali"))))) |
| 297 | (h2 "Elsewhere") |
| 298 | (p "You may also find me at a few other places online. Stricken" |
| 299 | " through accounts are those I don’t use anymore, unless" |
| 300 | " absolutely necessary.") |
| 301 | (ul |
| 302 | (li ,(aa "bandali" "https://libreplanet.org/wiki/User:Bandali") |
| 303 | " on LibrePlanet") |
| 304 | (li ,(aa "bandali" "https://emacsconf.org/bandali") |
| 305 | " on EmacsConf") |
| 306 | (li ,(aa "bandali" "https://savannah.gnu.org/users/bandali") |
| 307 | " on Savannah") |
| 308 | (li ,(aa "bandali" "https://git.sr.ht/~bandali") |
| 309 | " on Sourcehut") |
| 310 | (li ,(aa "bandali" "https://lobste.rs/u/bandali") |
| 311 | " on Lobsters") |
| 312 | (li ,(aa "bandali" "https://hackage.haskell.org/user/bandali") |
| 313 | " on Hackage") |
| 314 | (li ,(aa "bandali" "https://gitlab.com/bandali") |
| 315 | " on GitLab") |
| 316 | (li ,(aa "bandali" |
| 317 | "https://news.ycombinator.com/user?id=bandali") |
| 318 | " on HN") |
| 319 | (li ,(aa "bandali" "https://www.reddit.com/u/bandali") |
| 320 | " on reddit") |
| 321 | (li (del ,(aa "bandali0" "https://github.com/bandali0") |
| 322 | " on GitHub")) |
| 323 | (li (del ,(aa "bandali0" "https://twitter.com/bandali0") |
| 324 | " on Twitter")))) |
| 325 | "2019")) |
| 326 | |
| 327 | (define cv-page |
| 328 | (static-page |
| 329 | "Curriculum vitae" |
| 330 | "bandali-cv.html" |
| 331 | `((h1 "Curriculum vitae (" ,(aa "PDF" "bandali-cv.pdf") ")") |
| 332 | (table |
| 333 | (tbody |
| 334 | (tr |
| 335 | (td "Site") |
| 336 | (td ,(aa my-domain my-url))) |
| 337 | (tr |
| 338 | (td "Email") |
| 339 | (td "bandali@uwaterloo.ca")) |
| 340 | (tr |
| 341 | (td "Phone") |
| 342 | (td "available upon request via email")))) |
| 343 | (h2 "Education") |
| 344 | (h3 "Master of Mathematics (Computer Science) | 2018–present") |
| 345 | (p "University of Waterloo, Canada") |
| 346 | (p "Supervised by Dr. Nancy Day | GPA: 3.7/4.0 | " |
| 347 | "Expected completion: April 2020") |
| 348 | (p "Research focusing on formal logic, model checking, and " |
| 349 | "verification.") |
| 350 | (h3 "B.Sc. Honours Computer Science | 2013–2017") |
| 351 | (p "York University, Toronto, Canada") |
| 352 | (p "GPA: 7.84/9.0") |
| 353 | (p "Relevant courses: System Specification & Refinement, " |
| 354 | "Software Requirements Eng., Software Design, " |
| 355 | "Operating Systems, Computational Complexity, " |
| 356 | "Design & Analysis of Algorithms.") |
| 357 | (p "Finished first year (2013-14) at " (em "Carleton University") |
| 358 | " with a GPA of 11.0/12.0, then transferred to " |
| 359 | (em "York University") " in Fall 2014.") |
| 360 | (h2 "Publications") |
| 361 | (p "Listed on my " ,(aa "homepage" "/#papers")) |
| 362 | (h2 "Work & Research Experience") |
| 363 | (h3 "Cheriton School of Computer Science, University of Waterloo" |
| 364 | " | 2018–present") |
| 365 | (p "Instructional Apprentice, Teaching Assistant, " |
| 366 | "Research Assistant") |
| 367 | (ul |
| 368 | (li (abbr (@ (title "Logic and Computation")) "SE 212") ": " |
| 369 | (abbr (@ (title "Instructional Apprentice")) "IA") " in " |
| 370 | "Fall 2019, " |
| 371 | (abbr (@ (title "Teaching Assistant")) "TA") " in " |
| 372 | "Fall 2018") |
| 373 | (li (abbr (@ (title ,(string-append |
| 374 | "Software Requirements Specification and " |
| 375 | "Analysis"))) "SE 463") |
| 376 | ": TA in Summer 2019 and 2018") |
| 377 | (li (abbr (@ (title ,(string-append |
| 378 | "Elementary Algorithm Design and " |
| 379 | "Data Abstraction"))) "CS 136") |
| 380 | ": TA in Winter 2018")) |
| 381 | (h3 (abbr (@ (title |
| 382 | ,(string-append |
| 383 | "Electrical Engineering & Computer Science"))) |
| 384 | "EECS") |
| 385 | " Department, York University | Fall 2017") |
| 386 | (p "Teaching Assistant") |
| 387 | (p (abbr (@ (title "Net-Centric Introduction to Computing")) |
| 388 | "EECS 1012") |
| 389 | ": TA in Fall 2017")) |
| 390 | "2019")) |
| 391 | |
| 392 | (define se212-f19-page |
| 393 | (static-page |
| 394 | "SE 212 Material" |
| 395 | "se212-f19/index.html" |
| 396 | `((h1 "Material from SE 212 tutorials") |
| 397 | (p "This page contains slides and other material from " |
| 398 | ,(aa "SE 212 tutorials" |
| 399 | "https://www.student.cs.uwaterloo.ca/~se212/times.html") |
| 400 | " held by me in Fall 2019. " |
| 401 | (del "If you have any questions, concerns, or suggestions " |
| 402 | "about the presented material, please email me at " |
| 403 | "bandali@uwaterloo.ca or come see me during my " |
| 404 | ,(aa "Friday office hours" |
| 405 | "https://www.student.cs.uwaterloo.ca/~se212/personnel.html") |
| 406 | ".")) |
| 407 | (ul |
| 408 | (li "Tutorial 1:" |
| 409 | (ul |
| 410 | (li ,(aa "TUT 101 slides" "se212-t01-101.pdf")) |
| 411 | (li ,(aa "TUT 102 slides" "se212-t01-102.pdf")) |
| 412 | (li ,(aa "Org beamer sources" "se212-t01.org")))) |
| 413 | (li "Tutorial 2:" |
| 414 | (ul |
| 415 | (li ,(aa "Homework 2 q04d solution" |
| 416 | "se212-h02q04d-soln.grg")))) |
| 417 | (li "Tutorial 3: —") |
| 418 | (li "Tutorial 4: —") |
| 419 | (li "Tutorial 5:" |
| 420 | (ul |
| 421 | (li ,(aa "Slides" "se212-t05.pdf")) |
| 422 | (li ,(aa "Org beamer sources" "se212-t05.org")))) |
| 423 | (li "Tutorial 6: —") |
| 424 | (li "Tutorial 7: worked through questions 1–5 of Homework 7") |
| 425 | (li "Tutorial 8: —") |
| 426 | (li "Tutorial 9: —") |
| 427 | (li "Tutorial 10: worked through questions 1–10 of " |
| 428 | "Homework 10"))) |
| 429 | "2019")) |
| 430 | |
| 431 | (site #:title "Amin Bandali" |
| 432 | ;; TODO: uncomment after new haunt release |
| 433 | ;; #:scheme my-scheme |
| 434 | #:domain my-domain |
| 435 | #:default-metadata |
| 436 | '((author . "Amin Bandali") |
| 437 | (email . "bandali@gnu.org") |
| 438 | (domain . my-domain)) |
| 439 | #:readers (list commonmark-reader) |
| 440 | #:builders (list (blog #:theme bandali-theme |
| 441 | #:collections |
| 442 | `(("Notes" "notes.html" |
| 443 | ,posts/reverse-chronological))) |
| 444 | index-page |
| 445 | (atom-feed |
| 446 | #:file-name "feed.atom") |
| 447 | (atom-feeds-by-tag |
| 448 | #:prefix "tags") |
| 449 | (rss-feed |
| 450 | #:file-name "feed.rss") |
| 451 | contact-page |
| 452 | cv-page |
| 453 | license-page |
| 454 | se212-f19-page |
| 455 | (static-directory "static" ""))) |