--- Day changed Fri Mar 19 2021 00:49 -!- molz_ [mol@gateway/vpn/protonvpn/molly] has joined #bitcoin-core-pr-reviews 00:51 -!- mol_ [mol@gateway/vpn/protonvpn/molly] has quit [Ping timeout: 240 seconds] 01:03 -!- luke-jr [~luke-jr@unaffiliated/luke-jr] has quit [Quit: ZNC - http://znc.sourceforge.net] 01:03 -!- luke-jr [~luke-jr@unaffiliated/luke-jr] has joined #bitcoin-core-pr-reviews 01:06 -!- shesek [~shesek@unaffiliated/shesek] has quit [Remote host closed the connection] 01:06 -!- shesek [~shesek@unaffiliated/shesek] has joined #bitcoin-core-pr-reviews 01:32 -!- luke-jr [~luke-jr@unaffiliated/luke-jr] has quit [Quit: ZNC - http://znc.sourceforge.net] 01:32 -!- luke-jr [~luke-jr@unaffiliated/luke-jr] has joined #bitcoin-core-pr-reviews 01:33 -!- cguida [~Adium@2806:2f0:51c1:5cee:c0a6:a761:5e39:c84] has joined #bitcoin-core-pr-reviews 01:35 -!- cguida1 [~Adium@2806:2f0:51c1:5cee:41d1:9092:8e63:5d71] has quit [Ping timeout: 265 seconds] 03:43 -!- ecola [~3cola@95.175.17.147] has joined #bitcoin-core-pr-reviews 04:20 -!- Esmeralda10Polli [~Esmeralda@static.57.1.216.95.clients.your-server.de] has joined #bitcoin-core-pr-reviews 04:27 -!- Esmeralda10Polli [~Esmeralda@static.57.1.216.95.clients.your-server.de] has quit [Ping timeout: 265 seconds] 04:47 -!- prayank [~andr0irc@2401:4900:30d0:b453:d900:b6f0:db5d:cd1c] has quit [Remote host closed the connection] 05:13 -!- musdom [~Thunderbi@175.142.4.39] has quit [Quit: musdom] 05:13 -!- musdom1 [~Thunderbi@175.142.4.39] has joined #bitcoin-core-pr-reviews 05:15 -!- musdom1 is now known as musdom 05:19 -!- musdom [~Thunderbi@175.142.4.39] has quit [Ping timeout: 260 seconds] 06:25 -!- gleb8 [~gleb@178.150.137.228] has joined #bitcoin-core-pr-reviews 06:25 -!- TheRec_ [~toto@84-75-225-47.dclient.hispeed.ch] has joined #bitcoin-core-pr-reviews 06:25 -!- TheRec_ [~toto@84-75-225-47.dclient.hispeed.ch] has quit [Changing host] 06:25 -!- TheRec_ [~toto@drupal.org/user/146860/view] has joined #bitcoin-core-pr-reviews 06:29 -!- rjected_ [~weechat-h@natp-128-119-202-40.wireless.umass.edu] has joined #bitcoin-core-pr-reviews 06:33 -!- Netsplit *.net <-> *.split quits: Zenton, gleb, TheRec, rjected 06:33 -!- gleb8 is now known as gleb 06:56 -!- mol_ [mol@gateway/vpn/protonvpn/molly] has joined #bitcoin-core-pr-reviews 06:58 -!- molz_ [mol@gateway/vpn/protonvpn/molly] has quit [Ping timeout: 245 seconds] 07:29 -!- Zenton [~user@unaffiliated/vicenteh] has joined #bitcoin-core-pr-reviews 07:32 -!- jonatack_ [~jon@37.166.79.41] has joined #bitcoin-core-pr-reviews 08:16 -!- queip [~queip@unaffiliated/rezurus] has quit [Remote host closed the connection] 08:18 -!- queip [~queip@unaffiliated/rezurus] has joined #bitcoin-core-pr-reviews 08:39 -!- cguida1 [~Adium@fixed-189-203-100-232.totalplay.net] has joined #bitcoin-core-pr-reviews 08:43 -!- cguida [~Adium@2806:2f0:51c1:5cee:c0a6:a761:5e39:c84] has quit [Ping timeout: 240 seconds] 08:46 -!- cguida [~Adium@2806:2f0:51c1:5cee:8431:90f6:4491:77bc] has joined #bitcoin-core-pr-reviews 08:46 -!- cguida1 [~Adium@fixed-189-203-100-232.totalplay.net] has quit [Read error: Connection reset by peer] 08:53 -!- andrewtoth_ [~andrewtot@gateway/tor-sasl/andrewtoth] has joined #bitcoin-core-pr-reviews 08:56 -!- _andrewtoth_ [~andrewtot@gateway/tor-sasl/andrewtoth] has quit [Remote host closed the connection] 09:04 < pinheadmz> I'm learning about C / C++ and i got a weird question: If I had a machine with ONLY a C compiler and no C++ compiler, could I "unroll" or "just-in-time-compile" that C++ into C? 09:04 < pinheadmz> maybe another way to ask: can I write, in C, all the class/object stuff that C++ gives us, without needing a C++ compiler? 09:05 < pinheadmz> OR -- is there extra machine code stuff in C++ compilers like garbage collection or something that makes it truly different 09:18 -!- Talkless [~Talkless@mail.dargis.net] has joined #bitcoin-core-pr-reviews 09:23 -!- jonatack_ [~jon@37.166.79.41] has quit [Read error: Connection reset by peer] 09:23 -!- cguida1 [~Adium@fixed-189-203-100-232.totalplay.net] has joined #bitcoin-core-pr-reviews 09:26 -!- cguida2 [~Adium@fixed-189-203-100-232.totalplay.net] has joined #bitcoin-core-pr-reviews 09:26 -!- cguida1 [~Adium@fixed-189-203-100-232.totalplay.net] has quit [Read error: Connection reset by peer] 09:27 -!- cguida [~Adium@2806:2f0:51c1:5cee:8431:90f6:4491:77bc] has quit [Ping timeout: 265 seconds] 09:27 -!- cguida2 [~Adium@fixed-189-203-100-232.totalplay.net] has quit [Read error: Connection reset by peer] 09:27 -!- cguida [~Adium@fixed-189-203-100-232.totalplay.net] has joined #bitcoin-core-pr-reviews 09:27 -!- cguida [~Adium@fixed-189-203-100-232.totalplay.net] has quit [Read error: No route to host] 09:27 -!- cguida [~Adium@fixed-189-203-100-232.totalplay.net] has joined #bitcoin-core-pr-reviews 09:36 -!- Talkless [~Talkless@mail.dargis.net] has quit [Quit: Konversation terminated!] 09:59 -!- sanketcell_ [~sanketcel@ec2-100-24-255-95.compute-1.amazonaws.com] has quit [Ping timeout: 245 seconds] 10:00 -!- sanket1729 [~sanket172@ec2-100-24-255-95.compute-1.amazonaws.com] has quit [Ping timeout: 276 seconds] 10:16 -!- mol_ [mol@gateway/vpn/protonvpn/molly] has quit [Ping timeout: 245 seconds] 10:18 < sipa> pinheadmz: the very first c++ compilers were frontends, that just compiled things to C 10:18 < sipa> this is no longer the case, with many small differences between the languages 10:19 < sipa> it's probably still possible in theory, but it would be very nontrivial i think 10:20 < sipa> pinheadmz: there is no garbage collection, though 10:21 < sipa> if you have a sufficiently modern C compiler you can compile gcc 4.7, which contains a c++ compiler, but is itself written in c 10:21 < sipa> as of gcc 4.8, parts are written in c++ 10:22 -!- mol [mol@gateway/vpn/protonvpn/molly] has joined #bitcoin-core-pr-reviews 10:22 -!- cguida1 [~Adium@fixed-189-203-100-232.totalplay.net] has joined #bitcoin-core-pr-reviews 10:22 -!- cguida [~Adium@fixed-189-203-100-232.totalplay.net] has quit [Read error: Connection reset by peer] 10:35 < pinheadmz> sipa ah super interesting thanks! 10:41 < pinheadmz> re: gc -- quick grep I don't see a lot of calls to free() in bitcoin in *.cpp (see it plenty in secp ....c for example) 10:41 < sipa> yes, because in modern c++ you basically never need it 10:42 < sipa> you use objects that manage their own storage 10:42 < sipa> like std::unique_ptr 10:42 < sipa> if a unique_ptr goes out of scope, it automatically frees the object it points to 10:43 < pinheadmz> aha and... that is not garbage collection? 10:44 < sipa> no 10:44 < pinheadmz> ok :-) 10:44 < sipa> e.g. you can take the pointer out of a unique_ptr, and that pointer will become invalid when tbe unique_ptr goes out of scope 10:45 < sipa> in a GC world, it wouldn't - the GC system would notice you still have a pointer to it 10:45 < pinheadmz> oh right, reference count 10:47 < sipa> reference counting is one way of doing GC, not the only one 10:47 < sipa> the downside to RC is that if you have self-referencial structures you get leaks 10:48 -!- csknk [~csknk@unaffiliated/csknk] has joined #bitcoin-core-pr-reviews 10:58 -!- jonatack_ [~jon@37.166.79.41] has joined #bitcoin-core-pr-reviews 11:17 < sipa> c++11 does have std::shared_ptr btw, which does reference counting... which you could think of as a limit opt-in GC kind of thing i guess 11:22 < pinheadmz> that sounds familiar i think we did a review club where that was an important topic 11:30 -!- csknk [~csknk@unaffiliated/csknk] has quit [Quit: leaving] 11:56 < jnewbery> Notes for next week's meeting are up: https://bitcoincore.reviews/19438. I haven't had time to write questions yet. Hopefully tomorrow. 12:06 -!- belcher_ is now known as belcher 12:25 -!- ghost43_ [~daer@gateway/tor-sasl/daer] has quit [Remote host closed the connection] 12:25 -!- ghost43 [~daer@gateway/tor-sasl/daer] has joined #bitcoin-core-pr-reviews 12:27 -!- shesek [~shesek@unaffiliated/shesek] has quit [Remote host closed the connection] 12:27 -!- shesek [~shesek@164.90.217.137] has joined #bitcoin-core-pr-reviews 12:27 -!- shesek [~shesek@164.90.217.137] has quit [Changing host] 12:27 -!- shesek [~shesek@unaffiliated/shesek] has joined #bitcoin-core-pr-reviews 12:42 -!- jeremyrubin [~jr@024-176-247-182.res.spectrum.com] has quit [Ping timeout: 256 seconds] 12:43 -!- jeremyrubin [~jr@024-176-247-182.res.spectrum.com] has joined #bitcoin-core-pr-reviews 12:57 -!- jonatack_ [~jon@37.166.79.41] has quit [Remote host closed the connection] 12:58 -!- jonatack_ [~jon@37.166.79.41] has joined #bitcoin-core-pr-reviews 13:07 -!- jonatack__ [~jon@37.165.139.59] has joined #bitcoin-core-pr-reviews 13:10 -!- jonatack_ [~jon@37.166.79.41] has quit [Ping timeout: 256 seconds] 13:39 -!- jonatack__ [~jon@37.165.139.59] has quit [Quit: jonatack__] 13:41 -!- jonatack [~jon@37.165.139.59] has joined #bitcoin-core-pr-reviews 14:18 -!- jonatack [~jon@37.165.139.59] has quit [Ping timeout: 240 seconds] 14:21 -!- Talkless [~Talkless@mail.dargis.net] has joined #bitcoin-core-pr-reviews 15:00 -!- jonatack [~jon@37.165.139.59] has joined #bitcoin-core-pr-reviews 15:03 -!- jonatack [~jon@37.165.139.59] has quit [Read error: Connection reset by peer] 15:04 -!- jonatack [~jon@37.165.139.59] has joined #bitcoin-core-pr-reviews 15:07 -!- jonatack [~jon@37.165.139.59] has quit [Read error: Connection reset by peer] 15:07 -!- jonatack_ [~jon@37.165.139.59] has joined #bitcoin-core-pr-reviews 15:11 -!- TheRec [~toto@84-75-225-47.dclient.hispeed.ch] has joined #bitcoin-core-pr-reviews 15:11 -!- TheRec [~toto@84-75-225-47.dclient.hispeed.ch] has quit [Changing host] 15:11 -!- TheRec [~toto@drupal.org/user/146860/view] has joined #bitcoin-core-pr-reviews 15:11 -!- dongcarl5 [~dongcarl@unaffiliated/dongcarl] has joined #bitcoin-core-pr-reviews 15:12 -!- dongcarl5 [~dongcarl@unaffiliated/dongcarl] has quit [Client Quit] 15:12 -!- dongcarl [~dongcarl@unaffiliated/dongcarl] has quit [Write error: Connection reset by peer] 15:12 -!- TheRec_ [~toto@drupal.org/user/146860/view] has quit [Ping timeout: 264 seconds] 15:12 -!- tinova [~tinova@lemoncat.org] has quit [Ping timeout: 246 seconds] 15:13 -!- tinova [~tinova@lemoncat.org] has joined #bitcoin-core-pr-reviews 15:13 -!- shesek [~shesek@unaffiliated/shesek] has quit [Ping timeout: 264 seconds] 15:14 -!- shesek [~shesek@164.90.217.137] has joined #bitcoin-core-pr-reviews 15:14 -!- shesek [~shesek@164.90.217.137] has quit [Changing host] 15:14 -!- shesek [~shesek@unaffiliated/shesek] has joined #bitcoin-core-pr-reviews 15:17 -!- luke-jr [~luke-jr@unaffiliated/luke-jr] has quit [Quit: ZNC - http://znc.sourceforge.net] 15:19 -!- luke-jr [~luke-jr@unaffiliated/luke-jr] has joined #bitcoin-core-pr-reviews 15:37 -!- luke-jr [~luke-jr@unaffiliated/luke-jr] has quit [Quit: ZNC - http://znc.sourceforge.net] 15:38 -!- luke-jr [~luke-jr@unaffiliated/luke-jr] has joined #bitcoin-core-pr-reviews 16:00 -!- jonatack_ [~jon@37.165.139.59] has quit [Read error: Connection reset by peer] 16:54 -!- Talkless [~Talkless@mail.dargis.net] has quit [Quit: Konversation terminated!] 17:16 -!- dongcarl [~dongcarl@unaffiliated/dongcarl] has joined #bitcoin-core-pr-reviews 17:58 -!- ecola [~3cola@95.175.17.147] has quit [Ping timeout: 240 seconds] 18:31 -!- cguida [~Adium@fixed-189-203-100-232.totalplay.net] has joined #bitcoin-core-pr-reviews 18:31 -!- cguida1 [~Adium@fixed-189-203-100-232.totalplay.net] has quit [Read error: Connection reset by peer] 18:51 -!- cguida1 [~Adium@fixed-189-203-100-232.totalplay.net] has joined #bitcoin-core-pr-reviews 18:51 -!- cguida [~Adium@fixed-189-203-100-232.totalplay.net] has quit [Read error: Connection reset by peer] 18:52 -!- cguida [~Adium@fixed-189-203-100-232.totalplay.net] has joined #bitcoin-core-pr-reviews 18:52 -!- cguida1 [~Adium@fixed-189-203-100-232.totalplay.net] has quit [Read error: Connection reset by peer] 18:54 -!- cguida1 [~Adium@fixed-189-203-100-232.totalplay.net] has joined #bitcoin-core-pr-reviews 18:54 -!- cguida [~Adium@fixed-189-203-100-232.totalplay.net] has quit [Read error: Connection reset by peer] 18:55 -!- cguida [~Adium@fixed-189-203-100-232.totalplay.net] has joined #bitcoin-core-pr-reviews 18:55 -!- cguida1 [~Adium@fixed-189-203-100-232.totalplay.net] has quit [Read error: Connection reset by peer] 18:56 -!- cguida1 [~Adium@fixed-189-203-100-232.totalplay.net] has joined #bitcoin-core-pr-reviews 18:56 -!- cguida1 [~Adium@fixed-189-203-100-232.totalplay.net] has quit [Read error: Connection reset by peer] 18:56 -!- cguida [~Adium@fixed-189-203-100-232.totalplay.net] has quit [Read error: Connection reset by peer] 18:56 -!- cguida [~Adium@fixed-189-203-100-232.totalplay.net] has joined #bitcoin-core-pr-reviews 18:56 -!- cguida [~Adium@fixed-189-203-100-232.totalplay.net] has quit [Read error: No route to host] 18:57 -!- cguida [~Adium@fixed-189-203-100-232.totalplay.net] has joined #bitcoin-core-pr-reviews 18:59 -!- cguida [~Adium@fixed-189-203-100-232.totalplay.net] has quit [Read error: Connection reset by peer] 18:59 -!- cguida1 [~Adium@fixed-189-203-100-232.totalplay.net] has joined #bitcoin-core-pr-reviews 19:00 -!- cguida [~Adium@fixed-189-203-100-232.totalplay.net] has joined #bitcoin-core-pr-reviews 19:00 -!- cguida [~Adium@fixed-189-203-100-232.totalplay.net] has quit [Read error: Connection reset by peer] 19:00 -!- cguida1 [~Adium@fixed-189-203-100-232.totalplay.net] has quit [Read error: Connection reset by peer] 19:00 -!- cguida [~Adium@fixed-189-203-100-232.totalplay.net] has joined #bitcoin-core-pr-reviews 19:08 -!- seven_ [~seven@cpe-90-157-197-248.static.amis.net] has quit [Ping timeout: 276 seconds] 19:14 -!- cguida1 [~Adium@fixed-189-203-100-232.totalplay.net] has joined #bitcoin-core-pr-reviews 19:14 -!- cguida [~Adium@fixed-189-203-100-232.totalplay.net] has quit [Read error: Connection reset by peer] 21:20 -!- belcher_ [~belcher@unaffiliated/belcher] has joined #bitcoin-core-pr-reviews 21:22 -!- belcher [~belcher@unaffiliated/belcher] has quit [Ping timeout: 246 seconds] 21:23 -!- awesome_doge [~Thunderbi@1-164-242-177.dynamic-ip.hinet.net] has joined #bitcoin-core-pr-reviews 22:04 -!- awesome_doge [~Thunderbi@1-164-242-177.dynamic-ip.hinet.net] has quit [Ping timeout: 256 seconds] 23:54 -!- awesome_doge [~Thunderbi@1-164-242-177.dynamic-ip.hinet.net] has joined #bitcoin-core-pr-reviews