在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):rgleichman/glance开源软件地址(OpenSource Url):https://github.com/rgleichman/glance开源编程语言(OpenSource Language):Haskell 100.0%开源软件介绍(OpenSource Introduction):Link to project wiki (for mobile viewers) For updates and coding livestreams check out the Glance YouTube channel. Also, check out Only1Loatheb's fork which has a different visual style and an interactive mode. GlanceGlance is a visual syntax for the programming language Haskell. The goal of this project is to increase programmer happiness and productivity by allowing programmers to create and understand programs in new and different ways. Currently, the Glance executable produces a visual representation of your code in the form of an SVG image when given a textual Haskell source file. In the future, I hope to create a visual editor for Haskell. Please scroll down to see some example images. The current Glance program is an experiment created to answer the question: For small to medium functions, in my opinion Glance produces images good enough to indicate that the answer is yes. For large functions, the results right now are inconclusive due to issues with graph layout. Specifically, large programs unnecessarily become very spread out. If you have any ideas about how to improve Glance, please create an issue. The next steps for the project are to improve graph layout, and then to start work on a visual editor. If you would like to help and have any knowledge about graph layout, please make a comment on this issue. All contributions to any part of Glance are very much encouraged. Try itFirst install Graphviz. For instance, in Ubuntu run:
Then build and execute glance:
To see the command line options run
Now display the SVG image in a web browser
You should now see in your browser window a visual representation of the factorial function. Next, you will probably want to read the Getting Started guide below to help understand the images Glance generates. IssuesGlance is still in development, so for the time being, graph layout, line routing, and icon design all have much room for improvement. Here are some specific issues:
To learn moreTo learn more about the project after reading this README, please check out the Glance wiki. Getting startedBelow is a getting started guide for Glance rendered by Glance itself (source here). To generate this image run
You should now be able to understand Glance's visual syntax. If you would like to see how visual code might be an improvement over textual code, or if you just want to see more examples, please take a look at the Glance wiki page Advantages of Glance. ThanksA large thanks to the creators of diagrams, the main Haskell library used in this project. Thank you to the Santa Monica Haskell Users Group for their support and feedback. Also thanks to the /r/haskell subreddit for reviewing a very early design of the language. |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论