2. The packages don’t exist. Which would normally cause an error but
3. Nefarious people have made malware under the package names that LLMs make up most often. So
4. Now the LLM code points to malware.
>> lefterpad
>> leftestpad
>> lefterpad
>> leftestpad
module.exports = leftpad;
function leftpad (str, len, ch) {
str = String(str);
var i = -1;
ch || (ch = ' ');
len = len - str.length;
while (++i < len) {
str = ch + str;
}
return str;
}
module.exports = leftpad;
function leftpad (str, len, ch) {
str = String(str);
var i = -1;
ch || (ch = ' ');
len = len - str.length;
while (++i < len) {
str = ch + str;
}
return str;
}
module.exports = leftpad;
function leftpad (str, len, ch) {
str = String(str);
var i = -1;
ch || (ch = ' ');
len = len - str.length;
while (++i < len) {
str = ch + str;
}
return str;
}
I hope you celebrated.
I hope you celebrated.
on the other hand, Claude in Her infinite wisdom and grace would simply have written a throwaway function to leftpad strings and tucked it away in a file somewhere
on the other hand, Claude in Her infinite wisdom and grace would simply have written a throwaway function to leftpad strings and tucked it away in a file somewhere
we’ve lived in this world for a while, but it’s shit like this that serves as a landmark, “this is how it works now”
we’ve lived in this world for a while, but it’s shit like this that serves as a landmark, “this is how it works now”
#HackerNews
<a href="https://github.com/f/jev-leftpad" class="hover:underline text-blue-600 dark:text-sky-400 no-card-link" target="_blank" rel="noopener" data-link="bsky">https://github.com/f/jev-leftpad
#HackerNews
<a href="https://github.com/f/jev-leftpad" class="hover:underline text-blue-600 dark:text-sky-400 no-card-link" target="_blank" rel="noopener" data-link="bsky">https://github.com/f/jev-leftpad
https://github.com/f/jev-leftpad
https://github.com/f/jev-leftpad