#jython IRC Log (v0.9)

Index

IRC Log for 2015-05-30

Timestamps are in GMT/BST.

[0:07] <jimbaker> agronholm, only explicit usage of gc; http://www.oracle.com/technetwork/articles/java/vmoptions-jsp-140102.html
[0:07] <jimbaker> it would be like turning off ref counting based gc in cpython. doesn't make sense
[0:43] * eatkin (~eatkin@166.70.212.121) Quit (Ping timeout: 244 seconds)
[0:44] * eatkin (~eatkin@166.70.212.121) has joined #jython
[0:48] <jimbaker> however, maybe we should turn the NotImplementedError for gc.disable into a warning
[2:11] * gopar (~gopar@c-73-162-171-146.hsd1.ca.comcast.net) Quit (Quit: Leaving)
[3:22] * mbooth (~mbooth@redhat/mbooth) Quit (Ping timeout: 258 seconds)
[5:37] * gopar (~gopar@c-73-162-171-146.hsd1.ca.comcast.net) has joined #jython
[7:57] * gopar (~gopar@c-73-162-171-146.hsd1.ca.comcast.net) Quit (Remote host closed the connection)
[8:29] <ztane> I started doing some bytes stuff :D
[8:29] <ztane> noticed that actually Python 3 AST has separate bytes
[8:29] <ztane> *Bytes
[8:30] <ztane> there is now YieldFrom etc...
[10:02] <ztane> didn't get sleep at night so I've mostly implemented PyBytes
[10:03] <ztane> only have to ask this: what's the purpose of ExposedMethod?
[10:03] <ztane> seems that the other methods are called automatically depending of parameters
[10:04] <agronholm> ztane: ExposedMethod marks something that is visible from python
[10:05] * koo6 (~koo5@236.152.broadband3.iol.cz) has joined #jython
[10:15] <ztane> but python also directly calls other methods
[10:16] <ztane> noticed with bytes.split
[10:16] <ztane> called PyBytes.split() directly if suitable args given, not the exposed one
[10:16] <ztane> another question would be:
[10:16] <ztane> why do the PyString methods many of them return a String instead of PyString -
[10:17] <ztane> wouldn't this then also add the overhead of looking how to wrap them properly for python again?
[10:18] <agronholm> I am probably not the right person to answer that
[10:19] <ztane> :D
[10:19] <ztane> I know that too
[10:20] <ztane> but this is an IRC channel
[10:25] <ztane> I don't think the behaviour is quite right there...
[10:40] <agronholm> nice to hear you made progress though
[11:45] <ztane> I believe 2.7->3.5 is actually much faster than 2.5->2.7
[11:45] <agronholm> if only due to increased motivation for getting rid of annoying 2.x stuff
[11:48] <ztane> hehe :P
[12:06] <ztane> agronholm: in PyString there are several split() methods and str_split()
[12:06] <ztane> it turns out ''.split() can call any of them directly
[12:07] <ztane> depending on the arguments, not just the str_split...
[12:07] <ztane> and their return types then are coerced into PyObjects if not already...
[12:07] <ztane> of course with `bytes` this causes complications, as byte[] is mapped to bytearray already
[12:19] * mbooth (~mbooth@redhat/mbooth) has joined #jython
[12:28] * agronholm (~agronholm@2001:1bc8:102:6f29:e508:e87f:9caf:f29f) Quit (Ping timeout: 265 seconds)
[12:32] * agronholm (~agronholm@nblzone-211-20.nblnetworks.fi) has joined #jython
[12:32] * ChanServ sets mode +o agronholm
[12:42] <ztane> why oh why are the public methods exposed, what am I doing wrong?
[12:43] <agronholm> ztane: the public methods are visible in python without having the @Exposed annotation?
[12:44] <ztane> yes
[12:44] <ztane> in PyString, getString is not visible in dir()
[12:44] <agronholm> well, that's odd
[12:45] <ztane> but in PyBytes getByteArray is
[12:45] <ztane> I do not see any difference except PyString implementing from PyBaseString
[12:46] <ztane> guess there is something else that needs to be done too, but what :d
[12:46] <agronholm> wait until jimbaker wakes up
[12:47] <agronholm> there are many oddities in jython like this that I'd like to clear up in 3.x
[12:47] <agronholm> things that discourage new developers
[12:47] <ztane> ahha I guess it is because of a build failure ;)
[12:48] <agronholm> ?
[12:48] <agronholm> that makes no sense
[12:48] <ztane> it does, there was a class file from eclipse :D
[12:48] <agronholm> ???
[12:49] <ztane> the ant build continues despite there being errors, do not ask me how :D
[12:49] <mbooth> More arguments for switching to maven build :-p
[12:49] <ztane> and I am using Arrays.hashCode,
[12:49] <ztane> for some reason the ant build says it cannot find the symbol so must be compiling against 1.4? :D
[12:50] <ztane> ah that explains, it wasn't but bouncycastle lib, lol.
[12:52] <ztane> hmm now no errors but...
[12:52] <ztane> the public methods are still visible there
[12:53] <ztane> I just need to add them to CoreExposed.includes
[12:54] <ztane> Exception in thread "main" java.lang.VerifyError: (class: org/python/core/PyBytes$bytes_ljust_exposer, method: __call__ signature: (Lorg/python/core/PyObject;Lorg/python/core/PyObject;)Lorg/python/core/PyObject;) Incompatible argument to function
[12:54] <ztane> hoho
[12:54] <ztane> better
[12:54] <agronholm> I should rewrite the developer guide
[12:55] <ztane> +1
[12:55] <agronholm> I'd learn a lot in the process
[12:55] <ztane> but this is lots of fun compared to contributing to CPython...
[12:55] <agronholm> I believe you
[12:56] <ztane> maybe because there is no such thing as a "C ide" really...
[12:56] <agronholm> eclipse, intellij
[12:58] <ztane> they all are a lie
[12:58] <agronholm> ?
[12:59] <ztane> how many times have you refactored C source code using an ide :d
[12:59] <agronholm> I haven't done real C development in years
[13:04] <ztane> now if I understood why do I get the exception above
[13:13] * enebo (~enebo@c-75-73-8-169.hsd1.mn.comcast.net) has joined #jython
[13:25] * enebo (~enebo@c-75-73-8-169.hsd1.mn.comcast.net) Quit (Quit: enebo)
[14:02] * koo6 (~koo5@236.152.broadband3.iol.cz) Quit (Ping timeout: 258 seconds)
[15:01] * Arfrever (~Arfrever@apache/committer/Arfrever) has joined #jython
[15:01] * ChanServ sets mode +o Arfrever
[15:55] * Arfrever (~Arfrever@apache/committer/Arfrever) Quit (Ping timeout: 264 seconds)
[16:11] * Arfrever (~Arfrever@apache/committer/Arfrever) has joined #jython
[16:11] * ChanServ sets mode +o Arfrever
[16:20] * enebo (~enebo@c-75-73-8-169.hsd1.mn.comcast.net) has joined #jython
[16:20] * enebo (~enebo@c-75-73-8-169.hsd1.mn.comcast.net) Quit (Client Quit)
[17:24] <ztane> lol
[17:24] <ztane> i just wanted to fix doc generation
[17:24] <ztane> and down the rabbit hole :D
[17:35] <ztane> (about to do the biggest commit in my life)
[17:40] * pdurbin hopes ztane didn't change all the spaces to tabs
[18:10] <ztane> :D
[18:10] <ztane> yeah, I had visible whitespace, had to config stupid eclipse to emit spaces for indent
[18:11] <ztane> the commit diff is annoyingly long since I changed the *Derived generation code...
[18:14] * gopar (~gopar@c-73-162-171-146.hsd1.ca.comcast.net) has joined #jython
[18:45] * jimbaker (~jbaker@python/psf/jimbaker) Quit (Ping timeout: 265 seconds)
[18:48] * jimbaker (~jbaker@c-24-9-252-60.hsd1.co.comcast.net) has joined #jython
[18:49] * jimbaker (~jbaker@c-24-9-252-60.hsd1.co.comcast.net) Quit (Changing host)
[18:49] * jimbaker (~jbaker@python/psf/jimbaker) has joined #jython
[18:49] * ChanServ sets mode +o jimbaker
[19:35] <ztane> java.lang.VerifyError: (class: org/python/core/PyBytes$bytes_ljust_exposer, method: __call__ signature: (Lorg/python/core/PyObject;Lorg/python/core/PyObject;)Lorg/python/core/PyObject;) Incompatible argument to function
[19:35] <ztane> still trying to understand this error
[19:36] <ztane> jimbaker: ^
[19:41] <pdurbin> ztane: when do you see it?
[20:12] <ztane> when trying to build my PyBytes stuff (I think I am going to scrap it and do again though)
[20:13] <pdurbin> did it ever build?
[20:17] <ztane> it did but that was when I hadn't add it properly to the list of exposed
[20:24] <pdurbin> not sure what "list of exposed" means
[20:29] <ztane> CoreExposed.includes
[20:31] <pdurbin> ok
[20:40] * koo6 (~koo5@236.152.broadband3.iol.cz) has joined #jython
[23:36] * koo6 (~koo5@236.152.broadband3.iol.cz) Quit (Ping timeout: 244 seconds)

Index

These logs were automatically created by JythonLogBot_ on irc.freenode.net using a slightly modified version of the Java IRC LogBot (github).