diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..8532089 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,4 @@ +*.png filter=lfs diff=lfs merge=lfs -text +*.jpg filter=lfs diff=lfs merge=lfs -text +*.JPG filter=lfs diff=lfs merge=lfs -text +*.svg filter=lfs diff=lfs merge=lfs -text diff --git a/DSC_0210.JPG b/DSC_0210.JPG new file mode 100644 index 0000000..12465f2 --- /dev/null +++ b/DSC_0210.JPG @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:7a569e49833a4a9f5d9a6946c87cfe0ea9a79e24934abc476dfbf6aac08aafbb +size 10582650 diff --git a/main.typ b/main.typ index 83377b8..38f98e6 100644 --- a/main.typ +++ b/main.typ @@ -1,122 +1,72 @@ #import "@preview/minimal-presentation:0.6.0": * -//#set text(font: "Lato") -//#show math.equation: set text(font: "Lato Math") -//#show raw: set text(font: "Fira Code") +// 中文使用思源宋体,英文使用 Times New Roman +#set text(font: ("Times New Roman", "Source Han Serif SC")) +#show raw: set text(font: "Fira Code") #show: project.with( - title: "Minimalist presentation template", - sub-title: "This is where your presentation begins", - author: "Flavio Barisi", - date: "10/08/2023", - index-title: "Contents", - // logo: image("./logo.svg"), - // logo-light: image("./logo_light.svg"), - // cover: image("./image_1.jpg"), - main-color: rgb("#5ec7a7"), - lang: "it", + title: "在科学计算中使用Nix", + sub-title: "非CS专业人士的使用经验与困难", + author: "陈浩南", + date: "2025-08-09", + index-title: "目录", + logo: image("./nix-snowflake-colours.svg"), + logo-light: image("./nix-snowflake-white.svg"), + cover: image("./DSC_0210.JPG"), + main-color: rgb("#3e5c98"), + lang: "zh", ) -= This is a section += 背景介绍 -== This is a slide title +== 个人Linux使用经验 -#lorem(10) +- 桌面:2018年起主力使用Linux,Deepin #sym.arrow Arch #sym.arrow Gentoo #sym.arrow NixOS (2023-05-28) +- 服务器(VPS):差不多时间,OpenWRT #sym.arrow Ubuntu #sym.arrow Arch #sym.arrow Gentoo #sym.arrow NixOS +- 科学计算(HPC):2020年硕士入组开始接触,Gentoo + Ubuntu #sym.arrow NixOS (2023-09) -- #lorem(10) - - #lorem(10) - - #lorem(10) -// - #lorem(10) @harry @electronic. +== 科学计算现状 + +#columns-content(colwidths: (1fr, 1.8fr))[ + #figure( + image("meme.jpg", width: 100%) + ) +- *复古*的包管理:手动修改Makefile指定编译器/参数/库路径。 +- *随意*的编程:无视标准、能用就行,C/C++不分,Fortran/MPI只有特定编译器能编译。 +- *闭源*的编译器:Intel OneAPI / NVIDIA HPC SDK。 +- *混乱*的用户权限:超算共用账户,小组随意`sudo make install`。 +] + +== 我们需要更多的可复现! -== One column image +#figure( + image("更多的.png", width: 120%) +) -// #figure( -// image("image_1.jpg", height: 10.5cm), -// caption: [An image], -// ) += 切换到Nix/NixOS后解决的问题 -== Two columns image +== 切换到Nix/NixOS后解决的问题 -// #columns-content()[ -// #figure( -// image("image_1.jpg", width: 100%), -// caption: [An image], -// ) -// ][ -// #figure( -// image("image_1.jpg", width: 100%), -// caption: [An image], -// ) -// ] +- 方便打补丁、魔改软件,无需研究具体软件的编译流程: + ``` + xxx = prev.xxx.overrideAttrs (prev: patches = prev.patches or [] ++ [ ./my.patch ]) + ``` +- 编译/运行环境可复现: + - “你遇到的问题,网上肯定也有人遇到过。Gentoo除外。” + - 再也不会忘记自己去年配置的服务是怎么配置的了。 +- 跨服务/跨机器共享配置 -== Two columns +// TODO:举个例子 -// #columns-content()[ -// - #lorem(10) -// - #lorem(10) -// - #lorem(10) -// ][ -// #figure( -// image("image_1.jpg", width: 100%), -// caption: [An image], -// ) -// ] +// TODO: highlight code -= This is a section -== This is a slide title += 尚待解决的问题 -#lorem(10) +== 尚待解决的问题 -= This is a section - -== This is a slide title - -#lorem(10) - -= This is a section - -== This is a slide title - -#lorem(10) - -= This is a very v v v v v v v v v v v v v v v v v v v v long section - -== This is a very v v v v v v v v v v v v v v v v v v v v long slide title - -= Subtitle test - -== Slide title - -#lorem(50) - -=== Slide subtitle 1 - -#lorem(50) - -=== Slide subtitle 2 - -#lorem(50) - -== Slide title 2 - -#lorem(50) - -=== Slide subtitle 3 - -#lorem(50) - -=== Slide subtitle 4 - -#lorem(50) - -#set-main-color(blue) - -= You can change color - -== Slide title - -#lorem(50) - -// #bibliography("bibliography.yaml") +- 闭源编译器和 stdenv +- 无root权限安装nix +- FHSStdenv? +- impermanence /home-manager 与共享文件系统 diff --git a/meme.jpg b/meme.jpg new file mode 100644 index 0000000..1f2c87d --- /dev/null +++ b/meme.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:22b0648ef36c09fc9dfbd02af7821168600bd7c6fea9f8bbad4d9907fdf3b6ba +size 109768 diff --git a/nix-snowflake-colours.svg b/nix-snowflake-colours.svg new file mode 100644 index 0000000..526aa13 --- /dev/null +++ b/nix-snowflake-colours.svg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:e37b5a1c11e81496e9d46af04908951ada6babaa416d670aaae4934cce912eb2 +size 6567 diff --git a/nix-snowflake-white.svg b/nix-snowflake-white.svg new file mode 100644 index 0000000..1de9d55 --- /dev/null +++ b/nix-snowflake-white.svg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:27fb7de01cf47d408bf769b5258f60ce7bb40cb7f2eae2103ba00918adc21006 +size 6274 diff --git a/更多的.png b/更多的.png new file mode 100644 index 0000000..56830e0 --- /dev/null +++ b/更多的.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:2837acf58cfe32e9606c8c15f3c84f1288854accfd6eac291a770a9705c53dfc +size 403720