#jython IRC Log

Index

IRC Log for 2013-10-20

Timestamps are in GMT/BST.

[2:12] * fwierzbicki (~Adium@99-106-170-162.lightspeed.sntcca.sbcglobal.net) Quit (Quit: Leaving.)
[2:22] * vIkSiT (~vIkSiT|2@c-71-204-168-245.hsd1.ca.comcast.net) has joined #jython
[2:22] * vIkSiT (~vIkSiT|2@c-71-204-168-245.hsd1.ca.comcast.net) Quit (Changing host)
[2:22] * vIkSiT (~vIkSiT|2@unaffiliated/viksit) has joined #jython
[2:30] <vIkSiT> hi all
[2:43] <sinistersnare> yo
[3:26] <vIkSiT> hey sinistersnare
[3:27] <sinistersnare> sup
[3:27] <vIkSiT> all - I was looking for some suggestions on an effort on using jython with an existing NIO style server..
[3:27] <vIkSiT> basically, I have a django app that runs on python.
[3:27] <vIkSiT> I also have an app written in the play framework, which I want to act as a common API server
[3:28] <vIkSiT> so, if a request for /api1 comes in, i give it to jython/django
[3:28] <vIkSiT> and /api2 goes to the native java code
[3:28] <vIkSiT> has anyone ever done something like this before?
[3:32] <sinistersnare> thats interesting, i dont have any experience in that, so i cant help :p
[3:32] <sinistersnare> but good luck ^_^
[3:32] * lheuer1 (~Adium@f049012185.adsl.alicedsl.de) Quit (Quit: Leaving.)
[3:51] <vIkSiT> :) ty
[4:18] * fwierzbicki (~Adium@99-106-170-162.lightspeed.sntcca.sbcglobal.net) has joined #jython
[4:20] * vIkSiT (~vIkSiT|2@unaffiliated/viksit) Quit (Quit: This computer has gone to sleep)
[4:24] * fwierzbicki (~Adium@99-106-170-162.lightspeed.sntcca.sbcglobal.net) Quit (Quit: Leaving.)
[4:24] * fwierzbicki (~Adium@99-106-170-162.lightspeed.sntcca.sbcglobal.net) has joined #jython
[4:25] * vIkSiT (~vIkSiT|2@unaffiliated/viksit) has joined #jython
[4:25] * vIkSiT (~vIkSiT|2@unaffiliated/viksit) Quit (Remote host closed the connection)
[6:13] * lheuer (~Adium@f049012185.adsl.alicedsl.de) has joined #jython
[6:13] * lheuer (~Adium@f049012185.adsl.alicedsl.de) Quit (Changing host)
[6:13] * lheuer (~Adium@unaffiliated/lheuer) has joined #jython
[6:17] * lheuer (~Adium@unaffiliated/lheuer) Quit (Client Quit)
[6:26] * lheuer (~Adium@f049012185.adsl.alicedsl.de) has joined #jython
[6:26] * lheuer (~Adium@f049012185.adsl.alicedsl.de) Quit (Changing host)
[6:26] * lheuer (~Adium@unaffiliated/lheuer) has joined #jython
[6:29] <sinistersnare> jesus lheuer
[7:39] * sinistersnare is now known as sinsnare|zzZZzz
[9:16] * Oti (~ohumbel@adsl-89-217-230-83.adslplus.ch) has joined #jython
[10:44] * fwierzbicki1 (~Adium@99-106-170-162.lightspeed.sntcca.sbcglobal.net) has joined #jython
[10:44] * fwierzbicki (~Adium@99-106-170-162.lightspeed.sntcca.sbcglobal.net) Quit (Read error: Connection reset by peer)
[11:42] * paolo (~Paolo@net-2-36-97-216.cust.dsl.vodafone.it) has joined #jython
[16:22] * sinsnare|zzZZzz is now known as sinistersnare
[16:57] * lheuer (~Adium@unaffiliated/lheuer) Quit (Quit: Leaving.)
[17:07] * lheuer (~Adium@f049012185.adsl.alicedsl.de) has joined #jython
[17:07] * lheuer (~Adium@f049012185.adsl.alicedsl.de) Quit (Changing host)
[17:07] * lheuer (~Adium@unaffiliated/lheuer) has joined #jython
[17:12] * skyemac (~skyemac@host81-159-114-0.range81-159.btcentralplus.com) has joined #jython
[17:17] * skyemac (~skyemac@host81-159-114-0.range81-159.btcentralplus.com) Quit (Ping timeout: 248 seconds)
[17:22] * skyemac (~skyemac@host81-159-114-0.range81-159.btcentralplus.com) has joined #jython
[17:23] * skyemac (~skyemac@host81-159-114-0.range81-159.btcentralplus.com) Quit (Client Quit)
[17:36] * lheuer1 (~Adium@f049140197.adsl.alicedsl.de) has joined #jython
[17:38] * lheuer (~Adium@unaffiliated/lheuer) Quit (Ping timeout: 265 seconds)
[18:55] * paolo (~Paolo@net-2-36-97-216.cust.dsl.vodafone.it) Quit (Quit: Leaving)
[18:58] <topi`> sinistersnare: morning :)
[18:58] <topi`> sinistersnare: would it be possible to use that libgdx thingy to draw something on screen? like, I'm interested in Mandelbrots, can I render those on screen?
[18:59] <topi`> I want to compare algo performance against an algorithm written in Cython and compiled to a C library.
[18:59] <sinistersnare> yes you can
[18:59] <topi`> cool, do you have any examples?
[18:59] <sinistersnare> libgdx lets you go as low level as you want, you can call GL functions directly, basically
[19:00] <topi`> so I can put pixels via GL?
[19:00] <sinistersnare> ask some guys over at #libgdx theyre helpful
[19:01] <sinistersnare> ShapeRenderer can be used to do draw shapes
[19:01] <sinistersnare> http://libgdx.badlogicgames.com/nightlies/docs/api/com/badlogic/gdx/graphics/glutils/ShapeRenderer.html
[19:02] <sinistersnare> https://github.com/libgdx/libgdx/wiki/Pixmaps https://github.com/libgdx/libgdx/wiki/Pixmaps
[19:02] <topi`> what I wanted is to copy a scanline from a memory buffer to screen
[19:02] <topi`> yeah, pixmaps
[19:04] <sinistersnare> im not sure :p but there are smarter people than me on the irc channel
[19:04] <sinistersnare> also im kind of tied up at the moment
[19:04] * lheuer1 is now known as lheuer
[19:04] * lheuer (~Adium@f049140197.adsl.alicedsl.de) Quit (Changing host)
[19:04] * lheuer (~Adium@unaffiliated/lheuer) has joined #jython
[19:06] <topi`> sinistersnare: did you write this? https://github.com/libgdx/libgdx/wiki/Using-libgdx-with-Python
[19:06] <sinistersnare> yeah
[19:07] <sinistersnare> the program written is almost a 1:1 translation of the "simple game" tutorial on the wiki
[19:08] <topi`> I'll try that out :)
[19:08] <topi`> I just cloned your repo from github
[19:08] <sinistersnare> cool
[19:08] <sinistersnare> my repo i think is somwhat non working :p at least the jar packagin
[19:09] <sinistersnare> packaging* its been in flux, trying to get it working with singlejar.
[19:09] <topi`> I can fix that.
[19:09] <sinistersnare> but it may work!
[19:11] <topi`> we'll see :)
[19:11] <topi`> first, I need to get jython-ssl branch on this mac.
[19:12] <sinistersnare> you basically just need to do 'ant' on the dir, and then put it on PATH, or give it an alias
[19:12] <sinistersnare> for the term session
[19:26] <sinistersnare> jimbaker: i was perusing the jythonbook, and i see some errors, it seems that class definitions and the like do not indent anything; just scroll down from here http://www.jython.org/jythonbook/en/1.0/LangSyntax.html#functions
[20:08] <topi`> sinistersnare: your code looks like a direct translation from java source :)
[20:08] <sinistersnare> yes, it basically is :p i wasnt following pep8
[20:08] <topi`> in python, one seldom sees constructs like "while iterator.hasNext():"
[20:08] <sinistersnare> it could use some changes, but i dont really have the time :p
[20:08] <topi`> one would just say for i in iterator:
[20:08] <sinistersnare> i was thinking the same, to just use a for loop; but i just really wanted a 1:1 :p
[20:09] <topi`> and then go on looping forever, unless StopIteration is raised
[20:09] <topi`> fair enough :)
[20:09] <topi`> otherwise, great work, the stuff works for me
[20:09] <topi`> it seems game coding indeed is quite procedural
[20:10] <sinistersnare> yep
[20:10] <topi`> you setup gl colors etc
[20:10] <topi`> SpriteBatch has funky semantics. you begin() it and then throw some stuff, and then end()
[20:10] <topi`> if I'd reimplement that class in python, I'd make it with __enter__ and __exit__
[20:11] <sinistersnare> do a context manager
[20:11] <topi`> then, with SpriteBatch() as batch:
[20:11] <topi`> blabla.. you get the idea
[20:11] <sinistersnare> i was thinking about doing a wrapper for libgdx in python, things like that would be great
[20:11] <sinistersnare> yep
[20:11] <topi`> I need to finish up my writeup about installing/running django under jython 2.7
[20:12] <topi`> it seems there are people trying to achieve that...
[20:12] <sinistersnare> cool, i use flask :p so good luck!
[20:20] * thereisnospoon (~thereisno@27-33-1-87.tpgi.com.au) Quit (Read error: Operation timed out)
[20:20] * thereisnospoon (~thereisno@27-33-1-87.tpgi.com.au) has joined #jython
[20:23] <sinistersnare> https://gist.github.com/sinistersnare/7074791 topi` i wanna make a list of things so if i ever get around to it, ill have a starting point!
[20:23] <sinistersnare> ideas are welcome :)
[20:31] * rigel (~yourmom@c-76-105-237-98.hsd1.or.comcast.net) Quit (Ping timeout: 265 seconds)
[20:33] * rigel (~yourmom@c-76-105-237-98.hsd1.or.comcast.net) has joined #jython
[20:57] * Oti (~ohumbel@adsl-89-217-230-83.adslplus.ch) Quit (Quit: Oti)
[23:43] * sinistersnare is now known as realXoppa
[23:46] * realXoppa is now known as nexhardware
[23:49] * nexhardware is now known as pastrami10
[23:52] * pastrami10 is now known as sinistersnare

Index

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