-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathblog.qmd.rsp
More file actions
446 lines (399 loc) · 18.3 KB
/
blog.qmd.rsp
File metadata and controls
446 lines (399 loc) · 18.3 KB
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
---
title: Blog Posts
description: Updates, tips & tricks, and explanations on futures
preview: images/site_preview.png
---
<style>
/* Borrowed from https://www.tidyverse.org/blog/ */
.listItem {
display:flex;
justify-content:flex-start;
display:-ms-flexbox;
-ms-flex-pack:start;
display:-webkit-box;
display:-webkit-flex;
-webkit-justify-content:flex-start;
margin-bottom:30px
}
.listItem .itemImage {
flex-shrink:0;
width:150px;
height:150px;
margin:0 30px 15px 0;
background-size:contain;
background-position:center
}
.listItem .itemImage img {
width: 100%;
max-height: 100%;
object-fit: cover
}
.listItem .itemDetails {
width:100%;
font-size:.875rem;
line-height:20px
}
.listItem .itemDetails .itemHeader {
display:flex;
justify-content:space-between;
display:-ms-flexbox;
-ms-flex-pack:justify;
display:-webkit-box;
display:-webkit-flex;
-webkit-justify-content:space-between;
align-items:flex-start;
line-height:30px;
margin-bottom:3px
}
.listItem .itemDetails .itemHeader .itemTitle {
font-size:20px;
display:block
}
.listItem .itemDetails .itemHeader .itemActions {
flex-shrink:0;
height:30px
}
.listItem .itemDetails .itemMeta .itemDescription {
margin-bottom:.375rem;
white-space:pre-line
}
.listItem .itemDetails .itemMeta .itemDate,
.listItem .itemDetails .itemMeta .itemInfo {
font-size:.875rem;
color:#ccc
}
.listItem .itemDetails .itemMeta .itemDate .created,
.listItem .itemDetails .itemMeta .itemDate .updated,
.listItem .itemDetails .itemMeta .itemInfo .created,
.listItem .itemDetails .itemMeta .itemInfo .updated {
display:inline-block
}
.listItem .itemDetails .itemMeta .itemDate .created,
.listItem .itemDetails .itemMeta .itemInfo .created {
padding-right:20px
}
.listItem .itemDetails .itemMeta .itemInfo .forkedFrom {
display:inline-block
}
.listItem .itemDetails .itemMeta .itemInfo .updated {
padding-right:20px
}
</style>
<% blog_post <- function(title, url, date, author = "Henrik Bengtsson", description = "", image = "", image_alt = "") { %>
<%
if (nzchar(image)) {
img_name <- tools::file_path_sans_ext(basename(image))
img_file <- file.path("images", sprintf("%s.png", img_name))
if (!utils::file_test("-f", img_file)) {
library(magick)
img <- image_read(image)
if (length(img) > 2) img <- img[min(1L, floor(length(img)/2))]
img <- image_scale(img, "150x")
# Crop height?
info <- image_info(img)
if (info$height > 150) img <- image_crop(img, "150x150")
pathname <- image_write(img, path = img_file, format = "png")
}
stopifnot(utils::file_test("-f", img_file))
image <- img_file
}
%>
<div class="listItem">
<div class="itemImage">
<% if (nzchar(image)) { %>
<a href="<%= url %>"><img src="<%= image %>" alt="<%= gsub(">", ">", image_alt) %>"/></a>
<% } %>
</div>
<div class="itemDetails">
<div class="itemHeader">
<div class="itemTitle"><a href="<%= url %>"><%= title %></a>
</div>
</div>
<div class="itemMeta">
<div class="author"><%= author %></div>
<% if (nzchar(description)) { %><div class="itemDescription"><%= description %></div><% } %>
<div class="itemDate"><%= date %></div>
</div>
</div>
</div>
<% } ## blog_post() %>
<% blog_post(
title = "futurize: Parallelize Common Functions via a \"Magic\" Touch 🪄",
url = "https://www.jottr.org/2026/01/22/futurize-0.1.0/",
date = "2026-01-22",
image = "https://www.jottr.org/post/futurize-workflow.png",
image_alt = "Diagram illustrating how sequential R map-reduce code can be parallelized with |> futurize(). On the left, sequential functions such as lapply(…), purrr::map(…), foreach(…) %do%, plyr::llply(…), and others flow into a central box labeled |> futurize() with magic-wand icons, indicating automatic transformation. On the right, the transformed code fans out to multiple parallel workers (Worker 1, Worker 2, Worker 3, …), whose outputs are combined into a single 'Results' node."
) %>
<% blog_post(
title = "Futures: Interrupts, Crashes, and Retries",
url = "https://www.jottr.org/2025/10/16/interrupts-crashes-retries/",
date = "2025-10-16",
image = "https://www.jottr.org/post/interrupts-crashes-retries.png",
image_alt = "Thumbnail of Interrupts 🛑 Crashes 💥 Retries 🔁"
) %>
<% blog_post(
title = "foreach: Making All %dopar% Behave Like %dofuture% Everywhere",
url = "https://www.jottr.org/2025/10/08/dofuture-everywhere/",
date = "2025-10-07",
image = "https://www.jottr.org/post/future-logo-balloons.png",
image_alt = "Thumbnail of the 'future' hexlogo balloon wall"
) %>
<% blog_post(
title = "Setting Future Plans in R Functions — and Why You Probably Shouldn't",
url = "https://www.jottr.org/2025/06/25/with-plan/",
date = "2025-06-25",
image = "https://www.jottr.org/post/future-logo-balloons.png",
image_alt = "Thumbnail of the 'future' hexlogo balloon wall"
) %>
<% blog_post(
title = "Future Got Better at Finding Global Variables",
url = "https://www.jottr.org/2025/06/23/future-got-better-at-finding-global-variables/",
date = "2025-06-23",
image = "https://www.jottr.org/post/future-logo-balloons.png",
image_alt = "Thumbnail of the 'future' hexlogo balloon wall"
) %>
<% blog_post(
title = "Futureverse – Ten-Year Anniversary",
url = "https://www.jottr.org/2025/06/19/futureverse-10-years/",
date = "2025-06-19",
image = "https://www.jottr.org/post/future-logo-balloons.png",
image_alt = "Thumbnail of the 'future' hexlogo balloon wall"
) %>
<% blog_post(
title = "parallelly: Querying, Killing and Cloning Parallel Workers Running Locally or Remotely",
url = "https://www.jottr.org/2023/07/01/parallelly-managing-workers/",
date = "2023-07-01",
image = "https://www.jottr.org/post/parallelly-logo.png",
image_alt = "Thumbnail of the 'parallelly' hex logo"
) %>
<% blog_post(
title = "%dofuture% - a Better foreach() Parallelization Operator than %dopar%",
url = "https://www.jottr.org/2023/06/26/dofuture/",
date = "2023-06-26",
image = "https://www.jottr.org/post/dopar-to-dofuture.png",
image_alt = "Thumbnail: Two lines of code, where the first line shows 'y <- foreach(...) %dopar% { ... }'. The second line 'y <- foreach(...) %dofuture% { ... }'. The %dopar% operator is crossed out and there is a line down to %dofuture% directly below."
) %>
<% blog_post(
title = "parallelly 1.34.0: Support for CGroups v2, Killing Parallel Workers, and more",
url = "https://www.jottr.org/2023/01/18/parallelly-1.34.0-support-for-cgroups-v2-killing-parallel-workers-and-more/",
date = "2023-01-18",
image = "https://www.jottr.org/post/parallelly-logo.png",
image_alt = "Thumbnail of the 'parallelly' hex logo"
) %>
<% blog_post(
title = "progressr 0.13.0: cli + progressr = ♥",
url = "https://www.jottr.org/2023/01/10/progressr-0.13.0/",
date = "2023-01-10",
image = "https://www.jottr.org/post/three_in_chinese.gif",
image_alt = "Thumbnail of Three strokes writing three in Chinese"
) %>
<% blog_post(
title = "Please Avoid detectCores() in your R Packages",
url = "https://www.jottr.org/2022/12/05/avoid-detectcores/",
date = "2022-12-05",
image = "https://www.jottr.org/post/detectCores_bad_vs_good.png",
image_alt = "Thumbnail of screenshots of two terminal-based, colored graphs showing near 100% load on all 24 CPU cores"
) %>
<% blog_post(
title = "parallelly: Support for Fujitsu Technical Computing Suite High-Performance Compute (HPC) Environments",
url = "https://www.jottr.org/2022/06/09/parallelly-support-for-fujitsu-technical-computing-suite-high-performance-compute-hpc-environments/",
date = "2022-06-09",
image = "https://www.jottr.org/post/parallelly-logo.png",
image_alt = "Thumbnail of the 'parallelly' hex logo"
) %>
<% blog_post(
title = "parallelly 1.32.0: makeClusterPSOCK() Didn't Work with Chinese and Korean Locales",
url = "https://www.jottr.org/2022/06/08/parallelly-1.32.0-makeclusterpsock-didnt-work-with-chinese-and-korean-locales/",
date = "2022-06-08",
image = "https://www.jottr.org/post/parallelly-logo.png",
image_alt = "Thumbnail of the 'parallelly' hex logo"
) %>
<% blog_post(
title = "progressr 0.10.1: Plyr Now Supports Progress Updates also in Parallel",
url = "https://www.jottr.org/2022/06/03/progressr-0.10.1/",
date = "2022-06-03",
image = "https://www.jottr.org/post/three_in_chinese.gif",
image_alt = "Thumbnail of Three strokes writing three in Chinese"
) %>
<% blog_post(
title = "parallelly 1.31.1: Better at Inferring Number of CPU Cores with Cgroups and Linux Containers",
url = "https://www.jottr.org/2022/04/22/parallelly-1.31.1/",
date = "2022-04-22",
image = "https://www.jottr.org/post/parallelly-logo.png",
image_alt = "Thumbnail of the 'parallelly' hex logo"
) %>
<% blog_post(
title = "future 1.24.0: Forwarding RNG State also for Stand-Alone Futures",
url = "https://www.jottr.org/2022/02/22/future-1.24.0-forwarding-rng-state-also-for-stand-alone-futures/",
date = "2022-02-22",
image = "https://www.jottr.org/post/xkcd_221-random_number.png",
image_alt = "Thumbnail of the XKCD #221 comic on a random number generator that always return 4"
) %>
<% blog_post(
title = "Future Improvements During 2021",
url = "https://www.jottr.org/2022/01/07/future-during-2021/",
date = "2022-01-07",
image = "https://www.jottr.org/post/paragliding_mount_tamalpais_20220101.jpg",
image_alt = "Thumbnail of first person view while paragliding in the mountains on a sunny day with blue skies and the beach and the ocean down below"
) %>
<% blog_post(
title = "parallelly 1.29.0: New Skills and Less Communication Latency on Linux",
url = "https://www.jottr.org/2021/11/22/parallelly-1.29.0/",
date = "2021-11-22",
image = "https://www.jottr.org/post/parallelly-logo.png",
image_alt = "Thumbnail of the 'parallelly' hex logo"
) %>
<% blog_post(
title = "progressr 0.8.0: RStudio's Progress Bar, Shiny Progress Updates, and Absolute Progress",
url = "https://www.jottr.org/2021/06/11/progressr-0.8.0/",
date = "2021-06-11",
image = "https://www.jottr.org/post/progressr-rstudio.png",
image_alt = "Thumbnail of the the part of the RStudio Console panel that displays a progress bar"
) %>
<% blog_post(
title = "parallelly 1.26.0: Fast, Concurrent Setup of Parallel Workers (Finally)",
url = "https://www.jottr.org/2021/06/10/parallelly-1.26.0/",
date = "2021-06-10",
image = "https://www.jottr.org/post/parallelly_faster_setup_of_cluster.png",
image_alt = "Thumbnail of a graph showing that launching parallel workers parallelly rather than sequentially is much faster"
) %>
<% blog_post(
title = "parallelly 1.25.0: availableCores(omit=n) and, Finally, Built-in SSH Support for MS Windows 10 Users",
url = "https://www.jottr.org/2021/04/30/parallelly-1.25.0/",
date = "2021-04-30",
image = "https://www.jottr.org/post/nasa-climate-ice-core-small.jpg",
image_alt = "Thumbnail of an ice core held in front of the camera on a sunny day at snow-covered flat landscape"
) %>
<% blog_post(
title = "Using Kubernetes and the Future Package to Easily Parallelize R in the Cloud",
url = "https://www.jottr.org/2021/04/08/future-and-kubernetes/",
date = "2021-04-08",
author = "Chris Paciorek",
description = "A guest post by Chris Paciorek, Department of Statistics, University of California at Berkeley.",
image = "https://www.jottr.org/post/k8s.png",
image_alt = "Thumbnail of an overview diagram of using future on a Kubernetes cluster"
) %>
<% blog_post(
title = "future.BatchJobs - End-of-Life Announcement",
url = "https://www.jottr.org/2021/01/08/future.batchjobs-end-of-life-announcement/",
date = "2021-01-08",
image = "https://www.jottr.org/post/sign_out_of_service_do_not_use.png",
image_alt = "Thumbnail of a Sign reading: Out of Service - Do not use!"
) %>
<% blog_post(
title = "future 1.20.1 - The Future Just Got a Bit Brighter",
url = "https://www.jottr.org/2020/11/06/future-1.20.1-the-future-just-got-a-bit-brighter/",
date = "2020-11-06",
image = "https://www.jottr.org/post/sparkles-through-space.gif",
image_alt = "Thumbnail of a colorful, sparkling lights positioned in circles with star-like lights on a black background in the distance"
) %>
<% blog_post(
title = "parallelly, future - Cleaning Up Around the House",
url = "https://www.jottr.org/2020/11/04/parallelly-future-cleaning-up-around-the-house/",
date = "2020-11-04",
image = "images/parallelly_future.png",
image_alt = "Thumbnail of the dictionary definitions of the words 'parallelly' and 'future'"
) %>
<% blog_post(
title = "Trust the Future",
url = "https://www.jottr.org/2020/11/04/trust-the-future/",
date = "2020-11-04",
image = "https://www.jottr.org/post/you_dont_have_to_worry_about_your_future.jpg",
image_alt = "Thumbnail of a fortune cookie that reads 'You do not have to worry about your future'"
) %>
<% blog_post(
title = "future 1.19.1 - Making Sure Proper Random Numbers are Produced in Parallel Processing",
url = "https://www.jottr.org/2020/09/22/push-for-statical-sound-rng/",
date = "2020-09-22",
image = "https://www.jottr.org/post/Digital_rain_animation_medium_letters_clear.gif",
image_alt = "Thumbnail of green Japanese Kana symbols raining down in parallel on a black background inspired by The Matrix movie"
) %>
<% blog_post(
title = "Detect When the Random Number Generator Was Used",
url = "https://www.jottr.org/2020/09/21/detect-when-the-random-number-generator-was-used/",
date = "2020-09-21",
image = "https://www.jottr.org/post/DistortedRecentEland_50pct.gif",
image_alt = "Thumbnail of a roulette wheel"
) %>
<% blog_post(
title = "future and future.apply - Some Recent Improvements",
url = "https://www.jottr.org/2020/07/11/future-future.apply-recent-improvements/",
date = "2020-07-11"
) %>
<% blog_post(
title = "future 1.15.0 - Lazy Futures are Now Launched if Queried",
url = "https://www.jottr.org/2019/11/09/resolved-launches-lazy-futures/",
date = "2019-11-09",
image = "https://www.jottr.org/post/lazy_dog_in_park.gif",
image_alt = "Thumbnail of a man with a lazy dog does not want to leave park"
) %>
<% blog_post(
title = "Parallelize a For-Loop by Rewriting it as an Lapply Call",
url = "https://www.jottr.org/2019/01/11/parallelize-a-for-loop-by-rewriting-it-as-an-lapply-call/",
date = "2019-01-11",
image = "https://www.jottr.org/post/Honolulu_IFSS_Teletype1964.jpg",
image_alt = "Thumbnail of paper tape relay operation at US FAA's Honolulu flight service station in 1964 showing a large number of punch tapes"
) %>
<% blog_post(
title = "Maintenance Updates of Future Backends and doFuture",
url = "https://www.jottr.org/2019/01/07/maintenance-updates-of-future-backends-and-dofuture/",
date = "2019-01-07",
image = "https://www.jottr.org/post/the-future-is-now.gif",
image_alt = "Thumbnail of an old TV screen struggling to display the text 'THE FUTURE IS NOW'"
) %>
<% blog_post(
title = "future 1.9.0 - Output from The Future",
url = "https://www.jottr.org/2018/07/23/output-from-the-future/",
date = "2018-07-23",
image = "https://www.jottr.org/post/Signaling_by_Napoleonic_semaphore_line.jpg",
image_alt = "Thumbnail of an illustration of communication by mechanical semaphore on the country side in 1800s France"
) %>
<% blog_post(
title = "future.apply - Parallelize Any Base R Apply Function",
url = "https://www.jottr.org/2018/06/23/future.apply_1.0.0/",
date = "2018-06-23",
image = "https://www.jottr.org/post/future.apply_1.0.0-htop_32cores.png",
image_alt = "Thumbnail of a terminal window showing 0% to 100% utilization"
) %>
<% blog_post(
title = "future 1.8.0: Preparing for a Shiny Future",
url = "https://www.jottr.org/2018/04/12/future-results/",
date = "2018-04-12",
image = "https://www.jottr.org/post/retro-shiny-future-small.png",
image_alt = "Thumbnail showing R code using futures on an orange retro terminal screen"
) %>
<% blog_post(
title = "The Many-Faced Future",
url = "https://www.jottr.org/2017/06/05/many-faced-future/",
date = "2017-06-05",
image = "https://www.jottr.org/post/julia_sets.gif",
image_alt = "Thumbnail of a Julia Set"
) %>
<% blog_post(
title = "doFuture: A Universal Foreach Adaptor Ready to be Used by 1,000+ Packages",
url = "https://www.jottr.org/2017/03/18/dofuture/",
date = "2017-03-18",
image = "https://www.jottr.org/post/programmer_next_to_62500_punch_cards_SAGE.jpg",
image_alt = "Thumbnail of a programmer standing beside punched cards"
) %>
<% blog_post(
title = "future 1.3.0: Reproducible RNGs, future_lapply() and More",
url = "https://www.jottr.org/2017/02/19/future-rng/",
date = "2017-02-19",
image = "https://www.jottr.org/post/funny_car_magnet_animated.gif",
image_alt = "Thumbnail of a silent movie clip of man in a cart catching a ride with a car passing by using a giant magnet"
) %>
<% blog_post(
title = "High-Performance Compute in R Using Futures ",
url = "https://www.jottr.org/2016/10/22/future-hpc/",
date = "2016-10-22",
image = "https://www.jottr.org/post/future_mainframe_red.jpg",
image_alt = "Thumbnail of a retro room with a classical mainframe computer and work desks"
) %>
<% blog_post(
title = "Remote Processing Using Futures",
url = "https://www.jottr.org/2016/10/11/future-remotes/",
date = "2016-10-11",
image = "https://www.jottr.org/post/early_days_video_call.jpg",
image_alt = "Thumbnail of a postcard from 1900 showing how people in the year 2000 will communicate using audio and projected video"
) %>