#godbolt — Public Fediverse posts
Live and recent posts from across the Fediverse tagged #godbolt, aggregated by home.social.
-
#RMSbolt. A supercharged implementation of the #godbolt compiler-explorer for #Emacs. https://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. https://github.com/joaotavora/beardbolt
-
Ever wanted to know who's that great chap running Compiler Explorer? Mike Godbolt gave a talk:
-
Ever wanted to know who's that great chap running Compiler Explorer? Mike Godbolt gave a talk:
-
Ever wanted to know who's that great chap running Compiler Explorer? Mike Godbolt gave a talk:
-
Ever wanted to know who's that great chap running Compiler Explorer? Mike Godbolt gave a talk:
-
[Перевод] Когда компиляторы удивляют
Компиляторы то и дело удивляют меня очень хитрыми трюками. Когда я впервые увидел эту оптимизацию, то едва смог поверить в её реальность. Я изучал оптимизацию циклов и написал простую функцию, суммирующую все числа до заданного значения...
-
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
-
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? 👾
https://xania.org/202505/compiler-explorer-urls-forever #Matt #CompilerState #BrowserTabs #TechOverlords #HackerNews #ngated -
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? 👾
https://xania.org/202505/compiler-explorer-urls-forever #Matt #CompilerState #BrowserTabs #TechOverlords #HackerNews #ngated -
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? 👾
https://xania.org/202505/compiler-explorer-urls-forever #Matt #CompilerState #BrowserTabs #TechOverlords #HackerNews #ngated -
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? 👾
https://xania.org/202505/compiler-explorer-urls-forever #Matt #CompilerState #BrowserTabs #TechOverlords #HackerNews #ngated -
[Перевод] Ускоряем работу видеодекодера на 1%
Какое-то время назад memorysafety.org объявил о конкурсе по повышению производительности rav1d — порта AV1-декодера dav1d на Rust. Моя фамилия Равид, совсем как название декодера, поэтому я решил, что будет забавно попробовать (хоть я и, вероятно , не смогу участвовать в конкурсе). Эта статья посвящена двум найденным мной небольшим улучшениям производительности ( первый PR , второй PR ) и рассказу о том, как я их нашёл.
https://habr.com/ru/articles/912136/
#оптимизация_кода #обработка_видео #декодер #dav1d #rav1d #godbolt
-
[Перевод] Ускоряем работу видеодекодера на 1%
Какое-то время назад memorysafety.org объявил о конкурсе по повышению производительности rav1d — порта AV1-декодера dav1d на Rust. Моя фамилия Равид, совсем как название декодера, поэтому я решил, что будет забавно попробовать (хоть я и, вероятно , не смогу участвовать в конкурсе). Эта статья посвящена двум найденным мной небольшим улучшениям производительности ( первый PR , второй PR ) и рассказу о том, как я их нашёл.
https://habr.com/ru/articles/912136/
#оптимизация_кода #обработка_видео #декодер #dav1d #rav1d #godbolt
-
[Перевод] Ускоряем работу видеодекодера на 1%
Какое-то время назад memorysafety.org объявил о конкурсе по повышению производительности rav1d — порта AV1-декодера dav1d на Rust. Моя фамилия Равид, совсем как название декодера, поэтому я решил, что будет забавно попробовать (хоть я и, вероятно , не смогу участвовать в конкурсе). Эта статья посвящена двум найденным мной небольшим улучшениям производительности ( первый PR , второй PR ) и рассказу о том, как я их нашёл.
https://habr.com/ru/articles/912136/
#оптимизация_кода #обработка_видео #декодер #dav1d #rav1d #godbolt
-
[Перевод] Ускоряем работу видеодекодера на 1%
Какое-то время назад memorysafety.org объявил о конкурсе по повышению производительности rav1d — порта AV1-декодера dav1d на Rust. Моя фамилия Равид, совсем как название декодера, поэтому я решил, что будет забавно попробовать (хоть я и, вероятно , не смогу участвовать в конкурсе). Эта статья посвящена двум найденным мной небольшим улучшениям производительности ( первый PR , второй PR ) и рассказу о том, как я их нашёл.
https://habr.com/ru/articles/912136/
#оптимизация_кода #обработка_видео #декодер #dav1d #rav1d #godbolt
-
Very interesting (and informing) video about x86_64 versus ARM architectures:
-
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:
https://godbolt.org/z/1df9GqEPWClearly there's a way as https://rust.godbolt.org/noscript/z/Y8s3Kf (with the appropriated corrections) works.
#UICouldBeBetter -
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: https://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?
-
Both #TheChipLetter & #CompilerExplorer are awesome, if you're interested in #programming, #ComputerArchitecture, #hardware, or #compilers:
"Compiler Explorer", 'Babbage' (https://thechipletter.substack.com/p/compiler-explorer).
-
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.
-
You can now run flang executables on Compiler Explorer!
-
@AliveDevil This bit might be helpful:
https://en.cppreference.com/w/cpp/utility/initializer_listBut 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.
-
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. -
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** https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107589
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.
-
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. 😀
🙏
-
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.
-
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?
-
@alyssa You're right! I just had to #Godbolt that: https://godbolt.org/z/YYK4orzTj
It gets nicely inlined, too.
However, only available in GNU C, not regular C, not C++, as it seems.
-
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: https://streetpass.social
#CompilerExplorer #godbolt #cpp #cplusplus #programming #foss
-
@chrisrackauckas #godbolt for #julialang is a thing now?