Youtube - Lightning Talk Online Tools Every C++ Developers Should Know - Thamara Andrade - CppCon 2021
Lightning Talk: Online Tools Every C++ Developers Should Know - Thamara Andrade - CppCon 2021
https://www.youtube.com/watch?v=UztsWf7F_Sc
Transcrição
[00:08]

00:08 okay so hello everyone let's talk about c plus plus tools out there so my name is tamara and i'm a studied software engineer at cadence i'm also a very impatient person which does not go
[00:20]
00:20 so well with being the developer of core components inside of a big code base every time i have to do some change this often leads to big compilation time and i hate being idle waiting for things to
[00:31]
00:31 happen so i could only wish there are some some sort of tool that will allow me to do some tests and even maybe benchmark possible solutions before i have to
[00:41]
00:41 actually do that in the code i'm working on because like for me there are many tools out there that does serve this purpose and i want to share some of those that
[00:50]
00:50 i've been using i hope hopefully those will be useful for you too so to start things off i want to mention cyprus per shell which is like the bare bones of the tools that i gonna mention
[01:02]
http://cpp.sh

http://onlinegdb.com

http://quick-bench.com




Compiler Explorer

01:02 today it has very limited support in terms of the languages and warnings and optimization levels but it gets the job done so it's a nice tool that usually you can have that can use
[01:15]
01:15 the next one i want to mention is online gdb and just like the one before it is an online compiler uh this time it does accept up just c plus plus and the very nice thing that it does
[01:28]
01:28 have as a feature is that it allows you to attach db to your application so the code that you are running there you can attach db and this might be especially handy if you are starting with gdb and c
[01:40]
01:40 plus plus and still trying to to get the things out of gdb and how it works because there is a very nice uh user interface that allows you to see the variables and see everything related to
[01:52]
01:52 ddb itself now if you are planning or if you are trying to benchmark possible solutions just to see what might be the best way of doing something maybe quickbench will
[02:04]
02:04 help you quickbench does support different compilers as well different versions of the language and gives you that this nice chart that shows the execution time
[02:15]
02:15 for the code that you are simply if qriketbench didn't make it maybe pass view so perfect bench just like the one before it's a tool that will allow you for it it will allow you to benchmark
[02:27]
02:27 the the code and the nice thing here is that not only it's benchmarking uh a given scope but allows you to do instrumentation of different parts inside that scope and you get the full
[02:39]
02:39 picture and also a cool chart here too this next one is the beauty bench it's very similar to quick bench but the idea here is to benchmark not the runtime of the code but the compilation time i
[02:54]
02:54 haven't really used it that much so but i thought it was worth to mention here because i think the idea here is very useful and maybe this could be something that will help me in terms of my patient
[03:05]
03:05 when waiting for compiling uh with the program to compile uh the next one i want to mention is the plus present sites and the idea here is to make things visible that usually and
[03:17]
03:17 intentionally are not visible so when you do along with the how does the compiler actually see that lambda and many other constructions this will show you what the compiler will actually see
[03:28]
03:28 and then you can it can help you understand really what's uh what the compiler will do with the code and really understand better the language as a whole
[03:39]
03:39 and i could not be in cbp com and not mention compiler explorer of course this is uh one of the tools that is in almost every presentation people really like it because not only it's uh it's compiling
[03:53]
03:53 the code but i think this get uh on the side because the real the the intent here is to show you the assembly code and allow you to really understand uh deeply what's the code doing
[04:06]
04:06 and maybe think of uh optimization strategies that will be useful for you to um to improve the code the cpp insights and compiler explorer
[04:18]
04:18 there are uh there are many talks out there and you can search for that and for sure they will be talking better than i am now about those two so you can check that out
[04:30]
04:30 uh that was it uh thank you a lot for for watching uh those are my handles and if you have any other tips that might help me either with another two or just some general tip that might make me more
[04:43]
04:43 patient feel free to contact me usually i'm around the network tables on the couch so come say hi thank you you