-
Notifications
You must be signed in to change notification settings - Fork 40
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Better visual debugging #71
Comments
Can we use hgeometry as an ipelet? I tried to find documentation for ipelets but didn't have any luck. |
ipe supports writing ipelets in lua and in c++. See e.g. the ipe manual (for whatever reason the official manual webpages are down, so I linked to some version on the archive). I investigated a bit on what the options are:
So out of these three things I think the third one would be most promising to produce an actual ipelet. |
I think option three is very promising. We want an hgeometry executable in any case. Wrapping the executable in an ipelet should be quite doable. I'll give it a go. The Ipe manual is quite sparse but, apparently, I can put lua code in |
hgeometry-web doesn't compile for me. It fails with:
Maybe a version issue? |
when using GHC miso needs to be compiled with the '+jsaddle' flag |
How can I ask cabal to do that? |
I think 'cabal build miso -f jsaddle' should do. Or otherwise put package miso in your cabal.project.local file. (or maybe we should even put it in the cabal.project file) |
That worked, thanks. Maybe building it without optimizations would be feasible on the CI servers. |
Ergh, I accidentally clicked the wrong button
Hmm I guess we can try. I think it's mostly a memory issue though. My machine has 8GB RAM and 8GB swap, but I had to manually add an additional swap file to get jsaddle-dom to build (at least with stack and GHC <= 8.6), so I'm somewhat skeptical. |
How does Ipe compare with Inkscape? Would it make more sense to write an Inkscape extension? @noinia |
Hmm good question. I don't really know; I know ipe well because I use often use it for work (nice features being that it supports LaTeX well, and can directly store/edit pdfs). Those are not necessarily features we care about in the debugging perspective though. |
I'm obviously biased but I think using 'reanimate' is one of the better options. I'll look into adding interactivity to the browser viewer. |
Debugging the algorithms is sometimes a bit of a hassle since the show instances are quite verbose. Ideally we would have some way of showing/rendering some image that shows the geometry in question. The best thing we have so far is to render ipe or svg images. But since those parts are now in separate packages, that is sometimes a bit cumbersome as well.
Ideally the user/developer can click points/polygons/segments to show whatever data is associated with them. I'm not sure what the best way is to implement any of that. I've fiddled a bit with miso (some web framework) and reflex-sdl before to try and build some interactive application to this end. But both seem a mountain of work, nor am I sure how/what I would want precisely.
Any thoughts on how we could improve the situation?
The text was updated successfully, but these errors were encountered: