IRC logs of #shogun for Thursday, 2019-04-11

--- Log opened Thu Apr 11 00:00:31 2019
-!- wiking [~wiking@huwico/staff/wiking] has quit [Remote host closed the connection]01:16
-!- Moatman [~Moatman@pool-96-255-151-151.washdc.fios.verizon.net] has joined #shogun01:37
-!- durovo2 [~durovo@99.b3.3da9.ip4.static.sl-reverse.com] has quit [Read error: Connection reset by peer]01:45
-!- durovo [~durovo@99.b3.3da9.ip4.static.sl-reverse.com] has joined #shogun01:46
-!- wiking [~wiking@huwico/staff/wiking] has joined #shogun02:14
-!- mode/#shogun [+o wiking] by ChanServ02:14
-!- wiking [~wiking@huwico/staff/wiking] has quit [Ping timeout: 240 seconds]02:19
-!- wiking [~wiking@20014C4E19C8D800BD7B3CAE81E589E7.dsl.pool.telekom.hu] has joined #shogun03:40
-!- wiking [~wiking@20014C4E19C8D800BD7B3CAE81E589E7.dsl.pool.telekom.hu] has quit [Changing host]03:40
-!- wiking [~wiking@huwico/staff/wiking] has joined #shogun03:40
-!- mode/#shogun [+o wiking] by ChanServ03:40
-!- wiking [~wiking@huwico/staff/wiking] has quit [Remote host closed the connection]03:50
-!- wiking [~wiking@huwico/staff/wiking] has joined #shogun05:11
-!- mode/#shogun [+o wiking] by ChanServ05:11
-!- wiking [~wiking@huwico/staff/wiking] has quit [Remote host closed the connection]05:17
-!- wiking [~wiking@5401AC93.dsl.pool.telekom.hu] has joined #shogun06:35
-!- wiking [~wiking@5401AC93.dsl.pool.telekom.hu] has quit [Changing host]06:35
-!- wiking [~wiking@huwico/staff/wiking] has joined #shogun06:35
-!- mode/#shogun [+o wiking] by ChanServ06:35
-!- wiking [~wiking@huwico/staff/wiking] has quit [Quit: Leaving...]07:04
-!- wiking [~wiking@5401AC93.dsl.pool.telekom.hu] has joined #shogun07:08
-!- wiking [~wiking@5401AC93.dsl.pool.telekom.hu] has quit [Changing host]07:08
-!- wiking [~wiking@huwico/staff/wiking] has joined #shogun07:08
-!- mode/#shogun [+o wiking] by ChanServ07:08
-!- wiking [~wiking@huwico/staff/wiking] has quit [Remote host closed the connection]07:21
-!- wiking [~wiking@huwico/staff/wiking] has joined #shogun07:24
-!- mode/#shogun [+o wiking] by ChanServ07:24
-!- wiking [~wiking@huwico/staff/wiking] has quit [Remote host closed the connection]08:26
-!- Moatman [~Moatman@pool-96-255-151-151.washdc.fios.verizon.net] has quit [Remote host closed the connection]08:41
-!- wiking [~wiking@20014C4E19C8D800F982DE21786CA4D4.dsl.pool.telekom.hu] has joined #shogun09:01
-!- wiking [~wiking@20014C4E19C8D800F982DE21786CA4D4.dsl.pool.telekom.hu] has quit [Changing host]09:01
-!- wiking [~wiking@huwico/staff/wiking] has joined #shogun09:01
-!- mode/#shogun [+o wiking] by ChanServ09:02
-!- geektoni [c1cdd253@gateway/web/freenode/ip.193.205.210.83] has joined #shogun09:06
-!- gf712 [9052080d@gateway/web/freenode/ip.144.82.8.13] has joined #shogun09:12
-!- wiking [~wiking@huwico/staff/wiking] has quit [Ping timeout: 258 seconds]09:24
-!- geektoni [c1cdd253@gateway/web/freenode/ip.193.205.210.83] has quit [Ping timeout: 256 seconds]10:44
-!- wiking [~wiking@huwico/staff/wiking] has joined #shogun10:53
-!- mode/#shogun [+o wiking] by ChanServ10:53
-!- geektoni [c1cdd253@gateway/web/freenode/ip.193.205.210.83] has joined #shogun10:54
-!- wiking [~wiking@huwico/staff/wiking] has quit [Ping timeout: 264 seconds]10:58
-!- wiking [~wiking@huwico/staff/wiking] has joined #shogun11:05
-!- mode/#shogun [+o wiking] by ChanServ11:05
-!- wiking [~wiking@huwico/staff/wiking] has quit [Ping timeout: 250 seconds]11:09
-!- wiking [~wiking@huwico/staff/wiking] has joined #shogun11:39
-!- mode/#shogun [+o wiking] by ChanServ11:39
lisitsynuh hello there11:56
lisitsyn:)11:56
-!- wiking [~wiking@huwico/staff/wiking] has quit [Remote host closed the connection]12:13
-!- wiking [~wiking@20014C4E19C8D800F982DE21786CA4D4.dsl.pool.telekom.hu] has joined #shogun12:13
-!- wiking [~wiking@20014C4E19C8D800F982DE21786CA4D4.dsl.pool.telekom.hu] has quit [Changing host]12:13
-!- wiking [~wiking@huwico/staff/wiking] has joined #shogun12:13
-!- mode/#shogun [+o wiking] by ChanServ12:13
-!- geektoni [c1cdd253@gateway/web/freenode/ip.193.205.210.83] has quit [Quit: Page closed]12:16
@wikinggf712: yo12:17
@wikingso12:17
@wikingsince yesterday12:17
@wikingi went to slave mode again12:18
@wiking:D12:18
@wikingman the whole lib leaks so badly12:18
@wikingtitanic was not leaking so badly12:18
@wiking:D12:18
@wikingnow i'm at the point that integration and unit tests are not leaking12:19
@wiking:D12:19
@wikingintegration = cpp meta examples12:19
@wikingpython metas are some still failing12:19
-!- wiking [~wiking@huwico/staff/wiking] has quit [Remote host closed the connection]12:28
-!- wiking [~wiking@huwico/staff/wiking] has joined #shogun12:31
-!- mode/#shogun [+o wiking] by ChanServ12:31
@wikinggf712: lemme know when u r around12:48
@wikingi'm getting some weird errors with autoinit12:48
@wiking:d12:48
-!- wiking [~wiking@huwico/staff/wiking] has quit [Quit: Leaving...]12:50
-!- wiking [~wiking@20014C4E19C8D800F982DE21786CA4D4.dsl.pool.telekom.hu] has joined #shogun13:29
-!- wiking [~wiking@20014C4E19C8D800F982DE21786CA4D4.dsl.pool.telekom.hu] has quit [Changing host]13:29
-!- wiking [~wiking@huwico/staff/wiking] has joined #shogun13:29
-!- mode/#shogun [+o wiking] by ChanServ13:29
gf712wiking: I am here now13:35
gf712did you figure out the %newobject thing?13:35
@wikingyeah some13:35
@wiking:D13:35
gf712what is happening with autoinit?13:36
@wikingmy current br13:36
@wikingbt13:36
@wikinghttps://pastebin.com/Ee3kMJEq13:36
@wikingim not so sure why13:36
@wikingstill debugginng13:36
gf712hmm pointer does not exist anymore13:38
gf712because deleted by refcount?13:38
gf712seems like a double deletion?13:38
gf712not sure13:38
@wikingyeah but why is this an error13:38
@wikingwhen getting labels13:38
@wiking:D13:38
gf712this is when you call get?13:38
gf712or instantiate the object?13:39
@wikingimo when get("labels") is called13:39
gf712are you using lldb?13:40
gf712those names should be demangled no?13:40
@wikingi'm using lldb13:40
gf712maybe should use unique_ptr13:41
@wikingand yes its when get("labels") is called13:41
gf712would avoid any increments13:41
@wikingi really wonder what does that have to do with autoinit13:41
@wikingor that's just a red herring13:41
@wikingi mean this i dont get13:41
@wiking    frame #9: 0x00007fffee70ed8b libshogun.so.18`bool shogun::CSGObject::has<shogun::CKernel*, void>(this=0x0000555556147680, name="`\\\x14VUU"...) const at SGObject.h:35013:41
@wikingwhy CKernel* for "labels"13:42
@wiking:)13:42
gf712hmm13:42
gf712what if you do get labels with another kernel?13:42
@wikingbut ey13:43
@wikingwhy has<shogun::CKernel*13:43
@wikingfor get("labels")13:43
@wiking:D13:43
@wikingor that's the stupid dispatcher? :D13:43
@wikingget_dispatch_all_base_types13:43
@wikingFIUIIIIIGa13:43
@wikingFIIIIGA13:43
gf712is there a mistake?13:44
@wikingi mean yes it should still not fail13:44
@wikingalthoug...13:44
@wikingbuut13:44
@wikingsee what i mean13:44
@wikingvisitoooorrrr13:44
@wikingrororororooror13:44
@wikingviiiisitor13:44
@wiking:D13:44
gf712haha13:44
gf712yea, I agree13:44
gf712visitor would be good13:44
@wikingtry trial error13:44
gf712I would do it but I'm writing the list init for sg13:44
gf712:D13:44
@wikingis making things !@#%13:44
gf712yea13:45
@wikinghahahahaha13:45
@wikinglist init13:45
@wikingnice13:45
gf712I guess its not ideal13:45
@wikingyeah13:45
@wikingthe ideal part is understatment13:45
@wiking:D13:45
@wikinganyhow13:45
gf712but still13:45
@wikinglemme see why i still get13:45
@wikingthe lost ref13:45
gf712how does it not through error?13:45
gf712as in a type mismatch?13:46
@wikingnono13:46
@wikingthere's an invalid pointer13:46
@wikingso those getters will fail13:46
@wikingwherever13:46
@wikingso that's 'fine'13:47
gf712uh? I don't get where the invalid pointer comes from then13:48
@wikingref count13:48
@wikingin some previous call13:48
@wikingsome stuff got released13:48
gf712oh right13:48
@wikingwith some :D13:48
gf712so there are two bugs?13:48
gf712the release and the get?13:49
gf712release=ref count and delete13:49
@wikingyeah i mean i've changed in the meanwhile a lot13:51
@wikingso currently its a bit limbo13:51
@wikinggf712: i think there's still some weirdness going on13:59
@wikingas /me would expect that %newobject will not only create an object but ref++ it as well13:59
gf712you expect it or it is happening?14:00
@wikingi expect14:02
@wikingbut it feels like as if not14:02
@wikingbuuuuuut i've just realised that there was a missing newobject line14:02
@wikingstill14:02
@wiking:)14:02
@wikingso lets see14:02
@wikinggf712: my understanding from this sentence is what i wrote above14:03
@wiking"The %newobject feature is designed to indicate to the target language that it should take ownership of the returned object. When used in conjunction with a type that has the "ref" feature associated with it, it additionally emits the code in the "ref" feature into the C++ wrapper. Consider wrapping the following factory function in addition to the above: "14:03
@wikinglemme know if i dont understand english14:03
@wiking:D14:03
@wiking(this coudl happen!)(14:03
gf712so increments ref counter internally14:03
gf712and then also the custom one if it exists?14:04
gf712i.e. PyObject counter14:04
gf712and then increment SG_REF if it is provided?14:04
gf712so should not need to expose SG_REF anymore right?14:05
gf712some should take care of everything, from what I understand?14:06
@wiking"additionally emits the code in the "ref" feature into the C++ wrapper"14:07
@wikingthis would mean in our case14:07
@wikingSG_REF(obj)14:07
@wikingsince we have this14:08
@wiking%feature("ref")   shogun::CSGObject "SG_REF($this);"14:08
@wiking%feature("unref") shogun::CSGObject "SG_UNREF($this);"14:08
@wikingot?14:09
@wikingor?14:10
@wikingyep14:11
@wikingbased on the dox14:11
@wikingthat should be it14:11
@wiking:)14:11
@wikingbut will debug now because it drives me loco14:12
-!- ussdd95[m] [ussdd95mat@gateway/shell/matrix.org/x-gghaxbfxefmljigt] has quit [Ping timeout: 252 seconds]14:12
-!- wuwei[m] [wuweilinma@gateway/shell/matrix.org/x-lgsgmigkinrrucnl] has quit [Ping timeout: 268 seconds]14:12
gf712hmm ok14:13
gf712btw, for newobject14:13
gf712I don't think you should template it14:13
gf712just put the name14:13
gf712of the function that does newobject14:13
gf712and then template from there?14:13
gf712i.e. I have %newobject ParameterNode::attach14:14
gf712and then %template(attach) ParameterNode::attach<float32_t>14:14
gf712and then %template(attach) ParameterNode::attach<float64_t>14:14
gf712I think it looks cleaner no?14:14
@wikingok14:15
@wikingso this is what i hate14:15
@wiking(gdb) p *predicted14:15
@wiking$2 = <incomplete type>14:15
gf712order in swig? :p14:15
@wikinglldb is even worse14:15
gf712ah14:15
@wiking(lldb) p predicted14:15
@wikingerror: use of undeclared identifier '$__lldb_local_vars'14:15
@wikingerror: use of undeclared identifier '$__lldb_local_vars'14:15
@wikingerror: use of undeclared identifier '$__lldb_local_vars'14:15
@wikingerror: use of undeclared identifier '$__lldb_local_vars'14:15
gf712yea14:15
@wikingerror: use of undeclared identifier '$__lldb_local_vars'14:15
@wikingerror: use of undeclared identifier '$__lldb_local_vars'14:15
@wikingerror: use of undeclared identifier '$__lldb_local_vars'14:15
gf712but that only happens on linux14:15
@wikingerror: use of undeclared identifier 'predicted'14:15
gf712on MacOSX its fine14:15
@wikingyeah but hey14:16
gf712from my experience14:16
@wikingWHY?!14:16
@wikingWHYYYYYY14:16
@wikingi wanna haz debugger on donbot14:16
@wikingthat works14:16
@wikingbecause there compiling stuff is so much faster14:16
gf712because Linux != MacOS14:16
@wikingthan on this osx14:16
@wikingwhere keyboard is failing on me big time14:16
@wikingD:14:16
@wiking:>14:16
@wikingyeah but this is not an excuse14:16
@wiking:D14:16
gf712does it change if you use clang?14:16
@wikingtried14:17
@wikingno14:17
@wiking:D14:17
gf712instead of gcc14:17
gf712ag14:17
@wikingi had the same feeling14:17
@wikingor intuition14:17
@wikingthat maaaybe then things suddenly work14:17
@wikingbut no14:17
@wiking:)14:17
gf712I guess it wouldn't make a difference14:17
gf712it must use the same process14:17
gf712is it the same version btw?14:17
gf712the linux and mac versions?14:18
gf712I have this locally14:18
gf712lldb-1000.0.38.2   Swift-4.214:18
@wikingah that version is crazy14:18
@wikingi mean what apple has14:18
@wikingthere is a lookup table for that14:19
@wikingsomewhere14:19
gf712lldb 6.0.0 on linux14:19
@wikinghow to match llvm and macos thingns14:19
@wiking:)14:19
gf712crazy?14:19
gf712ah14:19
@wikingand yes n is still stuck14:19
@wikingtried cleaning no help14:19
@wiking:)14:19
@wikinghttps://en.wikipedia.org/wiki/Xcode#Latest_versions14:19
@wikingthere's the crazy shit14:20
@wiking:>14:20
gf712is Xcode Mac only?14:21
@wikingyep14:21
gf712was thinking about getting myself a working computer that I own but don't want to give apple any money14:21
gf712or at least not more than the value14:22
gf712anyways, good old printf to the rescue in debug mode14:22
@wikingnooooo14:22
@wikingi refuse to use printf14:22
@wikingthat is waste of energy time and money14:23
@wiking:D14:23
gf712yea but error: use of undeclared identifier '$__lldb_local_vars'14:23
gf712what is a person meant to do with that :D14:23
@wikinggf712: hoh14:57
@wikingswigmig14:57
gf712wiking: what?15:03
@wikingorder of things in swig15:04
@wiking:D15:04
@wikingthose %newobject liens were totally ignored15:04
@wiking:)15:04
@wikingas they were after the includes and not b415:04
@wiking:)15:04
gf712which ones?15:10
gf712the ones in shogun.i?15:10
@wikingfactory.i15:11
gf712ah yes15:11
gf712lol15:11
@wikingso i'm down to 2 errors15:11
gf712noice15:12
gf712wiking: btw did you add the list init to vectors in cpp?15:12
@wikingyep15:12
gf712writing the target json15:12
gf712cool15:12
@wikingand matrix15:12
gf712should have that soon15:12
gf712SGVector<type>({$arguments}) right?15:12
@wikingyep15:13
@wikingbut u can haz15:13
@wikingSGVector<type> x {$arguments}15:13
@wikingas well15:13
gf712true15:13
@wikingor x = SGVector<type> {$arguments}15:13
gf712aight ill do that15:13
gf712which one is best?15:13
gf712or same thing?15:13
@wikingsame shit15:14
@wikingits just syntactic sugar15:14
@wikingcalls the same ctor15:14
gf712and init order is same?15:14
gf712of the class members15:14
@wikingwhat do u mean? :)15:14
gf712when you do init in ctor15:14
gf712and have ctor : m_member(arg1)15:15
gf712m_member would be init at the end15:15
gf712I would expect at least15:15
@wikingthe initializer list ctor actually just calls the SGVector(iter begin, iter end)15:15
gf712is it the same with the other ways of ctor?15:15
gf712ah15:15
gf712is it just SGVector(list) : SGVector(iter begin, iter end) ?15:16
@wikingyes15:16
gf712cool15:16
@wikingbut the code is in sho15:16
@wiking:)15:16
gf712aight!15:16
@wikingand inside the iter ctor15:16
gf712tak15:16
@wikingit's just a simple copy15:16
@wikingstd::copy15:16
gf712you copy?15:17
gf712why not use ref?15:17
@wikingcoz how can i assure15:17
@wikingthat the given begin/end will be forever15:17
@wikingor till sgvector exists15:17
gf712hmm true15:17
gf712fair15:18
gf712just move it15:18
gf712and then too bad :DS15:18
gf712:D15:18
@wikinghttps://github.com/shogun-toolbox/shogun/blob/develop/src/shogun/lib/SGVector.h#L103-L11215:18
@wikingi'm talking about this :)15:18
gf712why not have a SGVector(std::initializer_list<T>&& il);15:18
gf712that just moves15:19
gf712no copy15:19
@wikinghttps://blog.knatten.org/2018/03/09/lvalues-rvalues-glvalues-prvalues-xvalues-help/15:19
gf712I guess it don't matter15:19
gf712haha not today15:19
gf712lval and rval for the win15:19
gf712and rval ref15:19
gf712more is too confusing :(15:19
-!- Moatman [~Moatman@pool-96-255-151-151.washdc.fios.verizon.net] has joined #shogun15:32
-!- Moatman [~Moatman@pool-96-255-151-151.washdc.fios.verizon.net] has quit [Remote host closed the connection]15:45
gf712wiking: did you see the GSoC stuff in the end?16:29
-!- gf712 [9052080d@gateway/web/freenode/ip.144.82.8.13] has quit [Ping timeout: 256 seconds]18:08
--- Log closed Fri Apr 12 00:00:32 2019

Generated by irclog2html.py 2.10.0 by Marius Gedminas - find it at mg.pov.lt!