Better HN
topnewbestaskshowjobs
Log inSign up

camel-cdr

2,249 karma · joined Jan 31, 2021 (5y ago) · 844 submissions

Submissions

comment 15h ago · link · parent

1.38GHz lol

2.

XiangShan Tapeout History(docs.xiangshan.cc ↗)

1 points · by camel-cdr · 3d ago · discuss

comment 6d ago · link · parent

RE [0]: That blog post is quite disingenuous/wrong, e.g. the entire thing on the encoding misinterprets what RISC-V was optimized for (the table needs to be inverted) It's probably to late to write a response now though? If you are interested, maybe I can find the motivation to go through everything.

4.

RISC-V Matrix Extensions(fprox.substack.com ↗)

3 points · by camel-cdr · 1w ago · discuss

comment 1w ago · link · parent

> Really, the cost for flags on OoO cores isn't that high. You have already implemented everything you need to rename regular registers, which you can reuse to implement flag renaming too. It costs a tiny bit of area and maybe a little routing complexity, but doesn't have any impact on fmax.

I generally agree, but want to point out that they aren't "free" either. Look at contemporary wide OoO Arm cores, most (Apple Silicon, C1-Ultra, ...) have half the throughput on flag reading/writing instructions than the equivalent instruction without the flag write (ADD vs ADC vs ADDS). So clearly the cost is high enough to drive towards such tradeoffs being made.

comment 3w ago · link · parent

At this point I've stopped considering TT as a serious company.

Their original slides had Ascalon silicon in 2024 at 3ish GHz, now the devboard is supposed to be next year at 1.38GHz on an older node and it still has not taped out yet as of last month.

comment 3w ago · link · parent

The devboard, was supposed to come out end of last year, now it's sometime next year with 1.38GHz on 12nm.

comment 3w ago · link · parent

no way they opsec is that bad

comment 3w ago · link · parent

No, it's practically supported by everybody, except SiFive...

SiFive only supports it in their new generation performance cores.

comment 4w ago · link · parent

The CH32V407/CH32V467 is a bit more expensive, was $2.4 per unit two month ago, but supports the embedded subset of the RISC-V vector extension.

So you basically get a full AVX-512/SVE level SIMD ISA, minus FP support and with 64-bit SIMD width. But you still have LMUL, which will be great here to maximize utilization.

comment 1mo ago · link · parent

The C preprocessor is practically turing complete, in the same sense that C it self or your computer is practially turing complete, but not strictly.

12.

Qualcomm vs Arm: Day 2 Exposes the Leverage That Architectures Bring(forbes.com ↗)

1 points · by camel-cdr · 1mo ago · discuss

comment 1mo ago · link · parent

I see that it's currently not culturally accepted, but fundamentally is also a case of entitlement from the hosts part.

comment 1mo ago · link · parent

> everyone demands they are catered to on their terms.

How much of a thing is this in practice? To me this also feels driven by the expectations of the host towards the guests beeing fully accommodated by them. It's probably a mixture of both.

Like, I'm happy to bring my own food, when invited. E.g. I would presume most vegans would be cool with bringing their own or ordering, as you are used to that anyways.

comment 1mo ago · link · parent

Also, rust could just be based and make -mno-strict-align the default.

16.

A "proof" of Fermat's Last Theorem that fits the margin(blog.trailofbits.com ↗)

8 points · by camel-cdr · 2mo ago · discuss

comment 2mo ago · link · parent

https://reddit.com/r/IndieDev/comments/1vfwuf5/a_player_foun...

comment 2mo ago · link · parent

I found this post interesting in that reguard: https://www.lesswrong.com/posts/thXohzXrWCA2EhZCH/mateusz-ba...

comment 2mo ago · link · parent

There also is an insentive to silently give prominent people (e.g. Linus) or reasearchers like this custom tuned system prompts or even more powerful models.

comment 2mo ago · link · parent

I suppose nobody sane would give their AI internet access (even read) while training it. Though if they did, I don't think they'd want this to be public, because how can you even protect against this?

comment 2mo ago · link · parent

I wonder how much this matters for python. As long as the important dependencies like numpy runtime dispatch RVV, it should probably be fine.

Zba would probably give a small boost. Zbb gives a substantial boost to perf for applications that use clz/popc heavily, but I don't think that would apply to python.

comment 3mo ago · link · parent

https://camel-cdr.github.io/rvv-bench-results/sifive_p870/in...

comment 3mo ago · link · parent

related: https://www.sifive.com/development-platforms/sifive-bigsky-s...

24.

ISO/IEC DIS 26791-1 – The RISC-V instruction set manual(iso.org ↗)

4 points · by camel-cdr · 3mo ago · 3 comments

comment 3mo ago · link · parent

I really like what you are doing here, the state of inline assembly is a similar travesty to the state of guided codegen/autovec.

On concern I have is how this maps to ARM64 syntax, because ARM64 is massively overloading all mnemonics.

For example:

    ld1d z0.h, p0/z, [x1, x2, lsl 3]
    ld1d z0.h, p0/z, [x1, z0.h, lsl 3]
Have extremely different performance characteristics, yet would map to the same code:

    ld1d dst, p0/z, [base + idx<<3]
Imo this makes reading the assembly quite bothersome. I'm already not a fan of ARM64 doing the mnemonic overloading, but at least you can figure out the operation by looking at the same line further to the right.

Also, maybe I missed it, but how are you dealing with things like the /z modifier, pre/post-increment load/store and load pair? Or things like TBL/ST4/LD4?

Oh and how are the types going to work for RVV, where the type can't be determined at compile-time in all situations?

comment 3mo ago · link · parent

> I was aware that some architectures had distinct floating point registers

Most ISAs do.

On x86 and arm scalar and FP registers are separate, it's just that they overlap FP and SIMD registers.

On RISC-V there are three separate register files for scalar, FP and SIMD. Although you can overlap scalar and FP in some minimal embedded configurations.

comment 3mo ago · link · parent

Already in the works: https://lists.riscv.org/g/tech-announce/message/782
12345
29