• 1 Post
  • 87 Comments
Joined 2 years ago
cake
Cake day: August 9th, 2023

help-circle
  • The answer lies within the article

    Publishers legally control content that AI companies desperately want, but AI companies don’t always want to negotiate a license. The first-sale doctrine offered a workaround: Once you buy a physical book, you can do what you want with that copy—including destroy it. That meant buying physical books offered a legal workaround.

    And yet buying things is expensive, even if it is legal. So like many AI companies before it, Anthropic initially chose the quick and easy path. In the quest for high-quality training data, the court filing states, Anthropic first chose to amass digitized versions of pirated books to avoid what CEO Dario Amodei called “legal/practice/business slog”—the complex licensing negotiations with publishers. But by 2024, Anthropic had become “not so gung ho about” using pirated ebooks “for legal reasons” and needed a safer source.



  • Makes perfect sense. If you’re checking if a collection is empty you don’t need to know its exact size. Getting the size can be very inefficient in collections like linked lists or trees, if you have to follow all nodes. To check if it’s empty, all you need fo know if at least one item exists. If one does, there’s no point counting the rest.

    People who don’t understand the difference will probably not understand the difference between passing a list and passing an literator/generator to any() .




  • Docstrings are important and their role is different than comments. They give an overview how the function works, explain parameters and sometimes give examples how to use them. You can generate documentation using sphinx from Docstrings, and as others said IDEs use docstrings to show you information about function you’re using.

    Comments are just text that gets ignored by interpreter. You can add explanation to code if it’s not self explanatory, but they’re not useful outside of the immediate area being commented on.

    Other languages also have documentation options that is separate from comments, e.g. JavaDoc. The syntax is usually similar to coment, but slightly different to differentiate it from comments (extra * in multiline comment).






  • I only had a problem with it once, but having no experience with it really confused me.

    I was mounting a directory to a docker container and i kept getting permission errors. The errors were not descriptive at all and really confused me as i already had sudo privileges and wasn’t expecting any problems with permission.


  • Something tells me the companies sabotaged the smaller phones so they can charge more for the giant “pro” devices.

    I opted for the smaller pixel 9pro last year because i didn’t have to compromise (it has the same specs as 9pro xl). My previous phone was 7 pro, it was the bigger model and if i went for the smaller 7 model, I’d have to forego the telephone camera.

    I really like the smaller 9pro over my previous 7pro phablet. The size ia more manageable, although it’s probably still larger than the early smartphones, but since we moved to touchscreena, larger screens are necessary for typing. The larger size also houses bigger battery necessary to power the display whose resolution has gone way up over the years.