TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Visualize Python, Java, JavaScript, TypeScript, Ruby, C, and C++ Code Execution

317 pointsby kerckerabout 9 years ago

11 comments

sumukh1about 9 years ago
Here are some related links:<p>Demo of Python Tutor being used in a computer science textbook: <a href="http:&#x2F;&#x2F;www.composingprograms.com&#x2F;pages&#x2F;17-recursive-functions.html" rel="nofollow">http:&#x2F;&#x2F;www.composingprograms.com&#x2F;pages&#x2F;17-recursive-function...</a><p>The textbook above is from the introductory computer science course at UC Berkeley (<a href="http:&#x2F;&#x2F;cs61a.org" rel="nofollow">http:&#x2F;&#x2F;cs61a.org</a>)<p>Previous Discussion (~3 years ago): <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=4601478" rel="nofollow">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=4601478</a><p>If you are interested in the technical details of CPython, the author posted a mini course on technical details about CPython here: <a href="http:&#x2F;&#x2F;pgbovine.net&#x2F;cpython-internals.htm" rel="nofollow">http:&#x2F;&#x2F;pgbovine.net&#x2F;cpython-internals.htm</a><p>1 hour podcast that describes the course: <a href="https:&#x2F;&#x2F;talkpython.fm&#x2F;episodes&#x2F;show&#x2F;22&#x2F;cpython-internals-and-learning-python-with-pythontutor.com" rel="nofollow">https:&#x2F;&#x2F;talkpython.fm&#x2F;episodes&#x2F;show&#x2F;22&#x2F;cpython-internals-and...</a>
评论 #11194783 未加载
评论 #11195388 未加载
jaybosamiyaabout 9 years ago
Phillip Guo, the creator of this software is also the author of a very nice book called The Ph.D. Grind. I would definitely recommend reading it. <a href="http:&#x2F;&#x2F;www.pgbovine.net&#x2F;PhD-memoir.htm" rel="nofollow">http:&#x2F;&#x2F;www.pgbovine.net&#x2F;PhD-memoir.htm</a>
m_muellerabout 9 years ago
Seeing the execution as a 2D representation reminds me a bit of Subtextual. @pgbovine: I wonder whether you&#x27;ve seen this. Thinking of higher dimensional representations of code has led me to think that our current way of programming is still stuck in a world heavily influenced by terminals, even given the most modern programming language. Alan Kay&#x27;s work also seems to go into a direction that tries to break out of this 1D world.
tkinomabout 9 years ago
Very nice!<p>It would be cool if there are examples can help visualize more advance concept such dead lock, semaphore, mutex operations, GL&#x2F;EGL APIs and shader programming.
评论 #11196505 未加载
评论 #11202217 未加载
jastantonabout 9 years ago
Very cool, a quick JS example using Addy&#x27;s memoize function: <a href="http:&#x2F;&#x2F;goo.gl&#x2F;TUldBl" rel="nofollow">http:&#x2F;&#x2F;goo.gl&#x2F;TUldBl</a><p>I could see using this to help junior engineers visualize code flow before showing them how to step through code in Chrome dev tools
评论 #11197960 未加载
vram22about 9 years ago
PythonTutor is a good site.<p>I had come across a few other similar ones earlier. codingbat.com is one:<p><a href="http:&#x2F;&#x2F;jugad2.blogspot.in&#x2F;2013&#x2F;02&#x2F;codingbat-progress-graphs-and-michael.html" rel="nofollow">http:&#x2F;&#x2F;jugad2.blogspot.in&#x2F;2013&#x2F;02&#x2F;codingbat-progress-graphs-...</a><p>The Michael Jordan quote mentioned in that post is a good and inspiring one :)<p>I recommend those sites to programming beginners who sometimes ask me for resources about Python - but only to start and&#x2F;or as a supplement. Nothing can make up for getting the full experience of using Python (or any language) in a desktop computer environment, command line, tools, etc.
vvandersabout 9 years ago
Very cool.<p>Now if only it would show cache misses as a button you have to click 400 times before you can continue.
0xCMPabout 9 years ago
Wow I needed this last week! I was tutoring and I wanted to get this point across using IDLE! Gave up and used PyCharm (made things worse).<p>Gonna keep this bookmarked for later...
aceofskies05about 9 years ago
This is really really cool. As a Java developer, this really helps me understand the &quot;magic&quot; of Javascript a bit better.
评论 #11199197 未加载
melicerteabout 9 years ago
Any chance to have other languages supported? I&#x27;m thinking about PHP here for instance.<p>As I plan to write a blog that would involves PHP code, that could be a nice interactive addition.
vmorgulisabout 9 years ago
It seems static. I expected something dynamic with a VM or emscripten.<p>BTW interesting work!