**** BEGIN LOGGING AT Tue Aug 25 02:59:59 2015 Aug 25 12:52:33 vmayoral imuguruza: Hi! Aug 25 12:57:35 hi rohith! Aug 25 13:01:22 GSoC seemed to end very quickly. Time flies! Aug 25 13:07:44 you're right Aug 25 13:11:52 imuguruza: Any developments on Erle Spider? Aug 25 13:13:04 still working on it ;) Aug 25 13:13:22 Nice! Aug 25 14:36:21 morning. Aug 25 14:39:28 hi jkridner|desktop Aug 25 16:20:25 moin Aug 25 16:21:58 vvu: ping Aug 25 16:40:19 ds2 : are you doing the review for apaar? Aug 25 16:42:27 oh, and Abhishek__ congrats :) Aug 25 16:43:23 azizulhakim: pong Aug 25 16:43:36 so on your 7.4 debian which x window system did you have ? Aug 25 16:43:41 thanks karki_ :) Aug 25 16:45:02 where are these reports going exactly? Aug 25 16:45:24 internal reference maybe Aug 25 16:45:30 email? Aug 25 16:48:47 vvu: if I remember correctly, I installed xorg Aug 25 16:49:01 so you got the console version then installed xorg on it ? Aug 25 16:49:08 ##2. SWIG Aug 25 16:49:08 Simplified Wrapper and Interface Generator, or SWIG for short is aother way to interface C code to Python. In this method, the developer must develop an extra interface file which is an input to SWIG (the command line utility). Aug 25 16:49:08 Python developers generally don't use this method, because it is in most cases unnecessarily complex. This is a great method when you have a C/C++ code base, and you want to interface it to many different languages. Aug 25 16:49:08 Example from the SWIG website : Aug 25 16:49:12 The C code, `example.c` that has a variety of functions and variables Aug 25 16:49:14 ```c Aug 25 16:49:16 #include Aug 25 16:49:18 double My_variable = 3.0; Aug 25 16:49:21 Aug 25 16:49:22 int fact(int n) { Aug 25 16:49:24 if (n <= 1) return 1; Aug 25 16:49:25 right vvu Aug 25 16:49:26 else return n*fact(n-1); Aug 25 16:49:28 } Aug 25 16:49:32 Aug 25 16:49:34 int my_mod(int x, int y) { Aug 25 16:49:36 return (x%y); Aug 25 16:49:38 } Aug 25 16:49:38 karki_: swig is bad :( Aug 25 16:49:40 Aug 25 16:49:40 karki_: wanna pastebin? Aug 25 16:49:42 char *get_time() Aug 25 16:49:46 { Aug 25 16:49:46 time_t ltime; Aug 25 16:49:48 time(<ime); Aug 25 16:49:52 return ctime(<ime); Aug 25 16:49:52 } Aug 25 16:49:54 ``` Aug 25 16:49:56 The interface file - this will remain the same irrespective of the language you want to port your C code to : Aug 25 16:50:01 ``` Aug 25 16:50:03 %module example Aug 25 16:50:05 %{ Aug 25 16:50:07 /* Put header files here or function declarations like below */ Aug 25 16:50:09 extern double My_variable; Aug 25 16:50:11 extern int fact(int n); Aug 25 16:50:13 extern int my_mod(int x, int y); Aug 25 16:50:15 extern char *get_time(); Aug 25 16:50:17 %} Aug 25 16:50:19 Aug 25 16:50:22 extern double My_variable; Aug 25 16:50:23 extern int fact(int n); Aug 25 16:50:25 extern int my_mod(int x, int y); Aug 25 16:50:27 extern char *get_time(); Aug 25 16:50:31 ``` Aug 25 16:50:33 And now to compile it Aug 25 16:50:35 ``` Aug 25 16:50:37 unix % swig -python example.i Aug 25 16:50:39 unix % gcc -c example.c example_wrap.c \ Aug 25 16:50:41 -I/usr/local/include/python2.1 Aug 25 16:50:43 unix % ld -shared example.o example_wrap.o -o _example.so Aug 25 16:50:45 ``` Aug 25 16:50:47 Finally, the Python output Aug 25 16:50:49 ```python Aug 25 16:50:51 >>> import example Aug 25 16:50:53 >>> example.fact(5) Aug 25 16:50:55 120 Aug 25 16:50:57 >>> example.my_mod(7,3) Aug 25 16:51:01 1 Aug 25 16:51:03 >>> example.get_time() Aug 25 16:51:05 'Sun Feb 11 23:01:07 1996' Aug 25 16:51:07 >>> Aug 25 16:51:09 ``` Aug 25 16:51:12 Abhishek__ : whats the prize money :D Aug 25 16:51:13 oops Aug 25 16:51:16 :') Aug 25 16:51:19 I gist Aug 25 16:51:25 vvu : I don't SWIG :D Aug 25 16:51:25 I was documenting some stuff - picked them out from the website, thats all Aug 25 16:51:59 swig is... useful when it works... Aug 25 16:52:10 karki_: http://hackaday.com/2015/08/24/10-best-product-finalists-announced/ , second para Aug 25 16:52:27 cython probably preferable these days Aug 25 16:54:20 so do you have to win to get the 100K or does everyone in the top 10 get it? Aug 25 16:54:48 nope, have to win. This is winner takes all. Aug 25 16:55:26 nerdboy - cython is a completely different build (even different syntax). How stable is it though ? Aug 25 16:55:55 Abhishek__ : well at least yours looks like the best project out there :) Aug 25 16:56:02 *product Aug 25 16:57:30 i never said it was like swig, just an alternative Aug 25 16:57:57 they are different approaches to more-or-less the same problem Aug 25 16:58:26 and i would probably use cython for anything new Aug 25 16:58:54 * nerdboy has an old/funky swig interface that should be abandoned... Aug 25 17:02:23 _av500_: we should fill the evaluation after we get the final report of the students? Aug 25 17:08:50 if it's in the "submitted" state we should review it Aug 25 17:09:01 that would be my guess... Aug 25 17:59:27 congrats Abhishek__ Aug 25 19:33:48 <_av500_> DiegoTc: up to you Aug 25 19:34:01 ok, thanks _av500_ Aug 25 19:34:29 <_av500_> if you are confident he is passing as you tracked his progress over the gsoc Aug 25 19:34:35 <_av500_> then do it right away Aug 25 19:34:55 <_av500_> if not, tell him to send his report NOW Aug 25 19:42:05 it's option 1, but I have misunderstood the report Aug 25 19:47:49 are the final reports going to the same place(s) as weekly? Aug 25 19:48:29 oh nm, it's on melange... Aug 26 00:19:54 neemo: you got some last-minute stuff to push i hope? Aug 26 00:20:34 clock is ticking... you're getting close to the edge... down by the river... Aug 26 00:21:08 * nerdboy apologizes for 70's prog lyrics reference Aug 26 02:52:33 azizulhakim: piroux Aug 26 02:52:36 ping Aug 26 02:53:18 hello vvu Aug 26 02:54:16 how is it going ? Aug 26 02:54:49 yepp. all good Aug 26 02:55:01 in what are you doing a phd ? Aug 26 02:55:19 my area is system security Aug 26 02:56:18 are you in US now? Aug 26 02:56:22 yep Aug 26 02:56:27 just arrived home from work Aug 26 02:57:02 lemme grab my bbb and test everything now that all dev is over Aug 26 02:57:18 yeah sure Aug 26 02:57:24 nice that i can share my internet connection from pc to bbb Aug 26 02:58:07 for my case i've to run same settings every time I restart bone :( Aug 26 02:58:26 so you'll be here for a short term or long term? Aug 26 02:59:08 one more month Aug 26 02:59:42 is it kind of internship? Aug 26 02:59:54 i`m here since june Aug 26 02:59:55 yep **** ENDING LOGGING AT Wed Aug 26 02:59:59 2015