Compare commits
3 commits
475693f4e8
...
8381e28025
| Author | SHA1 | Date | |
|---|---|---|---|
| 8381e28025 | |||
| 1b08b6e581 | |||
| d666eda4f5 |
51
issue_templates/youtube_video
Normal file
|
|
@ -0,0 +1,51 @@
|
||||||
|
- [ ] Script
|
||||||
|
- [ ] Brainstorm Topics
|
||||||
|
- [ ] Research Topic & Take Notes
|
||||||
|
- [ ] Topic Sections
|
||||||
|
- [ ] First Draft & More Research
|
||||||
|
- [ ] Get Reviews, Proof Read & Research
|
||||||
|
- [ ] Final Draft
|
||||||
|
|
||||||
|
##
|
||||||
|
- [ ] Video
|
||||||
|
- [ ] Hook
|
||||||
|
- [ ] Body
|
||||||
|
- [ ] Transitions
|
||||||
|
- [ ] Recording -- Code Snippet Screenshots
|
||||||
|
- [ ] Recording -- Screenshots
|
||||||
|
- [ ] Recording -- Videos
|
||||||
|
- [ ] Outro
|
||||||
|
- [ ] Record Audio
|
||||||
|
- [ ] Extract Audio Segments
|
||||||
|
- [ ] Edit Video to Mix in Audio
|
||||||
|
- [ ] Background Music
|
||||||
|
- [ ] Render Full Video
|
||||||
|
- [ ] Render Short Video
|
||||||
|
|
||||||
|
##
|
||||||
|
- [ ] Metadata
|
||||||
|
- [ ] Title
|
||||||
|
- [ ] Description
|
||||||
|
- [ ] Tags
|
||||||
|
- [ ] Pinned Comment
|
||||||
|
- [ ] Code Snippets
|
||||||
|
- [ ] Godbolt Permalinks
|
||||||
|
- [ ] Social Hooks' Message(s)
|
||||||
|
- [ ] References
|
||||||
|
|
||||||
|
##
|
||||||
|
- [ ] Social Hooks
|
||||||
|
- [ ] Youtube
|
||||||
|
- [ ] Youtube Short
|
||||||
|
- [ ] Instagram
|
||||||
|
- [ ] Instagram Reel
|
||||||
|
- [ ] Tiktok
|
||||||
|
- [ ] Discord
|
||||||
|
- [ ] Telegram
|
||||||
|
- [ ] Threads
|
||||||
|
- [ ] Matrix
|
||||||
|
- [ ] BlueSky
|
||||||
|
- [ ] Twitter/X
|
||||||
|
- [ ] Reddit
|
||||||
|
- [ ] Pinterest
|
||||||
|
|
||||||
|
After Width: | Height: | Size: 778 KiB |
|
After Width: | Height: | Size: 904 KiB |
|
After Width: | Height: | Size: 750 KiB |
|
|
@ -19,30 +19,31 @@ or Mold Linker
|
||||||
|
|
||||||
As you can see, mold uses all available cores throughout its execution and finishes quickly. In contrast, lld fails to utilize available cores most of the time.
|
As you can see, mold uses all available cores throughout its execution and finishes quickly. In contrast, lld fails to utilize available cores most of the time.
|
||||||
|
|
||||||
On a side-note, this project could you financial support...
|
|
||||||
The next step is to replace Make with
|
The next step is to replace Make with
|
||||||
## Ninja
|
## Ninja
|
||||||
no not this guy, but the build tool.
|
no not this guy, but the build tool.
|
||||||
|
|
||||||
CCache
|
## CCache
|
||||||
|
|
||||||
Upgrade Compilers
|
## Upgrade Compilers
|
||||||
|
|
||||||
Next item is... disabling your
|
Next item is... disabling your
|
||||||
Anti Virus
|
## Anti Virus / Windows Defender
|
||||||
|
|
||||||
Ensure Parallel Build
|
# Ensure Parallel Build
|
||||||
|
|
||||||
-- Code Changes -- (from least to most intrusive)
|
-- Code Changes -- (from least to most intrusive)
|
||||||
Minimize Includes
|
# Modules
|
||||||
|
|
||||||
Forward Declaration
|
|
||||||
|
|
||||||
Precompiled Headers
|
# Minimize Includes
|
||||||
|
|
||||||
Unity Builds
|
# Forward Declaration
|
||||||
|
|
||||||
|
# Precompiled Headers
|
||||||
|
|
||||||
|
# Unity Builds
|
||||||
|
|
||||||
Modules
|
|
||||||
|
|
||||||
-- Shut Up and Take My Money --
|
-- Shut Up and Take My Money --
|
||||||
Upgrade Hardware
|
Upgrade Hardware
|
||||||
|
|
@ -50,7 +51,7 @@ Upgrade Hardware
|
||||||
Build Over Network
|
Build Over Network
|
||||||
|
|
||||||
|
|
||||||
# Sources
|
# References
|
||||||
|
|
||||||
## Repositories
|
## Repositories
|
||||||
Mold: https://github.com/rui314/mold
|
Mold: https://github.com/rui314/mold
|
||||||
|
|
|
||||||
BIN
youtube/video_series/bit_blast/cxx_compile_time_optimization/snippets/a.out
Executable file
|
|
@ -0,0 +1,13 @@
|
||||||
|
#pragma once
|
||||||
|
|
||||||
|
// Assume this file includes many other files...
|
||||||
|
// Which accumulate to 50'000 lines of source code!
|
||||||
|
|
||||||
|
class Big
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
Big(int foo)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
|
@ -0,0 +1,10 @@
|
||||||
|
#include "./forward_decl.hpp"
|
||||||
|
|
||||||
|
// This inclusion will not leak to other header files...
|
||||||
|
#include "./big.hpp"
|
||||||
|
|
||||||
|
IncludedManyTimes::IncludedManyTimes():
|
||||||
|
m_large_dependency(new Big { 1 })
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
|
@ -0,0 +1,16 @@
|
||||||
|
#pragma once
|
||||||
|
// This file will be included MANY times...
|
||||||
|
|
||||||
|
// Option A: forward declare on top of the file
|
||||||
|
class Big;
|
||||||
|
|
||||||
|
class IncludedManyTimes
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
IncludedManyTimes();
|
||||||
|
|
||||||
|
private:
|
||||||
|
// Option B: forward declare when delcaring the variable
|
||||||
|
/* class */ Big *m_large_dependency;
|
||||||
|
};
|
||||||
|
|
||||||
|
|
@ -0,0 +1,8 @@
|
||||||
|
#include <iostream>
|
||||||
|
|
||||||
|
int main()
|
||||||
|
{
|
||||||
|
std::cout << "Hello world!" << std::endl;
|
||||||
|
return 0;
|
||||||
|
|
||||||
|
#include "./right_curly_brace.hpp"
|
||||||
|
|
@ -0,0 +1 @@
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,6 @@
|
||||||
|
#include <iostream>
|
||||||
|
|
||||||
|
int main()
|
||||||
|
{
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
BIN
youtube/video_series/bit_blast/cxx_enums/compiler_explorer.png
Normal file
|
After Width: | Height: | Size: 394 KiB |
|
|
@ -6,7 +6,7 @@ _Scoped Declaration_: https://godbolt.org/z/oT5TbP6vx
|
||||||
_Anonymous Declaration_: https://godbolt.org/z/s97n5jETs
|
_Anonymous Declaration_: https://godbolt.org/z/s97n5jETs
|
||||||
_Scoped vs Unscoped_: https://godbolt.org/z/h65cjMEhb
|
_Scoped vs Unscoped_: https://godbolt.org/z/h65cjMEhb
|
||||||
_Explicit Underlying Type_: https://godbolt.org/z/ehY7Gns6E
|
_Explicit Underlying Type_: https://godbolt.org/z/ehY7Gns6E
|
||||||
_Default Case_: https://godbolt.org/z/a6KWE8b4c
|
_No Default Case_: https://godbolt.org/z/a6KWE8b4c
|
||||||
_Utilize Zero_: https://godbolt.org/z/fvE6z9jMf
|
_Utilize Zero_: https://godbolt.org/z/fvE6z9jMf
|
||||||
_Utilize Counting_: https://godbolt.org/z/5EEhYrcr9
|
_Utilize Counting_: https://godbolt.org/z/5EEhYrcr9
|
||||||
_Using Enum Syntax_: https://godbolt.org/z/shaE6Yc64
|
_Using Enum Syntax_: https://godbolt.org/z/shaE6Yc64
|
||||||
|
|
|
||||||
|
Before Width: | Height: | Size: 170 KiB After Width: | Height: | Size: 171 KiB |
|
Before Width: | Height: | Size: 175 KiB After Width: | Height: | Size: 183 KiB |