« first day (310 days earlier)      last day (3546 days later) » 

04:26
yo
anyonee herere
 
4 hours later…
08:44
@Vimzy yup :} morning
 
3 hours later…
11:47
helloc all;
helloc @deckard;
'sup?
hey
12:07
rehelloc ;)
12:31
heh xD
I wasn't garbage collected yet xD
working on something interesting recently, @Omid? :}
 
2 hours later…
14:26
I work on many interesting things in parallel and I suck at almost all of them. So you could say I have a well balanced life. Currently I am mainly concerned with my dissertation. How about you?
That's an amazing answer.
@Omid heh, things tend to happen this way working with plenty of stuff in parallel... :} Dissertation?
15:02
@Kamiccolo Yeah. In Computational Linguistics. I am developing an NLP system for my thesis.
@deckard Thanks :) how are you?
15:14
Phd? or master's?
15:37
Master's
 
1 hour later…
16:39
@Omid aaah... pretty broad and interesting field :} for some specific language?
Yes. I wish I could write an NLP software for no specific language. It would just work universally ;)
@Kamiccolo How about you? What projects are you interested in lately?
@Omid sounds like a dream... :} with some languages (for example Lithuanian) there are too many cases were You have to use intuition and there are no common rule for this or that...
@Omid ufff.... lately being just a blunt maintainer in some robotics project. Trying to make ends meet with different versions of platform being used... and different SVCs. and different operating systems. And colleagues keep breaking things....
17:09
@Kamiccolo That's really a challenge. I primarily develop for Persian which has reasonable agglutination and has only two noun cases and actually the accusative marker is even optional in some cases. Normally a blend of data-driven and rule-based methods would result in high accuracy systems. But I understand that as you said, other languages might be way more challenging. I wouldn't dare even think about Chinese NLP for instance :)

@Kamiccolo Oh nice. Wow, you are obviously a hardcore programmer :)
 
1 hour later…
18:09
@Omid naaah... not at all. In fact, haven't touched programming for a while. Just... it's a problem being only engineer in the team which mainly consists of mathematicians... So, there are some things which no-else are willing to do and don't know it's needed.
 
1 hour later…
SJD
SJD
19:18
sup
question: how can i get thread id without using pthread_self() inside the running thread?
like, I have:
pthread_t thread;
and want to display the thread id without creating it
is that possible?
@SJD if am not wrong, pthread_t thread; this would only create a pthread_t variable, not a thread, so it wont have a thread id
SJD
SJD
@haris i see.. thanks :D
to get a thread id you would first have to create a thread using pthread_create(). This would create a thread
do read on the parameters you would have to pass to pthread_create()
Wow, a C room. Is this where the bits are still woven by hand?
SJD
SJD
19:32
Ofc. People which usually says C is pointless.. sorry to say it but it's a shame to not know how to handle bytes
helloc @haris, @fredoverflow, @SJD;
@fredoverflow sure is ;)
helloc @PeterVaro;
hey, hey, how's everyone?
@SJD C isn't pointless, it uses pointers all over the place.
2
^ +1 ;)
19:37
@PeterVaro m gud.. debugging a protocol package code for a project..
sounds interesting -- work or just-for-fun?
@PeterVaro GSoC.. need to use the package to write a sample server.. :)
did u guys heard that github is constantly under DDoS attack
20:18
@PeterVaro was just introducing our sysadmin to Python WEB programming... :}
@Kamiccolo well done, done indeed!
;)
@PeterVaro +1 soul saved from abyss of PHP :}
right now, I'm doubling the fun: developing a Python module in C ;)
(using the awesome Python/C API)
@Kamiccolo PHuck PHP ;)
@PeterVaro agh... my dream is some random guy/lady wandering in and starting to debate how Lua C API is way more awesome... xD sigh
Morning
20:23
@Kamiccolo well, I hope it will be a lady.. :)
helloc @DrorK.;
@PeterVaro Twice in one week? :)
unexpected, right?
I remember times that you were here even when you goto'd away
yeah, well:
> O tempora, o mores
helloc @Omid;
Hey :)
20:25
@Kamiccolo look at this beauty it is nice, isn't it?
@Omid howdy?
Nothing much. Just celebrated my birthday :)
orly? hb then ;)
Thanks
How do you develop the Python module? I once wrote a simple program in C and used the functions in Python. I used ctypes. That seemed like the easiest way. I looked at the Python documentation to see the standard way for extending Python with C/C++, it was such a headache
@Omid well, ctypes are okay, but they have quite an overhead
you can wrap a C code with SWIG
if you want to support other languages as well (nice feature)
you can wrap it with Cython
ah, I see. I have heard of it, but never used it. Should give it a try then.
20:31
or you can write your Python extension in Python/C API
which I find the easiest to do => all you need is to know C and Python very well ;)
sounds amazing. Thanks for the pointer
np at all
@Omid you see, the reference implementation of Python is CPython which ofc written in C
there are other implementations as well, like PyPy which is written in Python for example
Yeah, I use CPython myself.
anyway, what I wanted to say is: you should look at CPython's source
if you are interested in using the Python/C API
@PeterVaro me too... :}
20:35
Morning @Kamiccolo
I see.
@PeterVaro I would debate some styling choices of Yours and some... code repetition :}
Morning @DrorK. :}
@Kamiccolo that's not mine => it is the official source of CPython
@PeterVaro sorry, my eyes are closing at this hour :}
I like it a lot, it is nice, and clean, well-formatted, and easy to follow/understand
20:43
This room is absolutely cool by the way. Nice and friendly users. Happy to have stumbled upon it :)
personally, I'd split this kind of blocks into groups:

static PyObject *
ascii_escape_unicode(PyObject *pystr);
static PyObject *
py_encode_basestring_ascii(PyObject* self UNUSED, PyObject *pystr);
void init_json(void);
static PyObject *
...lots of not separated lines...
100% agreed!
and this kind of things does not seem nice:

case '0': case '1': case '2': case '3': case '4':
case '5': case '6': case '7': case '8': case '9':

It's possible to use ASCII ranges instead of listing every single possible HEX value...
Also this earlier mentioned repetition of PyUnicode_READ calls:

if ((idx + 7 < length) && PyUnicode_READ(kind, str, idx + 1) == 'n' &&
PyUnicode_READ(kind, str, idx + 2) == 'f' &&
PyUnicode_READ(kind, str, idx + 3) == 'i' &&
PyUnicode_READ(kind, str, idx + 4) == 'n' &&
PyUnicode_READ(kind, str, idx + 5) == 'i' &&
PyUnicode_READ(kind, str, idx + 6) == 't' &&
PyUnicode_READ(kind, str, idx + 7) == 'y') {
return _parse_constant(s, "Infinity", idx, next_idx_ptr);
@Kamiccolo Where are these things from?
21:33
@PeterVaro all in all... logic seems direct translation from some other json.c library I've saw. Can't remember which exactly xD
21:58
@PeterVaro woop woop, AMD patches for Blender: phoronix.com/…

« first day (310 days earlier)      last day (3546 days later) »