Skip to content

Commit

Permalink
prepare 0.10.0 release
Browse files Browse the repository at this point in the history
  • Loading branch information
kaikalii committed Apr 5, 2024
1 parent fe004f7 commit 2362409
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 14 deletions.
6 changes: 3 additions & 3 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
# Uiua Changelog

Uiua is not yet stable.
<!-- 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-??
This version is not yet released. If you are reading this on the website, then these changes are live here.
<!-- You can find the release announcement [here](https://uiua.org/blog/uiua-0.10.0). -->
## 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
Expand Down
4 changes: 2 additions & 2 deletions site/blog/list.txt
Original file line number Diff line number Diff line change
@@ -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
second-class-functions: 2023-12-15 - Why doesn't Uiua have first-class functions?
19 changes: 12 additions & 7 deletions site/blog/uiua-0.10.0-text.md
Original file line number Diff line number Diff line change
@@ -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.
Expand All @@ -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!"
Expand Down Expand Up @@ -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
```
Expand All @@ -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.

Expand Down
2 changes: 1 addition & 1 deletion site/src/markdown.rs
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ fn node_view<'a>(node: &'a AstNode<'a>) -> View {
return view!(<Prim prim=prim/>).into_view();
}
}
text.into_view()
view!({text}" ").into_view()
}
NodeValue::Heading(heading) => {
let id = all_text(node).to_lowercase().replace(' ', "-");
Expand Down
2 changes: 1 addition & 1 deletion src/primitive/defs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
///
Expand Down

0 comments on commit 2362409

Please sign in to comment.