forked from ziglang/www.ziglang.org
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
28 changed files
with
1,607 additions
and
389 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -532,4 +532,9 @@ video { | |
#back { | ||
margin-top: 1em; | ||
display: inline-block; | ||
} | ||
|
||
|
||
.changelist>div { | ||
padding: 5px 20px; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
--- | ||
.title = "Devlog", | ||
.author = "", | ||
.date = @date("2024-08-07T00:00:00"), | ||
.layout = "devlog.shtml", | ||
.alternatives = [{ | ||
.layout = "devlog.xml", | ||
.output = "devlog/index.xml", | ||
}], | ||
.custom = { | ||
"mobile_menu_title": "Devlog", | ||
}, | ||
// Every entry is a block of markdown content that | ||
// starts with a $section heading. | ||
// The $section.id is the date of the new micro-post. | ||
// It will also be used as the unique identifier for your | ||
// new entry both in HTML (as the fragment value) and in | ||
// the RSS feed. | ||
// If you want to publish more than one entry in the same | ||
// day, add hours, minutes and seconds to the id value. | ||
// If you get a date parsing error on build, you messed up | ||
// the date syntax. | ||
// You can look at this page's '.date' frontmatter field for | ||
// an example of a correct date string. | ||
--- | ||
|
||
# [Zig tokenizer updated to use labeled switch statements]($section.id('2024-09-11')) | ||
|
||
Author: Andrew Kelley | ||
|
||
Now that Matthew landed [labeled switch continue syntax](https://github.com/ziglang/zig/pull/21257), it's time | ||
to start using it. | ||
|
||
[Eric Petersen swooped in for a first-time contribution](https://github.com/ziglang/zig/pull/21367), | ||
updating Zig's tokenizer to use the new syntax, measuring a 13% wall time | ||
performance increase for the `zig ast-check` command: | ||
|
||
![](perf.png "perf benchmark screenshot") | ||
|
||
This line of code tickles me: | ||
|
||
```zig | ||
state: switch (State.start) { | ||
``` |
File renamed without changes
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.