frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Easy RISC-V

https://dramforever.github.io/easyriscv/
99•todsacerdoti•2h ago

Comments

simonebrunozzi•1h ago
Great guide! I think the first "My first RISC-V assembly program" emulator plane should be right at the beginning of the guide. Otherwise, casual readers might think that this is a text-only introduction (despite the word "interactive" in the title).

Will spend more time on it in the coming days. I am quite interested in RISC-V and I think that it might have a bright future ahead.

If any AI expert is reading this now, please use Replit or Lovable or something like that to re-create "Core War" [0] with RISC-V assembly. It would be GREAT.

[0]: https://en.wikipedia.org/wiki/Core_War

aarroyoc•1h ago
Having learned assembly with the book "Computer Organization And Design" from Patterson and Hennessy, it really shows how much RISC-V takes from MIPS. After all they share some of the people involved in both ISAs and they have learned from the MIPS mistakes (no delay slots!). Basically if you come from a MIPS the assembly is very very similar, as it was my case.

Now that book is also available with a RISC-V edition, which has a very interesting chapter comparing all different RISC ISAs and what they do differently (SH, Alpha, SPARC, PA-RISC, POWER, ARM, ...),...

However I've been exploring AArch64 for some time and I think it has some very interesting ideas too. Maybe not as clean as RISC-V but with very pragmatic design and some choices that make me question if RISC-V was too conservative in its design.

tonetegeatinst•1h ago
Do you have a link to the risc-v version? I have the MIPS version and want to pick up the risc-v version.
6SixTy•15m ago
https://www.amazon.com/Computer-Organization-Design-RISC-V-A...
fidotron•1h ago
> However I've been exploring AArch64 for some time and I think it has some very interesting ideas too. Maybe not as clean as RISC-V but with very pragmatic design and some choices that make me question if RISC-V was too conservative in its design.

Not enough people reflect on this, or the fact that it's remarkably hazy where exactly AArch64 came from and what guided the design of it.

zozbot234•41m ago
AArch64 came from AArch32. That's why it keeps things like condition codes, which are a big mistake for large out-of-order implementations. RISC-V sensibly avoid this by having condition-and-branch instructions instead. Otherwise, RISC-V is conservative because it tries to avoid possibly encumbered techniques. But other than that it's remarkably simple and elegant.
VonTum•45m ago
For the uninitiated in AArch64, are there specific parts of it you're referring to here? Mostly what I find is that it lets you stitch common instruction combinations together, like shift + add and fancier adressing. Since the whole point of RISC-V was a RISC instruction set, these things are superfluous.
zozbot234•30m ago
RISC-V has shift+add instructions as part of the Zba extension. Zba is part of B, so it's included in many recent RISC-V profiles.
doublerabbit•26m ago
Within the basic "123" ASM demo, I get that x10 - Becomes 0x00000123 as we are taking the integer of x0 and applying 123 to end of it but why is the sp (x2) register at 0x40100000?

What is that sp? Is it important? Why isn't that at 0x000000? Why isn't that explained? That's when I get lost.

cbm-vic-20•7m ago
I think there's an error in the Position Independence section:

    start:
        auipc a0, 3
        addi a0, a0, 4
The text says that this should result in 0x3004; was this example intended to be

    start:
        lui a0, 3
        addi a0, a0, 4

Easy RISC-V

https://dramforever.github.io/easyriscv/
100•todsacerdoti•2h ago•10 comments

Claude for Excel

https://www.claude.com/claude-for-excel
392•meetpateltech•7h ago•301 comments

JetKVM – Control any computer remotely

https://jetkvm.com/
235•elashri•6h ago•130 comments

10M people watched a YouTuber shim a lock; the lock company sued him – bad idea

https://arstechnica.com/tech-policy/2025/10/suing-a-popular-youtuber-who-shimmed-a-130-lock-what-...
620•Brajeshwar•10h ago•252 comments

Simplify Your Code: Functional Core, Imperative Shell

https://testing.googleblog.com/2025/10/simplify-your-code-functional-core.html
115•reqo•2d ago•44 comments

Pyrex catalog from from 1938 with hand-drawn lab glassware [pdf]

https://exhibitdb.cmog.org/opacimages/Images/Pyrex/Rakow_1000132877.pdf
242•speckx•8h ago•58 comments

Go beyond Goroutines: introducing the Reactive paradigm

https://samuelberthe.substack.com/p/go-beyond-goroutines-introducing
24•samber•1w ago•13 comments

The new calculus of AI-based coding

https://blog.joemag.dev/2025/10/the-new-calculus-of-ai-based-coding.html
58•todsacerdoti•5h ago•38 comments

Why Busy Beaver hunters fear the Antihydra

https://benbrubaker.com/why-busy-beaver-hunters-fear-the-antihydra/
118•Bogdanp•6h ago•33 comments

MCP-Scanner – Scan MCP Servers for vulnerabilities

https://github.com/cisco-ai-defense/mcp-scanner
89•hsanthan•5h ago•27 comments

Rust cross-platform GPUI components

https://github.com/longbridge/gpui-component
442•xvilka•13h ago•186 comments

Tags to make HTML work like you expect

https://blog.jim-nielsen.com/2025/dont-forget-these-html-tags/
374•FromTheArchives•13h ago•201 comments

TOON – Token Oriented Object Notation

https://github.com/johannschopplich/toon
56•royosherove•1d ago•24 comments

Solving regex crosswords with Z3

https://blog.nelhage.com/post/regex-crosswords-z3/
40•atilimcetin•6d ago•0 comments

Avoid 2:00 and 3:00 am cron jobs (2013)

https://www.endpointdev.com/blog/2013/04/avoid-200-and-300-am-cron-jobs/
231•pera•6h ago•223 comments

Image Dithering: Eleven Algorithms and Source Code (2012)

https://tannerhelland.com/2012/12/28/dithering-eleven-algorithms-source-code.html
34•Bogdanp•3d ago•8 comments

When 'perfect' code fails

https://marma.dev/articles/2025/when-perfect-code-fails
26•vinhnx•8h ago•21 comments

Sieve (YC X25) is hiring engineers to build video datasets for frontier AI

https://www.sievedata.com/
1•mvoodarla•6h ago

It's not always DNS

https://notes.pault.ag/its-not-always-dns/
24•todsacerdoti•5h ago•15 comments

Study finds growing social circles may fuel polarization

https://phys.org/news/2025-10-friends-division-social-circles-fuel.html
76•geox•4h ago•75 comments

Show HN: Dlog – Journaling and AI coach that learns what drives well-being (Mac)

https://dlog.pro/
12•dr-j•6h ago•5 comments

Should LLMs just treat text content as an image?

https://www.seangoedecke.com/text-tokens-as-image-tokens/
132•ingve•6d ago•80 comments

PSF has withdrawn $1.5M proposal to US Government grant program

https://pyfound.blogspot.com/2025/10/NSF-funding-statement.html
407•lumpa•8h ago•334 comments

The last European train that travels by sea

https://www.bbc.com/travel/article/20251024-the-last-european-train-that-travels-by-sea
129•1659447091•14h ago•122 comments

Iroh-blobs 0.95 – New features – Iroh

https://www.iroh.computer/blog/iroh-blobs-0-95-new-features
4•janandonly•6d ago•0 comments

Show HN: Erdos – open-source, AI data science IDE

https://www.lotas.ai/erdos
41•jorgeoguerra•7h ago•21 comments

fnox, a secret manager that pairs well with mise

https://github.com/jdx/mise/discussions/6779
101•bpierre•6h ago•22 comments

Eight Million Copies of Moby-Dick (2014)

https://thevoltablog.wordpress.com/2014/01/27/nicolas-mugaveros-eight-million-copies-of-moby-dick...
30•awalias•4d ago•10 comments

Why Nigeria accepted GMOs

https://www.asimov.press/p/nigeria-crops
37•surprisetalk•5h ago•71 comments

Let the little guys in: A context sharing runtime for the personalised web

https://arjun.md/little-guys
55•louisbarclay•5h ago•11 comments