Skip to content

Commit 91fdc7a

Browse files
chore: update meta
1 parent e635866 commit 91fdc7a

11 files changed

Lines changed: 28 additions & 15 deletions

‎content/archive/blog-2025-11.typ‎

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
#import "/typ/templates/monthly.typ": *
2+
3+
#show: main.with(
4+
title: "Myriad Dreamin Blog 2025-11",
5+
desc: [Archive of Blog posts in November 2025.],
6+
date: "2025-11-09",
7+
tags: (
8+
archive-tags.blog-post,
9+
),
10+
archive-indices: (
11+
articles.tinymist-2024-language-part,
12+
),
13+
)

‎content/archive/tinymist-2024.typ‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,6 @@
1515
),
1616
archive-indices: (
1717
articles.tinymist-2024-server-part,
18+
articles.tinymist-2024-language-part,
1819
),
1920
)

‎content/article/en/revisit-old-memory.typ‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#import "/typ/templates/blog.typ": *
2-
#show: main.with(
2+
#show: main-en.with(
33
title: "Revisiting Old Memory",
44
desc: [Revisit the songs that I listened.],
55
date: "2025-05-17",

‎content/article/en/shr.typ‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#import "/typ/templates/blog.typ": *
2-
#show: main.with(
2+
#show: main-en.with(
33
title: "Say Goodbye to Space Sniffer",
44
desc: [I wrote a fast tool to replace space sniffer.],
55
date: "2025-05-20",

‎content/article/en/temperament.typ‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#import "/typ/templates/blog.typ": *
2-
#show: main.with(
2+
#show: main-en.with(
33
title: "Temperament",
44
desc: [Some mathematics about temperament.],
55
date: "2025-05-12",

‎content/article/en/tinymist-2024-language-part.typ‎

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#import "/typ/templates/blog.typ": *
22

3-
#show: main-zh.with(
3+
#show: main-en.with(
44
title: "Tinymist 2024 - Language Service Part",
55
desc: [Thoughts on the development of tinymist, a Typst language server.],
66
date: "2025-11-09",
@@ -44,8 +44,6 @@ The guiding principle for Tinymist's design is local mutability with shared (glo
4444

4545
=== Mutable Global State
4646

47-
`ServerState` is mutable, meaning the server starts of all LSP requests sequentiallly. However, this does not imply full sequentialization. `ServerState` only quickly updates the global state based on the request and creates a snapshot (or lock) of part of the state before entering the time-consuming phase. Since snapshots can be safely shared among threads, by 2025, tinymist ensures that requests do not block each other, especially time-consuming requests not blocking latency-sensitive ones.
48-
4947
The language server handles with a mutable `ServerState`. It starts to process all LSP requests sequentially, but this doesn't imply full sequentialization. `ServerState` quickly updates the global state based on a request and creates a snapshot (or lock) of the a smaller part of relevant state before any time-consuming work begins. Because these snapshots are thread-safe, Tinymist ensures that requests, especially latency-sensitive ones, are not blocked by longer-running operations.
5048

5149
`ServerState` aggregates all server states. For example:
@@ -118,9 +116,9 @@ To add custom command-line arguments, one can use clap flatten:
118116
#[derive(clap::Parser)]
119117
pub struct ToolArgs {
120118
#[clap(flatten)]
121-
compile: CompileOnceArgs;
119+
compile: CompileOnceArgs,
122120
#[clap(flatten)]
123-
extra: ToolExtraArgs;
121+
extra: ToolExtraArgs,
124122
}
125123
```
126124

‎content/article/en/tinymist-2024-server-part.typ‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#import "/typ/templates/blog.typ": *
22

3-
#show: main.with(
3+
#show: main-en.with(
44
title: "Tinymist 2024 - Language Server Part",
55
desc: [Some thoughts on the development of tinymist, a language server for typst.],
66
date: "2025-05-23",

‎content/article/tinymist-2024-language-part.typ‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
#show: main-zh.with(
44
title: "Tinymist 2024 - 语言服务部分",
55
desc: [关于 tinymist,一个 typst 的语言服务器的开发思考。],
6-
date: "2025-05-23",
6+
date: "2025-11-09",
77
tags: (
88
blog-tags.programming,
99
blog-tags.tinymist,
@@ -116,9 +116,9 @@ let doc = typst::compile(&verse.snapshot());
116116
#[derive(clap::Parser)]
117117
pub struct ToolArgs {
118118
#[clap(flatten)]
119-
compile: CompileOnceArgs;
119+
compile: CompileOnceArgs,
120120
#[clap(flatten)]
121-
extra: ToolExtraArgs;
121+
extra: ToolExtraArgs,
122122
}
123123
```
124124

‎content/article/tinymist-2024-server-part.typ‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
#show: main-zh.with(
44
title: "Tinymist 2024 - 语言服务器部分",
55
desc: [关于 tinymist,一个 typst 的语言服务器的开发思考。],
6-
date: "2025-11-09",
6+
date: "2025-05-23",
77
tags: (
88
blog-tags.programming,
99
blog-tags.tinymist,

‎content/snapshot/article-ids.json‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,6 @@
88
"shr",
99
"syntax",
1010
"temperament",
11-
"tinymist-2024-server-part"
11+
"tinymist-2024-server-part",
12+
"tinymist-2024-language-part"
1213
]

0 commit comments

Comments
 (0)