IRC logs of #shogun for Saturday, 2016-07-02

--- Log opened Sat Jul 02 00:00:04 2016
shogun-buildbotbuild #23 of clang - thread analysis is complete: Failure [failed compile]  Build details are at http://buildbot.shogun-toolbox.org/builders/clang%20-%20thread%20analysis/builds/23  blamelist: Heiko Strathmann <heiko.strathmann@gmail.com>, Sanuj <sanuj.sharma.in@gmail.com>, Saurabh7 <saurabh.mahindre@gmail.com>03:44
shogun-buildbotbuild #21 of clang - undefined behaviour analysis is complete: Failure [failed compile]  Build details are at http://buildbot.shogun-toolbox.org/builders/clang%20-%20undefined%20behaviour%20analysis/builds/21  blamelist: Heiko Strathmann <heiko.strathmann@gmail.com>, Sanuj <sanuj.sharma.in@gmail.com>, Saurabh7 <saurabh.mahindre@gmail.com>03:48
-!- shogun-buildbot [~shogun-bu@7nn.de] has quit [Quit: buildmaster reconfigured: bot disconnecting]04:02
-!- shogun-buildbot [~shogun-bu@7nn.de] has joined #shogun04:02
shogun-buildbotbuild #35 of memleak - valgrind is complete: Failure [failed memory check]  Build details are at http://buildbot.shogun-toolbox.org/builders/memleak%20-%20valgrind/builds/35  blamelist: Heiko Strathmann <heiko.strathmann@gmail.com>, Sanuj <sanuj.sharma.in@gmail.com>, Saurabh7 <saurabh.mahindre@gmail.com>06:38
shogun-buildbotbuild #1034 of nightly_none is complete: Failure [failed compile]  Build details are at http://buildbot.shogun-toolbox.org/builders/nightly_none/builds/1034  blamelist: Heiko Strathmann <heiko.strathmann@gmail.com>, Sanuj <sanuj.sharma.in@gmail.com>, Saurabh7 <saurabh.mahindre@gmail.com>06:47
shogun-buildbotbuild #1164 of nightly_default is complete: Failure [failed test notebooks]  Build details are at http://buildbot.shogun-toolbox.org/builders/nightly_default/builds/1164  blamelist: Heiko Strathmann <heiko.strathmann@gmail.com>, Sanuj <sanuj.sharma.in@gmail.com>, Saurabh7 <saurabh.mahindre@gmail.com>07:27
-!- sanuj [~sanuj@61.0.28.234] has joined #shogun07:54
-!- sanuj [~sanuj@61.0.28.234] has quit [Ping timeout: 240 seconds]08:48
-!- sanuj [~sanuj@59.89.147.18] has joined #shogun09:01
-!- sanuj [~sanuj@59.89.147.18] has quit [Client Quit]09:05
-!- sanuj [~sanuj@59.89.147.18] has joined #shogun09:05
-!- sanuj [~sanuj@59.89.147.18] has quit [Ping timeout: 272 seconds]10:47
-!- OXPHOS [~OXPHOS@23.27.82.137] has joined #shogun11:23
-!- OXPHOS [~OXPHOS@23.27.82.137] has quit [Ping timeout: 258 seconds]11:29
-!- GandalfTheWizard [~Emma@112.10.170.115] has joined #shogun12:06
-!- GandalfTheWizard [~Emma@112.10.170.115] has quit [Ping timeout: 252 seconds]12:11
-!- GandalfTheWizard [~Emma@112.10.170.115] has joined #shogun12:14
-!- HeikoS [~heiko@host-92-0-162-192.as43234.net] has joined #shogun12:57
-!- mode/#shogun [+o HeikoS] by ChanServ12:58
-!- sanuj [~sanuj@59.89.147.18] has joined #shogun13:10
-!- HeikoS [~heiko@host-92-0-162-192.as43234.net] has quit [Quit: Leaving.]13:37
sanujbzdmgz, yo13:51
bzdmgzsanuj: hey13:51
sanujbzdmgz, how to get started with plugins and bring them in shogun13:51
bzdmgzuhmm you need some prototype first13:52
bzdmgzsanuj: have you seen in this aer thing we had dlopen13:52
-!- HeikoS [~heiko@host-92-0-162-192.as43234.net] has joined #shogun13:52
-!- mode/#shogun [+o HeikoS] by ChanServ13:52
sanujyeah i saw that13:52
sanujbzdmgz, but that's only for linux13:53
bzdmgzno that's posix13:53
bzdmgzmacos and any unix and any linux13:53
bzdmgzgood enough13:53
bzdmgzsanuj: so the idea is13:54
sanujohkay13:54
bzdmgzany plugin is a dynamic library that exposes just one function13:54
bzdmgzin aer it was called manifest IIRC13:54
sanujyes13:54
sanujit is manifest13:54
bzdmgzso this exposed function returns you a pointer to manifest13:55
bzdmgzand manifest can create some objects for you13:55
sanujbzdmgz, so i first build a separate prototype repo using aer code?13:56
bzdmgzwell mostly up to you13:56
bzdmgzjust be sure to understand what's going on13:56
bzdmgzbefore we get into this mess :D13:57
sanujohkay13:57
sanujbzdmgz, you are here for 2 weeks right?13:57
bzdmgzsanuj: yeap 2 weeks more then one week out then back13:57
sanujokay, i would like to do the plugin foundation stuff in these 2 weeks so i can work autonomously while you are away13:58
bzdmgzok sure lets try to do that13:58
sanujbzdmgz, it seems this is not the correct method to check if a symbol with "name" exists14:18
sanujhttps://github.com/shogun-toolbox/aer/blob/master/src/aer/dynamic/library.cpp#L3314:18
sanujwe should use dlerror()14:19
sanujhttp://linux.die.net/man/3/dlopen14:19
bzdmgzok feel free %)14:19
sanuj:D14:19
sanujbzdmgz, is this a working prototype?14:20
sanujhow to test14:20
bzdmgzwell there was an example14:20
bzdmgzit worked14:20
bzdmgzback then14:20
sanujokay14:20
sanujbzdmgz, what does this do => T (*fm)();14:29
bzdmgzpointer to function that returns T14:29
sanujohkay14:29
sanujbzdmgz, *(void**)(&fm) = dlsym(handle, name.c_str());14:30
sanujcan't we do => (void*)fm = dlsym(..)14:30
bzdmgzno idea, you can try14:31
sanujohkay14:31
sanujkernel is an overexploited term in computer science14:37
sanujrandom thought ^14:37
-!- HeikoS [~heiko@host-92-0-162-192.as43234.net] has quit [Quit: Leaving.]14:54
sanujbzdmgz, std::function<int(int)> fn1 = half;14:58
sanujwhat is int(int) here?14:58
bzdmgzman14:58
bzdmgz:D14:58
bzdmgzint argument int return value14:58
sanujyeah but you need to pass a type to <>14:58
bzdmgzwhat type?14:59
sanujstd::function<int>15:00
sanuji'm seeing the int(int) thing for the first time in <> :P15:00
bzdmgzwhat does that even mean15:00
bzdmgzstd::function is not just a no-parameter function15:01
bzdmgzit can haz parameterz15:01
sanujbzdmgz, i meant i hadn't seen functions passed as template arguments before15:07
sanujonly data types and objects15:07
bzdmgzyeah C++ is big15:07
sanujit's huuuuuuuggeee15:08
sanujbzdmgz, std::function<As<T>()>, this means a function returning As<T> with no arguments?15:10
bzdmgzyes15:10
sanujokay15:10
sanujbzdmgz, what is this line doing15:43
sanujhttps://github.com/shogun-toolbox/aer/blob/master/src/aer/dynamic/manifest.hpp#L7015:43
bzdmgzlambda15:44
sanujohkay15:44
bzdmgz"->" to specify the output type15:44
sanujoh so you need to do this to get object from manifest15:48
sanujauto metaclass = manifest.classByName<MyBaseClass>("basic");15:48
sanujauto object = metaclass.instance();15:48
sanujbzdmgz, we will have to do this everytime when we want a new object from a plugin?15:49
sanujmetaclass.instance();15:49
bzdmgzkind of yeah15:49
sanujbzdmgz, in python also15:50
sanujor will this be hidden?15:50
bzdmgzno this should be hidden15:50
sanujhow will it be hidden?15:50
bzdmgzmmm15:51
bzdmgzcreate<T>(name)15:51
bzdmgzwhatever15:51
sanujohkay15:51
bzdmgzif you want T called "svm-super-classifier"15:51
bzdmgzI guess you iterate over plugins15:51
bzdmgzor so15:51
sanujthis function loads the plugin and returns an object and then closes the plugin?15:52
bzdmgzI don't think we should unload the plugin immediately15:53
bzdmgzbut the idea is quite like that15:53
sanujohkay15:53
sanujbzdmgz, i understand your plugin prototype16:09
bzdmgzgood16:09
sanuji ran on local16:10
sanujit works16:10
bzdmgzsanuj: I think we need to get back to class_list thing16:10
bzdmgzremember this one?16:10
sanujyeah16:10
bzdmgzok sry have to go now16:11
sanujbzdmgz, but what about windows support16:11
sanujohkay16:11
bzdmgzah nevermind16:11
bzdmgzwindows will support linux soon16:11
bzdmgz:D16:11
sanujwe can't change shogun till it supports windows or can we?16:11
bzdmgzit is quite similar16:11
sanujohkay16:12
bzdmgzshogun doesn't work on windows anyway16:12
sanuji see16:12
bzdmgzbecause reasons haha16:12
sanujno problem then16:12
bzdmgzwe use pthreads and shit like that16:12
bzdmgzmassive overhaul16:12
sanujbzdmgz, so i'll talk to you tomorrow about class_list thing16:12
sanujif you are going now16:13
bzdmgzokie16:13
bzdmgzyeah16:13
sanujcool16:13
sanujtake care16:13
bzdmgzsee you16:13
sanujbye16:13
-!- sanuj [~sanuj@59.89.147.18] has quit [Ping timeout: 264 seconds]16:42
-!- sanuj [~sanuj@59.89.147.18] has joined #shogun17:18
-!- sanuj [~sanuj@59.89.147.18] has quit [Quit: Leaving]17:52
-!- sanuj [~sanuj@59.89.147.18] has joined #shogun17:52
-!- mizari [~mizari@95-174-213-100.nts.su] has joined #shogun17:59
-!- mizari [~mizari@95-174-213-100.nts.su] has quit [Quit: Leaving]19:16
-!- sanuj [~sanuj@59.89.147.18] has quit [Remote host closed the connection]19:28
-!- GandalfTheWizard [~Emma@112.10.170.115] has quit [Ping timeout: 252 seconds]20:11
--- Log closed Sun Jul 03 00:00:06 2016

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