Wednesday, 2016-06-15

*** FaTony has joined #kxstudio00:49
*** Aria22 is now known as Aria22|away00:49
FaTonyfalktx, what will happen if I throw an exception to DPF?00:50
jimfalktx, hi... just to let you know, I'm preppiing for an event, so I been scarce... meanwhile, here is the lintian report on the debianized source package... it's fairly short (3 items iirc); fairly easy to take care of. tap me on the shoulder if you have any questions about it01:20
jimhttp://paste.debian.net/739294/01:20
*** ArturSha1 has joined #kxstudio02:35
*** Aria22|away is now known as Aria03:20
*** bill-auger has joined #kxstudio03:48
*** Krew has quit IRC04:09
*** rto has quit IRC04:38
*** bill-auger_ has joined #kxstudio04:57
*** Yruama_Lairba has quit IRC05:12
*** wolftune has quit IRC05:36
falktxFaTony: exception when?05:46
falktxFaTony: there are hosts made in C. try your best NEVER to throw exceptions on plugins05:46
falktxthat's very nasty behaviour for plugins05:47
FaTonyok05:53
jimhow do you throw an exception in C?07:19
bill-augerstd::exception07:24
bill-augero/c your fav framework may have its own07:24
*** falktx|work has joined #kxstudio07:28
jimI thought that was c++07:43
jimso, you're saying gcc (the c compiler) has that syntax, which looks like it's putting together an exception object)07:44
jim?07:44
falktx|workis that for me?07:53
jimyou could field it if you have the answer handy08:07
falktx|workI think I missed the context08:08
jimand, it's just idle curiousity on my part, not really important...08:08
jimwell the context is "exceptions in c (as opposed to c++)"08:08
jimand it's just that I didn't know they were possible08:09
falktx|workwell, the thing is, a plugin is a shared object loaded by a host08:14
falktx|workif the host is written in c, it doesn't have the try();catch that c++ has08:15
falktx|workso if a plugin throws some exception, I don't think the c-code host can catch it08:15
falktx|workbut anyway, throwing exception in *plugins* is NOT EVER a good idea08:16
falktx|worksame thing applies to using statics and global variables on *plugins*08:16
falktx|workit's fine for standalone apps, but not for plugins08:16
*** olinuxx has joined #kxstudio08:45
*** olinuxx has joined #kxstudio08:45
FaTonyfalktx|work, I suggest putting try/catch block around calls to DPF plugin and have them output something to a log file or whatever08:58
FaTonybecause idiomatic RAII is to throw exception if constructor fails to establish the invariant08:59
falktx|workif you do it like me, and design your code to be noexcept-safe, you won't have issues09:00
falktx|workI never liked the throw concept09:00
*** DoverMo has joined #kxstudio09:01
FaTonynoexcept-safe? wtf is that?09:01
falktx|workmake sure your functions never throw, then you can add the noexcept "decorator"09:04
falktx|workhttp://en.cppreference.com/w/cpp/language/noexcept_spec09:04
LAbotTitle: noexcept specifier (since C++11) - cppreference.com (at en.cppreference.com)09:04
falktx|workFaTony: it's like the "override" specifier, but for different purposes of course09:05
FaTonyfalktx|work, I know what noexcept is but exception ARE the way to handle error conditions09:06
falktx|workwell, I dislike them :)09:07
falktx|workvery tricky to handle in mixed c++ + python code09:07
falktx|workand also difficult or impossible for C code09:07
FaTonyfalktx|work, certainly a problem for other languges, that's why I don't use them09:08
falktx|workI'm not one of those devs that likes all the new c++ stuff. I still love C, just want a little extra features from c++09:08
FaTonyI embrace modern c++ to it's fullest09:09
DoverMoC++1809:09
falktx|workno, not for me09:09
falktx|workI imagine constant try/catch on all functions cause a small perfomance impact09:09
falktx|workalso, try/catch doesn't sound RT-safe09:10
falktx|workif you post in LAD that you want to throw exceptions on your plugins, they might kill you ;)09:11
FaTonyfalktx|work, you only put try/catch where you can handle errors, I barely put them in my code09:11
FaTonywhatever, I use c++14 freely09:11
falktx|workI think in the constructor is fine. but nowhere else09:11
DoverMotrying to decide between recording or sleeping09:12
FaTonyfalktx|work, how would you signal error then? return code?09:12
falktx|workwhy is there an error?09:12
falktx|workyou need to think of a C API way. if the plugin has an error, it needs to report to the host09:13
falktx|worknot using language or OS specific features, but the plugin API09:13
FaTonyfalktx|work, well I would do something like std::cerr09:17
FaTonybut you really should put try/catch around DPF calls09:17
falktx|workI'd prefer no. I can put them in the constructor and UI calls, but nothing else09:18
falktx|workif your plugin throws exceptions, something is wrong with it...09:18
FaTonyfalktx|work, then put that in documentation09:19
falktx|workyes09:19
falktx|workdocumentation is something I always leave for last09:20
*** rncbc has joined #kxstudio09:45
*** Aria is now known as Aria|away11:00
*** DoverMo has quit IRC11:18
*** BitPuffin has joined #kxstudio11:50
*** FaTony has quit IRC12:38
*** Aria|away is now known as Aria13:27
*** Aria is now known as Aria2213:27
*** wolftune has joined #kxstudio13:52
*** ArturShaik has joined #kxstudio13:54
*** ArturSha1 has quit IRC13:57
*** ArturShaik has quit IRC14:36
*** youki has joined #kxstudio15:26
*** youki has quit IRC15:41
*** Aria22 is now known as Aria22|away15:56
*** wolftune has quit IRC16:09
*** falktx|work has quit IRC16:37
*** Yruama_Lairba has joined #kxstudio16:54
*** jablo has joined #kxstudio17:11
*** Aria22|away is now known as Aria2217:30
*** tjingboem has joined #kxstudio17:31
*** GrusGrus has joined #kxstudio17:34
*** tjingboem has quit IRC17:50
*** vlad__ has joined #kxstudio18:07
*** vlad__ has quit IRC18:13
*** vlad__ has joined #kxstudio18:14
*** BitPuffin has quit IRC18:24
*** wolftune has joined #kxstudio18:42
*** GrusGrus has quit IRC18:46
*** wolftune has quit IRC19:29
*** bill-auger_ has joined #kxstudio19:50
*** bill-auger has quit IRC19:51
*** wolftune has joined #kxstudio19:57
*** olinuxx has quit IRC20:31
*** olinuxx has joined #kxstudio20:58
*** JackWinter has quit IRC21:03
*** JackWinter has joined #kxstudio21:03
*** jablo has quit IRC21:20
*** rncbc has quit IRC21:59
*** vlad__ has quit IRC22:02
*** bill-auger has joined #kxstudio22:08
*** bill-auger_ has quit IRC22:08
*** falktx has quit IRC22:37
*** Animtim_ has joined #kxstudio22:40
*** Animtim has quit IRC22:44
*** falktx has joined #kxstudio22:46
*** dreamer has quit IRC23:12
*** mothi has quit IRC23:12
*** NoCode has quit IRC23:12
*** willer has quit IRC23:12
*** willer has joined #kxstudio23:18
*** mothi has joined #kxstudio23:18
*** NoCode has joined #kxstudio23:55

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