#compiler #programming-language #accelerator #hardware #building #pulsar

pulsar-frontend

A high-level programming language for building hardware accelerators

1 unstable release

0.0.1 Jun 11, 2024
0.0.0 Jun 8, 2024

#14 in #pulsar

Download history 9/week @ 2024-07-25 2/week @ 2024-08-01 3/week @ 2024-08-22 11/week @ 2024-08-29 4/week @ 2024-09-12 16/week @ 2024-09-19 10/week @ 2024-09-26

74 downloads per month
Used in 3 crates

Custom license

130KB
3.5K SLoC

pulsar

CI CodeFactor

Pulsar is a high-level programming language for building hardware accelerators. Currently, I am working toward implementing a calyx backend. It is currently a very vanilla language because I have not yet determined how it should specialize (but all ADLs in practice are DSLs).

The syntax is a very blatant clone of Swift's with some modifications, and it's also very much a WIP.

func increment(x: Int) -> Int {
    return x + 1
}
func main() {
    let input = [1, 2, 3, 4]
    let output = map<1>(increment, input)
}

The compiler is tested e2e via verilator, a hardware simulation tool.

Crates

Dependencies

~0–9.5MB
~42K SLoC