TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Inspector – A drop-anywhere C++ REPL

194 点作者 Mic92超过 7 年前

6 条评论

Dangeranger超过 7 年前
Injecting a REPL into a given section of code is my favorite means of debugging and interactively developing. I&#x27;ve gotten into the habit of building up a class interactively within Emacs and re-evaluating files after they have been changed.<p>It feels a bit like test driven development, but much more concrete. When I don&#x27;t really know what I want to build, or what is possible, it&#x27;s a fun way to spike out some functionality.<p>Then after you see what sort of path could exist from your interactive session you can use the code as a scaffold and re-implement the functionality by writing a test and implementing the code to satisfy it.
评论 #16366176 未加载
评论 #16361411 未加载
jclay超过 7 年前
This comes at a good time as it&#x27;s something I&#x27;ve been looking for. We have a physics engine and we want to allow users to write custom c++ functions that can be linked in at run-time. We&#x27;d like to allow our users to swap in their own custom integration or timestep methods for example.<p>As an aside, do you know if it is possible to use this to JIT C++ for CUDA kernels?
评论 #16363142 未加载
评论 #16362347 未加载
评论 #16364171 未加载
评论 #16361540 未加载
评论 #16363962 未加载
kyberias超过 7 年前
Do people create stuff like this because they don&#x27;t have access to good interactive debuggers? Visual Studio user here.
评论 #16368968 未加载
评论 #16365461 未加载
seletz超过 7 年前
Hmm -- I wonder why they chose to not use Jupyter as an REPL &quot;backend&quot; (Jupyter calls them &quot;kernels&quot;).
评论 #16360917 未加载
评论 #16361132 未加载
评论 #16360904 未加载
Asooka超过 7 年前
How is this better than just attaching GDB?
评论 #16362264 未加载
therein超过 7 年前
Very interesting. Does it require a C++17 compiler? Also is there any way to simply use a different way of interacting with the REPL? For instance over sockets rather than stdio.
评论 #16365857 未加载