diff --git a/articles/index.html b/articles/index.html index 7eca27c..ae2d031 100644 --- a/articles/index.html +++ b/articles/index.html @@ -1,10 +1 @@ - - -
-Now I just have my personal website as a sub-domain in the only domain that I own. It’s not too bad, but now I will have to start replacing all links to my website.
-Apparently “namesake” implies that one was named after the other. I’m not, so the word that I was translating was “katokayo” or “kapangalan” @@ -67,7 +67,7 @@
Software Engineer
+My 4-part series on how to build a website
+ ++ By Charles Ancheta, + 2023-06-08 +
+ + + +make
I thought to myself that maybe there’s a way to parallelize the compilation
steps, after doing some setup. I was wrong, it did not need any setup. Just
slap a -j
in there for infinite jobs and you’re good.
# Without -j
-[chrlz@workstation master monke]$ time make all
-mkdir -p obj
-g++ -c -o obj/token.o -std=c++20 -Wall -Wextra -pedantic -O3 src/token.cpp
-g++ -c -o obj/lexer.o -std=c++20 -Wall -Wextra -pedantic -O3 src/lexer.cpp
-g++ -c -o obj/ast.o -std=c++20 -Wall -Wextra -pedantic -O3 src/ast.cpp
-g++ -c -o obj/parser.o -std=c++20 -Wall -Wextra -pedantic -O3 src/parser.cpp
-g++ -c -o repl.o -std=c++20 -Wall -Wextra -pedantic -O3 repl.cpp
-g++ -o monke_repl -std=c++20 -Wall -Wextra -pedantic -O3 obj/token.o obj/lexer.o obj/ast.o obj/parser.o repl.o
-make all 9.08s user 0.66s system 99% cpu 9.748 total
-
-# With -j
-[chrlz@workstation master monke]$ time make -j all
-mkdir -p obj
-g++ -c -o repl.o -std=c++20 -Wall -Wextra -pedantic -O3 repl.cpp
-g++ -c -o obj/token.o -std=c++20 -Wall -Wextra -pedantic -O3 src/token.cpp
-g++ -c -o obj/lexer.o -std=c++20 -Wall -Wextra -pedantic -O3 src/lexer.cpp
-g++ -c -o obj/ast.o -std=c++20 -Wall -Wextra -pedantic -O3 src/ast.cpp
-g++ -c -o obj/parser.o -std=c++20 -Wall -Wextra -pedantic -O3 src/parser.cpp
-g++ -o monke_repl -std=c++20 -Wall -Wextra -pedantic -O3 obj/token.o obj/lexer.o obj/ast.o obj/parser.o repl.o
-make -j all 10.27s user 0.77s system 255% cpu 4.317 total
-
It basically cuts down my compilation time by 50%. I feel like a real dummy +
# Without -j
+[chrlz@workstation master monke]$ time make all
+mkdir -p obj
+g++ -c -o obj/token.o -std=c++20 -Wall -Wextra -pedantic -O3 src/token.cpp
+g++ -c -o obj/lexer.o -std=c++20 -Wall -Wextra -pedantic -O3 src/lexer.cpp
+g++ -c -o obj/ast.o -std=c++20 -Wall -Wextra -pedantic -O3 src/ast.cpp
+g++ -c -o obj/parser.o -std=c++20 -Wall -Wextra -pedantic -O3 src/parser.cpp
+g++ -c -o repl.o -std=c++20 -Wall -Wextra -pedantic -O3 repl.cpp
+g++ -o monke_repl -std=c++20 -Wall -Wextra -pedantic -O3 obj/token.o obj/lexer.o obj/ast.o obj/parser.o repl.o
+make all 9.08s user 0.66s system 99% cpu 9.748 total
+
+# With -j
+[chrlz@workstation master monke]$ time make -j all
+mkdir -p obj
+g++ -c -o repl.o -std=c++20 -Wall -Wextra -pedantic -O3 repl.cpp
+g++ -c -o obj/token.o -std=c++20 -Wall -Wextra -pedantic -O3 src/token.cpp
+g++ -c -o obj/lexer.o -std=c++20 -Wall -Wextra -pedantic -O3 src/lexer.cpp
+g++ -c -o obj/ast.o -std=c++20 -Wall -Wextra -pedantic -O3 src/ast.cpp
+g++ -c -o obj/parser.o -std=c++20 -Wall -Wextra -pedantic -O3 src/parser.cpp
+g++ -o monke_repl -std=c++20 -Wall -Wextra -pedantic -O3 obj/token.o obj/lexer.o obj/ast.o obj/parser.o repl.o
+make -j all 10.27s user 0.77s system 255% cpu 4.317 total
+
It basically cuts down my compilation time by 50%. I feel like a real dummy now.