c u r s i n g c o m p i l e r s
play

C u r s i n g C o m p i l e r s S t e p h a n - PowerPoint PPT Presentation

C u r s i n g C o m p i l e r s S t e p h a n B e r g m a n n O c t o b e r 2 0 1 7 < s b e r g > b t w , I t h i n k I ' l l d o a p r o s a n d c o n s o f


  1. C u r s i n g C o m p i l e r s S t e p h a n B e r g m a n n O c t o b e r 2 0 1 7

  2. ● < s b e r g > b t w , I t h i n k I ' l l d o a “ p r o s a n d c o n s o f f a s c i s t t o o l c h a i n s ” t a l k a t L O C o n ● < t h o r s t e n > s b e r g : s o u n d s f u n i n d e e d - s p e c i a l a t t i r e r e q u i r e d f o r a t t e n d a n c e ? o r j u s t b r i n g s u p p l y o f s o f t v e g e t a b l e s ? : ) ● < s b e r g > t h o r s t e n , I ' l l c o n c e n t r a t e o n t h e p r o s , s o t h e r e ' l l b e n o u s e f o r r o t t e n t o m a t o e s ● < t h o r s t e n > d a m n ● < b u o v j a g a > a f a s c i s t t o o l c h a i n i s c h a r a c t e r i z e d b y d i c t a t o r i a l p o w e r a n d f o r c i b l e s u p p r e s s i o n o f o p p o s i t i o n

  3. W h a t t h e F u c k ● “ W h y d o e s G e r r i t c o m p l a i n a b o u t m y c h a n g e ? ” ● “ I t c o m p i l e d j u s t fi n e h e r e ! ” ● “ W h o r e m o v e d t h a t c o d e I w a s s t i l l w o r k i n g o n ? ” ● “ I t i s n ’ t s u p p o s e d t o b e u n u s e d ! ”

  4. l o p l u g i n ● 6 1 p l u g i n s t h a t a r e e n a b l e d b y d e f a u l t : b a d s t a t i c s c s t y l e c a s t e x t e r n v a r l o o p v a r t o o p t r v e c t o r s a l b o o l s t a t i c u n n e c e s s a r y s m a l l m e t h o d s o v e r r i d e b l o c k b l o c k d a t a m e m b e r f a i l e d d y n n u l l p t r r a n g e d f o r s a l l o g a r e a s s t r i n g c o n c a t u n n e c e s s a r y s h a d o w c a s t c o p y p a r e n c a s t t o v o i d d e r e f n u l l p t r fi n a l p r o t e c t o s l e n d i a n r e d u n d a n t s a l u n i c o d e s t r i n g u n o a n y c a s t l i t e r a l c o n s t a n t c h a r r i g h t d l l p r i v a t e fl a t t e n o v e r r i d e r e d u n d a n t s f x p o o l i t e m s t r i n g s t a t i c u n r e f f u n s h i f t c o p y c h e c k c o n fi g d y n c a s t f p c o m p a r i o v e r r i d e r e d u n d a n t s i m p l i f y b o o l s u b t l e z e r o u n u s e d v a m a c r o s v i s i b i l i t y s o n p a r a m i n l i n e i n i t r i a b l e c h e c k c o m m a o p e r d y n e x c s p e c i m p l i c i t b o o l p a s s p a r a m s r e d u n d a n t s t a t i c a c c e s s u n i c o d e t o v c l w i d g e t s a t o r c o n v e r s i o n b y r e f p o i n t e r o p s c h a r c o n s t s t r i n g e x p r e s s i o n i n l i n e v i s i b l e p a s s s t u f f r e f c o u n t i n g s t a t i c u n n e c e s s a r y w e a k o b j e c t v a r a l w a y s z e r o b y r e f a n o n y m o u s c a t c h t h r o w c p p u n i t e x t e r n a n d l i t e r a l t o b o o l p r i v a t e b a s e r e s e r v e d i d a s s e r t e q u a l s n o t d e fi n e d c o n v e r s i o n

  5. l o p l u g i n ● 6 1 p l u g i n s t h a t a r e e n a b l e d b y d e f a u l t : b a d s t a t i c s c s t y l e c a s t e x t e r n v a r l o o p v a r t o o p t r v e c t o r s a l b o o l s t a t i c u n n e c e s s a r y s m a l l m e t h o d s o v e r r i d e b l o c k b l o c k d a t a m e m b e r f a i l e d d y n n u l l p t r r a n g e d f o r s a l l o g a r e a s s t r i n g c o n c a t u n n e c e s s a r y s h a d o w c a s t c o p y p a r e n c a s t t o v o i d d e r e f n u l l p t r fi n a l p r o t e c t o s l e n d i a n r e d u n d a n t s a l u n i c o d e s t r i n g u n o a n y c a s t l i t e r a l c o n s t a n t c h a r r i g h t d l l p r i v a t e fl a t t e n o v e r r i d e r e d u n d a n t s f x p o o l i t e m s t r i n g s t a t i c u n r e f f u n s h i f t c o p y c h e c k c o n fi g d y n c a s t f p c o m p a r i o v e r r i d e r e d u n d a n t s i m p l i f y b o o l s u b t l e z e r o u n u s e d v a m a c r o s v i s i b i l i t y s o n p a r a m i n l i n e i n i t r i a b l e c h e c k c o m m a o p e r d y n e x c s p e c i m p l i c i t b o o l p a s s p a r a m s r e d u n d a n t s t a t i c a c c e s s u n i c o d e t o v c l w i d g e t s a t o r c o n v e r s i o n b y r e f p o i n t e r o p s c h a r c o n s t s t r i n g e x p r e s s i o n i n l i n e v i s i b l e p a s s s t u f f r e f c o u n t i n g s t a t i c u n n e c e s s a r y w e a k o b j e c t v a r a l w a y s z e r o b y r e f a n o n y m o u s c a t c h t h r o w c p p u n i t e x t e r n a n d l i t e r a l t o b o o l p r i v a t e b a s e r e s e r v e d i d a s s e r t e q u a l s n o t d e fi n e d c o n v e r s i o n

  6. s t a t i c m e t h o d s + s t a t i c a c c e s s ● s t r u c t S { i n t f ( ) { r e t u r n 0 ; } / / l o p l u g i n : s t a t i c m e t h o d s } ; i n t g ( S * s ) { r e t u r n s - > f ( ) ; } ● s t r u c t S { s t a t i c i n t f ( ) { r e t u r n 0 ; } } ; i n t g ( S * s ) { r e t u r n s - > f ( ) ; } / / l o p l u g i n : s t a t i c a c c e s s ● s t r u c t S { s t a t i c i n t f ( ) { r e t u r n 0 ; } } ; i n t g ( ) { r e t u r n S : : f ( ) ; }

  7. s t a t i c m e t h o d s + s t a t i c a c c e s s ● s t r u c t S { i n t f ( ) { ( v o i d ) t h i s ; / / l o p l u g i n : s t a t i c m e t h o d s r e t u r n 0 ; } } ; i n t g ( S * s ) { r e t u r n s - > f ( ) ; } ● . . . n o t u n l i k e i n t e = s o m e F n ( ) ; a s s e r t ( e ! = 0 ) ; ( v o i d ) e ;

  8. u n r e f f u n ● c l a s s T e s t { v o i d t e s t 1 ( ) { … } v o i d t e s t 2 ( ) { … } v o i d t e s t 3 ( ) { … } C P P U N I T _ T E S T _ S U I T E ( T e s t ) ; C P P U N I T _ T E S T ( t e s t 1 ) ; C P P U N I T _ T E S T ( t e s t 2 ) ; C P P U N I T _ T E S T ( t e s t 3 ) ; C P P U N I T _ T E S T _ S U I T E _ E N D ( ) ; } ;

  9. u n r e f f u n ● C P P U N I T _ T E S T _ S U I T E ( T e s t ) ; C P P U N I T _ T E S T ( t e s t 1 ) ; C P P U N I T _ T E S T ( t e s t 2 ) ; C P P U N I T _ T E S T ( t e s t 3 ) ; C P P U N I T _ T E S T ( t e s t 4 ) ; C P P U N I T _ T E S T ( t e s t 5 ) ; C P P U N I T _ T E S T ( t e s t 6 ) ; C P P U N I T _ T E S T ( t e s t 7 ) ; C P P U N I T _ T E S T ( t e s t 8 ) ; C P P U N I T _ T E S T ( t e s t 9 ) ; C P P U N I T _ T E S T ( t e s t 1 0 ) ; C P P U N I T _ T E S T _ S U I T E _ E N D ( ) ; ● t e m p o r a r i l y - - d i s a b l e - w e r r o r

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend