868 karma · joined Apr 7, 2019 (7y ago) · 186 submissions
comment 4d ago · link · parent
These foibles come and go: early Claude Code refused to let programs crash, mangled all the comments in your codebase, and then one week you find that it insists on ending all functions with `Of` as in `layoutOf()`, `viewOf()`. Finding and mitigating these annoying habits becomes part of the job. Code review becomes articulating with this entity why certain patterns in the code are silly and should be changed.
The author mentions performance and security issues as the domain of “the architect.” For performance, I’ve found that Claude Code has more or less solved this domain, and can profile and optimize code across a variety of stacks and languages using sophisticated, ad-hoc workflows. For security, it’s just an ever-ending nightmare where random habits and sloppy implementation create random vulernabilities, compounded by the fact that Anthropic has added “safeguard filters” whenever you naively say you’re looking for them. Nevertheless, I’m not sure the architecting role as they describe won’t be automated in the near future.
comment 5d ago · link · parent
When I read about Chrome shipping local weights in every computer I can’t help but be reminded of the Great Cannon, where a MITM code injection by China caused end-user browsers to launch a DDOS on GitHub back in 2015. What could an AI adversary do with a fraction of Chrome’s local models, I wonder.
comment 4w ago · link · parent
6.
Why the Future Doesn't Need Us – Bill Joy (2000)(wired.com ↗)
3 points · by bikeshaving · 1mo ago · 1 comment
comment 3mo ago · link · parent
I have no idea who at Google is advocating for this, but it’s a half-baked idea that goes against 20 years of web standard work. At least put this under the `window` or `navigator` global, goddamn.
8.
Show HN: TermDOM – HTML, CSS and JavaScript (With a Real DOM) for TUIs and CLIs(github.com ↗)
18 points · by bikeshaving · 3mo ago · discuss
comment 3mo ago · link · parent
10.
Show HN: IPAbet – A fast, memorable keyboard for International Phonetic Alphabet(ipabet.org ↗)
2 points · by bikeshaving · 4mo ago · discuss
comment 4mo ago · link · parent
comment 5mo ago · link · parent
comment 6mo ago · link · parent
https://github.com/bikeshaving/revise https://revise.js.org https://revise.js.org/blog/introducing-revise/
comment 8mo ago · link · parent
https://www.amnesty.org/en/latest/news/2025/02/meta-new-poli... https://www.amnesty.org/en/latest/news/2023/10/meta-failure-...
18.
Show HN: Revise.js – Building blocks for contenteditable-based text editors(revise.js.org ↗)
5 points · by bikeshaving · 8mo ago · discuss
19.
Dulce et Decorum Est (1921)(poetryfoundation.org ↗)
220 points · by bikeshaving · 8mo ago · 107 comments
22.
Microsoft Creative Writer (1993)(classicreload.com ↗)
18 points · by bikeshaving · 8mo ago · 5 comments
comment 8mo ago · link · parent
comment 9mo ago · link · parent
let resolveRef;
const promise = new Promise((res) => { resolveRef = res; });
const callback = (data) => {
// Do work...
resolveRef(data); // This "triggers" the await
};
Object.assign(callback, promise);
There’s a real performance cost to awaiting a fake Promise though, like `await regularPromise` bypasses the actual thenable stuff.comment 9mo ago · link · parent
import { Repeater } from "@repeaterjs/repeater";
const keys = new Repeater(async (push, stop) => {
const listener = (ev) => {
if (ev.key === "Escape") {
stop();
} else {
push(ev.key);
}
};
window.addEventListener("keyup", listener);
await stop;
window.removeEventListener("keyup", listener);
});
const konami = ["ArrowUp", "ArrowUp", "ArrowDown", "ArrowDown", "ArrowLeft", "ArrowRight", "ArrowLeft", "ArrowRight", "b", "a"];
(async function() {
let i = 0;
for await (const key of keys) {
if (key === konami[i]) {
i++;
} else {
i = 0;
}
if (i >= konami.length) {
console.log("KONAMI!!!");
break; // removes the keyup listener
}
}
})();
https://github.com/repeaterjs/repeaterIt’s one of those abstractions that’s feature complete and stable, and looking at NPM it’s apparently getting 6.5mil+ downloads a week for some reason.
Lately I’ve just taken the opposite view of the author, which is that we should just use streams, especially with how embedded they are in the `fetch` proposals and whatever. But the tee critique is devastating, so maybe the author is right. It’s exciting to see people are still thinking about this. I do think async iterables as the default abstraction is the way to go.
comment 9mo ago · link · parent
Adding the staff is 37 codepoints versus 36, but I think using ZWJ would at least have each numeral independently renderable so it degrades gracefully. I’m not too sure about how combining characters degrade.
Essentially it boils down to whether you think the staff and the digit flag part of the numeral are independent or not.