code logs -> 2012 -> Sun, 21 Oct 2012< code.20121020.log - code.20121022.log >
--- Log opened Sun Oct 21 00:00:00 2012
00:29
< ToxicFrog>
Oh god, thesis is so close to finished
00:31
<~Vornicus>
oh god
00:53 Attilla_ [Obsolete@Nightstar-884a309c.as43234.net] has joined #code
00:55 Attilla [Obsolete@Nightstar-2c638975.as43234.net] has quit [Ping timeout: 121 seconds]
01:20 celmin|away is now known as celticminstrel
01:30 Attilla_ is now known as Attilla
02:07 Derakon is now known as Derakon[AFK]
02:29 Derakon[AFK] is now known as Derakon
04:21 Attilla [Obsolete@Nightstar-884a309c.as43234.net] has quit [Ping timeout: 121 seconds]
04:38 Nemu [NeophoxProd@Nightstar-c1aef73c.asahi-net.or.jp] has joined #code
04:40 Nemu_ [NeophoxProd@Nightstar-36a17af1.asahi-net.or.jp] has quit [Ping timeout: 121 seconds]
06:15 Kindamoody[zZz] is now known as Kindamoody
06:22 celticminstrel [celticminst@Nightstar-05d23b97.cable.rogers.com] has quit [[NS] Quit: And lo! The computer falls into a deep sleep, to awake again some other day!]
06:51 Derakon is now known as Derakon[AFK]
07:32 ErikMesoy|sleep is now known as ErikMesoy
07:39
< AnnoDomini>
How do I wipe any local stuff I've messed around with in git?
07:39
< AnnoDomini>
I mean, I've done some adds and commits and I want to wipe that out and start anew.
07:48
< AnnoDomini>
I'm trying git reset --hard, but that brings me to like one commit ago, which is not where I started out.
07:57 Kindamoody is now known as Kindamoody|breakfast
08:14 Vash [Vash@Nightstar-3ba4108e.wlfrct.sbcglobal.net] has quit [[NS] Quit: I lovecraft Vorn!]
08:14 You're now known as TheWatcher
08:24
< AnnoDomini>
Nevermind. I figured it out.
08:24
< AnnoDomini>
Still don't know how to deal with compiling on Windows.
08:59 * Tamber cackles
09:02
<@Tamber>
(push FFFF) dup (push addr) =0 if jump drop (push 1) - (push 2) jump # Someone hit me before I start on something dangerous!
09:08 * Azash eyes the line curiously
09:09
< Azash>
ToxicFrog: YOU CAN DO IT
09:10 * Tamber is not a poisonous amphibian.
09:11
<@Tamber>
Ah well, I'll have to settle for mildly-toxic fuzzy thing.
09:23
< Azash>
No I mean TF almost being done with his thesis
09:24
<@Tamber>
Oh. Okay, then! :)
09:25 Derakon[AFK] [Derakon@Nightstar-a3b183ae.ca.comcast.net] has quit [Ping timeout: 121 seconds]
09:26 Derakon[AFK] [Derakon@Nightstar-a3b183ae.ca.comcast.net] has joined #code
09:37 Kindamoody|breakfast is now known as Kindamoody
09:52 * Tamber hammers a 'swap' between the address-push and the check for zero.
11:02 Kindamoody is now known as Kindamoody|out
11:09 syksleep is now known as Syk
11:21 You're now known as TheWatcher[afk]
12:19
< froztbyte>
Tamber: those could read like platform level instructions
12:19
< froztbyte>
platformer*
12:39 Attilla [Obsolete@Nightstar-d3d94e8b.as43234.net] has joined #code
13:51 celticminstrel [celticminst@Nightstar-05d23b97.cable.rogers.com] has joined #code
14:28 cpux [cpux@Nightstar-c5874a39.dyn.optonline.net] has quit [[NS] Quit: Well, most things get better when I kick them!]
14:36 Kindamoody|out is now known as Kindamoody
15:08 Kindamoody is now known as Kindamoody|out
15:34
< AnnoDomini>
How do I extract the command to compile a project from Code::Blocks?
15:35
< AnnoDomini>
I mean, it makes it automatically, but is there anywhere I can see it?
16:00
< Syk>
uhh
16:01
< Syk>
does it make a make file?
16:01 * Syk doesn't remember if codeblocks does...
16:01
< Syk>
that's C++ isn't it?
16:02
< AnnoDomini>
Yeah. And nevermind, I found a solution.
16:04
< iospace>
heh C++
16:04
< iospace>
i'm usinig C :P
16:05
< Syk>
well i'm using LaTeX
16:05
< Syk>
so ha
16:10
< iospace>
*using
16:10
< iospace>
Syk: but ar eyou working on a BIOS? :3
16:14
< Syk>
iospace: no, my resume
16:14
< iospace>
:P
16:15
< Syk>
iospace: are you working on a BIOS
16:15 * Syk slaps iospace preemptively
16:15
< iospace>
yes i am ^_^
16:15
< AnnoDomini>
Well, I'm not sure how much of my work is C++ rather than C. I use C++ projects by default, so I don't get tripped up by "this newfangled loop type is available only in C++" and such.
16:18
< iospace>
which loop type?
16:19
< celticminstrel>
for(int x : myarray)?
16:20
< Syk>
colour me surprised
16:21
< Syk>
gdm 3.6 is actually very nice
16:21
< Syk>
and gnome-screensaver
16:21
< rms>
In what way?
16:21
< Syk>
as in
16:21
< Syk>
the 'screensaver' bit is a background image with the time and date
16:22
< Syk>
hit enter and it slides up to show the login box
16:22
< Syk>
it looks visually slick
16:22
< Syk>
AND the best bit?
16:22
< Syk>
it DOESN'T CRASH!
16:22
< rms>
Oh, so it's pretty.
16:22
< Syk>
which gnome-screensaver 2.x always fucking did
16:22 * rms will keep his distance anyways
16:22
< Syk>
it's functionally pretty
16:24
< Syk>
however
16:25
< Syk>
rhythmbox still sucks
16:25
< Syk>
number of people surprised: 0
16:26
< rms>
Well yeah, it's GNOME. They made a design decision to start mimicing all the failures of the two big ones.
16:26
< Syk>
I dunno
16:26
< Syk>
I'm quite happy with GNOME 3.6
16:26
< rms>
Then heap on their own brand of failure to top it all.
16:26
< Syk>
3.2 was argh
16:26 * rms doesn't like GNOME much.
16:26
< Syk>
3.4 was gnome-classic only
16:26
< Syk>
but 3.6... well, it seems more mature
16:27
< Syk>
it's fast for me - which I'm surprised about, as I'm on Intel graphics
16:27
< Syk>
and with three or so tweaks, it's brilliant
16:27
< iospace>
Syk: what intel graphics are ya running?
16:27
< Syk>
iospace: Intel HD 3000
16:28
< Syk>
on mah ultrabewk
16:28
< iospace>
hdh
16:28
< iospace>
*heh
16:28
< iospace>
i have HD 4000 on Usami ^_^
16:30
< Syk>
I basically walked into the eletronics/whitegoods store across the road
16:30
< Syk>
was like LAPTOPS WHAT HAVE to my friend who works there
16:30
< Syk>
the lineup was a HP dvsomething with Nvidia, a Dell with AMD, an ASUS with AMD and this
16:31
< Syk>
it was the only Sandy Bridge out of all the Ivys that were there, IIRC
16:31
< Syk>
but, y'know
16:31
< iospace>
don't like ivy?
16:31
< Syk>
well, I would prefer ivy
16:31
< Syk>
but this was the only ultrabook
16:31
< Syk>
and everything else was 15.6", which is too big for me
16:32
< Syk>
but sandy bridge is perfectly adequate
16:32
< iospace>
:P
16:32
< Syk>
i think my 3770 is ivy
16:32
< iospace>
yes
16:32
< Syk>
3xxx is ivy?
16:32
< iospace>
that's ivy
16:32
< iospace>
3xxx is ivy
16:32
< Syk>
yeah this is like a 2476M or something
16:32
< iospace>
2xxx is sandy
16:32
< Syk>
which sounds like a Nvidia code
16:32
< Syk>
lol
16:32
< iospace>
well
16:32
< iospace>
not all 3xxx
16:33
< Syk>
Nvidia annoys me
16:33
< iospace>
Sandy Bridge-E is 3xxx too
16:33
< Syk>
because they have like
16:33
< Syk>
the 690, and 560, and etc
16:33
< Syk>
I don't remember a xx5 in the past like, ever D:
16:34
< iospace>
295
16:34
< iospace>
675m
16:34
< iospace>
:P
16:34
< iospace>
why don't you call AMD on that too!
16:34
< iospace>
actually AMD's numbering makes no sense
16:34
< Syk>
AMD just throw numbers around
16:34
< iospace>
7970 is their best card, then the 7950, 7870?
16:34
< iospace>
yeah
16:35
< Syk>
Nvidia is relatively sane
16:35
< Syk>
x80 is their top end, x90 is their dual GPU on a board
16:35
< iospace>
it used to be XY00 too :P
16:35
< Syk>
x60 is the 'good enough' for me :P
16:35
< Syk>
oh yeah
16:36
< Syk>
I had a 9800GT, then a 5770, then a 460, then a 580
16:36
< Syk>
the 5770 has made me never want to buy any AMD card ever again
16:36
< Syk>
or even associate myself with any machine with AMD graphics in it
16:36
< iospace>
i had a 5200, 5500, 8600m GT, and a 670 :P
16:36
< iospace>
how bad was it?
16:37
< iospace>
and a 580 is still pretty good
16:38
< Syk>
oh my god the 5770 was shithouse
16:38
< Syk>
>Update to latest drivers
16:38
< Syk>
>BSODs all up in yo face
16:38
< Syk>
>downgrade, finally get some stability
16:38
< Syk>
>have to download a special version, because BF:BC2 maps take literally 5 minutes to load
16:39 Attilla_ [Obsolete@Nightstar-ba06145b.as43234.net] has joined #code
16:39
< Syk>
i was like oh my god how do you /fuck up that badly/
16:39
< Syk>
my second screen would flicker because the graphics clocks would go too low
16:39
< Syk>
so I'd have to force the clocks, so making it use more power than it bloody should
16:40
< iospace>
:P
16:41
< Syk>
http://dl.dropbox.com/u/14290114/ATIcard.png
16:41
< iospace>
that and nVidia just has been slapping AMD around
16:41
< Syk>
I would also like to know how it runs hotter than my fuckin 580
16:41 Attilla [Obsolete@Nightstar-d3d94e8b.as43234.net] has quit [Ping timeout: 121 seconds]
16:42
< iospace>
my 670 runs around 55 degrees
16:42
< iospace>
but that's also with the fans at less than 50% speed
16:42
< iospace>
or well, less than 50% duty cycle
16:42
< iospace>
:P
16:42
< Syk>
the 5770 had three fans
16:42
< Syk>
it was like 90% fan
16:43
< iospace>
mine has three fans too, just that gigabyte hit the sweet spot with the speeds
16:43
< iospace>
like i can put it at 40% and it's just a quiet blowing noise
16:43
< iospace>
20% i can't hear it
16:44
< Syk>
this is like
16:44
< Syk>
60C
16:44
< Syk>
while all fans are running on high
16:44
< iospace>
Syk: AMD came out with the 7970 a couple months before the 680. the 680 came out and just blew the 7970 out of the water, and for cheaper
16:44
< Syk>
the thing was a solid block of heat
16:45
< iospace>
AMD drops prices, nVidia releases the 670, for at single screen 1920x1080 (which I run) still kicked the 7970 in the face
16:45
< iospace>
and was cheaper too
16:46
< Syk>
NVidia release the 660 Ti, Syka buys one and loves it forever
16:46
< iospace>
:P
16:46
< iospace>
i love my 670 ^_^
16:46
< Syk>
can;t the 670 be nudged to 680-speeds?
16:46
< iospace>
yup :D
16:46
< Syk>
my friend bought a 690 when I bought my 660
16:46
< iospace>
why?
16:46
< Syk>
wait no, a 680 rather
16:46
< iospace>
ok
16:47
< Syk>
he was replacing his 590
16:47
< iospace>
ah
16:47
< celticminstrel>
Is AMD different from ATI?
16:47
< iospace>
a 670 can be clocked to 680 speeds, but you have to realize that the 680 can be clocked higher
16:47
< iospace>
nope
16:47
< iospace>
ATI got bought out by AMD
16:47
< celticminstrel>
5770 is apparently what Apple uses as their low-end.
16:47
< celticminstrel>
In the Mac Pro.
16:48
< iospace>
apple can go fuck a suck
16:48
< iospace>
^_^
16:48
< iospace>
which makes me wonder
16:48
< iospace>
Syk: who do you hate more, Apple or AMD?
16:48
< Syk>
celticminstrel: isn't that their high end in the Mac Pro?
16:48
< Syk>
like... 5770 or nothing else
16:49
< celticminstrel>
High-end was 5870 I think...
16:49
< celticminstrel>
I just looked now...
16:49
< Syk>
wat
16:49
< Syk>
Apple still call AMD, ATI
16:49
< celticminstrel>
Well, it doesn't specifically say which is high and low, but the 5870 costs more, so...
16:49
< Syk>
"For even more graphics horsepower, upgrade to the ATI Radeon HD 5870 with 1GB of GDDR5 memory."
16:49
< celticminstrel>
Yup.
16:50
< Syk>
no, the 5870 is their high end
16:50
< celticminstrel>
I think the HD is significant too.
16:50
< iospace>
...
16:50
< iospace>
a 5870 as a high end
16:50
< iospace>
a two year old video card
16:50
< iospace>
as a high end
16:50
< Syk>
http://www.apple.com/macpro/features/graphics.html
16:50
< iospace>
PROGRESS PEOPLE
16:50
< Syk>
AHAHAHAHA
16:50
< iospace>
PROGRESS
16:50
< Syk>
check the graph here
16:50
< Syk>
>Nvidia GeForce 120 (previous generation)
16:50
< Syk>
vs a 5770
16:51
< Syk>
>Ancient Nvidia low-end compared to reasonably-modern AMD mid-end
16:52
< iospace>
the 120 is a bit older than a previous generation compared to the 5xxx series
16:52
< iospace>
if anything it would be the 300 series
16:52
< iospace>
oh
16:52
< iospace>
apple said that
16:52
< Syk>
yeah
16:52
< Syk>
thats the benefit of never upgrading hardware
16:52
< iospace>
yup!
16:52
< Syk>
>9999X TIMES FASTER THAN PREVIOUS GEN
16:52
< Syk>
ahaha i like the header
16:53
< Syk>
"A towering acheievement in power"
16:53
< Syk>
sure, apple
16:53
< celticminstrel>
I'm not too sure when they last upgrade their Mac Pro though.
16:53
< celticminstrel>
So it might be that it's legitimately out of date.
16:54
< Syk>
http://www.apple.com/macpro/features/processor.html
16:54
< Syk>
wat
16:54
< Syk>
the thing at the bottom
16:54
< Syk>
>8 Core 2.93GHz
16:54
< Syk>
vs >12 Core 3.06GHz
16:54
< Syk>
1.5x the cores than the previous gen... but only 1.3x performance increase
16:55
< iospace>
Syk: 2x processors
16:55
< Syk>
oh wait
16:55
< Syk>
it's a memory throughput test
16:55
< Syk>
...which... has nothing to do with processing
16:55
< Syk>
(well it does but you know)
16:56
< iospace>
:P
16:57 himi [fow035@Nightstar-5d05bada.internode.on.net] has quit [Ping timeout: 121 seconds]
16:59
< Syk>
it's like going THE NEW FORD PONTIAC
16:59
< Syk>
MUCH MORE POWERFUL ENGINE
16:59
< Syk>
HERE IS A BENCHMARK OF HOW WELL THE FUEL INJECTION SYSTEM WORKS
17:00 * Vornicus honestly is unsure how he'd be able to use 12 processors at once.
17:01
<~Vornicus>
I don't think I've ever gotten up to using all 8 on my current computer.
17:01
< iospace>
to be completely honest that's probably a computer for "graphics professionals" who do a lot of rendering
17:01
< iospace>
or scientists who go lolololapple
17:02
<~Vornicus>
(I remember hitting 6...)
17:02
< iospace>
i wonder what chipset is being used, C606?
17:02
< Syk>
Vornicus: 12 cores makes `for (( ; ; )) do; yes &; done` run so much faster
17:02
< Syk>
:D
17:03
< iospace>
:P
17:03
< iospace>
snark ass
17:03
< Syk>
i have a 3770 which is quad w/ HT
17:04
< Syk>
it makes reencoding jobs insanely fast
17:04
< iospace>
Syk: i think by "previous generation" with the vid cards they mean the previous generation of mac pros
17:04
< Syk>
iospace: yes I know
17:04
< iospace>
i have a 3570k w/o HT
17:04
< Syk>
hence why I said they have a good thing going on, rarely upgrading their kit :P
17:04
< iospace>
http://www.apple.com/imac/performance.html
17:04
< iospace>
pffft
17:04
< Syk>
because dropping out of Moore's Law for a few quarters helps
17:05
< Syk>
"Watching a movie, updating your blog, editing photos. Tasks like these require data to travel from place to place. The latest Intel Core architecture puts the processor, cache, memory controller, and graphics engine on a single chip. Since data doesn't have as far to travel, you get faster performance and greater efficiency."
17:05
< Syk>
FASTER BLOGFICCIENCY
17:05
< iospace>
what chipsets ar eyou using lady dammit
17:05
< iospace>
OMG THUNDERBOLD
17:05
< iospace>
*BOLT
17:06
< iospace>
-yawn-
17:06
< Syk>
iospace: huh, me?
17:06
< iospace>
i don't believe in a god
17:06
< iospace>
:P
17:06
< Syk>
i am confused
17:06
< celticminstrel>
What is this thunderbolt thing.
17:06
< celticminstrel>
Optical cables or something?
17:07
< iospace>
celticminstrel: it's PCIe 4x over mini displayport
17:07
< Syk>
that just sounds fuckin weird
17:07
< celticminstrel>
I have very little idea what that actually means.
17:07
< Syk>
displayport is also the shittiest cable ever
17:07
< iospace>
celticminstrel: it can reach speeds of... 10 Gbps?
17:07
< Syk>
celticminstrel: it's basically like running PCI-e over a graphics cable
17:07
< iospace>
yeah
17:07
< Syk>
they just got DisplayPort and went THIS NEEDS MORE SHIT ON IT
17:08
< iospace>
eh
17:08
< iospace>
i think they're just using the DP data lines for PCI lines
17:08
< iospace>
compared to prior 4x cables for PCIe, it's an improvement
17:08
< Syk>
also iospace
17:08
< Syk>
few weeks back
17:09
< Syk>
CEO comes into my office
17:09
< Syk>
after seeing the estimated costs for cabling up the new building
17:09
< Syk>
guess what he asks
17:09
< iospace>
what?
17:09
< Syk>
:D gues
17:09
< Syk>
s
17:09
< iospace>
what did he say Syk
17:09
<~Vornicus>
"can't we just do wireless"?
17:09
< Syk>
"Can't we just run the computers off WiFi?"
17:09
< iospace>
...
17:09
< iospace>
did you reach over and smack him?
17:09
< Syk>
I suspect he went "cables are expensive"
17:09
< iospace>
:D
17:10
<~Vornicus>
How many computers are we talking about here.
17:10
< Syk>
Vornicus: approximately 60
17:10
< celticminstrel>
Well, technically that's probably a "yes", but...
17:10
< Syk>
plus as many NEC IP phones...
17:10
<~Vornicus>
Yeah no, it's cables o'clock.
17:10
< Syk>
but
17:10
< Syk>
I don't have to care
17:10
< Syk>
I resigned on Friday, I don't have to do the building move
17:10 himi [fow035@Nightstar-5d05bada.internode.on.net] has joined #code
17:10 mode/#code [+o himi] by ChanServ
17:11
< Syk>
they scheduled our handover bit for... uh
17:11
< Syk>
we had, to do all the work
17:11
< Syk>
21st of December until about the 3rd of Jan
17:11
< Syk>
they wanted everything to work the day of 21st, and we would still have to keep things like payroll's systems running
17:11
< Syk>
whilst moving THE ENTIRE COMPANY'S INFRASTRUCTURE
17:12
< Syk>
and then have every PC on every desk and every printer and server operating the morning of the 3rd
17:12
< Syk>
oh and the best bit?
17:12
< Syk>
the data cabling is FUBAR
17:13
< Syk>
the purchase would have settled on the 1st... and due to the building being owned by the federal government, we can't even /enter it/ unsupervised
17:13
< Syk>
let alone /do any works/
17:13
< Syk>
so we would have half a month to recable 40 to 60 desks
17:14
< Syk>
and the feds are taking the server rack... and are just going to cut every cable at the rack
17:14
< Azash>
Jeez
17:14
< Syk>
because the rack was fed property
17:14
< Syk>
so may contain confidential information
17:14
< Syk>
and we were like IT'S A BIT OF METAL THAT THINGS GO IN
17:14
< Syk>
YOU CAN /TAKE THE SERVERS OUT/
17:15
< Syk>
so yes
17:15
< Syk>
thank fuck I don't have to deal with that
17:15
< Azash>
Well, wouldn't they need rack cabinets at their new place?
17:15
< Syk>
Azash: we were offering to buy them a replacement rack
17:15
< Azash>
Ah
17:15
< Syk>
just so that we had /some/ cables intact
17:16
< Syk>
but yeah
17:16
< Syk>
we were also given 4 months about the building move
17:16
< Syk>
before we had to be in it
17:16
< Syk>
Telstra takes 3 months after ordering to put in the comms we need
17:16
< Syk>
note the 'after ordering'
17:17
< Syk>
so, after quotes, quoting out the works, getting permits for the public digups to lay the cable, checking if the building has a cable or has the capacity to have a cable without internal works...
17:17 Derakon[AFK] [Derakon@Nightstar-a3b183ae.ca.comcast.net] has quit [Ping timeout: 121 seconds]
17:18 Derakon[AFK] [Derakon@Nightstar-a3b183ae.ca.comcast.net] has joined #code
17:44 Kindamoody|out is now known as Kindamoody
17:49 Syk is now known as syksleep
18:41 Derakon[AFK] is now known as Derakon
18:42 mode/#code [+ao Derakon Derakon] by ChanServ
18:47 Attilla_ [Obsolete@Nightstar-ba06145b.as43234.net] has quit [[NS] Quit: ]
18:57 Attilla [Obsolete@Nightstar-ba06145b.as43234.net] has joined #code
18:57 * ErikMesoy gets the right answer and the wrong intermediate steps. Oh boy, this is gonna be fun to debug!
19:02
< iospace>
:P
19:05
< gnolam>
ErikMesoy: Two wrongs really do make a right!
19:06
< ErikMesoy>
gnolam: but the wrongs involve 8 and 48 when they should involve 6 and 24!
19:06
< ErikMesoy>
a factor of 1.33 and a factor of 2 shouldn't cancel out
19:13 rms is now known as Vasi
20:12 Kindamoody is now known as Kindamoody[zZz]
20:26 Vash [Vash@Nightstar-3ba4108e.wlfrct.sbcglobal.net] has joined #code
20:26 mode/#code [+o Vash] by ChanServ
20:53
< ErikMesoy>
How can I get Python to open a file from a relative directory? i.e. something like open("/files/src.txt") where /files is a folder in the same folder as the .py file I am running.
20:54
< AnnoDomini>
Try "path//to//file.txt"?
20:55
<@Tamber>
Erik: wouldn't /files be a folder in the root of the drive? Whereas ./files would be the one in the same folder.
20:57
< ErikMesoy>
open("./files/src.txt") also throws error, as does ../files, and now I'm wondering if I have to import a powertool like sys or os.
21:00
< AnnoDomini>
What does "path//to//file.txt" get you??
21:00
<~Vornicus>
um
21:00
<~Vornicus>
open("files/src.txt") should work.
21:00
<&Derakon>
os.getcwd()
21:00
<~Vornicus>
oh, wait
21:00
< gnolam>
ErikMesoy: where are you running the python file from?
21:00
<~Vornicus>
you want to work from the directory the file is in?
21:00
<&Derakon>
os.path.join(os.getcwd(), 'files', 'src.txt')
21:01
<~Vornicus>
in which case der has it, i think
21:01
< ErikMesoy>
gnolam: Deeeerp, never mind me. The python file wasn't actually in the directory I thought it was. >_>
21:04
< ErikMesoy>
Now it's all working in straightforward fashion and not throwing otherwise incomprehensible errors about not finding a folder.
21:04
< ToxicFrog>
Doesn't os.getcwd() get you the working directory, not the directory of the caller's source?
21:05
< gnolam>
Indeed.
21:07
<~Vornicus>
oh right
21:09
<&Derakon>
Okay, then Google to the rescue: http://stackoverflow.com/questions/247770/retrieving-python-module-path
21:10
<~Vornicus>
sys.argv[0] contains the name of the script
21:11
< ToxicFrog>
What if it was imported, and you're trying to load a resource relative to the path of the imported library?
21:13
<~Vornicus>
module.__file__ contains the name of the absolute path the module was imported from. you can then use os.path to futz with that path.
21:14
<~Vornicus>
inside the module it's just __file__
21:28 * ErikMesoy notes he received 20 of 25 points on the midsemester programming exam. (This was the one I bitched about earlier with Things You Ought To Know and Things You Have Quick Reference/Google For.)
21:31
< AnnoDomini>
This is underwhelming, genius.
21:33
< ErikMesoy>
I'm a genius, not a syntax memorizer!
21:43
< ToxicFrog>
Hrm.
21:43
< ToxicFrog>
The 'fast' and 'release' builds are supposedly equivalent, except that 'fast' disables all forms of runtime error checking.
21:43
< ToxicFrog>
So why is 'fast' 10% slower than 'release'?
21:44
< AnnoDomini>
Errors.
21:45
<~Vornicus>
10% slower to build, or 10% slower to run?
21:45
< ToxicFrog>
The latter.
21:45
<~Vornicus>
and what language is this?
21:45
< ErikMesoy>
Dark magic.
21:46
< ToxicFrog>
1DC, a C variant with extensions for IMAP-based architectures.
21:46
< ToxicFrog>
Found it.
21:46
<~Vornicus>
What was going on?
21:47
< ToxicFrog>
'fast' changes the code size enough that the alignment of the PU DMEM array changes. This places it out of alignment for correct use by a PU, which the initialization code must compensate for.
21:47
< ToxicFrog>
In 'release', it happens to be aligned perfectly.
21:48
<~Vornicus>
wow.
21:54
< ToxicFrog>
This means that release performs some additional safety checks, but gets to skip all of the alignment-compensation code, a win of about .6 microseconds per core.
21:56 Nemu_ [NeophoxProd@Nightstar-6d5fb517.asahi-net.or.jp] has joined #code
21:57 Nemu [NeophoxProd@Nightstar-c1aef73c.asahi-net.or.jp] has quit [Ping timeout: 121 seconds]
21:58 celticminstrel [celticminst@Nightstar-05d23b97.cable.rogers.com] has quit [[NS] Quit: And lo! The computer falls into a deep sleep, to awake again some other day!]
22:01 Vasi is now known as rms
22:52 cpux [cpux@Nightstar-c5874a39.dyn.optonline.net] has joined #code
22:52 ErikMesoy is now known as ErikMesoy|sleep
23:06 Nemu_ [NeophoxProd@Nightstar-6d5fb517.asahi-net.or.jp] has quit [Client closed the connection]
23:07 Nemu [NeophoxProd@Nightstar-6d5fb517.asahi-net.or.jp] has joined #code
23:40 himi [fow035@Nightstar-5d05bada.internode.on.net] has quit [Ping timeout: 121 seconds]
--- Log closed Mon Oct 22 00:00:15 2012
code logs -> 2012 -> Sun, 21 Oct 2012< code.20121020.log - code.20121022.log >

[ Latest log file ]