home.social

#godbolt — Public Fediverse posts

Live and recent posts from across the Fediverse tagged #godbolt, aggregated by home.social.

  1. #RMSbolt. A supercharged implementation of the #godbolt compiler-explorer for #Emacs. gitlab.com/jgkamat/rmsbolt

    #Beardbolt. A fork-rewrite of RMSbolt, itself a supercharged implementation of Godbolt, the Compiler Explorer but for Emacs, instead of a clunky browser. github.com/joaotavora/beardbolt

  2. Ever wanted to know who's that great chap running Compiler Explorer? Mike Godbolt gave a talk:

    youtu.be/3W0vE_VKokY

    #Godbolt #CompilerExplorer #CPlusPlus

  3. Ever wanted to know who's that great chap running Compiler Explorer? Mike Godbolt gave a talk:

    youtu.be/3W0vE_VKokY

    #Godbolt #CompilerExplorer #CPlusPlus

  4. Ever wanted to know who's that great chap running Compiler Explorer? Mike Godbolt gave a talk:

    youtu.be/3W0vE_VKokY

    #Godbolt #CompilerExplorer #CPlusPlus

  5. Ever wanted to know who's that great chap running Compiler Explorer? Mike Godbolt gave a talk:

    youtu.be/3W0vE_VKokY

    #Godbolt #CompilerExplorer #CPlusPlus

  6. [Перевод] Когда компиляторы удивляют

    Компиляторы то и дело удивляют меня очень хитрыми трюками. Когда я впервые увидел эту оптимизацию, то едва смог поверить в её реальность. Я изучал оптимизацию циклов и написал простую функцию, суммирующую все числа до заданного значения...

    habr.com/ru/articles/980702/

    #godbolt #gcc #clang #оптимизация_кода

  7. You don't realize just how good C++23 is until you take some old C++ code, paste it into #Godbolt, set the compiler flags to C++23, add a few concept-checking asserts, read the beautifully clear error messages from concepts, and fix your problem.

    #ModernCPP #CPP #Concepts #Legacy #Evolution #Happyiness #Programming

  8. Matt #Godbolt bravely tackles the monumental challenge of creating #URLs that last forever—because we all desperately need browser tabs from 2012 🌐🔗. Turns out, cramming an entire compiler state into a URL just might not be the pinnacle of efficiency 🧐. But fear not, Google has come to the rescue, because who doesn't love outsourcing their problems to the tech overlords? 👾
    xania.org/202505/compiler-expl #Matt #CompilerState #BrowserTabs #TechOverlords #HackerNews #ngated

  9. Matt #Godbolt bravely tackles the monumental challenge of creating #URLs that last forever—because we all desperately need browser tabs from 2012 🌐🔗. Turns out, cramming an entire compiler state into a URL just might not be the pinnacle of efficiency 🧐. But fear not, Google has come to the rescue, because who doesn't love outsourcing their problems to the tech overlords? 👾
    xania.org/202505/compiler-expl #Matt #CompilerState #BrowserTabs #TechOverlords #HackerNews #ngated

  10. Matt #Godbolt bravely tackles the monumental challenge of creating #URLs that last forever—because we all desperately need browser tabs from 2012 🌐🔗. Turns out, cramming an entire compiler state into a URL just might not be the pinnacle of efficiency 🧐. But fear not, Google has come to the rescue, because who doesn't love outsourcing their problems to the tech overlords? 👾
    xania.org/202505/compiler-expl #Matt #CompilerState #BrowserTabs #TechOverlords #HackerNews #ngated

  11. Matt #Godbolt bravely tackles the monumental challenge of creating #URLs that last forever—because we all desperately need browser tabs from 2012 🌐🔗. Turns out, cramming an entire compiler state into a URL just might not be the pinnacle of efficiency 🧐. But fear not, Google has come to the rescue, because who doesn't love outsourcing their problems to the tech overlords? 👾
    xania.org/202505/compiler-expl #Matt #CompilerState #BrowserTabs #TechOverlords #HackerNews #ngated

  12. [Перевод] Ускоряем работу видеодекодера на 1%

    Какое-то время назад memorysafety.org объявил о конкурсе по повышению производительности rav1d — порта AV1-декодера dav1d на Rust. Моя фамилия Равид, совсем как название декодера, поэтому я решил, что будет забавно попробовать (хоть я и, вероятно , не смогу участвовать в конкурсе). Эта статья посвящена двум найденным мной небольшим улучшениям производительности ( первый PR , второй PR ) и рассказу о том, как я их нашёл.

    habr.com/ru/articles/912136/

    #оптимизация_кода #обработка_видео #декодер #dav1d #rav1d #godbolt

  13. [Перевод] Ускоряем работу видеодекодера на 1%

    Какое-то время назад memorysafety.org объявил о конкурсе по повышению производительности rav1d — порта AV1-декодера dav1d на Rust. Моя фамилия Равид, совсем как название декодера, поэтому я решил, что будет забавно попробовать (хоть я и, вероятно , не смогу участвовать в конкурсе). Эта статья посвящена двум найденным мной небольшим улучшениям производительности ( первый PR , второй PR ) и рассказу о том, как я их нашёл.

    habr.com/ru/articles/912136/

    #оптимизация_кода #обработка_видео #декодер #dav1d #rav1d #godbolt

  14. [Перевод] Ускоряем работу видеодекодера на 1%

    Какое-то время назад memorysafety.org объявил о конкурсе по повышению производительности rav1d — порта AV1-декодера dav1d на Rust. Моя фамилия Равид, совсем как название декодера, поэтому я решил, что будет забавно попробовать (хоть я и, вероятно , не смогу участвовать в конкурсе). Эта статья посвящена двум найденным мной небольшим улучшениям производительности ( первый PR , второй PR ) и рассказу о том, как я их нашёл.

    habr.com/ru/articles/912136/

    #оптимизация_кода #обработка_видео #декодер #dav1d #rav1d #godbolt

  15. [Перевод] Ускоряем работу видеодекодера на 1%

    Какое-то время назад memorysafety.org объявил о конкурсе по повышению производительности rav1d — порта AV1-декодера dav1d на Rust. Моя фамилия Равид, совсем как название декодера, поэтому я решил, что будет забавно попробовать (хоть я и, вероятно , не смогу участвовать в конкурсе). Эта статья посвящена двум найденным мной небольшим улучшениям производительности ( первый PR , второй PR ) и рассказу о том, как я их нашёл.

    habr.com/ru/articles/912136/

    #оптимизация_кода #обработка_видео #декодер #dav1d #rav1d #godbolt

  16. Need a clue pls. What's the trick to get #godbolt to target RISC-V for Rust? Just adding the `--target riscv32i-unknown-none-elf` compiler flag didn't work:
    godbolt.org/z/1df9GqEPW

    Clearly there's a way as rust.godbolt.org/noscript/z/Y8 (with the appropriated corrections) works.
    #UICouldBeBetter

  17. Does anybody know how to prevent #clang from issuing calls to libc functions like `memset` in this case when compiling C programs? I have tried I don't know how many command line arguments to try to disable it but none worked at all.

    Here you have an example program in #godbolt: godbolt.org/z/jheYoPWzj

    These are the command line arguments I've tried to disable it:

    -ffreestanding -disable-simplify-libcalls -fno-builtin -nostdinc -nostdlib -fno-builtin-memset -nostdlib++ -nostdinc++

    Any idea?

  18. It's pretty bizarre that it's easier to just open godbolt and run code in a cloud somewhere wherever to test a snippet of code than to try running it locally. And that's while I actually have my go-to code editor open.

    #cpp #CompilerExplorer #godbolt

  19. @AliveDevil This bit might be helpful:
    en.cppreference.com/w/cpp/util

    But interesting differences between GCC and clang, and the differences persist for any C++ version >= C++11. I haven't looked at why (traveling), but I hope the sample code helps. (Intentionally -O0)

    Sorry, I don't have access to MSVC right now.

    sigcpp.godbolt.org/z/ofh3E6zoo

    #cpp #cPlusPlus #godbolt

  20. Am I right, that
    void A(Type const& v) {
    // line
    }

    where line is:
    auto L = v;
    auto L{ v };

    Is functionally and in code-gen equivalent?
    I don't see any different in both of these constructs in #GodBolt.

    #Cpp

  21. A C23, GCC question: The first line of code here causes `-Wold-style-declaration` warning in GCC 13.1. Is this warning because GCC's C23 impl. of placeholder type `auto` is not yet complete?

    EDIT: Seems like a **GCC issue** gcc.gnu.org/bugzilla/show_bug.

    The question is about the order of `const` and `auto` in declaration: west const causes warning; east const does not. However, GCC accepts either order if an actual type name is specified.

    sigcpp.godbolt.org/z/6Yos9oMch

    #C #C23 #programming #godbolt

  22. Friends and fans of Compiler Explorer and Matt Godbolt:

    I've begun including #CompilerExplorer in posts w CE links as tribute and to easily find posts w CE links. I also/alternatively include #godbolt.

    And I encourage saying "give me a godbolt" and "here's a godbolt" to mean asking/giving a CE link.

    We know "godbolt" is "sometimes a verb" but let's also make it a hashtag and a noun (again). IMHO there's no better way to say thanks to Matt and the CE team for an indispensable tool. 😀

    🙏

  23. Programmatically enabling assertions in Java, even if assertions are not enabled on the cmd line when JVM was started (`-ea` was not included in the cmd line).

    Works for classes yet to be loaded by a specific class loader. For illustration, uses the loader for the class containing the `main` method.

    Results subject to any selective enabling/disabling of assertions on command line. See Java docs.

    CE: sigcpp.godbolt.org/z/bE34a5E6f

    #java #programming #godbolt

  24. I don't know the exact underpinnings of Compiler Explorer running Java program. So I wonder why the `-ea` execution argument does not enable assertions. I had assumed the arguments are passed in entirety to the VM.

    Any thoughts?

    sigcpp.godbolt.org/z/6Wed9cnGY

    #java #programming #CompilerExplorer #godbolt

  25. @alyssa You're right! I just had to #Godbolt that: godbolt.org/z/YYK4orzTj

    It gets nicely inlined, too.

    However, only available in GNU C, not regular C, not C++, as it seems.

  26. Thank's to the great "StreetPass for Mastodon" #BrowserExtension made by @tvler, I discovered that @compiler_explorer had a #Mastodon account!

    The #addon scans websites you visit and collects their #fediverse handles if it finds any. It's here: streetpass.social

    #CompilerExplorer #godbolt #cpp #cplusplus #programming #foss