Skip Navigation
Jump
Why I Prefer Exceptions to Error Values
  • One problem with exceptions is composability.

    You have to rely on good and up-to-date documentation or you have to dig into the source code to figure out what exceptions are possible. For a lot of third party dependencies (which constitute a huge part of modern software), both can be missing.

    Error type is a mitigation, but you are free to e.g. panic in Rust if you think the error is unrecoverable.

    A third option is to have effect types like Koka, so that all possible exceptions (or effects) can be checked at type level. A similar approach can be observed in "practical" languages like Zig. It remains to been seen whether this style can be adopted by the mainstream.

    9
  • Jump
    Ursula LeGuin puts the publishers in their place
  • You would expect that from the author of The Dispossessed. She's an anarchist (Paul Goodman leaning) through and through. She also wrote the preface to Murray Bookchin's The Next Revolution.

    28
  • Jump
    Kids who use ChatGPT as a study assistant do worse on tests
  • The paper only says it's a collaboration. It's pretty large scale, so the opportunity might be rare. There's a chance that (the same or other) researchers will follow up and experiment in more schools.

    8
  • Jump
    Research shows more than 80% of AI projects fail, wasting billions of dollars in capital and resources: Report
  • The interviews revealed that data scientists sometimes get distracted by the latest developments in AI and implement them in their projects without looking at the value that it will deliver.

    At least part of this is due to resume-oriented development.

    11
  • Jump
    Blocked 🚫
  • Well, it depends on your definition of truth and it could be the absolute truth by definition. A theorem is absolutely true in the same way that "a bachelor is an unmarried man" is categorically true.

    5
  • Jump
    [discussion] DC (direct current) power network
  • Sorry I wasn't being clear. AC is used for connecting within areas of densely populated cities, e.g. British National Grid. If we are talking about really long distances (> hundreds of kilometers), HVDC is indeed preferred.

    I was talking about a trend of some factories replacing AC from power grids (possibility generated in nearby cities) with DC from solar panels on their rooftops. So it's a long distance compared to that.

    3
  • Jump
    [discussion] DC (direct current) power network
  • Power grids would mean long distance power transmission, so AC has an advantage. If the point of consumption is near the point of PV generation, DC can and is already being used.

    I know factories with solar panels on their rooftops to cut down power bills and instead of converting to high voltage AC, a custom-built DC power system is used.

    4
  • truthout.org Sanders: Billionaire Lobbying for Harris to Oust Lina Khan Shows Why “Citizens United” Must Go

    Major Wall Street donors have mounted a push to oust the FTC chair over her crackdowns on corporate power.

    > Sanders said that the recent, brazen push by billionaires to influence Vice President Kamala Harris to dump Khan from her hypothetical presidential cabinet is yet another show of the corrupting influence of money in politics. > > “Here’s why we have to overturn Citizens United & end Big Money in politics: Billionaire Reid Hoffman donated $7 million to the Harris campaign. Now, he wants her, as president, to fire an outstanding members \[sic] of the Biden Administration, FTC Chair Lina Khan,” Sanders said in a post on social media on Thursday. “Not acceptable.” > > In recent days, billionaires and large Democratic donors have been speaking out against Khan, who represents a threat to corporate interests. > > LinkedIn cofounder Reid Hoffman — a venture capitalist deeply enmeshed with corporate interests — came out publicly against Khan in an interview with CNN this week, likening Khan’s efforts to rein in corporate abuses as a “war” on corporate power. Hoffman, who campaign filings show has donated $7 million to Harris’s campaign, outright said he “would hope that Vice President Harris would replace her.” > > […] > > Another billionaire, Barry Diller, chairman of holding company IAC, also brazenly announced that he would mount a lobbying effort against Khan for her crackdowns in an interview with CNBC. Diller has pledged to donate the maximum amount to Harris’s campaign, called Khan a “dope” and said that he would lobby Harris to dump Khan. > > […] > > Many other similar missives from donors have come anonymously, with one donor telling The New York Times that Harris is open to the idea. The Harris campaign has said that it has not had discussions about Khan’s future so far — though Wall Street donors have been pushing Democrats to drop Khan for months. > > […] > > The replacement of Khan on the cabinet would be a major loss for backers of the antitrust movement; her appointment by Biden as FTC chair was lauded as a significant step forward for the administration’s purported efforts to take on increasing corporate power. > > Under Khan, the FTC has taken on some of the largest corporations in America, including tech giants like Amazon, Microsoft and Meta, pharmaceutical giants like Amgen, and other giants like Kroger. It also created a new rule banning employers from including noncompete clauses in worker contracts, a move that the agency said would raise worker wages by $300 billion annually.

    18

    Coming from another country, I always wonder why the two utility companies I have here in the UK, Thames Water and Octopus Energy, would calculate an amount that they think I should pay monthly, instead of just charge whatever I used last month. To me, the latter way makes much more sense and is the standard practice in the countries I lived before.

    The amount they calculated seems to generate either a huge credit balance, or a huge underestimation. Thames Water changed my monthly bill from £29 to £7, and then to £17 over the course of a year and a half. Octopus Energy built up more than £200 of a credit balance (not sure if it's a result of the UK government energy gift credit last winter), then set a minimal amount of £61 monthly. They say the purpose is to make sure that the credit balance would be always be more than £100. Okay...but why? If I want to save money, I'd go to a bank.

    I could see that it might make sense if the measurement is not as easy or accurate, but come on, it's the 21st century and the meter shows me my energy usage by the hour, surely they can calculate the exact amount rather than pull a random number out of nowhere?

    9
    solar.lowtechmagazine.com How to Build a Small Solar Power System

    This guide explains everything you need to know to build stand-alone photovoltaic systems that can power almost anything you want.

    1