News for hackers. Stuff that matters.
Re:Why hardware development is hard, part 1: Verilog is weir... by duaneb on Thursday November 03, 2016 @04:36PM (#12867710)
> Indeed, using it made me stop thinking of Haskell as a programming language, and start thinking of it as a declarative language for constructing imperative programs in the IO monad.

Yea, the parallels between hardware design and haskell are striking. (Not just haskell, but it is perhaps the easiest to see.) In undergrad, I wrote my basic cpu project (16-bit risc) in haskell, then got it to write the verilog for me. This had the benefit of having an incredibly fast iteration cycle (including testing) paired with the ability to output an actual hardware description at any point. Very powerful. It really hammers home the difference between computation and I/O, a common theme in both CPU design and functional programs.

Also—and this is just my opinion—I much prefer declaring the computation with logical combinators rather than manually specifying how the bits are routed. This is much easier in haskell (or any functional language) than it is in verilog.

Re:Why hardware development is hard, part 1: Verilog is weir... by mungoman2 on Thursday November 03, 2016 @05:34PM (#12868190)
Hm, interesting. Have you written about this anywhere?