tetrapus / Karkat

Multithreaded python IRC socket bot.
16 stars 5 forks source link

Daemon threads. #5

Open svkampen opened 11 years ago

svkampen commented 11 years ago

ALERT ALERT ALERT - LARGE HADRON COLLIDER MELTDOWN - ALERT ALERT ALERT

TRACEBACK (MOST RECENT CALL LAST): File "lhc.py", line 981238, in start_detectorthreads for thread in threads: thread.setDaemon(True) thread.start() File "lhc_detector_thread.py", line 897, in detectparticle return Particle(data[0], data[1], data[2:4]) File "lhc_particle.py", line 332, in init raise ParticleException("God does not exist. %s" % (self))

tetrapus commented 11 years ago

Instead of daemon threads, I'm thinking of trying to switch over to a multiprocessing approach, or run it on a variant of python without the GIL. Thoughts?

svkampen commented 11 years ago

Both seem good. The GIL is a pain. Jython would work, but you'd have all the JVM bloat. I think PyPy has a non-GIL version in the making.