Live data from Hacker News

I made a debugger that draws the state machine of the program

i.imgur.com

21–30 of 62 posts

Re: I made a debugger that draws the state machine of the program

#22

How did you get your terminal to look like that?

The font looks like Terminus. The background transparency effect and hidden scrollbars can be set-up with most terminals, this one is probably urxvt. As for the borderless/undecorated window, that's probably done via the Window Manager. DWM[0] for example doesn't paint window decorations but there's usually a way to set this up in Gnome/Unity/KDE/etc as well. [0] http://dwm.suckless.org

Thanks!

Re: I made a debugger that draws the state machine of the program

#23
post #20
post #17

Earlier quoted context omitted.

Apple Swift and Unreal Engine Blueprint both have amazing state visualization tools built in. See: https://docs.unrealengine.com/latest/images/Engine/Blueprint... I think a deep visual debugging tools are going to be 'built in' in future in much the same way that HTTP primitives were recently with node and string manipulation was with Python 2.

There used to be an IDE called "Together" that supported bi-directional transformation between source code and diagrams. Although it sounded like a really cool idea, it didn't take off. Seems text is best (maybe because it supports incompatible hierarchies better).

Thanks for the info, I'd never heard of that IDE before. With its common name it's been impossible to find screenshots so far.

> Although it sounded like a really cool idea, it didn't take off.

That could have been because it was bought by Boreland, who had a history of 'not succeeding' with projects, whose focus was elsewhere, who lost key staff at an important point, and then were bought out and mismanaged from there forward?

Delphi didn't have to die the death it has.

Re: I made a debugger that draws the state machine of the program

#24
post #16

I would have been more interested by the source code and some explanations...

shameles plug for my little project - the pooh programming language:

http://mosermichael.github.io/cstuff/all/pooh-lan/2012/12/11...

here you can get an execution trace of the program: each expression is displayed as it evaluates:

http://mosermichael.github.io/cstuff/docs/html/pooh/example/...

(they used to have something like that in some scheme interpreters, i used this featue a lot at the time)

Re: I made a debugger that draws the state machine of the program

#25

Earlier quoted context omitted.

The font looks like Terminus. The background transparency effect and hidden scrollbars can be set-up with most terminals, this one is probably urxvt. As for the borderless/undecorated window, that's probably done via the Window Manager. DWM[0] for example doesn't paint window decorations but there's usually a way to set this up in Gnome/Unity/KDE/etc as well. [0] http://dwm.suckless.org

Thanks!

also, here are my dot files: https://github.com/r0nk/configs

Re: I made a debugger that draws the state machine of the program

#26
post #16

I would have been more interested by the source code and some explanations...

shameles plug for my little project - the pooh programming language: http://mosermichael.github.io/cstuff/all/pooh-lan/2012/12/11... here you can get an execution trace of the program: each expression is displayed as it evaluates: http://mosermichael.github.io/cstuff/docs/html/pooh/example/... (they used to have something like that in some scheme interpreters, i used this featue a lot at the time)

hey the projects open source, if you can add your language to ward then it might help your language have a unique IDE, It'll have something other (excluding bf) languages don't have.

Re: I made a debugger that draws the state machine of the program

#28
post #3

That is absolutely awesome. I used to have something like this: a pair of very fast dacs hooked up to the 16 address lines of my computer and another dac hooked up to the databus. It allowed me to look straight into the memory of the machine as the processor was accessing it, quite a powerful tool. Yours is nicer though (and with todays memory size I'd hate to think about the quantity of data that passes in a split s…

That reminds me of the old story of people having a audio speaker connected to the address but of their mainframe so they could detect error conditions by the sounds being made.

I found at least one old system that did this (although the version I heard related to the old mainframes Edinburgh University had decades ago):

EDSAC II had a speaker to help with debugging and this "feature" was also incorporated into versions of the LEO, the worlds first computer for business applications:

http://en.wikipedia.org/wiki/LEO_%28computer%29

I wonder if something similar could be created for the state machines in the article - giving each state it's own tone?

Re: I made a debugger that draws the state machine of the program

#29
Its interesting that its dynamic. Idea to think about would be snapshotting dot files for graphviz. Then you can do all kinds of crazy stuff with the graphviz output.

My databases at work snapshot out their schemas to graphviz to create diagrams of all the FK relationships automatically every day, which I find helpful, and more or less inspired this idea.

Re: I made a debugger that draws the state machine of the program

#30

Earlier quoted context omitted.

That reminds me of the old story of people having a audio speaker connected to the address but of their mainframe so they could detect error conditions by the sounds being made.

I found at least one old system that did this (although the version I heard related to the old mainframes Edinburgh University had decades ago): EDSAC II had a speaker to help with debugging and this "feature" was also incorporated into versions of the LEO, the worlds first computer for business applications: http://en.wikipedia.org/wiki/LEO_%28computer%29 I wonder if something similar could be created for the state…

>giving each state it's own tone?

oh man that's such a good idea.

Post reply on HN