From eadda873193a3b7fda798c47cd207288db2e29e5 Mon Sep 17 00:00:00 2001 From: srinjoyc Date: Wed, 27 Nov 2024 09:18:26 -0800 Subject: [PATCH] updated sidebar to remove tutorials --- arbitrum-docs/stylus/concepts/how-it-works.md | 2 +- .../stylus/stylus-gentle-introduction.md | 2 +- website/sidebars.js | 77 +++++++++---------- 3 files changed, 37 insertions(+), 44 deletions(-) diff --git a/arbitrum-docs/stylus/concepts/how-it-works.md b/arbitrum-docs/stylus/concepts/how-it-works.md index 42c37f581..b5c55d14c 100644 --- a/arbitrum-docs/stylus/concepts/how-it-works.md +++ b/arbitrum-docs/stylus/concepts/how-it-works.md @@ -51,7 +51,7 @@ Stylus innovates on many levels, with the key ones described here: ### One chain, many languages -There are roughly 20k Solidity developers, compared to 3 million Rust developers or 12 million C developers [[1](https://slashdatahq.medium.com/state-of-the-developer-nation-23rd-edition-the-fall-of-web-frameworks-coding-languages-711525e3df3a)]. Developers can now use their preferred programming language, which is interoperable on any Arbitrum chain with Stylus. By onboarding the next million developers, scaling to the next billion users becomes possible. +There are roughly 20k Solidity developers, compared to 3 million Rust developers or 12 million C developers [[1](https://slashdatahq.medium.com/state-of-the-developer-nation-23rd-edition-the-fall-of-web-frameworks-coding-languages-711525e3df3a)]. Developers can now use their preferred programming language, which is interoperable on any Arbitrum chain with Stylus. By onboarding the next million developers, scaling to the next billion users becomes possible. ### A better EVM diff --git a/arbitrum-docs/stylus/stylus-gentle-introduction.md b/arbitrum-docs/stylus/stylus-gentle-introduction.md index fa08d4dc8..064358dcb 100644 --- a/arbitrum-docs/stylus/stylus-gentle-introduction.md +++ b/arbitrum-docs/stylus/stylus-gentle-introduction.md @@ -23,7 +23,7 @@ Stylus is an upgrade to Arbitrum Nitro [(ArbOS 32)](https://docs.arbitrum.io/run This second virtual machine executes WebAssembly (WASM) rather than EVM bytecode. WASM is a modern binary format popularized by its use in major web standards, browsers, and companies to speed up computation. WASM is built to be fast, portable, and human-readable. It has sandboxed execution environments for security and simplicity. Working with WASM is nothing new for Arbitrum chains. Ever since the [Nitro upgrade](https://medium.com/offchainlabs/arbitrum-nitro-one-small-step-for-l2-one-giant-leap-for-ethereum-bc9108047450), WASM has been a fundamental component of Arbitrum's fully functioning fraud proofs. -With a WASM VM, any programming language compilable to WASM is within Stylus's scope. While many popular programming languages can compile into WASM, some compilers are more suitable for smart contract development than others, like Rust, C, and C++. Other languages like Go, Sway, Move, and Cairo are also supported. Languages that include their own runtimes, like Python and Javascript, are more complex for Stylus to support, although not impossible. Compared to Solidity, WASM programs are much more efficient for memory-intensive applications. There are many reasons for this, including the decades of compiler development for Rust and C. WASM also has a faster runtime than the EVM, resulting in faster execution. Third-party [contribution](#contributing) in the form of libraries for new and existing languages is welcomed! +With a WASM VM, any programming language compilable to WASM is within Stylus's scope. While many popular programming languages can compile into WASM, some compilers are more suitable for smart contract development than others, like Rust, C, and C++. Other languages like Go, Sway, Move, and Cairo are also supported. Languages that include their own runtimes, like Python and Javascript, are more complex for Stylus to support, although not impossible. Compared to Solidity, WASM programs are much more efficient for memory-intensive applications. There are many reasons for this, including the decades of compiler development for Rust and C. WASM also has a faster runtime than the EVM, resulting in faster execution. Third-party [contribution](#contributing) in the form of libraries for new and existing languages is welcomed! ### Use Cases diff --git a/website/sidebars.js b/website/sidebars.js index d28e48219..578b4e166 100644 --- a/website/sidebars.js +++ b/website/sidebars.js @@ -515,6 +515,36 @@ const sidebars = { }, ], }, + { + type: 'html', + value: + 'Run a Stylus Dev Node', + }, + { + type: 'doc', + id: 'stylus/how-tos/debugging-stylus-tx', + label: 'Debug transactions', + }, + { + type: 'doc', + id: 'stylus/how-tos/verifying-contracts', + label: 'Verify contracts', + }, + { + type: 'doc', + id: 'stylus/concepts/stylus-cache-manager', + label: 'Cache contracts', + }, + { + type: 'doc', + id: 'stylus/how-tos/verifying-contracts-arbiscan', + label: 'Arbiscan verification', + }, + { + type: 'doc', + id: 'stylus/how-tos/adding-support-for-new-languages', + label: 'Using other languages', + }, { type: 'category', label: 'Concepts', @@ -532,48 +562,6 @@ const sidebars = { }, ], }, - { - type: 'category', - label: 'Tutorials', - collapsed: true, - items: [ - { - type: 'html', - value: - 'Run a Stylus Dev Node', - }, - { - type: 'doc', - id: 'stylus/how-tos/debugging-stylus-tx', - label: 'Debug transactions', - }, - { - type: 'doc', - id: 'stylus/concepts/stylus-cache-manager', - label: 'Cache contracts', - }, - { - type: 'doc', - id: 'stylus/how-tos/optimizing-binaries', - label: 'Optimize WASM binaries', - }, - { - type: 'doc', - id: 'stylus/how-tos/verifying-contracts', - label: 'Verify contracts', - }, - { - type: 'doc', - id: 'stylus/how-tos/verifying-contracts-arbiscan', - label: 'Arbiscan verification', - }, - { - type: 'doc', - id: 'stylus/how-tos/adding-support-for-new-languages', - label: 'Using other languages', - }, - ], - }, { type: 'category', label: 'Examples', @@ -616,6 +604,11 @@ const sidebars = { id: 'for-devs/dev-tools-and-resources/chain-info', label: 'Chain Info', }, + { + type: 'doc', + id: 'stylus/how-tos/optimizing-binaries', + label: 'Optimize WASM binaries', + }, { type: 'doc', id: 'stylus/reference/opcode-hostio-pricing',