News for hackers. Stuff that matters.
Re:nMigen – A refreshed Python toolbox for building complex ... by JoelMcCracken on Saturday October 23, 2021 @11:49PM (#28974816)
Interesting. How does non-strict evaluation match?
Re:nMigen – A refreshed Python toolbox for building complex ... by wyager on Sunday October 24, 2021 @12:53PM (#28979671)
Because in hardware you can have undefined states (bottom) and it’s fine as long as you don’t observe the undefined state (pattern match on bottom). The only difference is pattern matching on Unit, which is represented by a zero-width bus in hardware. Beyond that, non-termination “contaminates” a value just like undefinedness “contaminates” a circuit.