Open in new window / Try shogun cloud
--- Log opened Wed Aug 17 00:00:09 2016
-!- shogun-notifier- [~irker@7nn.de] has joined #shogun05:07
shogun-notifier-shogun: Viktor Gal :feature/windows * 04e3f7e / src/shogun/io/streaming/InputParser.h,src/shogun/io/streaming/ParseBuffer.h: https://github.com/shogun-toolbox/shogun/commit/04e3f7e53bd1a69a142a4c89d3a250e4c9ce0f2405:07
shogun-notifier-shogun: Add c++11 based implementation for threading in InputParser and ParseBuffer05:07
shogun-notifier-shogun: Viktor Gal :feature/windows * abee797 / src/shogun/lib/Time.cpp,src/shogun/lib/Time.h: https://github.com/shogun-toolbox/shogun/commit/abee797846e6fba73b5cd52579907659bfb0221305:07
shogun-notifier-shogun: Fix struct timeval definition for MSVC05:07
shogun-notifier-shogun: Viktor Gal :feature/windows * 79a3dbc / src/shogun/mathematics/ajd/FFDiag.cpp,src/shogun/mathematics/ajd/JediDiag.cpp: https://github.com/shogun-toolbox/shogun/commit/79a3dbc8ed7f0a72069ae525b5f92d9e63fb5bbc05:07
shogun-notifier-shogun: Fix implementation where runtime variable was used for array size on the stack05:07
shogun-notifier-shogun: use SGMatrix or SGVector instead05:07
shogun-notifier-shogun: Viktor Gal :feature/windows * 97af9bf / src/shogun/features/StringFeatures.cpp,src/shogun/io/SGIO.cpp: https://github.com/shogun-toolbox/shogun/commit/97af9bfcf3d3d97a2e1ee437bd37085fbbd1827805:07
shogun-notifier-shogun: Add MSVC implementation of directory listing to StringFeatures05:07
shogun-notifier-shogun: Viktor Gal :feature/windows * eadd291 / src/shogun/lib/external/PMurHash.h: https://github.com/shogun-toolbox/shogun/commit/eadd29171efaaaa916d07ef20de1ae00ece0bc4105:07
shogun-notifier-shogun: Use uint32_t for MurMurHash3 when MSVC defines it05:07
shogun-notifier-shogun: Viktor Gal :feature/windows * 28a0160 / src/shogun/io/SGIO.h: https://github.com/shogun-toolbox/shogun/commit/28a0160ac69d4bd80325b61025f5dee906faf38605:07
shogun-notifier-shogun: Viktor Gal :feature/windows * 1649cf5 / / (9 files): https://github.com/shogun-toolbox/shogun/commit/1649cf57d75ceb9809580507fcd3e3522a08f30d05:07
shogun-notifier-shogun: Fix unit tests for MSVC05:07
shogun-notifier-shogun: Viktor Gal :feature/windows * b997a73 / CMakeLists.txt,cmake/external/GoogleTestNMock.cmake: https://github.com/shogun-toolbox/shogun/commit/b997a7303c44d2e8a97860e4c6378eacb91ae52905:07
shogun-notifier-shogun: Fix unit test framework compiler flags05:07
shogun-notifier-shogun: Viktor Gal :feature/windows * c1b2115 / appveyor.yml,tests/unit/CMakeLists.txt: https://github.com/shogun-toolbox/shogun/commit/c1b21156f96c0199fc610cee895490347879fade05:07
shogun-notifier-shogun: [WIP] fix unit test discovery on windows05:07
shogun-notifier-shogun: Viktor Gal :feature/windows * 549d97a / src/shogun/base/Parallel.cpp: https://github.com/shogun-toolbox/shogun/commit/549d97a1c7cbc370b0284f47371b44cf895b678c05:07
shogun-notifier-shogun: Fix assertation in Parallel::set_num_threads05:07
-!- travis-ci [~travis-ci@ec2-54-224-54-119.compute-1.amazonaws.com] has joined #shogun05:55
travis-ciit's Viktor Gal's turn to pay the next round of drinks for the massacre he caused in shogun-toolbox/shogun: https://travis-ci.org/shogun-toolbox/shogun/builds/15286551305:55
-!- travis-ci [~travis-ci@ec2-54-224-54-119.compute-1.amazonaws.com] has left #shogun []05:55
shogun-notifier-shogun: Viktor Gal :feature/windows * 1e85d2f / appveyor.yml: https://github.com/shogun-toolbox/shogun/commit/1e85d2f55a1d1623257ea1975d11b54c38edc82a06:08
shogun-notifier-shogun: Add appveyor.yml for windows CI06:08
shogun-notifier-shogun: and where we go06:08
shogun-notifier-shogun: Viktor Gal :feature/windows * 7dec0b6 / CMakeLists.txt,cmake/external/MSIntTypes.cmake: https://github.com/shogun-toolbox/shogun/commit/7dec0b6efdc55d2abaaf59ef8b5a4eb41b23bff906:08
shogun-notifier-shogun: Update MSIntTypes repo location06:08
shogun-notifier-shogun: only use MSIntTypes when VS version < 11.006:08
shogun-notifier-shogun: Viktor Gal :feature/windows * 09fa117 / / (4 files): https://github.com/shogun-toolbox/shogun/commit/09fa117a81ed6c47f94ef51722976c8a44dcbfd006:08
shogun-notifier-shogun: Add cmake detection for CxaDemangle06:08
shogun-notifier-shogun: Viktor Gal :feature/windows * e319419 / CMakeLists.txt: https://github.com/shogun-toolbox/shogun/commit/e319419b3b1f4400312504d891d137f7d5813fe906:08
shogun-notifier-shogun: Set properly the compiler flags for visual studio06:08
shogun-notifier-shogun: Viktor Gal :feature/windows * 252e2ba / src/shogun/classifier/vw/cache/VwNativeCacheReader.h: https://github.com/shogun-toolbox/shogun/commit/252e2ba9a47aa93fe9a9318ba6861e29328eb7d406:08
shogun-notifier-shogun: Add portable packed attribute implementation06:08
shogun-notifier-shogun: VwNativeCacheReader uses __attribute__((__packed__)) GNUC extension06:08
shogun-notifier-shogun: this patch provides the equivalent implementation for MSVC06:08
shogun-notifier-shogun: Viktor Gal :feature/windows * ac8b5e1 / src/shogun/ (3 files): https://github.com/shogun-toolbox/shogun/commit/ac8b5e1d1a198c34d73de445c141e4fd0f3a8a0e06:08
shogun-notifier-shogun: Resolve using reserved variable names in MSVC06:08
shogun-notifier-shogun: "far and near were built-in compiler keywords back in the 16-bit days."06:08
shogun-notifier-shogun: undefining them when needed06:08
shogun-notifier-shogun: [WIP] Fix macro va_args counter macros for MSVC06:08
shogun-notifier-shogun: Viktor Gal :feature/windows * d45d097 / src/shogun/distance/Distance.cpp,src/shogun/kernel/Kernel.cpp: https://github.com/shogun-toolbox/shogun/commit/d45d097f33d581a03e4a77cb6177d6dc250ee83e06:08
shogun-notifier-shogun: Properly guard with HAVE_PTHREAD all implementation that requires pthread06:08
shogun-notifier-shogun: Viktor Gal :feature/windows * cff09d7 / src/shogun/io/streaming/InputParser.h,src/shogun/io/streaming/ParseBuffer.h: https://github.com/shogun-toolbox/shogun/commit/cff09d7d078257ee191614273aec123e1d39966206:08
shogun-notifier-shogun: Add c++11 based implementation for threading in InputParser and ParseBuffer06:08
shogun-notifier-shogun: Viktor Gal :feature/windows * b835c30 / src/shogun/lib/Time.cpp,src/shogun/lib/Time.h: https://github.com/shogun-toolbox/shogun/commit/b835c30c133b1ee2ed2ae237fa4122fbcc950ed006:08
shogun-notifier-shogun: Fix struct timeval definition for MSVC06:08
shogun-notifier-shogun: Viktor Gal :feature/windows * df65fd2 / src/shogun/mathematics/ajd/FFDiag.cpp,src/shogun/mathematics/ajd/JediDiag.cpp: https://github.com/shogun-toolbox/shogun/commit/df65fd26212b7556563b4f48d6ec05aab01f577106:08
shogun-notifier-shogun: Fix implementation where runtime variable was used for array size on the stack06:08
shogun-notifier-shogun: use SGMatrix or SGVector instead06:08
shogun-notifier-shogun: Viktor Gal :feature/windows * 5b51290 / src/shogun/features/StringFeatures.cpp,src/shogun/io/SGIO.cpp: https://github.com/shogun-toolbox/shogun/commit/5b51290ffcd5c6146bbacb38511f97785c8cccc506:08
shogun-notifier-shogun: Add MSVC implementation of directory listing to StringFeatures06:08
shogun-notifier-shogun: Viktor Gal :feature/windows * ad647ba / src/shogun/lib/external/PMurHash.h: https://github.com/shogun-toolbox/shogun/commit/ad647baa55722b8c8a64ac1dffdc4f7079aad01206:08
shogun-notifier-shogun: Use uint32_t for MurMurHash3 when MSVC defines it06:08
shogun-notifier-shogun: Viktor Gal :feature/windows * 27e7d45 / src/shogun/io/SGIO.h: https://github.com/shogun-toolbox/shogun/commit/27e7d4542556a938bb234208c3c4dc2cd33ec65106:08
shogun-notifier-shogun: Use strncpy_s instead of strncpy when compiling with MSVC06:08
shogun-notifier-shogun: Viktor Gal :feature/windows * 38b95a3 / src/shogun/mathematics/linalg/internal/implementation/ (17 files): https://github.com/shogun-toolbox/shogun/commit/38b95a3bd32f39a4d545080442957cf3d57ae8ea06:08
shogun-notifier-shogun: Replace enum with Backend in the linalg template args06:08
shogun-notifier-shogun: Viktor Gal :feature/windows * 69e6350 / appveyor.yml,tests/unit/CMakeLists.txt: https://github.com/shogun-toolbox/shogun/commit/69e6350c1638c4048a9e9c19a0d093a23c92104b06:08
shogun-notifier-shogun: [WIP] fix unit test discovery on windows06:08
shogun-notifier-shogun: Viktor Gal :feature/windows * b298da1 / src/shogun/base/Parallel.cpp: https://github.com/shogun-toolbox/shogun/commit/b298da10cb2fc48f87fc9bf29f73ac65cfa026ae06:08
shogun-notifier-shogun: Fix assertation in Parallel::set_num_threads06:08
-!- shogun-notifier- [~irker@7nn.de] has quit [Quit: transmission timeout]09:08
-!- sanuj [~sanuj@117.204.245.188] has joined #shogun09:59
-!- sanuj [~sanuj@117.204.245.188] has quit [Ping timeout: 252 seconds]10:14
-!- sanuj [~sanuj@117.204.245.188] has joined #shogun11:23
sanujwiking, do you know if it's possible to set a breakpoint in a ruby script while debugging using gdb?11:24
@wikingsanuj, http://lmgtfy.com/?q=ruby+script+while+debugging#11:26
-!- travis-ci [~travis-ci@ec2-54-242-68-98.compute-1.amazonaws.com] has joined #shogun11:56
travis-ciit's Viktor Gal's turn to pay the next round of drinks for the massacre he caused in shogun-toolbox/shogun: https://travis-ci.org/shogun-toolbox/shogun/builds/15292307711:56
-!- travis-ci [~travis-ci@ec2-54-242-68-98.compute-1.amazonaws.com] has left #shogun []11:56
sanujwiking, i had already tried those debuggers12:03
sanujthey are not helping me narrow down the problem12:03
sanuji want to see what is wrong with swig generated wrappers12:03
sanujthe bug is exactly like this one12:04
sanujhttp://stackoverflow.com/questions/15197131/ruby-and-swig-typeerror-cant-convert-nil-into-string12:04
@wikingsanuj, have you tried #swig (oftc) or their mailing list?12:07
sanujwiking, shall i ask them on their mailing list?12:07
@wikingidk12:08
sanujwiking, you are online on #swig?12:10
@wikingi think so12:11
sanujkk12:11
-!- sanuj [~sanuj@117.204.245.188] has quit [Ping timeout: 264 seconds]12:52
-!- sanuj [~sanuj@117.204.245.188] has joined #shogun12:53
-!- shogun-notifier- [~irker@7nn.de] has joined #shogun13:04
shogun-notifier-shogun: Viktor Gal :feature/windows * f39bfcf / src/shogun/ (20 files): https://github.com/shogun-toolbox/shogun/commit/f39bfcf5e4f0203144aa64b67d1885238fa5e51f13:04
shogun-notifier-shogun: Fix headers when compiling with MSVC13:04
shogun-notifier-shogun:   * dont include <unistd.h>, <sys/time.h>, <sys/mman.h>13:04
shogun-notifier-shogun:   * include <windows.h> in commons.h with NOMINMAX defined13:04
shogun-notifier-shogun:   * include <io.h>13:04
shogun-notifier-shogun:   * fix missing ssize_t definition13:04
shogun-notifier-shogun: Viktor Gal :feature/windows * c62e642 / src/shogun/base/SGObject.h: https://github.com/shogun-toolbox/shogun/commit/c62e64284dff026cc129f097b67f4484cdcfe2b813:04
shogun-notifier-shogun: [WIP] Fix macro va_args counter macros for MSVC13:04
shogun-notifier-shogun: Viktor Gal :feature/windows * 5c2681c / src/shogun/distance/Distance.cpp,src/shogun/kernel/Kernel.cpp: https://github.com/shogun-toolbox/shogun/commit/5c2681c2c5a3569878a2b599efdcc9f2d13d8b3313:04
shogun-notifier-shogun: Properly guard with HAVE_PTHREAD all implementation that requires pthread13:04
shogun-notifier-shogun: Viktor Gal :feature/windows * e4d6eb3 / src/shogun/io/streaming/InputParser.h,src/shogun/io/streaming/ParseBuffer.h: https://github.com/shogun-toolbox/shogun/commit/e4d6eb321ddfbf2fcf24724750e2d9224b1c4cc913:04
shogun-notifier-shogun: Add c++11 based implementation for threading in InputParser and ParseBuffer13:04
shogun-notifier-shogun: Viktor Gal :feature/windows * 31e0be4 / src/shogun/lib/Time.cpp,src/shogun/lib/Time.h: https://github.com/shogun-toolbox/shogun/commit/31e0be418ade116b57380486e2faf56b9368d1f313:04
shogun-notifier-shogun: Fix struct timeval definition for MSVC13:04
shogun-notifier-shogun: Viktor Gal :feature/windows * d3d7832 / src/shogun/lib/Signal.cpp,src/shogun/lib/Signal.h: https://github.com/shogun-toolbox/shogun/commit/d3d783202022aa114f8535069bce8a340fd0c17e13:04
shogun-notifier-shogun: Add MSVC implementation to Signal class13:04
shogun-notifier-shogun: Viktor Gal :feature/windows * 286dbc6 / src/shogun/CMakeLists.txt: https://github.com/shogun-toolbox/shogun/commit/286dbc6505e6026963cd5e1c472abbd2302a2eff13:04
shogun-notifier-shogun: Link libshogun with winmm when compilng with MSVC13:04
shogun-notifier-shogun: required for timeGetTime13:04
shogun-notifier-shogun: Viktor Gal :feature/windows * 7426ed2 / examples/undocumented/libshogun/ (2 files): https://github.com/shogun-toolbox/shogun/commit/7426ed2f15c9a70a33f735ddd2d7bb3be5ccfe4a13:04
shogun-notifier-shogun: Fix examples to compile with MSVC13:04
shogun-notifier-shogun: Viktor Gal :feature/windows * 3e96714 / / (9 files): https://github.com/shogun-toolbox/shogun/commit/3e96714f29408737936cf91b16da1bf4e057ca6413:04
shogun-notifier-shogun: Fix unit tests for MSVC13:04
shogun-notifier-shogun: Viktor Gal :feature/windows * 25789b8 / CMakeLists.txt,cmake/external/GoogleTestNMock.cmake: https://github.com/shogun-toolbox/shogun/commit/25789b86a024d27a001bcbd4bfd1494ea87d736613:04
shogun-notifier-shogun: Fix unit test framework compiler flags13:04
shogun-notifier-shogun: Viktor Gal :feature/windows * 578e709 / appveyor.yml,tests/unit/CMakeLists.txt: https://github.com/shogun-toolbox/shogun/commit/578e7090e7cbed789fb558f59b2f4a52492dc72c13:04
shogun-notifier-shogun: [WIP] fix unit test discovery on windows13:04
shogun-notifier-shogun: Viktor Gal :feature/windows * cca55bd / src/shogun/base/Parallel.cpp: https://github.com/shogun-toolbox/shogun/commit/cca55bd8e29ddfc31fe4865b3085db0214ff191a13:04
shogun-notifier-shogun: Fix assertation in Parallel::set_num_threads13:04
-!- travis-ci [~travis-ci@ec2-54-242-68-98.compute-1.amazonaws.com] has joined #shogun13:51
travis-ciit's Viktor Gal's turn to pay the next round of drinks for the massacre he caused in shogun-toolbox/shogun: https://travis-ci.org/shogun-toolbox/shogun/builds/15293776813:51
-!- travis-ci [~travis-ci@ec2-54-242-68-98.compute-1.amazonaws.com] has left #shogun []13:51
-!- sanuj [~sanuj@117.204.245.188] has quit [Ping timeout: 250 seconds]13:56
-!- sanuj [~sanuj@117.204.245.188] has joined #shogun14:35
sanujlisitsyn, hey14:35
sanujSaurabh7, hey14:40
-!- mizari [~mizari@95-174-213-100.nts.su] has joined #shogun14:41
Saurabh7sanuj: yo14:46
sanujSaurabh7, how are you planning to submit your code to google?14:46
Saurabh7sanuj: uhm not sure, mayb some filter on PRs14:47
sanujokay14:47
@wikingSaurabh7, are you by any chance here?15:29
-!- sanuj [~sanuj@117.204.245.188] has quit [Ping timeout: 252 seconds]15:47
-!- shogun-notifier- [~irker@7nn.de] has quit [Quit: transmission timeout]16:04
-!- sanuj [~sanuj@117.204.245.188] has joined #shogun16:45
-!- mizari [~mizari@95-174-213-100.nts.su] has quit [Read error: Connection reset by peer]18:04
-!- mizari [~mizari@95-174-213-100.nts.su] has joined #shogun18:19
-!- mizari [~mizari@95-174-213-100.nts.su] has quit [Quit: Leaving]19:21
CaBaRealFeatures is CDenseFeatures<float64_t>?19:50
lisitsynyes19:56
CaBain the example below, where it says 'shogun will now own the matrix created' - what does that mean? 'matrix' is not a pointer that could be free. will SG call free_data() of the SGMatrix object once the 'features' object is SG_UNREFed? or what does 'own' imply here?20:01
CaBahttp://www.shogun-toolbox.org/doc/en/latest/developer_tutorial.html20:01
CaBalisitsyn: thanks20:01
lisitsynCaBa: I think that's rather legacy20:05
lisitsynit was raw pointer long ago20:06
sanujlisitsyn, hey20:10
lisitsynsanuj: hey20:12
sanujlisitsyn, so i'll give you links that i'll be submitting to google tomorrow20:13
sanujyou can review them?20:13
lisitsynyeah probably20:14
sanujlisitsyn, 23rd is the last date20:15
lisitsynwhat links?20:15
lisitsynsource code?20:15
sanujPRs20:16
lisitsynok20:16
sanujor is there a better way to submit code?20:16
sanuji read this from their guidelines20:16
sanujand they also wanted me to discuss this with my mentors20:16
lisitsynno idea, you've got to follow their guides20:17
sanujokay20:18
CaBalisitsyn: ok, so the objects like SGString or SGMatrix, which are usually passed by value, aren't touched by shoguns garbage collection?20:26
lisitsynCaBa: they are SGReferencedData20:26
lisitsynthey are refcounted, copy ctor +1, dtor -120:26
lisitsynonce nobody is using it, it is deleted20:27
CaBalisitsyn: so in SGString for example, the 'char * string' member of that would be freed upon refcount==0?20:27
lisitsynCaBa: not SGString but SGVector and SGMatrix20:28
CaBaO.O20:28
lisitsynSGString is always copied20:28
CaBalisitsyn: confusing. is all that memory logic documented somewhere.20:29
CaBas/.$/?/20:29
lisitsynCaBa: somewhere in code I guess20:31
lisitsynnot sure20:31
CaBalisitsyn: upon construction, the object has refcount 1?20:33
lisitsynit is zero by default20:33
CaBalisitsyn: so if i create an SGVector, pass it to shogun by value, it is copied (0->1), shogun object dies and deconstructs the copy (1->0), my original version is now an empty SGVector?20:34
lisitsynyeah but this doesn't happen20:37
lisitsynauto x = SGVector();20:37
lisitsynhere x will have refcount=120:37
lisitsynbecause of once happened copy20:37
CaBaoh20:39
CaBamy incomplete knowledge of c++ then :P20:39
-!- Hieronymous [~sudarshan@122.169.143.61] has joined #shogun20:41
CaBalisitsyn: hm. the copy constructor isn't called in your example20:43
CaBalisitsyn: also why would you write 'auto x SGVector();' instead of 'SGVector x;'?20:43
lisitsynCaBa: either operator= if it is implemented or copy ctor20:43
-!- sanuj [~sanuj@117.204.245.188] has quit [Quit: Leaving]20:43
lisitsynthat's fine as well20:44
CaBalisitsyn: so in any case refcount is +1'ed?20:46
lisitsynyeah except dtor20:46
CaBalisitsyn: is that any different for pointers? if i use 'SGVector * x = new SGVector()'?20:55
lisitsynCaBa: you can't forget deleting it21:09
lisitsynit is what you easy do with pointers21:10
CaBalisitsyn: your example above - it doesn't involve the assignment operator or the copy operator... i still don't get how it get's its refcount upped ;)21:12
CaBacopy ctor even...21:12
lisitsynauto x = SGVector();21:12
lisitsyn1. SGVector x is constructed21:12
lisitsyn2. rhs SGVector is constructed21:12
lisitsyn3. x is assigned to the other one21:13
lisitsynwhen assignment happens operator= is called21:13
lisitsynif it is not here, copy ctor is called21:13
CaBalisitsyn: https://ideone.com/Gtmr8x21:13
lisitsynin this case it looks optimized out21:14
lisitsynnot sure21:15
CaBalisitsyn: compiler can't optimize out printing a message21:15
lisitsynsure21:15
lisitsynI mean auto x = Example(); is reduced to Example x;21:16
CaBa20:42:28 < lisitsyn> that's fine as well21:17
CaBa;-)21:17
lisitsynyeah what's the question anyway?21:18
CaBalisitsyn: i don't understand where the +1 happens upon 'SGVector foo;'21:18
lisitsynit doesn't happen21:18
lisitsynit would happen if you copy it somewhere21:19
CaBa    SGVector<char> vec;21:19
CaBa    std::cout << "REF COUNT " << vec.ref_count() << std::endl;21:19
CaBathis yields '1'21:19
lisitsynah21:20
lisitsynI missed the line21:20
lisitsynit is referenced on creation once21:20
lisitsynin SGReferencedData ctor21:20
CaBalisitsyn: that's where i was looking, too, but there it says 'm_refcount = new RefCount(0);'21:21
CaBaah...21:21
CaBaand then comes ref()21:21
lisitsynref();21:21
CaBa....21:21
CaBalisitsyn: i see... so point is that everything that is passed through pointers and not by value will not undergo the ++ref - and therefore be destroyed once the object that got the pointer is UNREF'ed...21:25
CaBaso wherever something in shogun takes something by value, it won't eat up passed objects upon destruction, when a pointer get's passed i need to REF myself before if i intend to use the object afterwards?21:27
lisitsynCaBa: yeah if you need it, it is guaranteed that it will be available21:28
CaBalisitsyn: thanks for shedding some light21:32
lisitsynyou're welcome21:32
-!- Hieronymous [~sudarshan@122.169.143.61] has quit [Remote host closed the connection]22:53
--- Log closed Thu Aug 18 00:00:10 2016