IRC log of dig on 2010-06-03
Timestamps are in UTC.
- 01:13:00 [lkagal]
- lkagal (~lkagal@pool-96-237-240-136.bstnma.fios.verizon.net) has joined #dig
- 01:13:25 [lkagal_]
- lkagal_ (~lkagal@pool-96-237-240-136.bstnma.fios.verizon.net) has joined #dig
- 01:13:25 [lkagal]
- lkagal has quit (Read error: Connection reset by peer)
- 02:47:25 [oshani]
- oshani has quit (Quit: oshani)
- 03:19:18 [mcherian]
- mcherian (~mcherian@c-24-61-8-94.hsd1.ma.comcast.net) has joined #dig
- 03:42:08 [mcherian]
- mcherian has quit ()
- 03:46:51 [kennyluck]
- kennyluck (~kennyluck@2001:200:1c0:3508:225:ff:fe4d:f8c7) has joined #dig
- 03:56:40 [kennyluck]
- kennyluck has quit (Remote host closed the connection)
- 03:56:46 [kennyluck]
- kennyluck (~kennyluck@2001:200:1c0:3508:225:ff:fe4d:f8c7) has joined #dig
- 05:16:36 [kennyluck_]
- kennyluck_ (~kennyluck@tea04.w3.mag.keio.ac.jp) has joined #dig
- 05:19:50 [kennyluck]
- kennyluck has quit (Ping timeout: 272 seconds)
- 05:19:51 [kennyluck_]
- kennyluck_ is now known as kennyluck
- 06:53:34 [mhausenblas]
- mhausenblas (~mhausenbl@wg1-nat.fwgal01.deri.ie) has joined #dig
- 07:31:50 [kennyluck]
- kennyluck has quit (Quit: kennyluck)
- 09:51:42 [kennyluck]
- kennyluck (~kennyluck@2001:200:1c0:3508:225:ff:fe4d:f8c7) has joined #dig
- 09:54:28 [kennyluck_]
- kennyluck_ (~kennyluck@tea04.w3.mag.keio.ac.jp) has joined #dig
- 09:56:36 [kennyluck]
- kennyluck has quit (Ping timeout: 272 seconds)
- 09:56:36 [kennyluck_]
- kennyluck_ is now known as kennyluck
- 09:59:24 [kennyluck]
- kennyluck has quit (Read error: Connection reset by peer)
- 09:59:47 [kennyluck]
- kennyluck (~kennyluck@2001:200:1c0:3508:225:ff:fe4d:f8c7) has joined #dig
- 10:01:06 [kennyluck_]
- kennyluck_ (~kennyluck@tea04.w3.mag.keio.ac.jp) has joined #dig
- 10:04:28 [kennyluck]
- kennyluck has quit (Ping timeout: 276 seconds)
- 10:04:29 [kennyluck_]
- kennyluck_ is now known as kennyluck
- 11:14:13 [RalphS]
- RalphS (~swick@30-7-139.wireless.csail.mit.edu) has joined #dig
- 12:05:47 [timbl_]
- timbl_ (~timbl@pool-96-237-236-72.bstnma.fios.verizon.net) has joined #dig
- 12:05:49 [timbl_]
- timbl_ has quit (Client Quit)
- 12:09:42 [timbl]
- timbl has quit (Ping timeout: 245 seconds)
- 12:46:50 [oshani]
- oshani (~oshani@c-71-233-151-72.hsd1.ma.comcast.net) has joined #dig
- 13:00:32 [timbl]
- timbl (~timbl@31-33-253.wireless.csail.mit.edu) has joined #dig
- 13:12:39 [oshani]
- oshani has quit (Quit: oshani)
- 13:48:31 [mcherian]
- mcherian (~mcherian@c-24-61-8-94.hsd1.ma.comcast.net) has joined #dig
- 13:50:54 [mcherian]
- mcherian has quit (Client Quit)
- 13:52:37 [mcherian]
- mcherian (~mcherian@c-24-61-8-94.hsd1.ma.comcast.net) has joined #dig
- 13:58:12 [ericP]
- mcherian, i dropped some math-y stuff into http://www.w3.org/2001/sw/rdb2rdf/directGraph/
- 13:58:18 [ericP]
- feel free to laugh at it
- 13:58:57 [lkagal_]
- lkagal_ has quit (Quit: lkagal_)
- 14:02:10 [oshani]
- oshani (~oshani@c-71-233-151-72.hsd1.ma.comcast.net) has joined #dig
- 14:02:28 [mcherian]
- ericP, in section 4: in [10], you have A in T
- 14:02:39 [mcherian]
- and then A element_of R...
- 14:03:04 [mcherian]
- what is the difference?
- 14:17:15 [mcherian]
- mcherian has quit (Ping timeout: 248 seconds)
- 14:26:13 [timbl]
- timbl has quit (Remote host closed the connection)
- 14:26:23 [RalphS]
- RalphS has quit (Ping timeout: 260 seconds)
- 14:26:26 [timbl]
- timbl (~timbl@w3cdhcp5.w3.org) has joined #dig
- 14:31:03 [RalphS]
- RalphS (~swick@30-7-139.wireless.csail.mit.edu) has joined #dig
- 14:37:06 [oshani]
- oshani has quit (Quit: oshani)
- 14:38:44 [lkagal]
- lkagal (~lkagal@30-6-179.wireless.csail.mit.edu) has joined #dig
- 14:49:25 [mcherian]
- mcherian (mcherian@31-34-205.wireless.csail.mit.edu) has joined #dig
- 14:53:30 [oshani]
- oshani (~oshani@31-35-71.wireless.csail.mit.edu) has joined #dig
- 17:19:04 [mhausenblas]
- mhausenblas has quit (Quit: mhausenblas)
- 17:41:36 [oshani]
- oshani has quit (Quit: oshani)
- 18:36:26 [oshani]
- oshani (~oshani@31-35-71.wireless.csail.mit.edu) has joined #dig
- 18:56:20 [ericP]
- presbrey, ears on to chat about python reflection?
- 19:00:40 [kennyluck]
- kennyluck has quit (Quit: kennyluck)
- 19:25:05 [presbrey]
- hey ericP
- 19:26:08 [presbrey]
- reflection like foo.__class__, foo.__bases__ ?
- 19:28:12 [RalphS]
- RalphS has quit (Quit: leaving ...)
- 19:46:52 [ericP]
- presbrey, yeah something like that
- 19:47:14 [ericP]
- presbrey, after import SWObjects, i want to see what symbols i got
- 19:48:08 [presbrey]
- see if dir(), __dict__, or __slots__ gives you what you want
- 19:48:24 [presbrey]
- as in, dir(SW), SW.__dict__ , or SW.__slots__
- 19:49:50 [presbrey]
- SWObjects, as in, the cython module?
- 19:51:29 [presbrey]
- awesome. sounds like I need to pull trunk
- 20:21:24 [ericP]
- it's a swig iface now, actually
- 20:21:36 [ericP]
- it's untested as of yet
- 20:22:12 [ericP]
- so we (mcherian and i) don't know if it gens ifaces for all the inlines in the headers
- 20:23:14 [ericP]
- >>> dir(SWObjects)
- 20:23:14 [ericP]
- ['_SWObjects', '__builtins__', '__doc__', '__file__', '__name__', '__package__', '_newclass', '_object', '_swig_getattr', '_swig_property', '_swig_repr', '_swig_setattr', '_swig_setattr_nondynamic', 'new', 'new_instancemethod']
- 20:23:58 [presbrey]
- huh how about _SWObjects or _object
- 20:24:20 [ericP]
- NameError: name '_SWObjects' is not defined
- 20:24:30 [presbrey]
- SWObjects._SWObjects ?
- 20:24:49 [ericP]
- >>> dir(SWObjects._SWObjects)
- 20:24:50 [ericP]
- ['__doc__', '__file__', '__name__', '__package__']
- 20:25:10 [amy]
- oshani?
- 20:25:14 [presbrey]
- SWObjects._object ?
- 20:25:21 [oshani]
- Hi amy
- 20:25:36 [ericP]
- >>> dir(SWObjects._object)
- 20:25:36 [ericP]
- ['__class__', '__delattr__', '__doc__', '__format__', '__getattribute__', '__hash__', '__init__', '__new__', '__reduce__', '__reduce_ex__', '__repr__', '__setattr__', '__sizeof__', '__str__', '__subclasshook__']
- 20:26:24 [presbrey]
- that looks 'closer' (implements more python magic methods)
- 20:27:09 [presbrey]
- still you want something that implements __iter__, __dict__, or, __slots__ if you want to enumerate the members in python
- 20:27:30 [ericP]
- >>> print SWObjects._object
- 20:27:30 [ericP]
- <type 'object'>
- 20:27:30 [ericP]
- >>> print SWObjects._object.__class__
- 20:27:31 [ericP]
- <type 'type'>
- 20:27:45 [presbrey]
- hehe
- 20:27:48 [presbrey]
- I think __slots__ is a hidden one. you might try looking for it explicitly on those 3 objects
- 20:28:23 [ericP]
- a la :
- 20:28:23 [ericP]
- >>> print SWObjects._object.__slots__
- 20:28:23 [ericP]
- Traceback (most recent call last): File "<stdin>", line 1, in <module>
- 20:28:24 [ericP]
- AttributeError: type object 'object' has no attribute '__slots__'
- 20:28:24 [ericP]
- ?
- 20:28:45 [presbrey]
- can I pull this and compile it pretty quickly?
- 20:28:56 [ericP]
- should go nicely
- 20:29:19 [ericP]
- svn co -q https://swobjects.svn.sourceforge.net/svnroot/swobjects/trunk swobjects-trunk
- 20:29:23 [ericP]
- cd swobjects-trunk
- 20:29:26 [presbrey]
- yeah got it thx slow....
- 20:29:27 [ericP]
- make NOGEN
- 20:29:37 [presbrey]
- getting win binaries, tests
- 20:29:38 [ericP]
- make swig/_SWObjects.so
- 20:29:45 [presbrey]
- ooh, conflict in trunk/CONFIG! ;)
- 20:30:16 [ericP]
- shouldn't be too painful. i've been sticking a bit more comments in there
- 20:30:19 [presbrey]
- unversioned .cpps from the flex too
- 20:30:39 [ericP]
- odd. all should be accounted for in the ignores
- 20:30:59 [ericP]
- actually, all of those have svn entries
- 20:31:05 [ericP]
- example?
- 20:31:09 [presbrey]
- yeah i compiled this too long ago
- 20:31:17 [presbrey]
- im going to just find | xargs rm a bunch of stuff
- 20:31:42 [presbrey]
- back when it made everyone flex their own cpps
- 20:31:48 [ericP]
- could also just co into /tmp
- 20:31:54 [ericP]
- gotcha
- 20:32:10 [presbrey]
- no i like everything in ~/src ;)
- 20:32:12 [ericP]
- actually it still does, if you don't make NOGEN
- 20:32:54 [ericP]
- i've got a recent behavior of working snapping things into /tmp for testing the repo
- 20:32:59 [presbrey]
- ah good to know
- 20:34:33 [presbrey]
- ive got stray \ and # in config.h
- 20:34:54 [ericP]
- oof
- 20:34:56 [presbrey]
- gah bunch of escaped \\n
- 20:35:17 [ericP]
- redhat box?
- 20:35:31 [presbrey]
- you know it
- 20:35:34 [ericP]
- echo gives me more problems than bison does
- 20:35:42 [ericP]
- what the hell?
- 20:35:51 [presbrey]
- `echo -e` -e enable interpretation of backslash escapes
- 20:36:03 [presbrey]
- -E disable interpretation of backslash escapes (default) :\
- 20:36:13 [ericP]
- Makefile:29
- 20:36:29 [presbrey]
- fortunately :%s/\\n/^M/g
- 20:37:00 [ericP]
- might not have expanded other stuff
- 20:37:04 [ericP]
- well, let me know
- 20:37:25 [ericP]
- but probably picking another echo aroudn line 29 will work as well
- 20:38:53 [presbrey]
- rev #1110
- 20:39:22 [presbrey]
- how can echo really be different across distros these days
- 20:39:49 [ericP]
- beats me. between deb, redhat and mac i'm flummonxed
- 20:40:33 [presbrey]
- $ make swig/_SWObjects.so
- 20:40:33 [presbrey]
- you will have to add -lboost_regex-mt
- 20:40:33 [presbrey]
- python swig/SWObjects_setup.py build_ext --inplace -I.:lib:interface
- 20:40:33 [presbrey]
- running build_ext
- 20:40:33 [presbrey]
- rm swig/_SWObjects.so
- 20:40:34 [presbrey]
- rm: cannot remove `swig/_SWObjects.so': No such file or directory
- 20:40:34 [presbrey]
- make: *** [swig/_SWObjects.so] Error 1
- 20:41:30 [ericP]
- oops. mcherian didn't commit
- 20:41:33 [ericP]
- i'll fix that...
- 20:42:19 [ericP]
- try inserting -@ at 414
- 20:51:39 [presbrey]
- http://presbrey.pastebin.com/TaAVwMSa
- 20:54:43 [ericP]
- hmm...
- 20:55:50 [presbrey]
- phew I got it!
- 20:55:55 [ericP]
- what was it?
- 20:56:18 [presbrey]
- $ python swig/SWObjects_setup.py build_ext --inplace -I.:lib/
- 20:56:29 [presbrey]
- thats the new build command I think you want
- 20:57:16 [ericP]
- currently has: python swig/SWObjects_setup.py build_ext --inplace -I.:lib:interface
- 20:57:34 [ericP]
- diffs are / at end of lib and no interface
- 20:58:53 [timbl_]
- timbl_ (~timbl@31-33-253.wireless.csail.mit.edu) has joined #dig
- 21:00:24 [presbrey]
- oh sorry I see what this is now
- 21:00:29 [presbrey]
- I'm running 64-bit linux
- 21:00:50 [presbrey]
- you have hardcoded i686 in the g++ line
- 21:01:24 [presbrey]
- whats the line do? link those objects with the swig module?
- 21:01:32 [timbl]
- timbl has quit (Read error: Operation timed out)
- 21:03:00 [ericP]
- yeah, it's supposed to be handled by the call to python swig/_SWObjects.so but we don't yet know how to tell it to link to -lboost_regex-mt
- 21:03:22 [timbl_]
- timbl_ has quit (Ping timeout: 264 seconds)
- 21:03:22 [ericP]
- i'm sure it's in there
- 21:03:41 [presbrey]
- yeah in /usr/lib64/python2.6/distutils/extension.py
- 21:04:02 [presbrey]
- think you want to pass extra_objects to Extension() in your setup.py
- 21:04:36 [presbrey]
- extra_objects : [string]
- 21:04:36 [presbrey]
- list of extra files to link with (eg. object files not implied
- 21:04:36 [presbrey]
- by 'sources', static library that must be explicitly specified,
- 21:04:36 [presbrey]
- binary resource files, etc.)
- 21:06:44 [presbrey]
- ohh
- 21:06:47 [presbrey]
- oops you just want libraries
- 21:07:05 [presbrey]
- I misunderstood, you're just trying to get -lboost_regex-mt on the end
- 21:07:34 [presbrey]
- I'll get it working and commit
- 21:07:41 [ericP]
- you rock
- 21:08:24 [presbrey]
- why did you decide to scrap the cython?
- 21:08:33 [ericP]
- you can see why it's needed when you (cd swig; python... import SWObjects)
- 21:08:44 [ericP]
- folks wanted java as well
- 21:08:58 [ericP]
- swig was, i believe, the only one that promisess both
- 21:09:43 [presbrey]
- whats with the underscore on _SWObjects?
- 21:09:51 [ericP]
- http://www.swig.org/compat.html#SupportedLanguages
- 21:10:08 [ericP]
- i thought python chose that
- 21:10:23 [ericP]
- that is, import X would look for _X.so
- 21:10:40 [ericP]
- likely i'm mistaken
- 21:11:02 [ericP]
- (the theory is supported a bit by the fact that it seems to work)
- 21:11:03 [presbrey]
- maybe it has to do with swig
- 21:11:20 [presbrey]
- and maybe they do search _X as well
- 21:11:32 [presbrey]
- I dunno I dont use underscore, eg.
- 21:11:37 [presbrey]
- setup(
- 21:11:37 [presbrey]
- cmdclass = {'build_ext': build_ext},
- 21:11:37 [presbrey]
- ext_modules = [Extension(
- 21:11:37 [presbrey]
- "roqet",
- 21:11:37 [presbrey]
- ["roqet.pyx"],
- 21:11:38 [presbrey]
- libraries=["raptor", "rasqal"],
- 21:11:38 [presbrey]
- )
- 21:11:40 [presbrey]
- ]
- 21:11:41 [presbrey]
- )
- 21:11:52 [presbrey]
- for an extension using dajobes
- 21:12:03 [presbrey]
- (of course thats cython)
- 21:12:43 [ericP]
- swig seems to use a pattern like:
- 21:12:52 [ericP]
- import X reads ./X.py
- 21:13:17 [ericP]
- X.py imports _X which i guess reads the .so
- 21:13:40 [ericP]
- so if there's roqet,py, what's the .so called?
- 21:14:02 [presbrey]
- theres a roqet.pyx and a roqet.so after build
- 21:14:32 [ericP]
- huh, i wonder how you import one or the other
- 21:15:19 [presbrey]
- python doesnt look for .pyx
- 21:15:44 [presbrey]
- so how do I test this thing
- 21:15:47 [presbrey]
- I think its built
- 21:16:33 [ericP]
- we've gotten as far as import SWObjects
- 21:16:51 [ericP]
- that's why i was pestering you about reflection
- 21:16:59 [presbrey]
- ah haha ok
- 21:17:02 [ericP]
- so i could see if it created a bunch of mangled name
- 21:17:23 [ericP]
- *you* thought *i* would be helpful?
- 21:17:35 [ericP]
- pronoun trouble
- 21:20:31 [presbrey]
- so, SWObjects is actually a python script that wraps _SWObjects.so
- 21:21:34 [presbrey]
- do you think it has to do with w3c_sw namespace on it
- 21:22:51 [presbrey]
- r1111 has the fixes to building the extension
- 21:26:05 [ericP]
- tx kindly
- 21:26:28 [ericP]
- and i don't know, but maybe SWObjects.py does
- 21:27:28 [ericP]
- i guess SWObjects doesn't contain the generated wrappers
- 21:29:22 [ericP]
- niether does SWObjects_wrap.cpp
- 21:30:51 [ericP]
- libraries=['boost_regex-mt'],
- 21:30:58 [ericP]
- tx again
- 21:36:37 [ericP]
- presbrey, offline for 20 mins
- 21:36:48 [presbrey]
- no problem
- 21:45:53 [presbrey]
- cool so it looks like theres just no interfaces
- 21:45:57 [presbrey]
- in your .i
- 21:46:04 [presbrey]
- go try:
- 21:46:05 [presbrey]
- swig -v -includeall -c++ -python swig/SWObjects.i
- 21:46:50 [presbrey]
- that looks like its trying to do something
- 21:56:01 [timbl]
- timbl (~timbl@pool-96-237-236-72.bstnma.fios.verizon.net) has joined #dig
- 22:17:47 [mcherian]
- mcherian has quit (Ping timeout: 248 seconds)
- 23:10:46 [mcherian]
- mcherian (mcherian@31-34-205.wireless.csail.mit.edu) has joined #dig
- 23:47:16 [lkagal]
- lkagal has quit (Quit: lkagal)