GNU social JP
  • FAQ
  • Login
GNU social JPは日本のGNU socialサーバーです。
Usage/ToS/admin/test/Pleroma FE
  • Public

    • Public
    • Network
    • Groups
    • Featured
    • Popular
    • People

Conversation

Notices

  1. Embed this notice
    John Regehr (regehr@mastodon.social)'s status on Tuesday, 14-Jan-2025 13:35:38 JST John Regehr John Regehr

    Computer Systems: A Programmer’s Perspective, a textbook by Bryant and O’Halloran, is in its third edition and also its third decade of teaching students falsehoods about C

    In conversation about 5 months ago from mastodon.social permalink

    Attachments


    1. https://files.mastodon.social/media_attachments/files/113/821/958/101/725/134/original/f7365b7cd34e35fb.jpeg
    • Jeff "never puts away anything, especially oven mitts" Cliff, Bringer of Nightmares 🏴‍☠️🦝🐙 🇱🇧🧯 🇨🇦🐧 likes this.
    • Embed this notice
      John Regehr (regehr@mastodon.social)'s status on Tuesday, 14-Jan-2025 13:36:54 JST John Regehr John Regehr
      in reply to

      switching over to codegen for overflow checking for addition, we don't appear to get optimal code for any of the obvious ways to do it, from latest GCC or LLVM, unless we use the intrinsic

      https://gcc.godbolt.org/z/9bcPdzYcY

      In conversation about 5 months ago permalink
      Jeff "never puts away anything, especially oven mitts" Cliff, Bringer of Nightmares 🏴‍☠️🦝🐙 🇱🇧🧯 🇨🇦🐧 likes this.
    • Embed this notice
      John Regehr (regehr@mastodon.social)'s status on Tuesday, 14-Jan-2025 13:36:54 JST John Regehr John Regehr
      in reply to
      • Martin Uecker

      @uecker reminded me that this C23 feature is a better choice than the intrinsic, and also results in optimal codegen https://gcc.godbolt.org/z/xP3reE9n8

      In conversation about 5 months ago permalink

      Attachments

      1. Domain not in remote thumbnail source whitelist: raw.githubusercontent.com
        Compiler Explorer - C
        from Matt Godbolt
        bool tadd_ok(int a, int b) { int r; return !ckd_add(&r, a, b); }
      Haelwenn /элвэн/ :triskell: and Jeff "never puts away anything, especially oven mitts" Cliff, Bringer of Nightmares 🏴‍☠️🦝🐙 🇱🇧🧯 🇨🇦🐧 like this.
    • Embed this notice
      Rich Felker (dalias@hachyderm.io)'s status on Tuesday, 14-Jan-2025 13:36:54 JST Rich Felker Rich Felker
      in reply to
      • Martin Uecker

      @regehr @uecker And it can be provided by a dropin if you don't have a C23 compiler.

      In conversation about 5 months ago permalink
    • Embed this notice
      John Regehr (regehr@mastodon.social)'s status on Tuesday, 14-Jan-2025 13:36:55 JST John Regehr John Regehr
      in reply to

      absolutely indefensible code. I mailed them about this years and years ago

      https://gcc.godbolt.org/z/W3jdEdnn4

      In conversation about 5 months ago permalink
      Jeff "never puts away anything, especially oven mitts" Cliff, Bringer of Nightmares 🏴‍☠️🦝🐙 🇱🇧🧯 🇨🇦🐧 likes this.
      Jeff "never puts away anything, especially oven mitts" Cliff, Bringer of Nightmares 🏴‍☠️🦝🐙 🇱🇧🧯 🇨🇦🐧 repeated this.
    • Embed this notice
      Andrew Kelley (andrewrk@mastodon.social)'s status on Tuesday, 14-Jan-2025 15:49:08 JST Andrew Kelley Andrew Kelley
      in reply to

      @regehr I almost didn't graduate because of crap like this, it really sucked the credibility out of the entire university system. Especially since I was barely scraping by, paying my own way through college, and then what is my money going towards? Between being told that every C++ instance has its executable code copied for every method, being assigned UML diagrams by profs that obviously had never written a line of code in their life... ASU CS program was a shit show

      In conversation about 5 months ago permalink
      Haelwenn /элвэн/ :triskell: and Jeff "never puts away anything, especially oven mitts" Cliff, Bringer of Nightmares 🏴‍☠️🦝🐙 🇱🇧🧯 🇨🇦🐧 like this.
    • Embed this notice
      Dan Cross (cross@discuss.systems)'s status on Tuesday, 14-Jan-2025 15:49:58 JST Dan Cross Dan Cross
      in reply to
      • Andrew Kelley

      @andrewrk @regehr in one of the few programming courses I took, I had an instructor take off points on a program because I used a function-like macro and they couldn't find the function that I was invoking.

      A few years ago, I volunteers was one of the "industry" types who review student code for MIT's 6.172 "Performance Engineering" course. It was a maddening experience; often the grad students teaching the course would give advice that was a) wrong, and b) contradicted the industry people. Many times, the reviews were extra difficult because the code from the instructors was incorrect.

      We started begging them to give us their code (the assignment frameworks and so on) to review _before_ they gave it to the students, but they kept telling us they were too busy with research and couldn't do it. Finally I had to ask, "if you're too busy to do the bare minimum to avoid wasting _my_ time, why should I continue volunteering?"

      In conversation about 5 months ago permalink
      Haelwenn /элвэн/ :triskell: and Jeff "never puts away anything, especially oven mitts" Cliff, Bringer of Nightmares 🏴‍☠️🦝🐙 🇱🇧🧯 🇨🇦🐧 like this.
    • Embed this notice
      CF Bolz-Tereick (cfbolz@mastodon.social)'s status on Wednesday, 15-Jan-2025 21:04:42 JST CF Bolz-Tereick CF Bolz-Tereick
      in reply to
      • Rich Felker
      • Martin Uecker

      @dalias @regehr @uecker some quick googling turned up this code here: https://github.com/jart/jtckdint uses the C23 intrinsics if available, otherwise has a dropin. is this what the youths call a polyfill?

      In conversation about 5 months ago permalink

      Attachments

      1. Domain not in remote thumbnail source whitelist: opengraph.githubassets.com
        GitHub - jart/jtckdint: C23 Checked Arithmetic
        C23 Checked Arithmetic. Contribute to jart/jtckdint development by creating an account on GitHub.
    • Embed this notice
      John Regehr (regehr@mastodon.social)'s status on Saturday, 25-Jan-2025 10:28:39 JST John Regehr John Regehr
      in reply to

      ugh!

      In conversation about 5 months ago permalink
      Jeff "never puts away anything, especially oven mitts" Cliff, Bringer of Nightmares 🏴‍☠️🦝🐙 🇱🇧🧯 🇨🇦🐧 likes this.
    • Embed this notice
      John Regehr (regehr@mastodon.social)'s status on Saturday, 25-Jan-2025 10:31:19 JST John Regehr John Regehr
      in reply to

      what’s missing from the index for this textbook about low-level C programming?? 🤔

      In conversation about 5 months ago permalink

      Attachments


      1. https://files.mastodon.social/media_attachments/files/113/822/311/848/454/179/original/3c1ca85270224826.jpeg
      Jeff "never puts away anything, especially oven mitts" Cliff, Bringer of Nightmares 🏴‍☠️🦝🐙 🇱🇧🧯 🇨🇦🐧 likes this.

Feeds

  • Activity Streams
  • RSS 2.0
  • Atom
  • Help
  • About
  • FAQ
  • TOS
  • Privacy
  • Source
  • Version
  • Contact

GNU social JP is a social network, courtesy of GNU social JP管理人. It runs on GNU social, version 2.0.2-dev, available under the GNU Affero General Public License.

Creative Commons Attribution 3.0 All GNU social JP content and data are available under the Creative Commons Attribution 3.0 license.