File tree Expand file tree Collapse file tree 4 files changed +24
-10
lines changed Expand file tree Collapse file tree 4 files changed +24
-10
lines changed Original file line number Diff line number Diff line change
1
+ # 18 Sep notes/TODO
2
+ * Photos/images on slides
3
+ * Hellige suggests "How do people use it"
4
+ * e.g. John Zwinck's bug report, how many GCC/Clang bugs refer to it?
5
+ * Consider dropping devirtualise (after Geek Lunch), just too much to go in to
6
+
1
7
# v3.3 notes (7 sep)
2
8
* 1hr 17
3
9
* didn't do devirt as much
Original file line number Diff line number Diff line change 59
59
60
60
let parent = element . parentElement ;
61
61
62
+ const isPdf = ! ! window . location . search . match ( / p r i n t - p d f / gi) ;
63
+ const baseUrl = isPdf ? 'https://gcc.godbolt.org/#' : 'http://localhost:10240/#' ;
64
+
62
65
if ( parent . tagName === "PRE" ) {
63
66
let a = document . createElement ( 'a' ) ;
64
- a . setAttribute ( 'href' , 'http://localhost:10240/#' + ceFragment ) ;
67
+
68
+ a . setAttribute ( 'href' , baseUrl + ceFragment ) ;
65
69
a . setAttribute ( 'target' , '_blank' ) ;
66
70
a . setAttribute ( 'class' , 'view-button' ) ;
67
71
a . textContent = 'View' ;
74
78
ceElement . setAttribute ( 'height' , '300px' ) ;
75
79
parent . appendChild ( ceElement ) ;
76
80
77
- let embedUrl = "http://localhost:10240/e#" + ceFragment ;
78
- Reveal . addEventListener ( 'slidechanged' , ( e ) => {
79
- if ( e . currentSlide . contains ( ceElement ) ) {
80
- ceElement . setAttribute ( 'src' , embedUrl ) ;
81
- Reveal . sync ( ) ;
82
- }
83
- } ) ;
81
+ let embedUrl = baseUrl + ceFragment ;
82
+ if ( isPdf ) {
83
+ ceElement . setAttribute ( 'src' , embedUrl ) ;
84
+ } else {
85
+ Reveal . addEventListener ( 'slidechanged' , ( e ) => {
86
+ if ( e . currentSlide . contains ( ceElement ) ) {
87
+ ceElement . setAttribute ( 'src' , embedUrl ) ;
88
+ Reveal . sync ( ) ;
89
+ }
90
+ } ) ;
91
+ }
84
92
}
85
93
}
86
94
} ) ( ) ;
Original file line number Diff line number Diff line change 122
122
</ head >
123
123
< body >
124
124
< div class ="reveal ">
125
- <!-- TODO compile all with -Wall -Wextra -->
126
- <!-- TODO check font size (26) -->
127
125
< section class ="slides ">
128
126
< section id ="title ">
129
127
< h2 > What Has My Compiler Done for Me Lately?</ h2 >
@@ -217,6 +215,8 @@ <h3>WARNING</h3>
217
215
< ul >
218
216
< li > Reading assembly alone can be misleading</ li >
219
217
< li > < em > Always</ em > measure too</ li >
218
+ < li > Google Benchmark</ li >
219
+ < li > < a href ="http://www.quick-bench.com/ "> quick-bench.com</ a > </ li >
220
220
</ ul >
221
221
< aside class ="notes ">
222
222
Shout out to google benchmarking tool. Microbenchmarks, perils.
You can’t perform that action at this time.
0 commit comments