code logs -> 2011 -> Fri, 11 Mar 2011< code.20110310.log - code.20110312.log >
--- Log opened Fri Mar 11 00:00:54 2011
00:02 Stalker [Z@3A600C.A966FF.5BF32D.8E7ABA] has quit [Client closed the connection]
00:02 Serah [Z@3A600C.A966FF.5BF32D.8E7ABA] has joined #code
00:32 gnolam [lenin@Nightstar-38637aa0.priv.bahnhof.se] has quit [[NS] Quit: Z?]
00:54 Attilla_ [Some.Dude@Nightstar-92c9199f.cable.virginmedia.com] has joined #code
00:55 Attilla [Some.Dude@Nightstar-92c9199f.cable.virginmedia.com] has quit [Ping timeout: 121 seconds]
01:03 Attilla_ [Some.Dude@Nightstar-92c9199f.cable.virginmedia.com] has quit [Ping timeout: 121 seconds]
01:39 kwsn [kwsn@Nightstar-2d125add.dyn.centurytel.net] has joined #code
01:42 SchoolPhox [NSwebIRC@FD3571.2233F7.69D3C5.BD0BDF] has joined #code
01:44
< SchoolPhox>
So, what's up with extern? I have an array (char g_usart_buffer[256]) declared globally in main.c. In functions.c, do I use "extern char g_usart_buffer[]", or "extern char g_usart_buffer[256]"?
01:45
< SchoolPhox>
Both compile
01:46
<@McMartin>
Both are, I believe, acceptable
01:46
< celticminstrel>
I don't think it really matters, but the first seems to have the advantage that if you change the size it only needs to be done in one place.
01:46
<@McMartin>
What is not acceptable is extern char *g_usart_buffer
01:46
<@McMartin>
This is the one place in C where *foo and foo[] are not equivalent type specifiers
01:47
< SchoolPhox>
If I wanted to only link part of that array, could I use "extern char g_usart_buffer[128]"?
01:47
< celticminstrel>
. . .
01:47
< SchoolPhox>
Not certain of any application for it
01:49
<@McMartin>
C doesn't actually do boundschecks
01:49
<@McMartin>
You can put any number in there and it's still only safe to the point where it's truly defined
02:37 Kindamoody [Kindamoody@Nightstar-001dffc5.cust.tele2.se] has quit [Ping timeout: 121 seconds]
02:40 Kindamoody [Kindamoody@Nightstar-e6fec9d0.cust.tele2.se] has joined #code
02:42 KiMo [Kindamoody@Nightstar-e6fec9d0.cust.tele2.se] has joined #code
02:47 Kindamoody [Kindamoody@Nightstar-e6fec9d0.cust.tele2.se] has quit [Client exited]
02:57 KiMo [Kindamoody@Nightstar-e6fec9d0.cust.tele2.se] has quit [Ping timeout: 121 seconds]
03:02 cpux is now known as shade_of_cpux
03:06 Kindamoody [Kindamoody@Nightstar-971e2cca.cust.tele2.se] has joined #code
03:16 shade_of_cpux [chatzilla@Nightstar-c978de34.dyn.optonline.net] has quit [[NS] Quit: ChatZilla 0.9.86 [Firefox 3.6.14/20110218125750]]
03:25 Rhamphoryncus [rhamph@C06FE3.F5723C.BE3FEB.9D4666] has joined #code
03:44
<@ToxicFrog>
Man. Collective Strategy is charmingly simple considering how powerful it is; it's basically three lines.
03:54
<@McMartin>
C; D; if (enemy.previous != "CDC+") D; else C;?
03:55
<@ToxicFrog>
Pretty much
04:06 Reivles [orthia@3CF3A5.E1CD01.36D449.95F5A5] has joined #code
04:25
< SchoolPhox>
Ffff, what a headache these interrupts are proving to be.
04:26
< SchoolPhox>
Need to trigger an interrupt when a user passes data into my board through the serial port
04:27
<@McMartin>
Interrupts are made of pain, yes
04:27
< SchoolPhox>
I'm not even certain how I can debug it. Working on a micro adds one more layer of abstraction.
04:40 KiMo [Kindamoody@Nightstar-4764665d.tbcn.telia.com] has joined #code
04:41 Kindamoody [Kindamoody@Nightstar-971e2cca.cust.tele2.se] has quit [Ping timeout: 121 seconds]
04:52
< SchoolPhox>
Ha, think I found the issue.
04:53
< SchoolPhox>
Need to manually enable the interrupr flags, which entails writing some assembly.
04:53
< SchoolPhox>
*interrupt
04:58 Reiv [orthianz@3CF3A5.E1CD01.36D449.95F5A5] has quit [Ping timeout: 121 seconds]
04:58 Reivles [orthia@3CF3A5.E1CD01.36D449.95F5A5] has quit [Ping timeout: 121 seconds]
05:03 Reiv [orthianz@3CF3A5.E1CD01.36D449.95F5A5] has joined #code
05:03 Reivles [orthia@3CF3A5.E1CD01.36D449.95F5A5] has joined #code
05:04 KiMo is now known as Kindamoody[zZz]
05:18
< SchoolPhox>
Ffffff, usart.
05:18
< SchoolPhox>
Hate them
05:18
< SchoolPhox>
I've managed to make a string of smiley-faces of alternating racial heritage. It's supposed to be the characters '1' and 'p'
05:38 SchoolPhox [NSwebIRC@FD3571.2233F7.69D3C5.BD0BDF] has quit [Ping timeout: 121 seconds]
05:54 kwsn [kwsn@Nightstar-2d125add.dyn.centurytel.net] has quit [[NS] Quit: ]
06:09
<@McMartin>
^A^B, eh?
06:19
<@Vornicus-Latens>
^(A + B) actually.
06:20
<@Vornicus-Latens>
(what are we talking about?)
06: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!]
06:44 ErikMesoy|sleep is now known as ErikMesoy
06:45 Serah [Z@3A600C.A966FF.5BF32D.8E7ABA] has quit [Ping timeout: 121 seconds]
06:50
<@McMartin>
"Challenge complete! Complete 'Nothing Works' on Danopth in 1000 or fewer cycles."
06:50
<@McMartin>
(989/4/102)
06:52
<@Vornicus-Latens>
899/4/89
06:53
<@Vornicus-Latens>
Some madmen have apparently dropped it below 600.
07:07 You're now known as TheWatcher
07:08 * McMartin notices that SpaceChem is in fact parallel Befunge Programming.
07:09 AnnoDomini [annodomini@Nightstar-9d63af01.adsl.tpnet.pl] has joined #code
07:09 mode/#code [+o AnnoDomini] by Reiver
07:13
<@Vornicus-Latens>
heh, indeed
07:14
<@Vornicus-Latens>
On the other hand it's also not turing complete. I'm pretty sure Befunge is. Actually, thinking on it, I suspect manufactoria is closer.
07:14
<@McMartin>
Not parallel though~
07:15
<@McMartin>
Manufactoria was closer to a Turing Machine controlled by a *physical* state machine.
07:17 Vornicus-Latens is now known as Vornicus
07:17
<@Vornicus>
...actually I suspect that later you get some toys that /do/ make it turing complete.
07:19
<@Vornicus>
as in you actually get branchers.
07:19
<@McMartin>
Yeah, I got to that point and then decided this game was too much like work.
07:19
<@Vornicus>
Heh
07:55 Kindamoody[zZz] is now known as Kindamoody
08:08 You're now known as TheWatcher[afk]
09:00 Tarinaky [Tarinaky@Nightstar-f349ca6d.plus.com] has joined #code
09:06
<@McMartin>
i)I
09:06
<@McMartin>
o_O even
09:06
<@McMartin>
http://i.imgur.com/ukz4P.png
09:09
< Tarinaky>
Some kind of game?
09:09
<@McMartin>
Yeah: "SpaceChem"
09:10
<@McMartin>
It is, as I noted before you arrived, basically Parallel Befunge: The Game.
09:10
<@McMartin>
Vorn and TF played more of it than I did, and someone elsenet seems to have picked up the full thing.
09:10
<@McMartin>
(Free demo on Steam, if you are Windows Inclined)
09:18
<@Vornicus>
I am vastly uncertain what I am looking at.
09:54 You're now known as TheWatcher
10:01 AnnoDomini [annodomini@Nightstar-9d63af01.adsl.tpnet.pl] has quit [[NS] Quit: leaving]
10:46 Reiv [orthianz@3CF3A5.E1CD01.36D449.95F5A5] has quit [Ping timeout: 121 seconds]
10:46 Reivles [orthia@3CF3A5.E1CD01.36D449.95F5A5] has quit [Ping timeout: 121 seconds]
10:50 Reiv [orthianz@3CF3A5.E1CD01.36D449.95F5A5] has joined #code
10:51 Reivles [orthia@3CF3A5.E1CD01.36D449.95F5A5] has joined #code
11:05 gnolam [lenin@Nightstar-38637aa0.priv.bahnhof.se] has joined #code
11:39 AnnoDomini [annodomini@Nightstar-9d63af01.adsl.tpnet.pl] has joined #code
11:39 mode/#code [+o AnnoDomini] by Reiver
12:46 Kindamoody is now known as Kindamoody|out
13:27 Stalker [Z@3A600C.A966FF.5BF32D.8E7ABA] has joined #code
14:16 Attilla [Some.Dude@Nightstar-92c9199f.cable.virginmedia.com] has joined #code
14:16 mode/#code [+o Attilla] by Reiver
14:18
<@ToxicFrog>
Vornicus: check this shit out: http://www.youtube.com/watch?v=niz3faOxnqA
14:21 * TheWatcher eyes that, O.os
14:22
<@TheWatcher>
I'm somewhat torn between vague terror, and teptation to grab th edemo just to actually work out WTF
14:22
<@TheWatcher>
*temptation
14:22 * Tamber is doing the latter. May regret it later, though.
14:39 You're now known as TheWatcher[afk]
15:07
< ErikMesoy>
SCIENCE!
15:08
< ErikMesoy>
Man, that was complicated.
15:25 Reiv [orthianz@3CF3A5.E1CD01.36D449.95F5A5] has quit [Client closed the connection]
15:26 Reiv [orthianz@3CF3A5.E1CD01.36D449.95F5A5] has joined #code
15:44 Tarinaky [Tarinaky@Nightstar-f349ca6d.plus.com] has quit [Client closed the connection]
15:49 celticminstrel [celticminstre@Nightstar-f8b608eb.cable.rogers.com] has joined #code
15:50 Tarinaky [Tarinaky@Nightstar-f349ca6d.plus.com] has joined #code
16:30 Reivles [orthia@3CF3A5.E1CD01.36D449.95F5A5] has quit [Client closed the connection]
16:30 Reivles [orthia@3CF3A5.E1CD01.36D449.95F5A5] has joined #code
16:35 Reiv [orthianz@3CF3A5.E1CD01.36D449.95F5A5] has quit [Connection reset by peer]
16:35 Reiv [orthianz@3CF3A5.E1CD01.36D449.95F5A5] has joined #code
16:45 Kindamoody|out [Kindamoody@Nightstar-4764665d.tbcn.telia.com] has quit [Ping timeout: 121 seconds]
16:48 Kindamoody|out [Kindamoody@Nightstar-4764665d.tbcn.telia.com] has joined #code
17:00 Kindamoody|out [Kindamoody@Nightstar-4764665d.tbcn.telia.com] has quit [Ping timeout: 121 seconds]
17:01 Kindamoody|out [Kindamoody@Nightstar-4764665d.tbcn.telia.com] has joined #code
17:20 You're now known as TheWatcher
18:00 AnnoDomini is now known as Ed
18:16 Rhamphoryncus [rhamph@C06FE3.F5723C.BE3FEB.9D4666] has quit [Client exited]
18:34 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!]
18:54 Tarinaky is now known as Caeldir
20:01 Kindamoody|out is now known as Kindamoody
21:06 Stalker [Z@3A600C.A966FF.5BF32D.8E7ABA] has quit [Ping timeout: 121 seconds]
21:39 Stalker [Z@5E691D.FC7C16.75EF63.CC5738] has joined #code
21:54 Stalker [Z@5E691D.FC7C16.75EF63.CC5738] has quit [Ping timeout: 121 seconds]
22:00 Stalker [Z@2C3C9C.B2A300.F245DE.859909] has joined #code
22:28 Ed is now known as AnnoDomini
22:28 Caeldir is now known as Tarinaky
22:58 celticminstrel [celticminstre@Nightstar-f8b608eb.cable.rogers.com] has joined #code
23:02 AnnoDomini [annodomini@Nightstar-9d63af01.adsl.tpnet.pl] has quit [[NS] Quit: leaving]
23:22 ErikMesoy is now known as ErikMesoy|sleep
23:39 Tarinaky [Tarinaky@Nightstar-f349ca6d.plus.com] has quit [Client closed the connection]
--- Log closed Sat Mar 12 00:00:56 2011
code logs -> 2011 -> Fri, 11 Mar 2011< code.20110310.log - code.20110312.log >