From 236240991548f151a5c2b6f468955139c370cf21 Mon Sep 17 00:00:00 2001 From: Kai Schmidt Date: Thu, 4 Apr 2024 19:39:33 -0700 Subject: [PATCH] prepare 0.10.0 release --- changelog.md | 6 +++--- site/blog/list.txt | 4 ++-- site/blog/uiua-0.10.0-text.md | 19 ++++++++++++------- site/src/markdown.rs | 2 +- src/primitive/defs.rs | 2 +- 5 files changed, 19 insertions(+), 14 deletions(-) diff --git a/changelog.md b/changelog.md index d2a440973..6190183a0 100644 --- a/changelog.md +++ b/changelog.md @@ -1,10 +1,10 @@ # Uiua Changelog Uiua is not yet stable. + -## 0.10.0 - 2024-04-?? -This version is not yet released. If you are reading this on the website, then these changes are live here. - +## 0.10.0 - 2024-04-04 +You can find the release announcement [here](https://uiua.org/blog/uiua-0.10.0). ### Language - **Breaking Change** - Multiline strings are now also *raw strings* which do not require escaping - They are no longer format strings by default diff --git a/site/blog/list.txt b/site/blog/list.txt index 9ab78f918..ea5f82a93 100644 --- a/site/blog/list.txt +++ b/site/blog/list.txt @@ -1,3 +1,3 @@ -second-class-functions: 2023-12-15 - Why doesn't Uiua have first-class functions? +uiua-0.10.0: 2024-04-04 - Announcing Uiua 0.10.0 what-will-1-look-like: 2024-01-19 - What will Uiua 1.0 look like? -# uiua-0.10.0: 2024-04-?? - Announcing Uiua 0.10.0 \ No newline at end of file +second-class-functions: 2023-12-15 - Why doesn't Uiua have first-class functions? diff --git a/site/blog/uiua-0.10.0-text.md b/site/blog/uiua-0.10.0-text.md index 7eb087578..44c55789c 100644 --- a/site/blog/uiua-0.10.0-text.md +++ b/site/blog/uiua-0.10.0-text.md @@ -1,10 +1,10 @@ # Announcing Uiua 0.10.0 -2024-04-?? +2024-04-04 Uiua 0.10.0 is now available! -You can find the full changelog [here](https://uiua.org/docs/changelog). +You can find the full changelog [here](https://uiua.org/docs/changelog#0.10.0---2024-04-04). This release contains so many changes, improvements, and new features that I thought it deserved a blog post. From here on, major releases will be announced in this way. @@ -16,7 +16,11 @@ While there are many changes, I want to highlight a few of them here. Using [`un`](https://uiua.org/docs/un) on a constant value will now match a pattern. When used with [`try`](https://uiua.org/docs/try), this can be used to conditionally match, extract, and process values. ```uiua -F ← ⍣(×10°[1⊙3]|°(⊂5)|⇌) +F ← ⍣( + ×10 °[1⊙3] # Extract and multiply.. +| °(⊂5) # ..or remove leading 5.. +| ⇌ # ..else reverse +) F [1 2 3] F [5 6 7] F "cool!" @@ -67,12 +71,13 @@ This simplifies a lot of string-processing code in particular. A new [strings](h Switch functions now format to use `⟨⟩` brackets. This makes them easier to distinguish from function packs. ```uiua -F ← ⟨×10|↥2⟩<2. +F ← (×10|↥2)<2. # This.. +F ← ⟨×10|↥2⟩<2. # Formats to this F 0 F 5 ``` -[`map`](https://uiua.org/docs/map) and related functions are no longer experimental! +[`map`](https://uiua.org/docs/map) and related functions are no longer experimental! See the [`map`](https://uiua.org/docs/map) docs for an overview. ```uiua map 1_2_3 4_5_6 ``` @@ -81,9 +86,9 @@ The new [`&clget`](https://uiua.org/docs/&clget) and [`&clset`](https://uiua.org The interpreter's built-in language server now supports [many more features](https://marketplace.visualstudio.com/items?itemName=uiua-lang.uiua-vscode). -There are a ton more! Again, you can read the full changelog [here](https://uiua.org/docs/changelog). +There are a ton more! Again, you can read the full changelog [here](https://uiua.org/docs/changelog#0.10.0---2024-04-04). -## ♥ +## 💖 As always, I'd like to thank everyone who contributed to this release, whether by directly contributing code, reporting bugs, or just using Uiua and providing feedback. diff --git a/site/src/markdown.rs b/site/src/markdown.rs index 5013eed58..d2a44cc99 100644 --- a/site/src/markdown.rs +++ b/site/src/markdown.rs @@ -52,7 +52,7 @@ fn node_view<'a>(node: &'a AstNode<'a>) -> View { return view!().into_view(); } } - text.into_view() + view!({text}" ").into_view() } NodeValue::Heading(heading) => { let id = all_text(node).to_lowercase().replace(' ', "-"); diff --git a/src/primitive/defs.rs b/src/primitive/defs.rs index 9dc5e91ab..a58a1c5d4 100644 --- a/src/primitive/defs.rs +++ b/src/primitive/defs.rs @@ -2105,7 +2105,7 @@ primitive!( /// Operations that do not specifically work on maps will remove the keys and turn the map into a normal array. /// /// [fix]ing a map will [fix] the keys and values. This exposes the true structure of the keys array. - /// ex: ¤ map 1_2_3 4_5_6 + /// ex: ¤ map 3_10_5 "abc" /// This is usually only useful with [rows]. /// ex: ≡get [1 3 3 2] ¤ map 1_2_3 4_5_6 ///