ENGINEERING 167 upvotes 2022

How we built a VS Code Extension with Rust, WebAssembly, and TypeScript

167 pts
Hacker News Signal
2022 · Shared by @thunderbong
How we built a VS Code Extension with Rust, WebAssembly, and TypeScript by @thunderbong

Retrospective Overview & Key Insights

Distilled reflections, business mechanics, and tactical takeaways:

In this technical retrospective (2022), @thunderbong shares practical architectural lessons learned from running, scaling, or migrating production software under lean constraints.

Core Principles for Independent Builders:
1
Defaulting to simpler architectures (such as monolithic frameworks, SQLite, or managed VPS) prevents early engineering bankruptcy.
2
Evaluating true compute and egress costs reveals that high cloud bills can often be slashed by 80%+ through judicious re-platforming.
3
Code you write at 2 AM as a solo engineer must be easy to debug six months later without complex microservice dependencies.
Community Debate Themes:

HN engineers debated the tradeoffs between cloud convenience and raw server economics, database indexing strategies, and resisting premature architectural complexity.

Community Discussions & Critical Reviews

Key perspectives, counter-arguments, and peer founder insights debated on Hacker News (19 total discussions):

IS @IshKebab Peer Contributor
SY @syrusakbary Peer Contributor

This article is super insightful, I believe more and more extensions will be taking this approach.

At Wasmer we are planning to do the something similar for the VS Code WASM extension [1]. Right now it uses wabt.js (wabt compiled to Wasm + js bindings with Emscripten), but there are some more interesting ways to approach automatic bindings via Interface Types... here are some prototypes! [2]

[1] https://marketplace.visualstudio.com/items?itemName=dtsvet.vscode-wasm ↗

[2] https://github.com/wapm-packages/wabt/ ↗

ST @StreamBright Peer Contributor
We didn't think the benefits of asynchrony would be worth the added complexity to the language server. (For what it's worth, the folks behind Rust Analyzer, the most mature LSP implementation in Rust, seem to agree.)

That is interesting. Is it that much complexity when using async Rust?

LY @lythium Peer Contributor

Great article and thank you for sharing it!

They are mentioning that LSP will open a door to port the functionality to IntelliJ. There's no native support for LSP in IntelliJ as far as I am aware. Wondering how did they plan the port to IntelliJ when the time comes?

HISTORICAL ERA Pandemic Bubble (2020–2022)
COMMUNITY SCORE 167 points
TOTAL DISCUSSIONS 19 comments
TOPICS & TECH STACK:
More Retrospectives by @thunderbong