HackerTrans
TopNewTrendsCommentsPastAskShowJobs

jncraton

no profile record

Submissions

How dangerous is Mythos, Anthropic's new AI model?

economist.com
3 points·by jncraton·3 месяца назад·0 comments

comments

jncraton
·5 месяцев назад·discuss
You are right that the concept of "safe" is nebulous, but the goal here is specifically to be XSS-safe [1]. Elements or properties that could allow scripts to execute are removed. This functionality lives in the user agent and prevents adding unsafe elements to the DOM itself, so it should be easier to get correct than a string-to-string sanitizer. The logic of "is the element currently being added to the DOM a <script>" is fundamentally easier to get right than "does this HTML string include a script tag".

[1] https://developer.mozilla.org/en-US/docs/Web/API/Element/set...
jncraton
·5 месяцев назад·discuss
2 and 3 bit is where quality typically starts to really drop off. MXFP4 or another 4-bit quantization is often the sweet spot.
jncraton
·6 месяцев назад·discuss
That's great. Here's "me" implementing a JS version of that library in one shot using Github Copilot and a 1 sentence prompt:

> Implement when.js as a simple, zero-dependency js library following SPEC.md exactly.

https://github.com/jncraton/whenwords/pulls
jncraton
·7 месяцев назад·discuss
I've adjusted or removed those sentences in the article.