Hacker News new | past | comments | ask | show | jobs | submit login
Finding design errors before it’s too late (arm.com)
67 points by rbanffy on April 27, 2018 | hide | past | favorite | 2 comments



What is interesting here is that some of these design errors can be completely prevented by use of sufficient type systems.

For example, register access in second case is a typical use case for (Haskell's) Either type. Yes, you get address. It either from Left (bus 1) or from Right (bus 2). By pattern matching you can decide an action to take.


And you can design hardware in Haskell http://www.clash-lang.org/




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: