--- Log opened Mon Apr 11 00:00:27 2011 |
00:08 | | jerith [jerith@510B1D.77FBDC.BAA20B.2BB773] has joined #code |
00:09 | | jerith [jerith@510B1D.77FBDC.BAA20B.2BB773] has quit [[NS] Quit: leaving] |
00:10 | | jerith [jerith@510B1D.77FBDC.BAA20B.2BB773] has joined #code |
00:11 | | You're now known as TheWatcher[T-2] |
00:13 | | PinkFreud [WhyNot@NetworkAdministrator.Nightstar.Net] has joined #code |
00:14 | < jerith> | PinkFreud! You look like the kind of guy who needs to run around collecting magic fox tails. |
00:14 | < jerith> | http://www.pyweek.org/e/skaapsteker/ :-) |
00:16 | | You're now known as TheWatcher[zZzZ] |
01:30 | | gnolam [lenin@9D46A2.F4E9D7.E4B4CF.2072AD] has quit [[NS] Quit: Z?] |
02:40 | | SchoolPhox [NSwebIRC@FD3571.2233F7.69D3C5.BD0BDF] has joined #code |
02:41 | < SchoolPhox> | So, I've got a question. |
02:41 | < SchoolPhox> | I have a c file, and an assembly file |
02:42 | < SchoolPhox> | I need to take an address for a function in the assembly file, and use it in the c file. How do I pass it between the two files? |
02:42 | < SchoolPhox> | I figured .global would do it, in the assembly file |
02:43 | < SchoolPhox> | Would I have to redeclare it in C? |
02:43 | < SchoolPhox> | Erp, actually, think I answered my own question |
03:04 | | cpux [chatzilla@Nightstar-c978de34.dyn.optonline.net] has joined #code |
03:19 | < Vornicus> | Well don't leave us hanging, what'd you do? |
03:24 | < McMartin> | As long as you're in the same ABI, linkers shouldn't care what language you're writing in |
03:24 | < McMartin> | so any exported function definition should be "the same" as one from some C library |
03:27 | < SchoolPhox> | Hmm. Well, what I was doing was taking the address location where the function began in the assembly file, and using that in C to load into an interrupt handler. Basically, it requires that I declare it with .global in the assembly file, and then declare it as a function in the header file for the C file |
03:28 | < SchoolPhox> | Still doesn't work, but that's because I don't know anything about FIQ interrupts. |
03:28 | < McMartin> | Not sure what ".global" does in your assembler, but if that's how you make functions normally callable via a foreign interface, that oughta do it |
03:31 | < SchoolPhox> | I actually have no idea. I've been too busy with project to really look into what it is that I'm doing. There's a magic black box. I put .global into it, then shake it out onto my .c file. Somehow, this makes me get the right combination of bits. |
03:34 | < McMartin> | Heh |
03:35 | < McMartin> | Yeah, you're doing embedded, so it's not totally clear to me what things might have to be magic or specific. |
03:35 | < McMartin> | In GCC I suspect I'd be able to put in the right annotations in the .s file and then simply go &fnName in the C, assuming it was also declared in the .h |
03:35 | < SchoolPhox> | Hmm... That's about what I'm doing |
03:36 | < SchoolPhox> | I think I may even be using GCC. You're talking about the compiler? |
03:36 | < McMartin> | Yeah |
03:36 | < McMartin> | The quesiton is whether you're doing that or if you're doing what would be, in C... |
03:36 | < McMartin> | fnName() { ... } |
03:36 | < McMartin> | void (*fnNameAddress)() = &fnName; |
03:36 | < McMartin> | And then in the .h file in the "real" C... |
03:37 | < McMartin> | extern void (*fnNameAddress)(); |
03:37 | < McMartin> | Which would be one extra unnecessary step |
03:37 | < McMartin> | (Function pointer syntax used from memory and may be wrong) |
03:37 | < celticminstrel> | Nah, I'm pretty sure it's right. |
03:38 | < McMartin> | Yeah, and at worst you waste four bytes, the horror |
03:54 | < SchoolPhox> | Ugh, what an absurd little program. It normally sits in the middle of an infinite loop, until this interrupt comes along. Branching out of it, though, causes it to start alternating between the loop, and my initialization code. |
03:54 | < SchoolPhox> | *branching out of the interrupt |
04:04 | | SchoolPhox [NSwebIRC@FD3571.2233F7.69D3C5.BD0BDF] has quit [[NS] Quit: Page closed] |
04:57 | | Kindamoody is now known as Kindamoody[zZz] |
06:11 | | Stalker [Z@2C3C9C.B2A300.F245DE.859909] has quit [Ping timeout: 121 seconds] |
06:33 | | AnnoDomini [annodomini@D553D1.9D4909.31D578.F9069B] has joined #code |
06:38 | | Derakon is now known as Derakon[AFK] |
06:50 | | kwsn is now known as kwsn\t-2 |
07:07 | < Vornicus> | http://www.i-programmer.info/news/150-training-a-education/2255-sorting-algorith ms-as-dances.html I have determined that some great things... do not go great together, but it's still kind of funny. |
07:09 | | kwsn\t-2 [kwsn@Nightstar-9d744862.dyn.centurytel.net] has quit [[NS] Quit: moo] |
07:09 | | 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!] |
07:20 | | Stalker [Z@3A600C.A966FF.5BF32D.8E7ABA] has joined #code |
07:56 | | Rhamphoryncus [rhamph@C06FE3.F5723C.BE3FEB.9D4666] has joined #code |
08:50 | | You're now known as TheWatcher |
08:55 | | gnolam [lenin@Nightstar-38637aa0.priv.bahnhof.se] has joined #code |
10:03 | | AnnoDomini [annodomini@D553D1.9D4909.31D578.F9069B] has quit [[NS] Quit: leaving] |
10:12 | | Kindamoody[zZz] is now known as Kindamoody |
10:42 | | AnnoDomini [annodomini@F67919.F326B3.98D923.BDA7B6] has joined #code |
11:17 | | Stalker [Z@3A600C.A966FF.5BF32D.8E7ABA] has quit [Ping timeout: 121 seconds] |
11:50 | | AnnoDomini [annodomini@F67919.F326B3.98D923.BDA7B6] has quit [[NS] Quit: Enough. Going home.] |
12:25 | | AnnoDomini [annodomini@D553D1.9D4909.31D578.F9069B] has joined #code |
13:16 | | Kindamoody is now known as Kindamoody|out |
13:36 | | Rhamphoryncus [rhamph@C06FE3.F5723C.BE3FEB.9D4666] has quit [Client exited] |
13:41 | | Attilla [Some.Dude@37647E.0E7447.22C7B1.567421] has joined #code |
13:58 | | Stalker [Z@3A600C.A966FF.5BF32D.8E7ABA] has joined #code |
14:13 | | Stalker [Z@3A600C.A966FF.5BF32D.8E7ABA] has quit [Ping timeout: 121 seconds] |
15:26 | | * TheWatcher eyes this problem |
15:27 | < TheWatcher> | well, fuck. What I thought of as a simple fix may well have uncovered a fundamental problem in step filtering and exploded all over the place |
15:40 | | celticminstrel [celticminst@Nightstar-f8b608eb.cable.rogers.com] has joined #code |
15:52 | | Stalker [Z@26ECB6.A4B64C.298B52.D80DA0] has joined #code |
15:58 | | ErikMesoy [Erik_Mesoy@A08927.B4421D.FE7332.CF4994] has joined #code |
16:04 | < ErikMesoy> | Recently, the fan on my laptop has been more active. I installed a temperature monitor, and it reports that bits of my laptop are at 80C (170F) when idle, with core temperature listed at 65C (150C). Is there someone here who knows whether this is something to be concerned about? |
16:06 | < gnolam> | 80 C when idling does sound pretty hot. |
16:07 | < ToxicFrog> | Yeah. That's probably within tolerances, but it's hotter than it should be when idle. |
16:08 | | Kindamoody|out is now known as Kindamoody |
16:08 | < ToxicFrog> | My advice would be to take it apart and check the cooling path for obstructions; if, say, the exhaust vents are clogged with dust, the fan will end up working harder for less benefit. |
16:10 | < ErikMesoy> | Hm. Am I likely to risk damage if I attempt to remove dust by holding a vacuum cleaner in the vicinity of the exhaust port? (No direct contact so I don't accidentally create a seal.) |
16:10 | < gnolam> | Nah. |
16:12 | < ToxicFrog> | No, but IME it doesn't work all that well, either. |
16:13 | < ToxicFrog> | (I ended up having to remove the plates over the cooling path on mine and fishing wads of dust out with a pair of tweezers) |
16:13 | < ToxicFrog> | (I have no idea why the dust screen is over the exhaust vent and not the intake, thus ensuring that dust gets sucked into the fan and then builds up against the exhaust vent >.<) |
16:14 | < gnolam> | Heh. |
16:14 | < gnolam> | Someone reused a vacuum cleaner design? ;) |
16:15 | < ErikMesoy> | Well, so far core temp has dropped 5C from me holding a vacuum cleaner an inch away from the fan outlet for a minute. |
16:15 | < ErikMesoy> | Looks like it's doing *something*. |
16:17 | < gnolam> | Well, you're helping to push air through while you're vacuuming... |
16:19 | | * gnolam ponders data ownership and communication. |
16:35 | | ErikMesoy [Erik_Mesoy@A08927.B4421D.FE7332.CF4994] has quit [[NS] Quit: Trying some hardware maintenance.] |
17:25 | | ErikM [NSwebIRC@Nightstar-f7eedefa.80-203-17.nextgentel.com] has joined #code |
17:26 | < ErikM> | I am busy dismantling my laptop. The fan has about ten dependent parts that must be removed first. Two of them, the switch cover and the keyboard, appear to be interdependent. :-( |
17:29 | < ToxicFrog> | ;.; |
17:30 | < ToxicFrog> | With mine you just take out seven screws on the bottom and a plate comes away and exposes the entire cooling system. |
17:30 | < ToxicFrog> | (taking it out is much more involved, but just removing the coverplate is enough to clean it out) |
17:32 | < ErikM> | I might try that if I don't get a clue soon. So far I've been RTFMing and not wanting to diverge from script for fear of screwing up, and TFM doesn't have cleaning procedures, only removal/replacement procedures. But hey, as long as they get me access... |
17:41 | | AnnoDomini [annodomini@D553D1.9D4909.31D578.F9069B] has quit [Ping timeout: 121 seconds] |
17:43 | | AnnoDomini [annodomini@9D46A2.7F6DC0.659CB5.17465A] has joined #code |
17:48 | < ErikM> | Or not, as the plate is integrated and there are >20 screws of >5 different types that I'd have to remove along the way. ;_; |
17:49 | < ErikM> | This model comes in through the top. The fan is affixed to the bottom. |
17:51 | | Kindamoody is now known as Kindamoody|out |
17:55 | < ToxicFrog> | Sigh. |
18:00 | | * ToxicFrog ponders the replicator equation. There's something I'm missing here. |
18:01 | < ToxicFrog> | AIUI, the RI is pid = pi(Fi - Favg), where pi the proportion of the population of type i, pid is the change in pi, Fi is the fitness of i and Favg is the average fitness of the entire population. |
18:02 | < ToxicFrog> | The problem is that then we end up with stuff like: |
18:02 | < ToxicFrog> | p0 = 0.75, F0 = 1.0 |
18:02 | < ToxicFrog> | p1 = 0.25, F1 = 0.0 |
18:02 | < ToxicFrog> | Favg = 0.75 |
18:03 | < ToxicFrog> | Oh wait. |
18:04 | < ToxicFrog> | Disregard I am an idiot~ |
18:11 | | ErikM [NSwebIRC@Nightstar-f7eedefa.80-203-17.nextgentel.com] has quit [[NS] Quit: Page closed] |
18:12 | | ErikMesoy [Erik_Mesoy@A08927.B4421D.FE7332.CF4994] has joined #code |
18:12 | < ErikMesoy> | Well, at least everything worked well enough for me to reboot. |
18:21 | | * ErikMesoy also applied five minutes of vacuum cleaner to fan output port. |
18:24 | | cpux_ [chatzilla@Nightstar-c978de34.dyn.optonline.net] has joined #code |
18:25 | | cpux [chatzilla@Nightstar-c978de34.dyn.optonline.net] has quit [Ping timeout: 121 seconds] |
18:25 | | cpux_ is now known as cpux |
18:26 | < ErikMesoy> | Now the hottest bit is 67C and cores at 60C when doing web browsing (so basically semi-idling). |
19:19 | | Vornucopia [NSwebIRC@C888DE.7F9621.DD23F2.330E24] has joined #code |
19:43 | | Kindamoody|out is now known as Kindamoody |
20:13 | | stepho [NSwebIRC@94D713.BAFBC2.9516E6.4284E0] has joined #code |
20:14 | | stepho [NSwebIRC@94D713.BAFBC2.9516E6.4284E0] has left #code [""] |
21:00 | | Reiv [orthianz@3CF3A5.E1CD01.36D449.95F5A5] has quit [Ping timeout: 121 seconds] |
21:01 | | Reiv [orthianz@3CF3A5.E1CD01.36D449.95F5A5] has joined #code |
21:19 | | * Vornucopia tries tofigure out how to modify a stylesheet class. |
21:54 | | Vornucopia [NSwebIRC@C888DE.7F9621.DD23F2.330E24] has quit [[NS] Quit: Page closed] |
22:08 | | ErikMesoy is now known as ErikMesoy|sleep |
22:22 | | Derakon [chriswei@Nightstar-cfae48c3.ca.comcast.net] has joined #code |
22:22 | | * Derakon blarghs at his boss. |
22:23 | < Derakon> | He can't understand why it's not a good idea to spend half an hour before lunch working on J Random Task. |
22:23 | < Derakon> | Because I have a few dozen things on my plate and only one or two of them get progress in any given week. |
22:24 | < Derakon> | And of course he's worked with software all his life (read: he's had scientists doing coding for him) and hasn't encountered someone resistant to the idea of multitasking before, so he doesn't understand why it's a problem. |
22:34 | < Tamber> | Why in the name of all that is unholy does a pastebin have to be a shining example of "All hail the MVC!" -twitch- |
22:37 | | * gnolam patpats Derakon. |
22:38 | < Tamber> | And how do you make it down five levels in the code tree before hitting code that actually does something and not think "I /may/ be being a little silly here"? |
22:44 | < Tamber> | (Or is this normal, and I just don't understand how sane people write software?) |
22:44 | < McMartin> | No such thing as sane in software |
22:44 | < Derakon> | Once you become accustomed to MVC frameworks, you stop seeing them and focus only on the code that actually is doing things. |
22:45 | < Derakon> | In other words, a proper framework doesn't get in the way, so why not use it? It'll save you time if you find you want to expand later. |
22:45 | < McMartin> | Basically, MVC is a huge pain in the ass but if you don't use it you get screwed 17 different ways the first time you have to modify something. |
22:45 | < Derakon> | (That said if you're doing everything by hand then coding up your own MVC is overkill for a pastebin) |
22:46 | < Tamber> | They used someone else's framework, as far as I can tell. And all I wanted to do was add a checkbox! |
22:47 | < Tamber> | (It was going to be a text box, but when I saw how they constructed the form, I just got a headache and decided to make it a checkbox instead.) |
22:49 | | * gnolam is actually in MVC hell right now. |
22:50 | < gnolam> | Well, "trying to figure out a sane way to keep and communicate my data between the GUI and the model" hell, anyway. |
22:51 | < gnolam> | And seriously, the cleanest way appears to be a global in the main model module. |
23:32 | < McMartin> | Hrm. Aren't the Controller and the View ultimately accessed via globals in the normal mechanism? |
23:39 | | * Derakon debates going to the gym vs. just going home. |
23:39 | < Derakon> | (After work, that is) |
23:59 | | Derakon [chriswei@Nightstar-cfae48c3.ca.comcast.net] has quit [[NS] Quit: leaving] |
--- Log closed Tue Apr 12 00:00:41 2011 |