正在加载视频...

视频加载失败

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

56,506 次观看 • 1 年前 •via X (Twitter)

11 条评论

HSVSphere 的头像
HSVSphere1 年前

The asm macro is so good

Matt Figdore 的头像
Matt Figdore2 年前

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.

subparDev 的头像
subparDev1 年前

I trust you, solely based on your cursor animations.

Zeke Geiss 🇺🇸 的头像
Zeke Geiss 🇺🇸1 年前

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

Dmitriy Kovalenko 的头像
Dmitriy Kovalenko1 年前

it is not hilarious it is very useful

Pranav 的头像
Pranav1 年前

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.

Dmitriy Kovalenko 的头像
Dmitriy Kovalenko1 年前

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

Stixu.io 的头像
Stixu.io1 年前

Font name?

Dmitriy Kovalenko 的头像
Dmitriy Kovalenko1 年前

Berkeley Mono v2 by @usgraphics

Ales Hakl 的头像
Ales Hakl1 年前

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)

Dmitriy Kovalenko 的头像
Dmitriy Kovalenko1 年前

No

相关视频