4 ms·
I remember seeing a visualization of the variables and values in a python program as it ran and how they get linked to one another and that really helped me und
by krispbyte 8y ago
I remember seeing a visualization of the variables and values in a python program as it ran and how they get linked to one another and that really helped me understand python variables. Does such a visualization exists for Rust?
I'm gonna try to hunt the link for the Python one.
- adamnemecek 8y agoPython tutor http://www.pythontutor.com/visualize.html#mode=edit http://www.pythontutor.com/visualize.html#mode=edit?
- krispbyte 8y agoYes! thank you! This helped a lot for understanding the behavior of list vs other values, for example: http://www.pythontutor.com/visualize.html#code=a%20%3D%204%0Ab%20%3D%20a%0Aa%20%3D%2010%0Aprint%28a,%20b%29%0A%0At%20%3D%20%5B1,2,3%5D%0As%20%3D%20t%0At.append%284%29%0Aprint%28t,%20s%29&cumulative=false&curInstr=0&heapPrimitives=nevernest&mode=display&origin=opt-frontend.js&py=3&rawInputLstJSON=%5B%5D&textReferences=false http://www.pythontutor.com/visualize.html#code=a%20%3D%204%0... I think it would do wonders for ownership.
- quodlibetor 8y agoYou're probably thinking of http://pythontutor.com/ http://pythontutor.com/ for python. It's one of my absolute favorite instructional resources for any language. Birdseye[1] looks like it is trying to be a similar kind of thing for debugging Python, which is amazing. I don't know of anything for anything similar for Rust or anything with similar characteristics (C/++). [1] https://github.com/alexmojaki/birdseye https://github.com/alexmojaki/birdseye