IRC logs of #shogun for Wednesday, 2019-04-17

--- Log opened Wed Apr 17 00:00:39 2019
-!- wiking [~wiking@huwico/staff/wiking] has quit [Remote host closed the connection]01:55
-!- wiking [~wiking@huwico/staff/wiking] has joined #shogun01:56
-!- mode/#shogun [+o wiking] by ChanServ01:56
-!- wiking [~wiking@huwico/staff/wiking] has quit [Ping timeout: 246 seconds]02:01
-!- Moatman [~Moatman@pool-96-255-151-151.washdc.fios.verizon.net] has quit [Remote host closed the connection]05:49
-!- Moatman [~Moatman@pool-96-255-151-151.washdc.fios.verizon.net] has joined #shogun05:50
-!- wiking [~wiking@huwico/staff/wiking] has joined #shogun07:02
-!- mode/#shogun [+o wiking] by ChanServ07:02
-!- wiking [~wiking@huwico/staff/wiking] has quit [Remote host closed the connection]07:57
-!- wiking [~wiking@huwico/staff/wiking] has joined #shogun07:59
-!- mode/#shogun [+o wiking] by ChanServ07:59
-!- Moatman [~Moatman@pool-96-255-151-151.washdc.fios.verizon.net] has quit [Remote host closed the connection]08:34
-!- wiking [~wiking@huwico/staff/wiking] has quit [Remote host closed the connection]09:26
-!- wiking [~wiking@c-185-45-237-122.customer.ggaweb.ch] has joined #shogun09:33
-!- wiking [~wiking@c-185-45-237-122.customer.ggaweb.ch] has quit [Changing host]09:33
-!- wiking [~wiking@huwico/staff/wiking] has joined #shogun09:33
-!- mode/#shogun [+o wiking] by ChanServ09:34
-!- geektoni [5d2045c3@gateway/web/freenode/ip.93.32.69.195] has joined #shogun10:02
-!- wiking [~wiking@huwico/staff/wiking] has quit [Remote host closed the connection]10:37
-!- gf712 [9052087a@gateway/web/freenode/ip.144.82.8.122] has joined #shogun10:42
-!- wiking [~wiking@c-185-45-237-122.customer.ggaweb.ch] has joined #shogun11:08
-!- wiking [~wiking@c-185-45-237-122.customer.ggaweb.ch] has quit [Changing host]11:08
-!- wiking [~wiking@huwico/staff/wiking] has joined #shogun11:08
-!- mode/#shogun [+o wiking] by ChanServ11:08
-!- wiking [~wiking@huwico/staff/wiking] has quit [Remote host closed the connection]11:08
-!- wiking [~wiking@huwico/staff/wiking] has joined #shogun11:11
-!- mode/#shogun [+o wiking] by ChanServ11:11
-!- wiking [~wiking@huwico/staff/wiking] has quit [Ping timeout: 250 seconds]11:18
-!- wiking [~wiking@huwico/staff/wiking] has joined #shogun12:05
-!- mode/#shogun [+o wiking] by ChanServ12:05
-!- wiking [~wiking@huwico/staff/wiking] has quit [Ping timeout: 240 seconds]12:09
-!- wiking [~wiking@huwico/staff/wiking] has joined #shogun12:13
-!- mode/#shogun [+o wiking] by ChanServ12:14
-!- geektoni [5d2045c3@gateway/web/freenode/ip.93.32.69.195] has quit [Ping timeout: 256 seconds]13:57
-!- Moatman [~Moatman@pool-96-255-151-151.washdc.fios.verizon.net] has joined #shogun14:05
@wikinggf712: ping?15:08
gf712wiking: pong15:14
@wikingok so i'm struggling with this for a while15:14
@wikingand dont know how to solve it so maybe you have ideas15:14
@wikingbasically there's an object that has some serialization issues with the new framework15:14
@wikingobj.equals(obj2) is true15:14
@wikingso whatever is registered in the tags fw15:15
@wikingthat gets correctly (de)serialized15:15
@wikingbut still when i use the object to do prediction15:15
@wikingit gives different results :)15:15
@wikingwith the old parameters.cpp it works fine15:16
@wikingi've checked couple of times15:16
@wikingthe same parameters are registered in the class15:16
@wikingi.e. it's either SG_ADD15:16
@wikingor there's a watch_param for every add_vector/add_matrix call15:16
@wikingso now i'm like what now ?:)15:16
gf712hmmm, ok, so any subclasses are also being deserialised properly? i.e. kernel is the same in both machine if they have any?15:18
@wikingyes15:19
@wikinghah ok there's one hope!15:19
@wikingload_serializable_post15:19
gf712what does that do?15:19
@wikingwell we have all these stuff15:20
@wikinglike load_serializable_pre/load_serializable_post and for save as well15:20
-!- geektoni [5d2045c3@gateway/web/freenode/ip.93.32.69.195] has joined #shogun15:20
@wikingsometimes we dont serialize stuff15:20
@wikingthat is big and can be computed15:20
@wikingon the fly15:20
@wikingso these stuff makes it sure that it actually gets called15:20
@wikingnow funny enough15:20
@wikingit is not being called15:21
@wikingwhich makes me wonder why15:21
@wikingload_serializable_post namely15:21
@wikinggf712: load_serializable_post is defined in SGO15:21
@wikingbut there's an override for it in the inherited kernel15:21
@wikingso if SGO* obj15:21
@wikingis being passed and i call load_serializable_post on it15:21
@wikingit should check still the vtable no?15:21
@wiking:)15:21
@wikingno i feel like i dont understand anything anymore from c++ :DDD15:23
@wikingmaybe geektoni knows ?15:24
geektoniwiking: what's the issue?15:24
@wikingsee above15:24
@wikingjust when u joined :)15:24
@wikingbasically there's a virtual method of SGO15:24
@wikingthat is being overriden by an inherited obj15:24
@wikingsay class A15:25
@wikingSGO* o = new A()15:25
@wikingthen if i call o.overriden_virtual_method() that should call the method of A no?15:25
@wikingregardless that i currently pass around o as SGO*15:25
@wikingthat would be the point of virtual methods15:25
@wiking:)15:25
geektoniwiking: it should indeed15:25
@wikingbut in fact15:26
@wikingit actually calls the default implementation of SGO15:26
@wikingnot the override in A15:26
@wikingi've even set a breakpoint in gdb for that method15:26
@wikingand do a step over step in gdb15:26
@wikingand it only goes into the SGO implementation15:26
@wikingnot the A implementation15:26
@wikingof that method15:26
geektoniwiking: are you missing a "virtual" somewhere?15:28
geektonibecause15:28
geektoniif the method is declared virtual15:28
@wikingthese are both ancient codes15:28
@wikingit works with the other parameter framework15:28
@wikingbut not with the new one :)15:28
@wikinghere15:29
@wikinghttps://github.com/shogun-toolbox/shogun/pull/4573/files#diff-9c3599c0d2090e493be261b079e9b63eR47415:29
@wikingas you can see i haven't even changed the method15:30
@wikingbut still only load_serializable_post is being called15:30
@wiking:S15:30
@wikingah ok15:32
@wikingi know EXACTLY why15:32
@wiking:D15:32
@wikingbecause i'm stupid15:32
@wiking:)15:32
geektoniwiking: LoL15:33
geektoniwhat was then?15:33
@wikingyeah i mean in the serialization fw15:33
@wikingi'm not really calling it15:33
@wikingjust at the top level15:33
@wikingbut not within the rest15:33
@wikingso for any included SGO15:33
@wikingthose methods are not called15:33
@wikingthe reason because the interface changed... so now idk whether i should make all those methods public15:34
@wikingor wtf15:34
@wiking:)15:34
geektoniwiking: do you have any idea why windows spit out this error https://pastebin.com/RgQ37Xcz when using your safe_convert?15:48
@wikingnot yet15:48
@wiking:D15:48
@wikingah i've seen those15:48
@wikingin a unit test once15:49
@wikingi mean PR15:49
@wikingfor a unit test and i had no idea what's happening there15:49
@wiking:(15:49
geektoniyeah, I have also no idea why it is failing :(15:49
geektoniit seems to be something with is_finite, but I am not sure..15:50
-!- wiking [~wiking@huwico/staff/wiking] has quit [Remote host closed the connection]15:53
-!- wiking [~wiking@inf-ise-etx-dock-1-111.ethz.ch] has joined #shogun16:03
-!- wiking [~wiking@inf-ise-etx-dock-1-111.ethz.ch] has quit [Changing host]16:03
-!- wiking [~wiking@huwico/staff/wiking] has joined #shogun16:03
-!- mode/#shogun [+o wiking] by ChanServ16:03
@wikinggf712: what was the new funky way to spec a function throwing an exception?16:03
gf712you mean with the std::no throw_t?16:04
@wikingis that it16:04
@wikingso i wanna add throw (ShogunException);16:05
@wikingbut i guess that's the oldschool way right?16:05
@wikingi guess noexcept(false);16:06
@wikingthere's no way to provide the type of exception being thrown?16:06
@wikingso it's only void post_deserialize(CSGObject* obj) const noexcept(false); now or what?16:08
gf712ohh16:08
gf712noexcept(false)16:08
gf712or noexcept(true)16:08
@wikingso there's no way to specify the type of exception16:09
gf712you don't specialise types16:09
@wikinglike in java16:09
@wikingkk16:09
gf712yea, which is great16:09
@wikingme dont like :)16:09
@wikingwhy?16:09
@wikingit's great to know the type of catch you should write16:09
@wiking;)16:09
gf712because an exception is an exception16:09
gf712you should handle it :D16:09
@wikingyes16:09
@wikingbut how do you know16:09
@wikingwhich exception is coming from that specific function16:09
@wikingand others from underlying16:09
@wikingsee what i mean?16:09
gf712https://stackoverflow.com/questions/88573/should-i-use-an-exception-specifier-in-c/88905#8890516:10
gf712yes, I see the convenience16:10
gf712btw is saw there was an issue with std::isfinite for msvc16:11
gf712you should use the isfinite for cmath16:12
gf712https://docs.microsoft.com/en-us/cpp/c-runtime-library/reference/finite-finitef?view=vs-201916:12
gf712geektoni ^16:12
gf712which then uses throw() which is not great16:13
@wikingbtw i'm having some asdf in ruby swig16:13
@wikingfor std::isfinite as well16:13
gf712wiking: can you use the isfinite in <float.h>?16:15
@wikingfloat? :)16:16
@wikinguff16:16
@wikingwe used to have a fucking crazy16:16
@wikingcmake check for std::isfinite/isnan etc16:16
gf712it takes double16:16
@wikingbut those things are c++1116:16
@wikinghence it's all out now16:16
@wikingwhy msvc is not c++1116:16
gf712because they chose to focus on parallel code instead of developing std library for them... :D16:16
@wiking:D16:17
@wikinggreat16:17
gf712btw16:17
@wikingi mean the easiest is just to add there16:17
@wiking#ifdef _MSV_VER16:17
gf712ppl at gcc are working on parallel implementations for <algorithm>16:17
gf712yup16:17
gf712classic16:17
@wikingi wouldn't change it other way16:17
@wikingi would love to be able to use16:17
@wikingstd::16:17
@wiking:D16:17
@wikingand not use other stuff16:17
@wikingif not necessary16:18
@wikingit was a mess prior c++1116:18
gf712https://godbolt.org/z/IVs6P316:18
gf712not even 19.20 will fix it16:19
@wikingamazing16:19
@wikingcan u patch it or should i do it?16:19
gf712this works16:20
gf712https://godbolt.org/z/XOKqtx16:20
gf712I can do that16:20
@wikingyeah just add a macro hack there16:21
gf712cmath uses std::isfinite16:22
gf712and it seems fine?16:22
gf712as in math.cpp16:22
gf712oh right16:22
gf712the issue is that non floats don't work16:23
gf712pffff16:23
@wikingvoid write(Some<CSGObject> object) noexcept(false) override;16:24
@wikingis this valid? :)16:24
@wikingor override should be before?16:24
@wikingi would say not16:24
@wikingbut my syntax highlighter seems to be gone haywire16:24
@wikinghahaha16:25
@wikinghttps://stackoverflow.com/questions/21577466/the-order-of-override-and-noexcept-in-the-standard16:25
gf712hmm I would say it doesn't matter16:25
gf712its a compiler keyword16:25
@wikingit does16:25
@wikingit will fail16:25
gf712sometimes I wonder who writes these rules...16:25
@wiking:)16:25
@wikingif you swap it16:25
@wikingnoexcept(false) override works16:26
@wikingoverride noexcept(false) does not16:26
@wiking:)16:26
gf712ok, and then const? :D16:26
gf712where does that go16:26
@wikingbefore noexcept16:27
@wiking:)16:27
gf712wiking: is this fine https://github.com/shogun-toolbox/shogun/pull/4612 ?16:32
gf712might work 99.99% of the time :p16:33
@wikingadd there a TODO: microsoft should really start supporting c++11 :)16:35
gf712lol ok16:35
@wikingargh i hate coding without a compiler16:47
@wiking:D16:47
gf712what do you mean?16:50
gf712you don't have compiler? :O16:50
@wikingno resource for compile16:52
@wikingr16:52
@wiking:)16:52
@wikingjust vim16:52
@wiking:>16:52
@wikingok yeeeey17:00
@wikingfixed17:00
@wikingonly java and c# is left17:01
@wiking:DDDD17:01
gf712what is fixed?17:01
gf712your massive pr?17:01
gf712what's left to do?17:01
@wikingyes17:04
@wikingbut c# and java is still cryin17:04
@wikingg17:04
@wikinggf712: in ruby swig17:06
@wikinghttps://dev.azure.com/shogunml/shogun/_build/results?buildId=1227&view=logs&jobId=ce545db6-3633-5ac2-98dc-e1c37a5d2f09&taskId=955d0d88-f39c-597d-e1a9-d3455114b125&lineStart=914&lineEnd=915&colStart=1&colEnd=117:06
@wikingthere's this same error17:06
@wikingas if its msvc17:06
@wikingno member named isfinite in std17:06
@wikingttyl17:07
-!- wiking [~wiking@huwico/staff/wiking] has quit [Remote host closed the connection]17:07
-!- wiking [~wiking@2001:67c:10ec:5784:8000::3ff] has joined #shogun17:20
-!- wiking [~wiking@2001:67c:10ec:5784:8000::3ff] has quit [Changing host]17:20
-!- wiking [~wiking@huwico/staff/wiking] has joined #shogun17:20
-!- mode/#shogun [+o wiking] by ChanServ17:20
gf712wiking: I am not sure what causes the ruby issue17:41
@wikingyeah17:41
@wikingme neither17:41
@wikingas it uses clang17:41
@wiking:D17:41
gf712but you can include <cmath> in swig and I am sure it will work17:41
@wikingi did include it in there (converter.h)17:42
@wikingdid not help17:42
@wiking:P17:42
gf712what about in swig?17:42
gf712%{#include <cmath> %}17:42
@wikingoooooh motherasdf17:42
@wiking. /home/wiking/shogun/src/shogun/io/serialization/BitserySerializer.h:19: Error: Syntax error - possibly a missing semicolon.17:42
@wikingfor void write(Some<CSGObject> object) noexcept(false) override;17:42
@wiking:(17:42
gf712wat?17:43
@wikingswig doesn't like noexcept(false) override17:43
@wiking:D17:43
gf712oh...17:43
@wikingso it's back to virtual17:44
@wiking:)17:44
gf712are the methods that already use noexcept not included in swig?17:44
gf712the ones in sgobject.h17:44
@wikingthey are17:44
@wikingbuit there's no override ther17:44
@wiking:P17:44
gf712or is the issue the ovveride17:45
gf712right17:45
gf712oh17:45
@wikingit's only the override keyword that makes it fail17:45
gf712but that should be fixed17:45
@wikingthere's swig 4.0.0 beta17:45
gf712in the new siwg17:45
@wikingyeah17:45
gf712I had that issue in a different project17:45
gf712but it doesn't work for all combinations of qualifiers17:46
@wikingargh17:50
@wikingSGObject.java:64: error: incompatible types: JsonDeserializer cannot be converted to SWIGTYPE_p_shogun__io__CDeserializer17:50
@wiking:S17:50
gf712well that sucks :D17:54
gf712doesn't inheritance work?17:54
@wikingone woudl hope17:55
gf712wiking: just had a look at the stl implementation of isfinite, and it returns true whenever it is an int18:10
gf712I guess can have an overload set for msvc18:11
-!- geektoni [5d2045c3@gateway/web/freenode/ip.93.32.69.195] has quit [Ping timeout: 256 seconds]18:17
@wikinggf712: stilll here?18:19
@wikingbecause this part i dont get from mSvc18:19
@wikinghttps://dev.azure.com/shogunml/shogun/_build/results?buildId=1235&view=logs&jobId=9ffa40d6-0008-5f71-b4ad-2956145303e6&taskId=4c6a8d5c-d9f7-5d77-51f8-d43faa094742&lineStart=1894&lineEnd=1895&colStart=1&colEnd=118:19
@wikinghttps://github.com/shogun-toolbox/shogun/pull/4573/files#diff-30c7a22fd9dc922ec65bf29a93db7688R5218:20
-!- gf712 [9052087a@gateway/web/freenode/ip.144.82.8.122] has quit [Ping timeout: 256 seconds]18:23
-!- wiking [~wiking@huwico/staff/wiking] has quit [Remote host closed the connection]18:28
-!- wiking [~wiking@huwico/staff/wiking] has joined #shogun18:49
-!- mode/#shogun [+o wiking] by ChanServ18:49
-!- wiking [~wiking@huwico/staff/wiking] has quit [Remote host closed the connection]19:57
-!- wiking [~wiking@c-185-45-237-122.customer.ggaweb.ch] has joined #shogun20:03
-!- wiking [~wiking@c-185-45-237-122.customer.ggaweb.ch] has quit [Changing host]20:03
-!- wiking [~wiking@huwico/staff/wiking] has joined #shogun20:03
-!- mode/#shogun [+o wiking] by ChanServ20:03
-!- wiking [~wiking@huwico/staff/wiking] has quit [Remote host closed the connection]20:49
-!- wiking [~wiking@huwico/staff/wiking] has joined #shogun20:51
-!- mode/#shogun [+o wiking] by ChanServ20:51
-!- wiking [~wiking@huwico/staff/wiking] has quit [Remote host closed the connection]21:17
-!- wiking [~wiking@huwico/staff/wiking] has joined #shogun21:29
-!- mode/#shogun [+o wiking] by ChanServ21:29
-!- wiking [~wiking@huwico/staff/wiking] has quit [Ping timeout: 246 seconds]21:33
-!- wiking [~wiking@c-185-45-237-122.customer.ggaweb.ch] has joined #shogun22:00
-!- wiking [~wiking@c-185-45-237-122.customer.ggaweb.ch] has quit [Changing host]22:00
-!- wiking [~wiking@huwico/staff/wiking] has joined #shogun22:00
-!- mode/#shogun [+o wiking] by ChanServ22:00
-!- wiking [~wiking@huwico/staff/wiking] has quit [Remote host closed the connection]23:21
--- Log closed Thu Apr 18 00:00:41 2019

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