Better HN
topnewbestaskshowjobs
Log inSign up

amazing42

76 karma · joined Aug 2, 2022 (4y ago) · 14 submissions

Submissions

comment 6mo ago · link · parent

The book works through what happens when tensor coordinates have names the compiler can check, from reductions through autodiff and recurrences. There's a small prototype language (github.com/einlang/einlang), but the book is the main thing.

2.

Show HN: The Name in the Bracket (a free book on naming tensor dimensions)(einlang.github.io ↗)

2 points · by amazing42 · 6mo ago · 1 comment

3.

Show HN: Einlang, a math-intuitive language with lots of good stuff(github.com ↗)

4 points · by amazing42 · 7mo ago · discuss

comment 4y ago · link · parent

Thanks for bringing this up. Now you can use cmake find_package with it.

comment 4y ago · link · parent

That is true. Hopefully, adding more static_assert to the lib can fail the compiler early and give more instructive error message.

comment 4y ago · link · parent

Yeah, that is super cool feature of compiler explorer compared to other online compiler.

comment 4y ago · link · parent

Actually this library (match(it)) is more similar to Racket. You can see there are lots of patterns borrowed from Racket pattern matching, say app pattern and ooo pattern.

comment 4y ago · link · parent

Sadly lvariant did not get into C++ language. The library supports pattern matching against std::variant/std::any and class inheritance as a replacement.

comment 4y ago · link · parent

The godbolt link is only a simple sample.

Rust does not support view pattern (called in Haskell) or app pattern (called in Racket). And that has been implemented in this library.

comment 4y ago · link · parent

Yeah. That is supported.

11.

Show HN: Match(it): A C++17 pattern-matching library with lots of good stuffs(github.com ↗)

85 points · by amazing42 · 4y ago · 44 comments

comment 4y ago · link · parent

Thanks for your comment!

13.

Show HN: Mom, can we have (Haskell flavored) post-modern C++ at home?(github.com ↗)

20 points · by amazing42 · 4y ago · 3 comments