← All Learning Paths

WebAssembly Developer

A WebAssembly path covering low-level binary handling, encoding, byte correctness, FFI, data structures, and streaming transforms.

roleadvanced13 nodes13h total

Path overview

WebAssembly 开发要求对字节级表示、内存布局与跨语言边界有精确理解。本路径从 Rust FFI 与二进制读写出发,覆盖端序处理、字节距离与编码、Varint 与校验和、定长环形缓冲区与树结构,最后以流式转换收尾。

This path builds the byte-level intuition WebAssembly work demands: Rust FFI, endian-aware binary I/O, byte distance and encoding, varints and checksums, fixed buffers and tree structures, and streaming transforms.

  1. Complete "Rust Unsafe and FFI" by making Two vectors split at the given index. produce [1,2,3], [4,5] without hard-coding the sample.

    Completion criteria: Show a test command that validates "Two vectors split at the given index." and "[1,2,3], [4,5]" and passes after your fix.

    Next step: Endian-Aware Binary Reader

    ⏱ 0.5h

  2. Run the webassembly snippet "Endian-Aware Binary Reader", capture stdout, and show which line demonstrates the documented behavior: "Parse and build big-endian length-prefixed frames with a version byte, flags, checksum, and".

    Prerequisites: Rust Unsafe and FFI

    Completion criteria: Paste the command, the exit code, and the output line matching "Parse and build big-endian length-prefixed frames with a version byte, flags, checksum, and"; then show a second run with a changed parameter.

    Next step: Hamming Distance Over Bytes

    ⏱ 0.75h

  3. Adapt "Hamming Distance Over Bytes" to a second input and compare the new output with the behavior described in "Count differing bits between equal-length byte slices, report bit similarity, and reject".

    Prerequisites: Endian-Aware Binary Reader

    Completion criteria: Save two runs of "Hamming Distance Over Bytes" side by side — the original input and one changed value — and annotate the line where the output diverges.

    Next step: Hex Encode And Decode

    ⏱ 0.75h

  4. Execute "Hex Encode And Decode", change one constant, and describe how the output diverges from "Convert bytes to lowercase hex and back, accepting an optional prefix and embedded".

    Prerequisites: Hamming Distance Over Bytes

    Completion criteria: Attach the terminal transcript for "Hex Encode And Decode": command, exit code, and the printed result you used to confirm "Convert bytes to lowercase hex and back, accepting an optional prefix and embedded".

    Next step: Encode Integers with LEB128 Varints

    ⏱ 0.75h

  5. Run the webassembly snippet "Encode Integers with LEB128 Varints", capture stdout, and show which line demonstrates the documented behavior: "Encode non-negative integers as compact LEB128 bytes and decode them sequentially, with".

    Prerequisites: Hex Encode And Decode

    Completion criteria: Change one constant in "Encode Integers with LEB128 Varints", rerun, and attach both stdout captures plus a one-line diff explaining what moved.

    Next step: Compress Repeated Characters with Run-Length Encoding

    ⏱ 0.75h

  6. Adapt "Compress Repeated Characters with Run-Length Encoding" to a second input and compare the new output with the behavior described in "Encode repeated characters with counts and decode the result back, rejecting zero counts and".

    Prerequisites: Encode Integers with LEB128 Varints

    Completion criteria: Paste the command, the exit code, and the output line matching "Encode repeated characters with counts and decode the result back, rejecting zero counts and"; then show a second run with a changed parameter.

    Next step: CRC32 Checksum for Buffers and Strings

    ⏱ 0.75h

  7. Execute "CRC32 Checksum for Buffers and Strings", change one constant, and describe how the output diverges from "Compute CRC32 checksums for strings and byte arrays using a precomputed lookup table, with".

    Prerequisites: Compress Repeated Characters with Run-Length Encoding

    Completion criteria: Save two runs of "CRC32 Checksum for Buffers and Strings" side by side — the original input and one changed value — and annotate the line where the output diverges.

    Next step: Fixed-Size Circular Buffer

    ⏱ 0.75h

  8. Run the webassembly snippet "Fixed-Size Circular Buffer", capture stdout, and show which line demonstrates the documented behavior: "Store the most recent items in a fixed-capacity circular buffer with overwrite eviction,".

    Prerequisites: CRC32 Checksum for Buffers and Strings

    Completion criteria: Attach the terminal transcript for "Fixed-Size Circular Buffer": command, exit code, and the printed result you used to confirm "Store the most recent items in a fixed-capacity circular buffer with overwrite eviction,".

    Next step: Fenwick Tree Prefix Sums

    ⏱ 0.75h

  9. Adapt "Fenwick Tree Prefix Sums" to a second input and compare the new output with the behavior described in "Support point updates and range-sum queries in logarithmic time with a compact binary".

    Prerequisites: Fixed-Size Circular Buffer

    Completion criteria: Change one constant in "Fenwick Tree Prefix Sums", rerun, and attach both stdout captures plus a one-line diff explaining what moved.

    Next step: Rust Iterator Pipeline for Order Reports

    ⏱ 0.75h

  10. Execute "Rust Iterator Pipeline for Order Reports", change one constant, and describe how the output diverges from "Chain Rust iterators to filter refunded orders, fold totals, group revenue by customer, and".

    Prerequisites: Fenwick Tree Prefix Sums

    Completion criteria: Save two runs of "Rust Iterator Pipeline for Order Reports" side by side — the original input and one changed value — and annotate the line where the output diverges.

    Next step: Typed Web Streams Transform Pipeline

    ⏱ 0.75h

  11. Run the webassembly snippet "Typed Web Streams Transform Pipeline", capture stdout, and show which line demonstrates the documented behavior: "the createLineDecoder entry point".

    Prerequisites: Rust Iterator Pipeline for Order Reports

    Completion criteria: Attach the terminal transcript for "Typed Web Streams Transform Pipeline": command, exit code, and the printed result you used to confirm "the createLineDecoder entry point".

    Next step: Serde

    ⏱ 0.75h

  12. Read "Serde"'s documented surface around "#[derive(Serialize, Deserialize)] #[derive(Serialize, Deserialize)]", then build a minimal endpoint and log the response.

    Prerequisites: Typed Web Streams Transform Pipeline

    Completion criteria: Run a request against "Serde", paste the response, and add one deliberately invalid call with its error.

    Next step: Capstone: WebAssembly Developer

    ⏱ 1h

  13. Deliver the "Build a JSON Schema Validator from Scratch" blueprint with "Nested $ref resolution against a local definitions registry with cycle detection" working and "patternProperties and propertyNames bring regex power to object keys" recorded as evidence.

    Prerequisites: Serde

    Completion criteria: Deliver "Nested $ref resolution against a local definitions registry with cycle detection" and paste the test output where the acceptance test passes; include the test name and command.

    Next step: Run the capstone's tests, publish the repository, and demo it to a reviewer.

    ⏱ 4h