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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Notes on the new Claude analysis JavaScript code execution tool

179 点作者 bstsb7 个月前

9 条评论

advaith087 个月前
The custom instructions to the model say:<p>&quot;Please note that this is similar but not identical to the antArtifact syntax which is used for Artifacts; sorry for the ambiguity.&quot;<p>They seem to be apologizing to the model in the system prompt?? This is so intriguing
评论 #41948172 未加载
评论 #41947726 未加载
评论 #41947723 未加载
评论 #41948714 未加载
评论 #41951514 未加载
animal_spirits7 个月前
That&#x27;s an interesting idea to generate javascript and execute it client side rather than server side. I&#x27;m sure that saves a ton of money for Anthropic not by not having to spin up a server for each execution.
评论 #41947472 未加载
评论 #41948398 未加载
评论 #41947108 未加载
simonw7 个月前
I&#x27;ve been trying to figure out the right pattern for running untrusted JavaScript code in a browser sandbox that&#x27;s controlled by a page for a while now, looks like Anthropic have figured that out. Hoping someone can reverse engineer exactly how they are doing this - their JavaScript code is too obfuscated for me to dig out the tricks, sadly.
评论 #41946694 未加载
评论 #41946690 未加载
评论 #41947522 未加载
评论 #41946334 未加载
评论 #41946384 未加载
评论 #41950897 未加载
thenaturalist7 个月前
Funnily enough, I test code generation both on unpaid Claude and ChatGPT.<p>When working with Python, I&#x27;ve found Sonnet (pre 3.5) to be quite superior to ChatGPT (mostly 4, sometimes 3.5) with regards to verbosity, structure and prompt &#x2F; instruct comprehension.<p>I&#x27;ve switched to a JavaScript project two weeks ago and the tables have turned.<p>Sonnet 3.5 is much more verbose and I need to make corrections a few times, whereas ChatGPTs output is shorter and on point.<p>I&#x27;ll closely follow if this improves if Claude are focussing on JS themselves.
评论 #41949980 未加载
mritchie7127 个月前
duckdb-wasm[0] would be a good addition here. We use it in Definite[1] and I can&#x27;t say enough good things about duckdb in general.<p>0 - <a href="https:&#x2F;&#x2F;github.com&#x2F;duckdb&#x2F;duckdb-wasm">https:&#x2F;&#x2F;github.com&#x2F;duckdb&#x2F;duckdb-wasm</a><p>1 - <a href="https:&#x2F;&#x2F;www.definite.app&#x2F;" rel="nofollow">https:&#x2F;&#x2F;www.definite.app&#x2F;</a>
评论 #41946903 未加载
koolala7 个月前
JavaScript is the perfect language for this. I can&#x27;t wait for a sandboxed coding environment to totally set AI loose.
评论 #41946437 未加载
评论 #41947013 未加载
nprateem7 个月前
NGL I was impressed when I asked Claude how to do some fancy UI stuff and it just spat out some working react. A few hours later and I&#x27;d saved £500 I was going to spend on a designer.
willsmith727 个月前
This is a great step, but to me not very useful until the move out of context. Still I&#x27;m high on anthropic and happy gen ai didn&#x27;t turn into a winner-take-all market like everyone predicted in 2021.
freediver7 个月前
It will work for any generic data, like a blog post. You can ask it to visualize the &#x27;key concepts&#x27;.