2013-07-02T00:13:11 *** contestbot has joined #aichallenge 2013-07-02T00:13:11 *** ChanServ sets mode: +o contestbot 2013-07-02T00:14:17 *** amstan_ has quit IRC (Ping timeout: 252 seconds) 2013-07-02T01:01:27 *** mcstar has joined #aichallenge 2013-07-02T01:10:48 thestinger: lol, you never stop talking do you? 2013-07-02T01:10:59 mcstar: nope, insomnia ;[ 2013-07-02T01:11:05 oh 2013-07-02T01:11:21 had to go up on the roof today 2013-07-02T01:11:38 to fix something? 2013-07-02T01:11:48 or to finally go to sleep? 2013-07-02T01:12:51 mcstar: to clean the eavestroughs and also redo the flat roof 2013-07-02T01:13:27 i didnt know you were a handyman also :) 2013-07-02T01:13:36 mcstar: my dad made me do it ;p 2013-07-02T01:17:55 thestinger: i was surprised that there is no popen alternative in the c++ stdlib 2013-07-02T01:18:15 mcstar: there's hardly anything in the C++ stdlib 2013-07-02T01:18:41 mcstar: they don't have a way to open a file and let you see why it failed 2013-07-02T01:18:45 fstream gives a generic error 2013-07-02T01:18:48 it's terrible 2013-07-02T01:19:03 oh good "bad" and "not open", was it a permission error, was the file missing? 2013-07-02T01:19:05 i think it has quite a lot of stuff 2013-07-02T01:19:08 now more than ever, with c++11 2013-07-02T01:19:37 popen is silently missing 2013-07-02T01:19:49 mcstar: no networking 2013-07-02T01:19:55 no tcp/udp/http/dns/anything 2013-07-02T01:20:01 hm, ok, but i dont use that :) 2013-07-02T01:20:03 in either C or C++ 2013-07-02T01:20:10 mcstar: okay, no serialization, no json/xml/html 2013-07-02T01:20:11 well, qt has those anyway 2013-07-02T01:20:23 thestinger: now you are comparing it to python ! 2013-07-02T01:20:25 :) 2013-07-02T01:20:40 c++ doesnt need those technologies... 2013-07-02T01:20:41 mcstar: no support for multiprocessing (pipes, forking, etc.) ;p 2013-07-02T01:20:51 yeah, getting bad now 2013-07-02T01:20:54 stop 2013-07-02T01:20:55 no crypto support 2013-07-02T01:20:58 stop 2013-07-02T01:21:05 c++ stdlib sucks i agree 2013-07-02T01:21:05 lol 2013-07-02T01:21:35 mcstar: standard C/C++ doesn't even have packed structs! 2013-07-02T01:21:47 whats that? 2013-07-02T01:21:52 mcstar: structs without padding 2013-07-02T01:22:04 struct foo { int64_t x; bool y } 2013-07-02T01:22:07 is 16 bytes 2013-07-02T01:22:22 sometimes you need the 9 byte unpadded struct, especially when dealing with networking/serialization/drivers 2013-07-02T01:22:43 just use a union? 2013-07-02T01:22:49 mcstar: no 2013-07-02T01:22:53 |int64_t|bool| 2013-07-02T01:22:55 instead of 2013-07-02T01:22:59 |int64_t|bool|padding| 2013-07-02T01:23:11 it pads to the largest field alignment 2013-07-02T01:23:13 yeah, but with a union you can have bitfields 2013-07-02T01:23:25 i guess you can work around it 2013-07-02T01:23:46 or not 2013-07-02T01:23:56 mcstar: the workaround is __attribute__((packed)) ;p 2013-07-02T01:24:15 and before C++11/C11, there was no way to deal with alignment at all 2013-07-02T01:24:24 they added alignas/alignof/aligned_alloc 2013-07-02T01:24:33 so this lead to non portable code? 2013-07-02T01:24:37 mcstar: yep 2013-07-02T01:24:44 mcstar: or people just not doing things properly 2013-07-02T01:25:01 where were you when the standards were made? 2013-07-02T01:25:11 you could have protested 2013-07-02T01:25:12 mcstar: they don't add things to the C standard 2013-07-02T01:25:25 but nooo you sat there silently and watch the world go astray 2013-07-02T01:25:26 they only standardize existing practices that are supported by nearly everyone 2013-07-02T01:25:53 mcstar: they are a bunch of enterprisy companies 2013-07-02T01:26:03 mcstar: the head of the C and C++ committees works for microsoft 2013-07-02T01:26:05 on visual studio 2013-07-02T01:26:05 i suspect rust has packed structs :) 2013-07-02T01:26:12 microsoft doesn't even implement c99 2013-07-02T01:26:16 mcstar: yep 2013-07-02T01:26:31 #[packed] struct Foo { x: i64, y: bool } 2013-07-02T01:26:33 ;p 2013-07-02T01:26:49 thestinger: anyway, i dont get it, you could have just used a char 2013-07-02T01:26:59 mcstar: no 2013-07-02T01:27:05 wouldnt that altogether be 9 bytes? 2013-07-02T01:27:08 struct foo { int64_t x, char y } 2013-07-02T01:27:10 do sizeof on it 2013-07-02T01:27:12 16 2013-07-02T01:27:17 :( 2013-07-02T01:27:25 it pads to the alignment of the highest aligned field 2013-07-02T01:27:37 because otherwise if you had an array of them, it wouldn't be aligned right 2013-07-02T01:27:53 so i cant unpack 9 bytes correctly to that struct? 2013-07-02T01:27:56 some archs allow unaligned memory access 2013-07-02T01:28:22 mcstar: on most architectures (not x86/x86_64/itanium) you can only do aligned memory access 2013-07-02T01:28:24 so... 2013-07-02T01:28:29 if you want to deal with 64-bit ints 2013-07-02T01:28:47 they have to start at addresses that are multiples of their size 2013-07-02T01:28:53 so the problem here is the 8 bytes of long int? 2013-07-02T01:28:57 mcstar: yes so 2013-07-02T01:29:01 say you have an array of these 2013-07-02T01:29:04 foo|foo|foo 2013-07-02T01:29:11 arrays are contiguous 2013-07-02T01:29:22 64-bit ints have to be aligned to 8-byte boundaries on most archs 2013-07-02T01:29:28 i understand 2013-07-02T01:29:43 mcstar: and even on x86, unaligned access only became fast recently 2013-07-02T01:29:47 but wouldnt this still be a problem with a 4 byte int and a char? 2013-07-02T01:29:52 mcstar: yep 2013-07-02T01:29:54 that'll be 8 bytes 2013-07-02T01:30:19 it makes sense somewhat 2013-07-02T01:30:31 i mean, C is really portable... 2013-07-02T01:30:32 sometimes you really need packed structs 2013-07-02T01:30:36 in a sense 2013-07-02T01:30:39 mcstar: yeah, that's the idea 2013-07-02T01:30:41 the bare standards 2013-07-02T01:30:53 packing data isn't portable in a uniform way 2013-07-02T01:31:03 you can pack *as much as possible* 2013-07-02T01:31:22 mcstar: it's mostly that it tries to be simple 2013-07-02T01:31:46 it only includes things that were either part of C before they standardized it, or are deemed *essential* 2013-07-02T01:32:16 so it's a huge legacy mess 2013-07-02T01:32:26 and because of that they are afraid to add anything 2013-07-02T01:32:32 and yet the things they do add are poorly designed :( 2013-07-02T01:33:47 * thestinger blames microsoft and ibm 2013-07-02T01:35:12 struct { int x: 32; bool y: 8; bool :8; bool: 8; bool 8 } wouldnt something like this not work? 2013-07-02T01:35:17 -not 2013-07-02T01:36:03 mcstar: it'll still pad it ;p 2013-07-02T01:36:27 but now you could access that bool 2013-07-02T01:36:34 i dont want an array of these 2013-07-02T01:36:39 just to unpack something 2013-07-02T01:37:28 mcstar: struct foo { int x; bool y; bool z; } 2013-07-02T01:37:34 say int is 32-bit 2013-07-02T01:37:34 wait, you mean the sizeof would be larger than 64? 2013-07-02T01:37:36 that is 12 bytes 2013-07-02T01:37:49 there is a gap between y and z and a gap at the end 2013-07-02T01:38:05 mcstar: not sure 2013-07-02T01:38:37 mcstar: http://en.cppreference.com/w/cpp/types/offsetof ;p 2013-07-02T01:40:52 great 2013-07-02T01:41:13 and now i could test this, if i wanted to which i dont fucking want to :) 2013-07-02T01:41:39 ive got to finish the plasmoid 2013-07-02T01:42:08 oh i dropped python for that 2013-07-02T01:42:14 now its c++ and qml 2013-07-02T01:42:21 ugly stuff this qml is 2013-07-02T01:44:03 heh 2013-07-02T01:44:13 mcstar: so a weird js/c++ hybrid? ;p 2013-07-02T01:44:27 well, static json like something + js hybrid 2013-07-02T01:44:30 =qml 2013-07-02T01:44:51 c++ is for the communication throught the local socket and to load the qml 2013-07-02T02:08:29 thestinger: success! i know the socket path to i3 :) 2013-07-02T02:08:48 ugly piece of shtako code 2013-07-02T02:11:22 *** justin_pdx has joined #aichallenge 2013-07-02T02:29:34 *** thestinger1 has joined #aichallenge 2013-07-02T02:31:02 *** thestinger has quit IRC (Ping timeout: 252 seconds) 2013-07-02T02:31:33 *** amstan__ has quit IRC (Ping timeout: 248 seconds) 2013-07-02T02:35:03 *** thestinger1 has quit IRC (Quit: WeeChat 0.4.1) 2013-07-02T02:50:58 *** justin_pdx has quit IRC (Quit: justin_pdx) 2013-07-02T03:26:57 *** heinrich5991 has quit IRC (Ping timeout: 248 seconds) 2013-07-02T03:29:23 *** UncleVasya has joined #aichallenge 2013-07-02T03:29:42 *** heinrich5991 has joined #aichallenge 2013-07-02T05:01:10 *** UncleVasya has quit IRC (Remote host closed the connection) 2013-07-02T05:07:06 *** epicmonkey has joined #aichallenge 2013-07-02T05:10:55 *** UncleVasya has joined #aichallenge 2013-07-02T05:14:30 *** Tzuwald has joined #aichallenge 2013-07-02T05:16:02 *** Tzuwald has quit IRC (Client Quit) 2013-07-02T05:56:26 *** UncleVasya has quit IRC (Remote host closed the connection) 2013-07-02T06:00:49 *** UncleVasya has joined #aichallenge 2013-07-02T06:37:33 *** UncleVasya has quit IRC (Remote host closed the connection) 2013-07-02T06:47:20 *** UncleVasya has joined #aichallenge 2013-07-02T06:59:08 *** UncleVasya has quit IRC (Read error: Connection reset by peer) 2013-07-02T07:00:00 *** UncleVasya has joined #aichallenge 2013-07-02T07:16:09 *** antimatroid has quit IRC (Ping timeout: 252 seconds) 2013-07-02T07:18:05 *** antimatroid has joined #aichallenge 2013-07-02T07:44:50 *** UncleVasya has quit IRC (Remote host closed the connection) 2013-07-02T07:56:05 *** Accoun has quit IRC (Ping timeout: 256 seconds) 2013-07-02T07:59:47 *** UncleVasya has joined #aichallenge 2013-07-02T08:01:30 *** Accoun has joined #aichallenge 2013-07-02T08:03:45 *** mcstar has quit IRC (Quit: mcstar) 2013-07-02T08:07:23 *** mcstar has joined #aichallenge 2013-07-02T08:18:37 *** dici has joined #aichallenge 2013-07-02T08:22:08 *** Areks has quit IRC (Read error: Connection reset by peer) 2013-07-02T08:33:45 *** SoldierAntEater has quit IRC (Ping timeout: 246 seconds) 2013-07-02T08:34:43 *** UncleVasya has quit IRC (Remote host closed the connection) 2013-07-02T08:39:43 *** SoldierAntEater has joined #aichallenge 2013-07-02T08:46:09 *** mcstar has quit IRC (Quit: mcstar) 2013-07-02T08:48:11 *** SoldierAntEater has quit IRC (Read error: Connection reset by peer) 2013-07-02T08:48:19 *** SoldierAntEater has joined #aichallenge 2013-07-02T08:49:28 *** antimatroid1 has joined #aichallenge 2013-07-02T08:50:03 *** Areks has joined #aichallenge 2013-07-02T08:50:55 *** antimatroid has quit IRC (Ping timeout: 264 seconds) 2013-07-02T09:01:13 *** SoldierAntEater has quit IRC (Ping timeout: 276 seconds) 2013-07-02T09:03:40 *** SoldierAntEater has joined #aichallenge 2013-07-02T09:04:29 *** antimatroid has joined #aichallenge 2013-07-02T09:05:18 *** UncleVasya has joined #aichallenge 2013-07-02T09:06:38 *** antimatroid1 has quit IRC (Ping timeout: 252 seconds) 2013-07-02T09:12:58 *** SoldierAntEater has quit IRC (Ping timeout: 246 seconds) 2013-07-02T09:16:10 *** dici has quit IRC (Quit: Leaving.) 2013-07-02T09:16:19 *** SoldierAntEater has joined #aichallenge 2013-07-02T09:24:51 *** SoldierAntEater has quit IRC (Ping timeout: 252 seconds) 2013-07-02T09:27:57 *** SoldierAntEater has joined #aichallenge 2013-07-02T09:44:06 *** SoldierAntEater has quit IRC (Ping timeout: 246 seconds) 2013-07-02T09:50:12 *** SoldierAntEater has joined #aichallenge 2013-07-02T09:56:13 *** SoldierA1tEater has joined #aichallenge 2013-07-02T09:56:15 *** SoldierAntEater has quit IRC (Read error: Connection reset by peer) 2013-07-02T10:23:25 *** SoldierA1tEater has quit IRC (Read error: Connection reset by peer) 2013-07-02T10:27:56 *** SoldierAntEater has joined #aichallenge 2013-07-02T11:14:59 *** UncleVasya has quit IRC (Ping timeout: 256 seconds) 2013-07-02T11:36:15 *** UncleVasya has joined #aichallenge 2013-07-02T11:40:09 *** SoldierAntEater has quit IRC (Ping timeout: 252 seconds) 2013-07-02T11:43:14 *** SoldierAntEater has joined #aichallenge 2013-07-02T12:04:36 *** UncleVasya has quit IRC (Remote host closed the connection) 2013-07-02T12:16:20 *** thestinger has joined #aichallenge 2013-07-02T12:27:33 *** thestinger has quit IRC (Ping timeout: 246 seconds) 2013-07-02T12:31:24 *** UncleVasya has joined #aichallenge 2013-07-02T12:35:31 *** kilae has joined #aichallenge 2013-07-02T12:39:49 *** UncleVasya has quit IRC (Remote host closed the connection) 2013-07-02T12:40:51 *** thestinger has joined #aichallenge 2013-07-02T12:46:19 *** UncleVasya has joined #aichallenge 2013-07-02T12:50:55 *** epicmonkey has quit IRC (Ping timeout: 268 seconds) 2013-07-02T13:07:41 *** SoldierAntEater has quit IRC (Read error: Connection reset by peer) 2013-07-02T13:11:51 *** SoldierAntEater has joined #aichallenge 2013-07-02T13:19:11 *** SoldierAntEater has quit IRC (Read error: Operation timed out) 2013-07-02T13:26:03 *** thestinger1 has joined #aichallenge 2013-07-02T13:28:02 *** thestinger has quit IRC (Ping timeout: 252 seconds) 2013-07-02T13:28:07 *** thestinger1 is now known as thestinger 2013-07-02T13:28:16 *** SoldierAntEater has joined #aichallenge 2013-07-02T13:32:45 *** SoldierAntEater has quit IRC (Read error: Connection reset by peer) 2013-07-02T13:33:16 *** SoldierAntEater has joined #aichallenge 2013-07-02T13:41:30 *** thestinger is now known as thestinger_ 2013-07-02T13:41:49 *** thestinger_ is now known as thestinger 2013-07-02T13:42:02 *** UncleVasya has quit IRC (Ping timeout: 256 seconds) 2013-07-02T13:42:06 *** thestinger is now known as strcat 2013-07-02T13:42:31 *** strcat is now known as thestinger 2013-07-02T13:44:34 *** SoldierAntEater has quit IRC (Ping timeout: 246 seconds) 2013-07-02T13:47:55 *** SoldierAntEater has joined #aichallenge 2013-07-02T13:48:00 *** UncleVasya has joined #aichallenge 2013-07-02T14:03:05 *** epicmonkey has joined #aichallenge 2013-07-02T14:05:01 *** SoldierAntEater has quit IRC (Read error: Connection reset by peer) 2013-07-02T14:08:56 *** SoldierAntEater has joined #aichallenge 2013-07-02T14:15:26 *** UncleVasya has quit IRC (Remote host closed the connection) 2013-07-02T14:24:07 *** SoldierAntEater has quit IRC (Ping timeout: 246 seconds) 2013-07-02T14:26:18 *** thestinger1 has joined #aichallenge 2013-07-02T14:26:47 *** thestinger has quit IRC (Disconnected by services) 2013-07-02T14:27:18 *** thestinger1 is now known as thestinger 2013-07-02T14:27:44 *** SoldierAntEater has joined #aichallenge 2013-07-02T14:34:10 *** Scooper has joined #aichallenge 2013-07-02T15:26:01 *** thestinger1 has joined #aichallenge 2013-07-02T15:27:43 *** thestinger has quit IRC (Ping timeout: 256 seconds) 2013-07-02T15:48:15 *** amstan has joined #aichallenge 2013-07-02T15:48:15 *** ChanServ sets mode: +o amstan 2013-07-02T15:52:54 *** dici has joined #aichallenge 2013-07-02T15:53:36 *** thestinger1 is now known as thestinger 2013-07-02T16:08:24 *** SoldierAntEater has quit IRC (Read error: Operation timed out) 2013-07-02T16:14:00 *** SoldierAntEater has joined #aichallenge 2013-07-02T16:16:22 *** UncleVasya has joined #aichallenge 2013-07-02T16:24:08 *** kilae has quit IRC (Quit: ChatZilla 0.9.90 [Firefox 21.0/20130511120803]) 2013-07-02T16:45:10 *** epicmonkey has quit IRC (Ping timeout: 240 seconds) 2013-07-02T17:31:24 *** SoldierAntEater has quit IRC (Ping timeout: 240 seconds) 2013-07-02T17:34:45 *** SoldierAntEater has joined #aichallenge 2013-07-02T17:38:09 *** foRei has joined #aichallenge 2013-07-02T17:42:54 *** dici has quit IRC (Read error: Connection reset by peer) 2013-07-02T17:52:40 *** SoldierAntEater has quit IRC (Read error: Connection reset by peer) 2013-07-02T17:57:47 *** SoldierAntEater has joined #aichallenge 2013-07-02T18:11:17 *** SoldierAntEater has quit IRC (Read error: Operation timed out) 2013-07-02T18:16:05 *** SoldierAntEater has joined #aichallenge 2013-07-02T18:26:03 *** raedwulf has quit IRC (Ping timeout: 252 seconds) 2013-07-02T18:29:08 *** raedwulf has joined #aichallenge 2013-07-02T18:55:12 *** foRei has quit IRC (Quit: Bye) 2013-07-02T19:12:49 *** Scooper has quit IRC (Quit: Leaving) 2013-07-02T19:17:25 *** heinrich5991 has quit IRC (Ping timeout: 276 seconds) 2013-07-02T19:18:35 *** heinrich5991 has joined #aichallenge 2013-07-02T19:19:11 *** UncleVasya has quit IRC (Remote host closed the connection) 2013-07-02T19:51:53 *** SoldierAntEater has quit IRC (Ping timeout: 240 seconds) 2013-07-02T19:55:22 *** SoldierAntEater has joined #aichallenge 2013-07-02T20:03:43 *** SoldierAntEater has quit IRC (Read error: Operation timed out) 2013-07-02T20:08:48 *** SoldierAntEater has joined #aichallenge 2013-07-02T20:16:07 *** SoldierAntEater has quit IRC (Ping timeout: 264 seconds) 2013-07-02T20:31:05 *** SoldierAntEater has joined #aichallenge 2013-07-02T21:01:01 *** Chris_0076 has quit IRC (Ping timeout: 246 seconds) 2013-07-02T21:01:40 *** Chris_0076 has joined #aichallenge 2013-07-02T21:11:25 *** dsch has quit IRC (Ping timeout: 256 seconds) 2013-07-02T21:12:09 *** dsch has joined #aichallenge 2013-07-02T21:50:42 *** SoldierAntEater has quit IRC (Ping timeout: 246 seconds) 2013-07-02T21:56:17 *** SoldierAntEater has joined #aichallenge 2013-07-02T22:03:51 *** SoldierAntEater has quit IRC (Ping timeout: 252 seconds) 2013-07-02T22:19:33 *** SoldierAntEater has joined #aichallenge 2013-07-02T22:29:51 *** SoldierAntEater has quit IRC (Read error: Connection reset by peer) 2013-07-02T22:34:13 *** SoldierAntEater has joined #aichallenge 2013-07-02T22:41:47 *** SoldierAntEater has quit IRC (Ping timeout: 256 seconds) 2013-07-02T22:45:13 *** SoldierAntEater has joined #aichallenge 2013-07-02T23:26:19 *** SoldierAntEater has quit IRC (Read error: Connection reset by peer) 2013-07-02T23:31:31 *** SoldierAntEater has joined #aichallenge 2013-07-02T23:37:29 *** SoldierAntEater has quit IRC (Read error: Operation timed out) 2013-07-02T23:54:47 *** SoldierAntEater has joined #aichallenge