These are chat archives for dropbox/pyston

8th
Sep 2015
Sun
@Daetalus
Sep 08 2015 02:27
@kmod Would you mind restart #900 please?
Sun
@Daetalus
Sep 08 2015 05:20
Hi @kmod , I updated #900, add the function that you mentioned in #903 , but it still need to restart the CI. Hope it could address the second task in #903
Kevin Modzelewski
@kmod
Sep 08 2015 05:47
ok, restarted :)
that'll be really cool if we can get pyinotify working
Sun
@Daetalus
Sep 08 2015 06:07
Maybe Dropbox dev server need pyinotify?
Kevin Modzelewski
@kmod
Sep 08 2015 06:07
yes :)
Sun
@Daetalus
Sep 08 2015 06:18
Feel free to assign tasks. And I try to make some time to learn the related knowledges(GC, JIT, LLVM, tiers, etc), current knowledge not enough to get deeper.
#900 passed. :smile:
Kevin Modzelewski
@kmod
Sep 08 2015 06:21
nice :) I'll take a look
it's a bit hard to try to think of specific things to write up or suggest learning about, which is why I've been trying to think of projects instead
personally I usually feel like that's the best way to make sure that I'm learning the right thing
so anyway, if you're interested, getting pyinotify working could be a good project
well I guess maybe there's not anything else left to do, in which case it would be a quick project
but getting it to the point that it's fully working and we have some amount of testing for it could be a good exercise
Sun
@Daetalus
Sep 08 2015 06:25
Indeed, I just try to learn some fundamental knowledge first. Such as the concret concept of Mark-Sweep GC, JIT and LLVM.
Happy to work on it. But I think I need to know how to add 3rd party module first. So please allow me take some time to become familiar with it.
Kevin Modzelewski
@kmod
Sep 08 2015 06:36
you could check out our integration tests for some examples
usually you can get them through pip install, but that doesn't usually come with the test cases if we want to run their test suite
Sun
@Daetalus
Sep 08 2015 06:36
Looking it.
Sun
@Daetalus
Sep 08 2015 06:52
Ah, figure out how to install the package for Pyston manually. Step in.
Sun
@Daetalus
Sep 08 2015 06:58
For now, I just run pyinotify examples manually. Would you mind to give some suggestions? Seems the file intest/integration just contain some install steps and some simple tests.
Kevin Modzelewski
@kmod
Sep 08 2015 07:02
well the ideal is to pass their own test suite
and if we can't do that (we don't support all test runners yet), we can try to code up some of our own tests
Sun
@Daetalus
Sep 08 2015 07:04
Thanks, but https://github.com/seb-m/pyinotify seems just contain example, don't have test suite. Maybe we should run the example and see whether it could run?
Kevin Modzelewski
@kmod
Sep 08 2015 07:18
oh hmm ok
yeah maybe just taking one of their examples
it looks like they have a couple different ways of using their api
and we use the ProcessEvent-subclass way
Sun
@Daetalus
Sep 08 2015 07:19
only one?
Kevin Modzelewski
@kmod
Sep 08 2015 07:19
I think in this case that will be enough
if you feel like it, using the different apis would be nice, to make sure they all work
it's a judgement call though
more tests is always good :)
but if it will take a while to come up with them, and they mostly end up testing the same thing, then it might not be worth our time
Sun
@Daetalus
Sep 08 2015 07:23
Seems through pip install will not install the example. Can we copy the code in example into new created test/integration/pyinotify_test.py?
Kevin Modzelewski
@kmod
Sep 08 2015 07:28
sounds good :)
we will probably need to create our own filesystem events for the example to catch
so I'm not sure the examples work verbatim
Sun
@Daetalus
Sep 08 2015 07:34
I will work on it. BTW, more people will work for Pyston?
Kevin Modzelewski
@kmod
Sep 08 2015 07:41
yeah! hopefully
we're always looking for more open source contributors
for the full-time side it's a bit more hit-or-miss
I think when we do our next release we should get some more traction for getting another full-timer
Sun
@Daetalus
Sep 08 2015 07:46
I see. I falsely considered there has lots of new full-timer get involved, because I saw there have a lot of new friends in the latest weekly Notes.
Shubham Bhushan
@konsbn
Sep 08 2015 17:52
I am fairly new to the compiler, actually heard of it yesterday so if it is not too much trouble to ask can someone just help me get started as to how to compile and run python using Pyston. My work in complex systems would surely benefit a lot. If there is a tutorial please provide the links.
Rudi Chen
@rudi-c
Sep 08 2015 17:59
Note that we currently only support Linux.
Shubham Bhushan
@konsbn
Sep 08 2015 18:00
Yes I have read this, I need an example based thing a little hello world program?
Rudi Chen
@rudi-c
Sep 08 2015 18:04
So have you succeeded in compiling pyston?
You should be able to test it out with ./pyston_dbg
Sun
@Daetalus
Sep 08 2015 23:17

Hi @kmod , with some improvments to Pyston, `pyinotify alreay could work in Pyston. Please see below:

(ENV)➜ sun@sun-N550JV  ~/workspace/pyston/ENV  python ~/pyston1/test/lib/pyinotify/python2/examples/tutorial_notifier.py
Creating: /tmp/vepJ4He/60.py
Creating: /tmp/vepJ4He/61
Creating: /tmp/tags.4CD78R
Removing: /tmp/tags.4CD78R

But this is contain some work around. Seems our ctypes has some issue. I will try to address it by myself first. If I could not solve it. Then maybe I need your help at that time.

Kevin Modzelewski
@kmod
Sep 08 2015 23:18
cool :)