News for hackers. Stuff that matters.

rachitnigam

Re:Calyx: Intermediate Language for Hardware Accelerators on Tuesday February 27, 2024 @12:24PM (#39526715)
You can express full CPU designs in Calyx (in fact, we have) because it is a superset of a hardware description language. However, Calyx will probably not provide any substantial benefit in this case because there are not that many opportunities to optimize things.

The premise of Calyx is you're generating hardware designs from high-level code which has a lot more structure than arbitrary HDL code and the compiler will use that extra structure to automatically do optimizations that cannot be done over arbitrary HDL code.

Re:Calyx: Intermediate Language for Hardware Accelerators on Tuesday February 27, 2024 @12:22PM (#39526688)
Yeah, we've been able to compile entire neural networks like GoogleNet etc. through Calyx. See: https://calebmkim.github.io/files/pubs/src.pdf

HLS-like languages are an input to Calyx. For example, we're currently building a Vivado alternative using Calyx and the frontend there does the pipelining for us. Calyx then goes in and performs a bunch of other optimizations.

A big edge we have is that Calyx supports both statically-scheduled circuits (where the latencies of things are known) and dynamically-scheduled circuits (where latency is not known). Because of this, we have been able to do optimizations in this new flow that take advantage of both.

Re:Calyx: Intermediate Language for Hardware Accelerators on Monday February 26, 2024 @01:59PM (#39515443)
All of those things. Most HLS tools use the CDFG to generate optimized resource bindings and area-aware optimizations.
Re:Calyx: Intermediate Language for Hardware Accelerators on Monday February 26, 2024 @01:42PM (#39515193)
Author of Calyx here. Good question! Usually, you can use OpenCL based drivers to interface with standard memory interfaces on FPGAs.

ASICs require a lot more work by either packaging on the same chip as a processor or building IO interfaces for their own package.

Re:Calyx: Intermediate Language for Hardware Accelerators on Monday February 26, 2024 @01:40PM (#39515171)
But again, this notion of "outsiders" is very gatekeepy. There have been substaintial successes in using high-level programming models for hardware design.

The Google VCU paper explicitly mentions using such tools made them faster. All of these is enabled by people looking at problems with a fresh perspective

Re:Calyx: Intermediate Language for Hardware Accelerators on Monday February 26, 2024 @12:47PM (#39514417)
Odd, it works correctly for me: https://rachit.pl/files/pubs/calyx.pdf

What platform/browser has this problem?

Re:Calyx: Intermediate Language for Hardware Accelerators on Monday February 26, 2024 @12:45PM (#39514399)
Author of Calyx here. I always find these arguments quite reductive but will nonetheless entertain them.

"Developing Hardware is a solved problem"

For which audience specifically? Maybe if you consider giant teams at large corps pouring in millions. Is it a solved problem for hobbyists, students, people who're just curious? Most people who're curious about software can go play with it in 15 mins. For hardware, it's more like months.

"If you need pseudo-DSL ..."

Weirdly gatekeepy. Why should hardware be only used by experts? There's lot you could've said about it being hard to optimize hardware well (which is challenging with HDLs too) but instead choose this argument.

"You cannot abstract away this engineering task" The goal of research is to try to do things differently. We already know how to build hardware using HDLs, with waterfall models and giant teams. We want to figure out if there are better ways to do it.

The VLSI revolution wouldn't have happened if randos on the internet kept complaining about how "we already know how to do full custom design" and "you cannot abstract physics". We did before, and it changed the world. Let's have some optimism.

Tell HN: TheForkJoin, a CS research twitch stream/podcast

TLDR: We're two programming languages PhDs and are starting a new podcast/twitch stream to go in-depth about various topics.Hi HN! Me (https://rachit.pl) and my friend Oliver (https://www.oflatt.com/) are starting a new twitch show to have long, in-depth conversations about programming languages and computer science. We're going to use Twitch to flip the usual talk show dynamic and get...

( Read More... | 1 comment | 2 points | on HN )
You’re thinking of 6110 (advanced programming languages) not 6120
Re:Go generics are not bad on Friday July 08, 2022 @07:56PM (#32029640)
Not quite. This also has the type ‘a -> ‘a:

def nitpick(x): throw “foo”

Re:Dear sir, you have built a compiler on Thursday January 13, 2022 @11:40AM (#29922867)
i have never personally called out anyone anywhere ever
Re:Dear sir, you have built a compiler on Thursday January 13, 2022 @11:39AM (#29922837)
[OP] Yup, that was the intent. I've seen a lot of academic and industrial hand wringing about not wanting to build a compiler because it's an overkill for the solution only to have the people come back 6 months later having built a compiler.

I'm not saying everyone should build a compiler for everything–but when you should build a compiler, you really should bite the bullet and build a compiler.

Re:Dear sir, you have built a compiler on Thursday January 13, 2022 @11:27AM (#29922580)
[OP] Ah, I've just seen a bunch of people showcase "amazing new tools" that are just bad compilers in disguise. State of the art Database query optimizers are good examples of this.
Re:Dear sir, you have built a compiler on Thursday January 13, 2022 @09:29AM (#29921075)
Racket is often heralded as the "programming language programming language" and comes with tons of features to build full blown languages: https://racket-lang.org/

The most complete language/ecosystem that really showcases Racket's capabilities is Rosette IMO: https://github.com/emina/rosette/

Older »