Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

In a general purpose language, every line of code is implicitly sequenced, until told otherwise (e.g. for each in parallel, do...)

In a hardware description language, every line of code is executed in parallel, unless explicitly sequenced.

QED

I think it would be interesting, or at least instructive, to try and teach the HDL version of thinking to an untainted student.



Note that that's not quite true for Haskell.

In Haskell, each line is not sequenced implicitly, though there are useful patterns (monads) which do specify the evaluation order. IO, State, and Writer are all sequenced, [] is depth first search, and Par is in parallel. We've got patterns for them all.


A good point, and I would agree that Haskell is a good candidate for HDL. The following project nicely captures what I think of as a good direction (except for dependence on the JVM which is cross platform torture): https://chisel.eecs.berkeley.edu




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

Search: