code logs -> 2010 -> Tue, 19 Oct 2010< code.20101018.log - code.20101020.log >
--- Log opened Tue Oct 19 00:00:26 2010
00:01
<@ToxicFrog>
kwsn: lua. Go go gadget coroutines.
00:01
< kwsn>
ha
00:02
<@ToxicFrog>
Tarinaky: this is actually for a class; the important part is the recursive backtracking, not the sudoku.
00:02
<@ToxicFrog>
kwsn: so far everything I've done in this course is Just Better with coroutines, which means I can't use Scala for anything :/
00:02
< Tarinaky>
ToxicFrog: Why the sadface?
00:03
<@ToxicFrog>
Tarinaky: because I want more excuses to use Scala because I want more practice with it.
00:03
<@ToxicFrog>
However, implementing this in scala requires warping it in ways that feel unnatural to work around the lack of coroutines.
00:03
<@ToxicFrog>
I guess I could use synchronous Actors but that's kind of heavy for what I'm doing.
00:04
<@ToxicFrog>
...hmm.
00:04 * ToxicFrog ponders how to implement coroutines in terms of Scala Actors
00:06
<@ToxicFrog>
kwsn: anyways, the course permits the use of any language (with the caveat that if the prof can't run it out of the box on his laptop, you need to bring in yours and demo it).
00:06
< kwsn>
ah
00:07
<@ToxicFrog>
However, all of the small projects are of the form "implement an algorithm, or set of related algorithms, with the ability to step through them and observe their state" - last one was a sort algorithm visualizer.
00:08
<@ToxicFrog>
This naturally lends itself to coroutines (or continuations in general, really) and the only language I'm fluent in that has sufficiently powerful constructs for same is lua.
00:09
<@ToxicFrog>
Scala has continuations, but they're so limited by the JVM as to be effectively useless for this; Scheme has call/cc but I'm not comfortable enough in Scheme to do homework in it on tight deadlines.
00:12 shade_of_cpux is now known as cpux
00:18 * ToxicFrog offers kwsn a preserved call stack
00:19 * kwsn declines, goes back to touching up her ada program
00:20 * Tarinaky isn't quite sure he understands what a coroutine is.
00:21
< Namegduf>
Tarinaky: A cooperatively scheduled thread, basically.
00:22
< Namegduf>
Within a program.
00:22
< Namegduf>
Usually within a single OS thread.
00:23
<@ToxicFrog>
^ That.
00:24
<@ToxicFrog>
It's like a thread in that it has its own stack, but unlike a thread, when you start it, whatever started it pauses; the coroutine runs until it yields, at which point the thread that started it in the first place resumes executing.
00:24
< Namegduf>
Yeah.
00:25
< Tarinaky>
I see.
00:25
< Tarinaky>
I think.
00:27 Attilla [Some.Dude@Nightstar-2cb92b04.threembb.co.uk] has quit [[NS] Quit: ]
00:28
<@ToxicFrog>
I can slap together an example in a bit if you like.
00:29
< Tarinaky>
I should be sleeping.
00:45 Zed [Zed@Nightstar-556ea8b5.or.comcast.net] has quit [Ping timeout: 121 seconds]
00:48 Tarinaky [Tarinaky@Nightstar-f349ca6d.plus.com] has quit [Connection closed]
01:08 Anno[Laptop] [annodomini@Nightstar-3e902c6a.adsl.tpnet.pl] has quit [[NS] Quit: Sleep.]
01:26 Derakon[AFK] is now known as Derakon
01:56 gnolam [lenin@Nightstar-38637aa0.priv.bahnhof.se] has quit [[NS] Quit: Z?]
02:05 Stalker [Z@26ECB6.A4B64C.298B52.D80DA0] has quit [[NS] Quit: If the world didn't suck, we'd all fall off.]
02:12 Stalker [Z@26ECB6.A4B64C.298B52.D80DA0] has joined #code
02:17 Stalker [Z@26ECB6.A4B64C.298B52.D80DA0] has quit [Ping timeout: 121 seconds]
02:34 RichardB_ [mycatverbs@Nightstar-3b2c2db2.bethere.co.uk] has joined #code
02:35 RichardB_ [mycatverbs@Nightstar-3b2c2db2.bethere.co.uk] has quit [Connection closed]
02:36 RichardBarrell [mycatverbs@Nightstar-3b2c2db2.bethere.co.uk] has quit [Ping timeout: 121 seconds]
02:39 Stalker [Z@3A600C.A966FF.5BF32D.8E7ABA] has joined #code
02:44 Zed [Zed@Nightstar-556ea8b5.or.comcast.net] has joined #code
03:43 McMartin_ [mcmartin@Nightstar-f5d5ecff.pltn13.sbcglobal.net] has joined #code
03:43 McMartin [mcmartin@Nightstar-6f681ff5.pltn13.sbcglobal.net] has quit [Client closed the connection]
03:46
< kwsn>
ok
03:46
< kwsn>
i understand why we comment
03:47
< kwsn>
but the process can be as tedious as debugging sometimes
03:48 McMartin_ [mcmartin@Nightstar-f5d5ecff.pltn13.sbcglobal.net] has quit [Connection reset by peer]
03:48 McMartin [mcmartin@Nightstar-f5d5ecff.pltn13.sbcglobal.net] has joined #code
03:48 mode/#code [+o McMartin] by Reiver
04:22 McMartin [mcmartin@Nightstar-f5d5ecff.pltn13.sbcglobal.net] has quit [Ping timeout: 121 seconds]
04:42 celticminstrel [celticminstre@Nightstar-f8b608eb.cable.rogers.com] has quit [[NS] Quit: And lo! The computer falls into a deep sleep, to awake again some other day!]
04:43
<@ToxicFrog>
kwsn: Future You will thank you for it :)
04:43
<@ToxicFrog>
Or, if not Future You, the TA will.
04:43
< kwsn>
we don't have TAs :D
04:44
<@ToxicFrog>
Aah
04:53 McMartin [mcmartin@Nightstar-0a35c522.pltn13.sbcglobal.net] has joined #code
04:53 mode/#code [+o McMartin] by Reiver
04:58 McMartin [mcmartin@Nightstar-0a35c522.pltn13.sbcglobal.net] has quit [Ping timeout: 121 seconds]
04:58 McMartin [mcmartin@Nightstar-97ce0f0d.pltn13.sbcglobal.net] has joined #code
04:58 mode/#code [+o McMartin] by Reiver
05:02 McMartin [mcmartin@Nightstar-97ce0f0d.pltn13.sbcglobal.net] has quit [Ping timeout: 121 seconds]
05:44 Thaqui [Thaqui@27B34E.D54D49.F53FA1.6A113C] has joined #code
06:32 Derakon is now known as Derakon[AFK]
06:33 ErikMesoy|sleep is now known as ErikMesoy
06:51 Stalker [Z@3A600C.A966FF.5BF32D.8E7ABA] has quit [Ping timeout: 121 seconds]
07:20 McMartin [mcmartin@Nightstar-ddf7a282.pltn13.sbcglobal.net] has joined #code
07:20 mode/#code [+o McMartin] by Reiver
07:24 McMartin [mcmartin@Nightstar-ddf7a282.pltn13.sbcglobal.net] has quit [Ping timeout: 121 seconds]
07:25 McMartin [mcmartin@Nightstar-ddf7a282.pltn13.sbcglobal.net] has joined #code
07:25 mode/#code [+o McMartin] by Reiver
07:30 McMartin [mcmartin@Nightstar-ddf7a282.pltn13.sbcglobal.net] has quit [Ping timeout: 121 seconds]
07:36 McMartin [mcmartin@Nightstar-ddf7a282.pltn13.sbcglobal.net] has joined #code
07:36 mode/#code [+o McMartin] by Reiver
07:40 McMartin [mcmartin@Nightstar-ddf7a282.pltn13.sbcglobal.net] has quit [Ping timeout: 121 seconds]
07:41 kwsn is now known as kwsn\t-2
07:41 McMartin [mcmartin@Nightstar-ddf7a282.pltn13.sbcglobal.net] has joined #code
07:41 mode/#code [+o McMartin] by Reiver
07:52 McMartin_ [mcmartin@Nightstar-ddf7a282.pltn13.sbcglobal.net] has joined #code
07:53 kwsn\t-2 is now known as kw-sleep-n
08:07 McMartin_ [mcmartin@Nightstar-ddf7a282.pltn13.sbcglobal.net] has quit [[NS] Quit: am I ghosted?]
08:18 Anno[Laptop] [annodomini@Nightstar-f2b14196.adsl.tpnet.pl] has joined #code
09:00 SmithKurosaki [Smith@Nightstar-8ff23d84.dsl.teksavvy.com] has quit [Ping timeout: 121 seconds]
10:07 Anno[Laptop] [annodomini@Nightstar-f2b14196.adsl.tpnet.pl] has quit [[NS] Quit: I'm so oldschool that I'm going to Uni now.]
10:10 Tarinaky [Tarinaky@Nightstar-f349ca6d.plus.com] has joined #code
10:59 You're now known as TheWatcher
12:05 Thaqui [Thaqui@27B34E.D54D49.F53FA1.6A113C] has quit [Connection closed]
12:34 gnolam [lenin@Nightstar-38637aa0.priv.bahnhof.se] has joined #code
12:34 cpux is now known as shade_of_cpux
12:37
< gnolam>
http://ds9a.nl/amazing-dna/
13:13 Rhamphoryncus [rhamph@Nightstar-473f8685.abhsia.telus.net] has quit [Client exited]
13:36 Anno[Laptop] [annodomini@Nightstar-f2b14196.adsl.tpnet.pl] has joined #code
13:40 kw-sleep-n is now known as kwsn
14:34 Thaqui [Thaqui@27B34E.D54D49.F53FA1.6A113C] has joined #code
15:26 kwsn is now known as kwsn\t-2
15:29
< kwsn\t-2>
[09:28:17 AM] <shykid> and i've discovered that VB isn't *too* bad <--- he needs the men in the white coat
15:29
< kwsn\t-2>
*coats
15:30
< kwsn\t-2>
but with that
15:30
< kwsn\t-2>
i'm out
15:30 kwsn\t-2 [kwsn@Nightstar-1def9d24.dyn.centurytel.net] has quit [[NS] Quit: BEEP BEEP IMMA JEEP]
15:40
< Tarinaky>
So. What do I need to know to port from python2 to python3?
15:41
< Tarinaky>
And should I just install the seperate python2 package and stick to that?
15:50
< Tarinaky>
BRB, reboot!
15:50 Tarinaky [Tarinaky@Nightstar-f349ca6d.plus.com] has quit [Connection closed]
15:55 Tarinaky [Tarinaky@Nightstar-f349ca6d.plus.com] has joined #code
15:57
<@ToxicFrog>
Somewhere on python.org there should be a porting guide/list of changes
15:58
<@ToxicFrog>
The only one I rememeber is that print is now a function rather than a keyword
15:59 Stalker [Z@3A600C.A966FF.5BF32D.8E7ABA] has joined #code
16:40 ErikMesoy [Erik_Mesoy@Nightstar-c8453cc1.80-203-16.nextgentel.com] has left #code []
17:26
<@ToxicFrog>
\o/ gamebox support!
17:28 Tarinaky [Tarinaky@Nightstar-f349ca6d.plus.com] has quit [Connection closed]
17:31 Attilla [Some.Dude@Nightstar-a5b44a4c.threembb.co.uk] has joined #code
17:31 mode/#code [+o Attilla] by Reiver
17:43 Anno[Laptop] is now known as Cecelyne
17:53
<@Vornicus-Latens>
"gamebox support"?
17:54
<@Vornicus-Latens>
2to3 should cover most of it.
17:54
<@Vornicus-Latens>
(of python 2 to 3 migration.)
17:58
<@ToxicFrog>
Vornicus-Latens: when you start felt, it scans your modules directory for modules containing a "box.png"
17:58
<@ToxicFrog>
Any it finds are turned into virtual boxes; it presents you with a field of them, and clicking on one will load that game.
17:59
<@Vornicus-Latens>
Aha.
18:02 Thaqui [Thaqui@27B34E.D54D49.F53FA1.6A113C] has quit [Client closed the connection]
19:29 SmithKurosaki [Smith@Nightstar-8ff23d84.dsl.teksavvy.com] has joined #code
20:23 Rhamphoryncus [rhamph@Nightstar-473f8685.abhsia.telus.net] has joined #code
21:05 RichardBarrell [mycatverbs@Nightstar-3b2c2db2.bethere.co.uk] has joined #code
21:53 Stalker [Z@3A600C.A966FF.5BF32D.8E7ABA] has quit [Ping timeout: 121 seconds]
21:54 Cecelyne is now known as AnnoDomini
21:59 RichardBarrell [mycatverbs@Nightstar-3b2c2db2.bethere.co.uk] has quit [Client closed the connection]
22:00 RichardBarrell [mycatverbs@Nightstar-3b2c2db2.bethere.co.uk] has joined #code
22:36 Zed [Zed@Nightstar-556ea8b5.or.comcast.net] has quit [Ping timeout: 121 seconds]
22:46
<@McMartin>
...
22:46
<@McMartin>
Check out NSIS's documentation for the "Call" instruction, which you, like, call functions with
22:46
<@McMartin>
This is code that they're publishing as reference material
22:46
<@McMartin>
http://nsis.sourceforge.net/Docs/Chapter4.html#4.9.4.2
22:58
< gnolam>
?
22:59
<@McMartin>
"Here's how you do procedure calls. We'll demonstrate that by making procedure calls into our own labels to make code run twice, and *then* by making procedure calls into the middle of entirely different functions.
23:06 Stalker [Z@26ECB6.A4B64C.298B52.D80DA0] has joined #code
23:11
< RichardBarrell>
I don't understand this thing of CALL supporting labels. Is this supposed to mean that CALL :label actually runs as if it were a plain JMP, or does it create a stack entry that needs to be cleared away with a matching RET?
23:11 ToxicFrog [ToxicFrog@ServerAdministrator.Nightstar.Net] has quit [Operation timed out]
23:18
< gnolam>
Seems to be the latte.
23:18
< gnolam>
*latter
23:18
< gnolam>
I did not actually mean it was a coffee.
23:20
< RichardBarrell>
Undercaffeinated much, gnolam?
23:37 shade_of_cpux is now known as cpux
23:43 You're now known as TheWatcher[t-2]
23:47 You're now known as TheWatcher[zZzZ]
--- Log closed Wed Oct 20 00:00:27 2010
code logs -> 2010 -> Tue, 19 Oct 2010< code.20101018.log - code.20101020.log >