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
    Lars (luatic@mastodon.social)'s status on Saturday, 23-Nov-2024 12:01:20 JST Lars Lars

    Today on exceptionally shit takes: "C++ is easier than Java"

    In conversation about 8 months ago from mastodon.social permalink
    • Embed this notice
      pinskia (pinskia@hachyderm.io)'s status on Saturday, 23-Nov-2024 12:01:18 JST pinskia pinskia
      in reply to
      • akkoma flavored lizzy (fleckenstein@lizzy.rs alt)

      @luatic @lizzy With C++23 (if the std module exists; I think std module only made it into C++26 though), it is would be just `import std; int main() { std::print("Hello world!\n"); }`

      In conversation about 8 months ago permalink
    • Embed this notice
      Lars (luatic@mastodon.social)'s status on Saturday, 23-Nov-2024 12:01:19 JST Lars Lars
      in reply to
      • akkoma flavored lizzy (fleckenstein@lizzy.rs alt)

      @lizzy ☝️🤓 actually with Java 23+ you can now have "void main() { println("Hello world!"); }" which should be shorter than the C++ one (even if you skip the iostream verbosity and use C puts) since you don't need to include anything

      In conversation about 8 months ago permalink
    • Embed this notice
      akkoma flavored lizzy (fleckenstein@lizzy.rs alt) (lizzy@social.vlhl.dev)'s status on Saturday, 23-Nov-2024 12:01:20 JST akkoma flavored lizzy (fleckenstein@lizzy.rs alt) akkoma flavored lizzy (fleckenstein@lizzy.rs alt)
      in reply to
      @luatic it's true tho, the hello world is shorter 🧠
      In conversation about 8 months ago permalink
    • Embed this notice
      pinskia (pinskia@hachyderm.io)'s status on Saturday, 23-Nov-2024 12:10:37 JST pinskia pinskia
      in reply to
      • akkoma flavored lizzy (fleckenstein@lizzy.rs alt)

      @luatic @lizzy "even if you skip the iostream verbosity and use C puts" What are you using? C++98 or something? std::print exists in C++23 so :).

      In conversation about 8 months ago permalink
    • Embed this notice
      Lars (luatic@mastodon.social)'s status on Saturday, 23-Nov-2024 12:23:51 JST Lars Lars
      in reply to
      • pinskia
      • akkoma flavored lizzy (fleckenstein@lizzy.rs alt)

      @pinskia @lizzy C++ 17 😔

      ((but std::print is still longer than puts and you still need to include something for it, so..))

      In conversation about 8 months ago permalink
    • Embed this notice
      pinskia (pinskia@hachyderm.io)'s status on Saturday, 23-Nov-2024 12:23:51 JST pinskia pinskia
      in reply to
      • akkoma flavored lizzy (fleckenstein@lizzy.rs alt)

      @luatic @lizzy `import std;` in C++26 :) and the plan IIRC is to include the std module for GCC 15.

      In conversation about 8 months ago permalink

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.