quchen / stgi

A user-centric visual STG implementation to help understand GHC/Haskell's execution model.
Other
527 stars 26 forks source link

Browser frontend #13

Open quchen opened 8 years ago

quchen commented 8 years ago

Looking at the STG in a browser is probably nicer than in a console.

quchen commented 8 years ago

Some specific questions to answer:

quchen commented 7 years ago

Talked to @reinh on IRC, he proposed to add a React frontend if given a proper exchange format – awesome!

reinh commented 7 years ago

Regarding evaluation model, I say start with (1) and we can add (2) over time. It'll be nice to see something quickly even if we can't work with every program.

Regarding frontend: I do React for my day job atm so I would be most productive in that. I've done some tiny personal projects in Elm and Hello World apps with PureScript's pux and halogen so I don't have much experience but I do like both of those choices in theory.

Regarding the wire format, I see a few obvious options:

XML could theoretically be better than JSON here if it had reasonable support on both ends but it doesn't... and also who wants to use XML, seriously.

I think generic generation of ToJSON instances for a list of program states would be a reasonable first try for a wire format.

quchen commented 7 years ago