Hacker News

Top stories

Live mirror
30 storiesupdated just nowView source snapshot
  1. Human brain is two separate organs, Stanford Medicine-led research finds(stanford.edu ↗)
    96comments
  2. If math is more than proof, we need to better celebrate the rest of it(terrytao.wordpress.com ↗)
    64comments
  3. GPT-6 Astra Solves a WWI German Radio Cipher(prinzai.com ↗)
    54comments
  4. AI posters don't have to be horrible(john.hartnup.uk ↗)
    5comments
  5. Android 17 is the first since 3.x to add new APIs without releasing to the AOSP(grapheneos.social ↗)
    414comments
  6. San Francisco Onion Futures Company(onionfutures.com ↗)
    67comments
  7. Cloudflare Quick Tunnels(cloudflare.com ↗)
    282comments
  8. "The Secret Life of Circuits" is here(coredump.cx ↗)
    7comments
  9. SDCC – Small Device C Compiler(sourceforge.net ↗)
    18comments
  10. Science Is Open Software(jepedersen.dk ↗)
    38comments
  11. Typesafe-computer-use drives a Mac toward a goal for 1/50th of a cent per step(github.com/awlevin ↗)
    50comments
  12. How to Write with an LLM(sockpuppet.org ↗)
    329comments
  13. You can run Git on object storage if you re-make packfiles(tigrisdata.com ↗)
    15comments
  14. Saving another 100TB of RAM(cloudflare.com ↗)
    78comments
  15. Why building a Rust LSP is hard(rust-glancer.github.io ↗)
    32comments
  16. How OpenAI Used Its Own LLMs to Design Its Jalapeño Chip(ieee.org ↗)
    87comments
  17. Apple M6 Pro Achieves the Highest Single-Core CPU Score in Geekbench 7(geekbench.com ↗)
    40comments
  18. Ctenophores: Wonders of Biology(quantamagazine.org ↗)
    6comments
  19. NASA-IBM Lunar Foundation open-Source Geospatial AI Model(usra.edu ↗)
    2comments
  20. The first new cat species discovered in 100 years(nationalgeographic.com ↗)
    105comments
  21. OpenJev(openjev.com ↗)
    265comments
  22. Goroutine Leak Profiles(go.dev ↗)
    4comments
  23. Show HN: Cactus Needle 3: 8-29MB automation models can match DeepSeek V4 Flash(cactuscompute.com ↗)
    88comments
  24. Photon-Emission-Guided Laser Fault Injection Enables RP2350 Secure Debug(ledger.com ↗)
    70comments
  25. Cache-to-Cache: Direct Semantic Communication Between LLMs (2025)(arxiv.org ↗)
    13comments
  26. Suppress vulnerabilities applying Kubernetes context to scans(github.com/alegrey91 ↗)
    2comments
  27. Veronese's Dogs(publicdomainreview.org ↗)
    1comments
  28. Warez: The Infrastructure and Aesthetics of Piracy (2021)(archive.org ↗)
    68comments
  29. Inside ZCode: Silently uploading your Git history to the cloud(ferstar.org ↗)
    100comments
  30. Cyclomatic Complexity in C#(ndepend.com ↗)
    21comments

Ask HN: Best blog tutorial explaining Assembly code?

1 pointsby 2y ago
4 comments
2y agoHN ↗

This is almost Hello World:

https://stackoverflow.com/questions/2246748/assembly-linking... ~:

  cat hello.asm
  # section .text
  #      jmp [rax]
  nasm -f elf64 hello.asm
  objdump -Sr hello.o

/? nasm helloworld: https://www.google.com/search?q=nasm+helloworld :

- https://www.devdungeon.com/content/hello-world-nasm-assemble... : succinct Hello World program; 32bit ; - [ ] port this to 64bit

- "NASM Tutorial" https://cs.lmu.edu/~ray/notes/nasmtutorial/ ; a good "blog tutorial explaining Assembly code" per OT

"What is better "int 0x80" or "syscall" [or "sysenter" or VDSO] in 32-bit code on Linux?" https://stackoverflow.com/questions/12806584/what-is-better-... links to https://stackoverflow.com/questions/12776340/system-calls-im... which links to the vDSO Wikipedia article, which explains that vDSO supports ASLR and is more portable than `int 80` (which is the old 32bit way to syscall)

vDSO: https://en.wikipedia.org/wiki/VDSO

"Linux Assembly HOWTO" http://tldp.org/HOWTO/Assembly-HOWTO/

2y agoHN ↗

WASM: WebAssembly > Specification > Wasm program > Code representation > C source code and corresponding WebAssembly https://en.wikipedia.org/wiki/WebAssembly#Code_representatio...

WASI: https://en.wikipedia.org/wiki/WebAssembly :

WebAssembly System Interface (WASI) is a simple interface (ABI and API) designed by Mozilla intended to be portable to any platform.[84] It provides POSIX-like features like file I/O constrained by capability-based security.[85][86] There are also a few other proposed ABI/APIs.[87][88]

[88]: webassembly/wasm-c-api: https://github.com/WebAssembly/wasm-c-api

/? WASM tutorial: https://www.google.com/search?q=wasm+tutorial

/? WASM helloworld: https://www.google.com/search?q=wasm+helloworld

Learn X in Y minutes > WebAssembly: https://learnxinyminutes.com/docs/wasm/

WebAssembly/WABT: The WebAssembly Binary Toolkit: https://github.com/WebAssembly/wabt

https://docs.docker.com/desktop/wasm/ :

  docker run \
    --runtime=io.containerd.wasmedge.v1 \
    --platform=wasi/wasm \
    secondstate/rust-example-hello

Docker Desktop downloads and installs the following runtimes that you can use to run Wasm workloads:

  io.containerd.slight.v1
  io.containerd.spin.v2
  io.containerd.wasmedge.v1
  io.containerd.wasmtime.v1
  io.containerd.lunatic.v1
  io.containerd.wws.v1
  io.containerd.wasmer.v1

Do all of these have WASI?