正在加载视频...
视频加载失败
Some web slop vibe coders are thinking that it's impossible to use inline assembly for a real production code because they have no idea how debuggers and their software actually works here is how
11 条评论

The asm macro is so good

This is the biggest productivity cheat code right now. Kiss reading documents goodbye. You can get an instant summary of any document with this tool.

I trust you, solely based on your cursor animations.

That's hilarious that he has air stats live updating in his editor.

it is not hilarious it is very useful

For in-line assembly and performance-critical tasks on the web, WASM with Rust is probably your best bet. Take Figma, for example — all those complex vector design operations? Blazing fast, thanks to WASM under the hood. But here’s the catch: implementing WASM isn't for your average web dev. It needs solid understanding of system-level programming, something most web devs never touch, they somehow stucks on frameworks only. That’s why it’s powerful and rare.

wasm is not an assembly and a stack VM which requires a runtime and even though it also has SIMD I will be 99% sure that having a wasm container for a function like this will be slower than using a naive rust version

Font name?

Berkeley Mono v2 by @usgraphics

Inline assembly is usually code smell. If you want to hand optimize the shit out of some inner loop just doing that as separate .s offers many benefits, largest one being that you do not have to deal with some either cryptic or verbose way of specifying input/output/clobbered registers and instead just rely on the platform ABI (that overhead should be completely irrelevant for anything that you want to hand optimize)

No

