--- Log opened Sat Jul 02 00:00:04 2016 | ||
shogun-buildbot | build #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-buildbot | build #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 #shogun | 04:02 | |
shogun-buildbot | build #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-buildbot | build #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-buildbot | build #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 #shogun | 07:54 | |
-!- sanuj [~sanuj@61.0.28.234] has quit [Ping timeout: 240 seconds] | 08:48 | |
-!- sanuj [~sanuj@59.89.147.18] has joined #shogun | 09:01 | |
-!- sanuj [~sanuj@59.89.147.18] has quit [Client Quit] | 09:05 | |
-!- sanuj [~sanuj@59.89.147.18] has joined #shogun | 09:05 | |
-!- sanuj [~sanuj@59.89.147.18] has quit [Ping timeout: 272 seconds] | 10:47 | |
-!- OXPHOS [~OXPHOS@23.27.82.137] has joined #shogun | 11:23 | |
-!- OXPHOS [~OXPHOS@23.27.82.137] has quit [Ping timeout: 258 seconds] | 11:29 | |
-!- GandalfTheWizard [~Emma@112.10.170.115] has joined #shogun | 12:06 | |
-!- GandalfTheWizard [~Emma@112.10.170.115] has quit [Ping timeout: 252 seconds] | 12:11 | |
-!- GandalfTheWizard [~Emma@112.10.170.115] has joined #shogun | 12:14 | |
-!- HeikoS [~heiko@host-92-0-162-192.as43234.net] has joined #shogun | 12:57 | |
-!- mode/#shogun [+o HeikoS] by ChanServ | 12:58 | |
-!- sanuj [~sanuj@59.89.147.18] has joined #shogun | 13:10 | |
-!- HeikoS [~heiko@host-92-0-162-192.as43234.net] has quit [Quit: Leaving.] | 13:37 | |
sanuj | bzdmgz, yo | 13:51 |
bzdmgz | sanuj: hey | 13:51 |
sanuj | bzdmgz, how to get started with plugins and bring them in shogun | 13:51 |
bzdmgz | uhmm you need some prototype first | 13:52 |
bzdmgz | sanuj: have you seen in this aer thing we had dlopen | 13:52 |
-!- HeikoS [~heiko@host-92-0-162-192.as43234.net] has joined #shogun | 13:52 | |
-!- mode/#shogun [+o HeikoS] by ChanServ | 13:52 | |
sanuj | yeah i saw that | 13:52 |
sanuj | bzdmgz, but that's only for linux | 13:53 |
bzdmgz | no that's posix | 13:53 |
bzdmgz | macos and any unix and any linux | 13:53 |
bzdmgz | good enough | 13:53 |
bzdmgz | sanuj: so the idea is | 13:54 |
sanuj | ohkay | 13:54 |
bzdmgz | any plugin is a dynamic library that exposes just one function | 13:54 |
bzdmgz | in aer it was called manifest IIRC | 13:54 |
sanuj | yes | 13:54 |
sanuj | it is manifest | 13:54 |
bzdmgz | so this exposed function returns you a pointer to manifest | 13:55 |
bzdmgz | and manifest can create some objects for you | 13:55 |
sanuj | bzdmgz, so i first build a separate prototype repo using aer code? | 13:56 |
bzdmgz | well mostly up to you | 13:56 |
bzdmgz | just be sure to understand what's going on | 13:56 |
bzdmgz | before we get into this mess :D | 13:57 |
sanuj | ohkay | 13:57 |
sanuj | bzdmgz, you are here for 2 weeks right? | 13:57 |
bzdmgz | sanuj: yeap 2 weeks more then one week out then back | 13:57 |
sanuj | okay, i would like to do the plugin foundation stuff in these 2 weeks so i can work autonomously while you are away | 13:58 |
bzdmgz | ok sure lets try to do that | 13:58 |
sanuj | bzdmgz, it seems this is not the correct method to check if a symbol with "name" exists | 14:18 |
sanuj | https://github.com/shogun-toolbox/aer/blob/master/src/aer/dynamic/library.cpp#L33 | 14:18 |
sanuj | we should use dlerror() | 14:19 |
sanuj | http://linux.die.net/man/3/dlopen | 14:19 |
bzdmgz | ok feel free %) | 14:19 |
sanuj | :D | 14:19 |
sanuj | bzdmgz, is this a working prototype? | 14:20 |
sanuj | how to test | 14:20 |
bzdmgz | well there was an example | 14:20 |
bzdmgz | it worked | 14:20 |
bzdmgz | back then | 14:20 |
sanuj | okay | 14:20 |
sanuj | bzdmgz, what does this do => T (*fm)(); | 14:29 |
bzdmgz | pointer to function that returns T | 14:29 |
sanuj | ohkay | 14:29 |
sanuj | bzdmgz, *(void**)(&fm) = dlsym(handle, name.c_str()); | 14:30 |
sanuj | can't we do => (void*)fm = dlsym(..) | 14:30 |
bzdmgz | no idea, you can try | 14:31 |
sanuj | ohkay | 14:31 |
sanuj | kernel is an overexploited term in computer science | 14:37 |
sanuj | random thought ^ | 14:37 |
-!- HeikoS [~heiko@host-92-0-162-192.as43234.net] has quit [Quit: Leaving.] | 14:54 | |
sanuj | bzdmgz, std::function<int(int)> fn1 = half; | 14:58 |
sanuj | what is int(int) here? | 14:58 |
bzdmgz | man | 14:58 |
bzdmgz | :D | 14:58 |
bzdmgz | int argument int return value | 14:58 |
sanuj | yeah but you need to pass a type to <> | 14:58 |
bzdmgz | what type? | 14:59 |
sanuj | std::function<int> | 15:00 |
sanuj | i'm seeing the int(int) thing for the first time in <> :P | 15:00 |
bzdmgz | what does that even mean | 15:00 |
bzdmgz | std::function is not just a no-parameter function | 15:01 |
bzdmgz | it can haz parameterz | 15:01 |
sanuj | bzdmgz, i meant i hadn't seen functions passed as template arguments before | 15:07 |
sanuj | only data types and objects | 15:07 |
bzdmgz | yeah C++ is big | 15:07 |
sanuj | it's huuuuuuuggeee | 15:08 |
sanuj | bzdmgz, std::function<As<T>()>, this means a function returning As<T> with no arguments? | 15:10 |
bzdmgz | yes | 15:10 |
sanuj | okay | 15:10 |
sanuj | bzdmgz, what is this line doing | 15:43 |
sanuj | https://github.com/shogun-toolbox/aer/blob/master/src/aer/dynamic/manifest.hpp#L70 | 15:43 |
bzdmgz | lambda | 15:44 |
sanuj | ohkay | 15:44 |
bzdmgz | "->" to specify the output type | 15:44 |
sanuj | oh so you need to do this to get object from manifest | 15:48 |
sanuj | auto metaclass = manifest.classByName<MyBaseClass>("basic"); | 15:48 |
sanuj | auto object = metaclass.instance(); | 15:48 |
sanuj | bzdmgz, we will have to do this everytime when we want a new object from a plugin? | 15:49 |
sanuj | metaclass.instance(); | 15:49 |
bzdmgz | kind of yeah | 15:49 |
sanuj | bzdmgz, in python also | 15:50 |
sanuj | or will this be hidden? | 15:50 |
bzdmgz | no this should be hidden | 15:50 |
sanuj | how will it be hidden? | 15:50 |
bzdmgz | mmm | 15:51 |
bzdmgz | create<T>(name) | 15:51 |
bzdmgz | whatever | 15:51 |
sanuj | ohkay | 15:51 |
bzdmgz | if you want T called "svm-super-classifier" | 15:51 |
bzdmgz | I guess you iterate over plugins | 15:51 |
bzdmgz | or so | 15:51 |
sanuj | this function loads the plugin and returns an object and then closes the plugin? | 15:52 |
bzdmgz | I don't think we should unload the plugin immediately | 15:53 |
bzdmgz | but the idea is quite like that | 15:53 |
sanuj | ohkay | 15:53 |
sanuj | bzdmgz, i understand your plugin prototype | 16:09 |
bzdmgz | good | 16:09 |
sanuj | i ran on local | 16:10 |
sanuj | it works | 16:10 |
bzdmgz | sanuj: I think we need to get back to class_list thing | 16:10 |
bzdmgz | remember this one? | 16:10 |
sanuj | yeah | 16:10 |
bzdmgz | ok sry have to go now | 16:11 |
sanuj | bzdmgz, but what about windows support | 16:11 |
sanuj | ohkay | 16:11 |
bzdmgz | ah nevermind | 16:11 |
bzdmgz | windows will support linux soon | 16:11 |
bzdmgz | :D | 16:11 |
sanuj | we can't change shogun till it supports windows or can we? | 16:11 |
bzdmgz | it is quite similar | 16:11 |
sanuj | ohkay | 16:12 |
bzdmgz | shogun doesn't work on windows anyway | 16:12 |
sanuj | i see | 16:12 |
bzdmgz | because reasons haha | 16:12 |
sanuj | no problem then | 16:12 |
bzdmgz | we use pthreads and shit like that | 16:12 |
bzdmgz | massive overhaul | 16:12 |
sanuj | bzdmgz, so i'll talk to you tomorrow about class_list thing | 16:12 |
sanuj | if you are going now | 16:13 |
bzdmgz | okie | 16:13 |
bzdmgz | yeah | 16:13 |
sanuj | cool | 16:13 |
sanuj | take care | 16:13 |
bzdmgz | see you | 16:13 |
sanuj | bye | 16:13 |
-!- sanuj [~sanuj@59.89.147.18] has quit [Ping timeout: 264 seconds] | 16:42 | |
-!- sanuj [~sanuj@59.89.147.18] has joined #shogun | 17:18 | |
-!- sanuj [~sanuj@59.89.147.18] has quit [Quit: Leaving] | 17:52 | |
-!- sanuj [~sanuj@59.89.147.18] has joined #shogun | 17:52 | |
-!- mizari [~mizari@95-174-213-100.nts.su] has joined #shogun | 17: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!