[Haskell-cafe] Hugs used in circuit simulations code

Jason Dagit dagit at codersbase.com
Tue Jul 28 23:50:17 EDT 2009

On Tue, Jul 28, 2009 at 6:32 PM, Fernan Bolando <fernanbolando at mailc.net>wrote:

> Hi all
> thanks to everyone that reviewed my code.
> The good news
> 1. I happy to say that it has become useful enough for me to use it in
> some matlab type caluculations. includes transient and dc op
> 2. The simple pivtoing code I added into the DSP Lu appears to be
> useable for this application.
> The bad news
> 1. If you dont use some strategy in simplifying circuits and use the
> simulator only, it would take a considerable amount of time to
> converge.
> A simple 10x10 non linear matrix will take 13 minutes. In a high-end
> circuit simulator this would have taken less than a second.
> What is everybodies expereience in speed difference between C and
> interpreted haskell? I am hoping to achieve at least 10x an equivalent
> C code.
> So if a 10x10 matrix takes 1 second for C I want it to take 10seconds for
> hugs.

Use GHC's profiler.  Figure out why and where the code is slow and then you
can do something about it:

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.haskell.org/pipermail/haskell-cafe/attachments/20090728/377c9d14/attachment.html

More information about the Haskell-Cafe mailing list