Using Haskell for sizable real-time systems: how (if?)?

后端 未结 5 1457
野趣味
野趣味 2020-12-04 07:58

I\'ve been curious to understand if it is possible to apply the power of Haskell to embedded realtime world, and in googling have found the Atom package. I\'d assume that in

5条回答
  •  执念已碎
    2020-12-04 08:21

    I don't think Haskell, or other Garbage Collected languages are very well-suited to hard-realtime systems, as GC's tend to amortize their runtimes into short pauses.

    Writing in Atom is not exactly programming in Haskell, as Haskell here can be seen as purely a preprocessor for the actual program you are writing.

    I think Haskell is an awesome preprocessor, and using DSEL's like Atom is probably a great way to create sizable hard-realtime systems, but I don't know if Atom fits the bill or not. If it doesn't, I'm pretty sure it is possible (and I encourage anyone who does!) to implement a DSEL that does.

    Having a very strong pre-processor like Haskell for a low-level language opens up a huge window of opportunity to implement abstractions through code-generation that are much more clumsy when implemented as C code text generators.

提交回复
热议问题