Are We Loong Yet?

17 pointsposted 8 hours ago
by todsacerdoti

15 Comments

andrewflnr

2 hours ago

> Loongson Corporation has yet to release the remaining volumes of the LoongArch manual

Why? The first thing people will want to do on a new weird computer is run Linux on it. How can the manufacturer possibly benefit from not releasing the manual? Are they still writing/editing it?

internet2000

an hour ago

The LoongArch initiative made sense before Risc-V, when RMS was using it, etc. Now it makes more sense to put more wood behind one arrow.

galleywest200

2 hours ago

NetBSD appears to support Loongson but is not listed on this website: https://wiki.netbsd.org/ports/evbmips/ (Loongson MIPS64 based devices)

aarroyoc

2 hours ago

It's not. Before LoongArch, Loongson made MIPS64 CPUs. But this is about LoongArch which is similar but incompatible with MIPS64.

juancn

an hour ago

First time I heard about this, for those like me:

https://en.wikipedia.org/wiki/Loongson

TLDR: it's a MIPS-compatible CPU architecture

aarroyoc

an hour ago

Loongson started with MIPS CPUs but current CPUs are not MIPS-compatible. LoongArch, while being very similar to MIPS, uses a different encoding. And some other details have changed. Better to say, MIPS-inspired.

MarsIronPI

an hour ago

What are LoongArch's technical advantages over RISC-V? In other words, why should a company develop their own architecture (which then they need to push support for) rather than use an existing, free one?

inejge

2 minutes ago

I don't know about advantages, but lead times in the chip business are long and you're not turning around on a dime without very pressing reasons. Loongson has probably had many things in the pipeline as RISC-V started gaining steam. Their current processors are more advanced designs than the best known RISC-Vs.

Pet_Ant

3 hours ago

I mean isn't this equivalent to "are we MIPS yet?"? I don't know the technicalities, but aren't they suspiciously close aren't they? ...and MIPS has been supported for a loong time already.

pm215

an hour ago

"suspiciously close" isn't close enough, unfortunately, though it might make the task less work:

If your uname output, compiler architecture ifdefs, etc, don't match the existing architecture then basically every program that does per architecture specialisation will need updating, even if fairly trivially so.

If you're not building and running identical binaries, then anybody who distributes binaries needs to be persuaded that it's worthwhile to get hold of build machines and devote archive space and maintenance time to your new architecture.

There may be political issues where neither the owners of the old architecture nor the owners of the new clone want to come out and admit that it's very similar. This may result in projects treating it as "genuinely new architecture" rather than "variant of an existing one", which is more work. (There are also technical concerns about future divergence that might argue for "not just a variant".)

If you have to have the code structure of a complete new architecture then this can also trigger more work where the old arch code got to get away with legacy practices and APIs but the newcomer is expected to reach any project standards for new code, so "copy, paste, rename" is insufficient. Sometimes this imposes constraints that make more work elsewhere: for instance a new architecture in Linux is expected to follow a modern syscall numbering scheme and set of syscalls, so it won't have a userspace ABI that's compatible with the arch it is cloning.

If the architecture you're cloning is a "declining" architecture now mostly in legacy setups, then modern projects you care about for your new architecture might not have good or any support for it. (If you cloned sh4 you won't have easy rust support, for example.)

Overall, getting a new architecture from "we have a spec" to comprehensive open source ecosystem support is a heavy lift, and clone and copy doesn't get you out of all of it. (Look back at how long it took 32 bit Arm and then 64 bit Arm and now how riscv is following similar paths. These have all been years long efforts with a very long tail.)

znpy

8 hours ago

Can regular people or companies buy a loongson system somewhere without going through shady hoops or is this fanfare essentially self-celebration?

Venn1

4 hours ago

The Orange Pi Nova will use Loongson's 2K3000 SoC and should be available on Amazon. Looking forward to getting one in for review.