You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, clash works by default in batch mode, and can be invoked in interactive mode with clash --interactive. This is a wonderful feature that puts it leagues ahead of most traditional HDLs, of course.
However, this is extremely tedious to type and I can feel my fingers crying every time I do it. A clashi executable that mimics ghci would be fantastic.
Pros:
Incredible bloat decrease: only %20 more effort than clash, as opposed to 280% for clash --interactive. Amazing.
Cons:
Kind of stupid to implement. I suppose A) Setup.hs for clash-ghc could install a script to do this for us; B) the clash-ghc package could have a new exe clashi that uses process to invoke clash --interactive <remaining args>, or C) somehow thread --interactive through the current Main.hs for clash-ghc, but this is complicated because doing that is GHC's responsibility when parsing arguments to create DynFlags.
Currently,
clash
works by default in batch mode, and can be invoked in interactive mode withclash --interactive
. This is a wonderful feature that puts it leagues ahead of most traditional HDLs, of course.However, this is extremely tedious to type and I can feel my fingers crying every time I do it. A
clashi
executable that mimicsghci
would be fantastic.Pros:
clash
, as opposed to 280% forclash --interactive
. Amazing.Cons:
Setup.hs
forclash-ghc
could install a script to do this for us; B) theclash-ghc
package could have a new execlashi
that usesprocess
to invokeclash --interactive <remaining args>
, or C) somehow thread --interactive through the currentMain.hs
forclash-ghc
, but this is complicated because doing that is GHC's responsibility when parsing arguments to createDynFlags
.I think approach 2) (simply
execve(2)
theclash
binary) is the right approach. (This is actually what GHC for Windows does, since it cannot use a shell script.)The text was updated successfully, but these errors were encountered: