diff --git a/public/img/mudasir.jpg b/public/img/mudasir.jpg new file mode 100644 index 0000000..526b721 Binary files /dev/null and b/public/img/mudasir.jpg differ diff --git a/src/pages/api/std/Array/map.mdx b/src/pages/api/std/Array/map.mdx new file mode 100644 index 0000000..efaa3b3 --- /dev/null +++ b/src/pages/api/std/Array/map.mdx @@ -0,0 +1,43 @@ +--- +layout: ../../../../layouts/ApiLayout.astro +--- +import Code from "../../../../components/Code.astro" + +# `Array.map` + +Applies a function to all the elements of an array, +and returns their result in a new array. + +## Signature + + (B) map_function + ) -> Array[B] + + fun map[B]( + self[], + (A) -> (B) map_function + ) -> Array[B] +`} /> + + + + Float +{ + fmt.Println("prosor prosor %d", 322) +} +| (String a, Int b) -> Float +{ + +} +| (String a) -> Float +{ + +} + +`} /> + diff --git a/src/pages/learn/index.mdx b/src/pages/learn/index.mdx index fe9bedf..5b59ff1 100644 --- a/src/pages/learn/index.mdx +++ b/src/pages/learn/index.mdx @@ -144,11 +144,13 @@ and plugins for major editors like VSCode and Neovim. - Create a **consistent** language. - Have typings for popular libraries (like TS's `.d.ts`). - Have a simple instalation and configuration (requiring just Composer or a binary). -- Ship a **_blazingly fast_**, native binary, written in Rust. +- Ship a **_blazingly fast_**, native binary, ~~written in Rust~~ now rewritten in Zig!. - Support in-place compilation. - Implement a Language Server. - Implement an opinionated code formatter. +![Friendship ended with Rust, now Zig is my best friend.](/img/mudasir.jpg) + ## Not goals diff --git a/src/pages/learn/install.md b/src/pages/learn/install.md index 7cdc94c..39aeae7 100644 --- a/src/pages/learn/install.md +++ b/src/pages/learn/install.md @@ -5,7 +5,16 @@ title: Install # Install -**THP is not available for public use. These are goals.** +**THP is technically usable.** + +## From source (*nix) + +Requires Rust installed. + +Clone [the repo](https://git.araozu.dev/fernando/thp) and run +`cargo build --release`. You'll have a `thp` binary on +`target/release/thp`, run it and see for yourself. + ## Binary