1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
|
msgid ""
msgstr ""
"Project-Id-Version: \n"
"POT-Creation-Date: 2023-04-10 16:03-0300\n"
"PO-Revision-Date: \n"
"Last-Translator: \n"
"Language-Team: \n"
"Language: pt\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"X-Generator: Poedit 2.2.4\n"
#. type: Plain text
#: src/content/img/alt/atom.en.txt:1
msgid "three yellow lines representing an Atom feed"
msgstr ""
#. type: Plain text
#: src/content/img/alt/envelope.en.txt:1
msgid "an envelope icon representing an email address"
msgstr ""
#. type: Plain text
#: src/content/img/alt/favicon.en.txt:1
msgid "a crude hand doing a thumbs up"
msgstr ""
#. type: Plain text
#: src/content/img/alt/link.en.txt:1
msgid "two chain rings, representing an anchor to this header"
msgstr ""
#. type: Plain text
#: src/content/img/alt/linkto.en.txt:1
msgid ""
"a drawing of a box with an arrow going outwards, representing an internal "
"link"
msgstr ""
#. type: Plain text
#: src/content/img/alt/lock.en.txt:1
msgid "a lock icon representing a GPG public key"
msgstr ""
#. type: Plain text
#: src/lib/base.en.conf:2
msgid "export date_fmt='%B %-d, %Y'"
msgstr ""
#. type: Plain text
#: src/lib/base.en.conf:4
msgid "export site_name=\"EuAndreh's website\""
msgstr ""
#. type: Plain text
#: src/lib/base.en.conf:6
msgid "export lang='en'"
msgstr "export lang='pt'"
#. type: Plain text
#: src/lib/base.en.conf:8
msgid "export about='About'"
msgstr ""
#. type: Plain text
#: src/lib/base.en.conf:10
msgid "export about_url_name='about.html'"
msgstr "export about_url_name='sobre.html'"
#. type: Plain text
#: src/lib/base.en.conf:12
msgid "export by_category_url_name='by-category.html'"
msgstr "export by_category_url_name='por-categoria.html'"
#. type: Plain text
#: src/lib/base.en.conf:14
msgid "export homepage_url=\"$(url-for \"$lang/\")\""
msgstr ""
#. type: Plain text
#: src/lib/base.en.conf:16
msgid "export homepage_url_absolute=\"$(absolute \"$homepage_url\")\""
msgstr ""
#. type: Plain text
#: src/lib/base.en.conf:18
msgid "export about_url=\"$(url-for \"$lang/$about_url_name\")\""
msgstr ""
#. type: Plain text
#: src/lib/base.en.conf:21
msgid "export index_article_title='Blog'"
msgstr "export index_article_title='Blog'"
#. type: Plain text
#: src/lib/base.en.conf:23
msgid "export index_recent_article_title='Recent articles'"
msgstr "export index_recent_article_title='Artigos recentes'"
#. type: Plain text
#: src/lib/base.en.conf:25
msgid "export index_category_article_title='Articles by category'"
msgstr "export index_category_article_title='Artigos por categoria'"
#. type: Plain text
#: src/lib/base.en.conf:27
msgid ""
"export index_article_url=\"$(url-for \"$lang/$(coll2path \"$lang\" "
"article)\")\""
msgstr ""
"export index_article_url=\"$(url-for \"$lang/$(coll2path \"$lang\" "
"article)\")\""
#. type: Plain text
#: src/lib/base.en.conf:29
msgid "export feed_article_title=\"EuAndreh's articles\""
msgstr "export feed_article_title=\"Artigos do EuAndreh\""
#. type: Plain text
#: src/lib/base.en.conf:32
msgid "export index_pastebin_title='Pastebins'"
msgstr ""
#. type: Plain text
#: src/lib/base.en.conf:34
msgid "export index_recent_pastebin_title='Pastebins listing'"
msgstr ""
#. type: Plain text
#: src/lib/base.en.conf:36
msgid "export index_category_pastebin_title='Pastebins by category'"
msgstr ""
#. type: Plain text
#: src/lib/base.en.conf:38
msgid ""
"export index_pastebin_url=\"$(url-for \"$lang/$(coll2path \"$lang\" "
"pastebin)\")\""
msgstr ""
"export index_pastebin_url=\"$(url-for \"$lang/$(coll2path \"$lang\" "
"pastebin)\")\""
#. type: Plain text
#: src/lib/base.en.conf:40
msgid "export feed_pastebin_title=\"EuAndreh's pastebins\""
msgstr ""
#. type: Plain text
#: src/lib/base.en.conf:43
msgid "export index_til_title='TIL'"
msgstr "export index_til_title='HEA'"
#. type: Plain text
#: src/lib/base.en.conf:45
msgid "export index_recent_til_title='TIL listing'"
msgstr "export index_recent_til_title='HEA recentes'"
#. type: Plain text
#: src/lib/base.en.conf:47
msgid "export index_category_til_title='TIL by category'"
msgstr "export index_category_til_title='HEA por categoria'"
#. type: Plain text
#: src/lib/base.en.conf:49
msgid ""
"export index_til_url=\"$(url-for \"$lang/$(coll2path \"$lang\" til)\")\""
msgstr ""
"export index_til_url=\"$(url-for \"$lang/$(coll2path \"$lang\" til)\")\""
#. type: Plain text
#: src/lib/base.en.conf:50
msgid "export feed_til_title=\"EuAndreh's TIL\""
msgstr "export feed_til_title=\"HEA do EuAndreh\""
#. type: Plain text
#: src/lib/commencement.en.conf:2
msgid "#!/bin/sh"
msgstr ""
#. type: Plain text
#: src/lib/commencement.en.conf:4
msgid "export article_collection_name=''"
msgstr "export article_collection_name=''"
#. type: Plain text
#: src/lib/commencement.en.conf:6
msgid "export pastebin_collection_name='pastebin'"
msgstr "export pastebin_collection_name='pastebin'"
#. type: Plain text
#: src/lib/commencement.en.conf:7
msgid "export til_collection_name='til'"
msgstr "export til_collection_name='hea'"
#. type: Content of: <p>
#: src/lib/comment.en.html:3
msgid ""
"<a href=\"$mailto_uri\">Comment</a> and see <a href=\"$discussions_url"
"\">existing discussions</a> | <a href=\"$sourcecode_url\">view source</a>"
msgstr ""
#. type: Content of: <p>
#: src/lib/date.en.html:2
msgid "Posted on"
msgstr ""
#. type: Content of: <p><time>
#: src/lib/date.en.html:2
msgid "$formatted_date"
msgstr ""
#. type: Content of: <p>
#: src/lib/update.en.html:2
msgid "Updated on"
msgstr ""
#. type: Content of: <p><time>
#: src/lib/update.en.html:2
msgid "$formatted_update"
msgstr ""
#. type: Plain text
#: src/content/en/about.page:1 src/content/en/about.page:5
#: src/content/en/pastebin/sicp-exercise-3-19.md:1
#: src/content/en/pastebin/sicp-exercise-3-19.md:9
#: src/content/en/til/lisp-three-way-conditional.md:1
#: src/content/en/til/lisp-three-way-conditional.md:11
#, no-wrap
msgid "---\n"
msgstr ""
#. type: Plain text
#: src/content/en/about.page:4
msgid "title: About"
msgstr ""
#. type: Plain text
#: src/content/en/about.page:7
msgid "It's all about me, baby!"
msgstr ""
#. type: Plain text
#: src/content/en/pastebin/sicp-exercise-3-19.md:4
msgid "title: SICP exercise 3.19"
msgstr ""
#. type: Plain text
#: src/content/en/pastebin/sicp-exercise-3-19.md:6
msgid "date: 2021-09-02"
msgstr ""
#. type: Plain text
#: src/content/en/pastebin/sicp-exercise-3-19.md:8
msgid "categories: lisp programming-languages"
msgstr ""
#. type: Plain text
#: src/content/en/pastebin/sicp-exercise-3-19.md:12
msgid "Some content here, before:"
msgstr ""
#. type: Plain text
#: src/content/en/pastebin/sicp-exercise-3-19.md:22
#, no-wrap
msgid ""
"```scheme\n"
"(define (cycle? l)\n"
" (define (rec l x)\n"
" (cond\n"
" ((null? x) false)\n"
" ((eq? l x) true)\n"
" (true (rec l (cdr x)))))\n"
" (rec l (cdr l)))\n"
"```\n"
msgstr ""
#. type: Plain text
#: src/content/en/pastebin/sicp-exercise-3-19.md:24
msgid "Sample interactive session:"
msgstr ""
#. type: Plain text
#: src/content/en/pastebin/sicp-exercise-3-19.md:41
#, no-wrap
msgid ""
"```scheme\n"
"scheme@(guile-user)> (define true #t)\n"
"scheme@(guile-user)> (define false #f)\n"
"scheme@(guile-user)>\n"
"(define (cycle? l)\n"
" (define (rec l x)\n"
" (cond\n"
" ((null? x) false)\n"
" ((eq? l x) true)\n"
" (true (rec l (cdr x)))))\n"
" (rec l (cdr l)))\n"
"scheme@(guile-user)> (cycle? '(1 2 3))\n"
"$9 = #f\n"
"scheme@(guile-user)> (cycle? (make-cycle '(1 2 3)))\n"
"$10 = #t\n"
"```\n"
msgstr ""
#. type: Plain text
#: src/content/en/pastebin/sicp-exercise-3-19.md:43
msgid "# An h1"
msgstr ""
#. type: Plain text
#: src/content/en/pastebin/sicp-exercise-3-19.md:45
msgid "a list:"
msgstr ""
#. type: Bullet: '1. '
#: src/content/en/pastebin/sicp-exercise-3-19.md:49
msgid "one"
msgstr ""
#. type: Bullet: '2. '
#: src/content/en/pastebin/sicp-exercise-3-19.md:49
msgid "two"
msgstr ""
#. type: Bullet: '3. '
#: src/content/en/pastebin/sicp-exercise-3-19.md:49
msgid "three"
msgstr ""
#. type: Plain text
#: src/content/en/pastebin/sicp-exercise-3-19.md:51
msgid "some content."
msgstr ""
#. type: Bullet: '- '
#: src/content/en/pastebin/sicp-exercise-3-19.md:55
msgid "item"
msgstr ""
#. type: Bullet: '- '
#: src/content/en/pastebin/sicp-exercise-3-19.md:55
msgid "another"
msgstr ""
#. type: Bullet: '- '
#: src/content/en/pastebin/sicp-exercise-3-19.md:55
msgid "yet another"
msgstr ""
#. type: Plain text
#: src/content/en/pastebin/sicp-exercise-3-19.md:57
msgid "## An h2"
msgstr ""
#. type: Plain text
#: src/content/en/pastebin/sicp-exercise-3-19.md:59
msgid "Xablau:"
msgstr ""
#. type: Plain text
#: src/content/en/pastebin/sicp-exercise-3-19.md:62
msgid "``` xupliu 1"
msgstr ""
#. type: Plain text
#: src/content/en/pastebin/sicp-exercise-3-19.md:65
msgid "3 4"
msgstr ""
#. type: Plain text
#: src/content/en/pastebin/sicp-exercise-3-19.md:72
msgid "dez ```"
msgstr ""
#. type: Plain text
#: src/content/en/pastebin/sicp-exercise-3-19.md:74
msgid "Foi `wikiwiu`."
msgstr ""
#. type: Plain text
#: src/content/en/pastebin/sicp-exercise-3-19.md:76
msgid "a very long code block:"
msgstr ""
#. type: Plain text
#: src/content/en/pastebin/sicp-exercise-3-19.md:82
#, no-wrap
msgid ""
"```\n"
"wef\n"
"wef wef wef wef\n"
"wef wef wef wef we fwef wef wef wef wef \n"
"```\n"
msgstr ""
#. type: Plain text
#: src/content/en/pastebin/sicp-exercise-3-19.md:84
msgid "Someone said:"
msgstr ""
#. type: Plain text
#: src/content/en/pastebin/sicp-exercise-3-19.md:86
msgid "> Xablau, xupliu."
msgstr ""
#. type: Plain text
#: src/content/en/pastebin/sicp-exercise-3-19.md:89
msgid "### A repeated header ### A repeated header"
msgstr ""
#. type: Plain text
#: src/content/en/pastebin/sicp-exercise-3-19.md:91
msgid "a big list:"
msgstr ""
#. type: Bullet: '1. '
#: src/content/en/pastebin/sicp-exercise-3-19.md:109
msgid "a"
msgstr ""
#. type: Plain text
#: src/content/en/til/lisp-three-way-conditional.md:4
msgid "title: Three-way conditional for number signs on Lisp"
msgstr ""
#. type: Plain text
#: src/content/en/til/lisp-three-way-conditional.md:6
msgid "date: 2021-04-24 3"
msgstr ""
#. type: Plain text
#: src/content/en/til/lisp-three-way-conditional.md:8
msgid "update: 2021-08-14"
msgstr ""
#. type: Plain text
#: src/content/en/til/lisp-three-way-conditional.md:10
#, no-wrap
msgid "categories: lisp scheme common-lisp\n"
msgstr ""
#. type: Plain text
#: src/content/en/til/lisp-three-way-conditional.md:14
msgid "A useful macro from Paul Graham's [On Lisp][on-lisp] book:"
msgstr ""
#. type: Plain text
#: src/content/en/til/lisp-three-way-conditional.md:23
#, no-wrap
msgid ""
"```lisp\n"
"(defmacro nif (expr pos zero neg)\n"
" (let ((g (gensym)))\n"
" `(let ((,g ,expr))\n"
" (cond ((plusp ,g) ,pos)\n"
" ((zerop ,g) ,zero)\n"
" (t ,neg)))))\n"
"```\n"
msgstr ""
#. type: Plain text
#: src/content/en/til/lisp-three-way-conditional.md:25
msgid ""
"After I looked at this macro, I started seeing opportunities to using it in "
"many places, and yet I didn't see anyone else using it."
msgstr ""
#. type: Plain text
#: src/content/en/til/lisp-three-way-conditional.md:27
msgid ""
"The latest example I can think of is section 1.3.3 of [Structure and "
"Interpretation of Computer Programs][sicp], which I was reading recently:"
msgstr ""
#. type: Plain text
#: src/content/en/til/lisp-three-way-conditional.md:40
#, no-wrap
msgid ""
"```scheme\n"
"(define (search f neg-point pos-point)\n"
" (let ((midpoint (average neg-point pos-point)))\n"
" (if (close-enough? neg-point post-point)\n"
" midpoint\n"
" (let ((test-value (f midpoint)))\n"
" (cond ((positive? test-value)\n"
" (search f neg-point midpoint))\n"
" ((negative? test-value)\n"
" (search f midpoint pos-point))\n"
" (else midpoint))))))\n"
"```\n"
msgstr ""
#. type: Plain text
#: src/content/en/til/lisp-three-way-conditional.md:42
msgid ""
"Not that the book should introduce such macro this early, but I couldn't "
"avoid feeling bothered by not using the `nif` macro, which could even remove "
"the need for the intermediate `test-value` variable:"
msgstr ""
#. type: Plain text
#: src/content/en/til/lisp-three-way-conditional.md:53
#, no-wrap
msgid ""
"```scheme\n"
"(define (search f neg-point pos-point)\n"
" (let ((midpoint (average neg-point pos-point)))\n"
" (if (close-enough? neg-point post-point)\n"
" midpoint\n"
" (nif (f midpoint)\n"
" (search f neg-point midpoint)\n"
" (midpoint)\n"
" (search f midpoint pos-point)))))\n"
"```\n"
msgstr ""
#. type: Plain text
#: src/content/en/til/lisp-three-way-conditional.md:55
msgid ""
"It also avoids `cond`'s extra clunky parentheses for grouping, which is "
"unnecessary but built-in."
msgstr ""
#. type: Plain text
#: src/content/en/til/lisp-three-way-conditional.md:57
msgid ""
"As a macro, I personally feel it tilts the balance towards expressivenes "
"despite its extra cognitive load toll."
msgstr ""
#. type: Plain text
#: src/content/en/til/lisp-three-way-conditional.md:59
msgid ""
"[on-lisp]: http://www.paulgraham.com/onlisptext.html [sicp]: https://"
"mitpress.mit.edu/sites/default/files/sicp/index.html"
msgstr ""
|