code logs -> 2014 -> Sat, 19 Apr 2014< code.20140418.log - code.20140420.log >
--- Log opened Sat Apr 19 00:00:01 2014
00:04 * simon is translating a compiler benchmark written by my supervisor. this is a small part of it: https://gist.github.com/sshine/e5941d73d567eaef8fab
00:05
< simon>
this comes from perfectly readable C++ code and aims to simulate imperative loops
00:05
< simon>
but *SHEESH* this is hard to read!
00:07
< simon>
this is the first time I've ever used zipWith5 in Haskell.
00:21 Orthia [orthianz@Nightstar-3tp.juj.184.203.IP] has joined #code
00:21 mode/#code [+o Orthia] by ChanServ
01:20 Turaiel[Offline] is now known as Turaiel
01:33 Derakon[AFK2] is now known as Derakon
01:33 dom|swimming [domtron@Nightstar-t9evsj.sub-174-237-1.myvzw.com] has joined #code
01:38 domtron_ [domtron@Nightstar-t9evsj.sub-174-237-1.myvzw.com] has joined #code
01:41 dom|swimming [domtron@Nightstar-t9evsj.sub-174-237-1.myvzw.com] has quit [Ping timeout: 121 seconds]
01:46 domtron_ [domtron@Nightstar-t9evsj.sub-174-237-1.myvzw.com] has quit [Connection closed]
01:47 domtron [domtron@Nightstar-t9evsj.sub-174-237-1.myvzw.com] has joined #code
02:01 domtron [domtron@Nightstar-t9evsj.sub-174-237-1.myvzw.com] has quit [Connection closed]
02:02 domtron [domtron@Nightstar-t9evsj.sub-174-237-1.myvzw.com] has joined #code
02:22 domtron [domtron@Nightstar-t9evsj.sub-174-237-1.myvzw.com] has quit [Connection closed]
02:22 domtron [domtron@Nightstar-t9evsj.sub-174-237-1.myvzw.com] has joined #code
02:28 domtron [domtron@Nightstar-t9evsj.sub-174-237-1.myvzw.com] has quit [Connection closed]
02:32 himi [fow035@Nightstar-v37cpe.internode.on.net] has quit [Ping timeout: 121 seconds]
02:44 himi [fow035@Nightstar-v37cpe.internode.on.net] has joined #code
02:44 mode/#code [+o himi] by ChanServ
02:56 domtron [domtron@Nightstar-t9evsj.sub-174-237-1.myvzw.com] has joined #code
02:56 domtron [domtron@Nightstar-t9evsj.sub-174-237-1.myvzw.com] has quit [Connection closed]
03:20 Turaiel is now known as Turaiel[Offline]
03:22
<@celticminstrel>
Why is there no error when I declare something in two files (one extern) with different types. ><
03:22
<@celticminstrel>
It should be a linker error or something!
03:23
<@celticminstrel>
In this case I had it declared as T in one file and boost::optional<T> in the other.
03:24
<@celticminstrel>
Sorry, array of such.
03:29 Syloq [Syloq@NetworkAdministrator.Nightstar.Net] has quit [Ping timeout: 121 seconds]
03:39 Syloq [Syloq@Nightstar-mbk.c3p.254.173.IP] has joined #code
03:39 mode/#code [+o Syloq] by ChanServ
03:44 himi [fow035@Nightstar-v37cpe.internode.on.net] has quit [Ping timeout: 121 seconds]
03:57 himi [fow035@Nightstar-v37cpe.internode.on.net] has joined #code
03:57 mode/#code [+o himi] by ChanServ
04:04 Kindamoody[zZz] is now known as Kindamoody
04:34 Alek [omegaboot@Nightstar-qa936g.il.comcast.net] has quit [[NS] Quit: brb]
04:37 Alek [omegaboot@Nightstar-qa936g.il.comcast.net] has joined #code
04:37 mode/#code [+o Alek] by ChanServ
05:00 VirusJTG [VirusJTG@Nightstar-6i5vf7.sta.comporium.net] has quit [[NS] Quit: Program Shutting down]
05:02 himi [fow035@Nightstar-v37cpe.internode.on.net] has quit [Ping timeout: 121 seconds]
05:15 himi [fow035@Nightstar-v37cpe.internode.on.net] has joined #code
05:15 mode/#code [+o himi] by ChanServ
05:35 RchrdB [RichardB@Nightstar-c6u.vd5.170.83.IP] has quit [[NS] Quit: Gone.]
05:39 RchrdB [RichardB@Nightstar-c6u.vd5.170.83.IP] has joined #code
06:10 Turaiel[Offline] is now known as Turaiel
06:15 himi [fow035@Nightstar-v37cpe.internode.on.net] has quit [Ping timeout: 121 seconds]
06:29 himi [fow035@Nightstar-v37cpe.internode.on.net] has joined #code
06:29 mode/#code [+o himi] by ChanServ
06:57 * McMartin eyes this code, which is Crazy Town.
07:01 * McMartin breaks out the timing diagrams
07:01
<&McMartin>
That's right, it's time to CYCLE COUNT
07:02
<~Vornicus>
Crazytown indeed
07:04 celticminstrel [celticminst@Nightstar-57p13c.dsl.bell.ca] has quit [[NS] Quit: And lo! The computer falls into a deep sleep, to awake again some other day!]
07:10
<&McMartin>
Success!
07:10
<~Vornicus>
McM is mayor of crazytown!
07:12
<&McMartin>
https://hkn.eecs.berkeley.edu/~mcmartin/retro/crazytown.png
07:12
<&McMartin>
I have to wait thirteen cycles after the interrupt fires before I can safely change things about the screen.
07:13
<~Vornicus>
Nice.
07:14
<&McMartin>
Possibly 15
07:14
<&McMartin>
Counting is hard~
07:23 himi [fow035@Nightstar-v37cpe.internode.on.net] has quit [Ping timeout: 121 seconds]
07:36 himi [fow035@Nightstar-v37cpe.internode.on.net] has joined #code
07:37 mode/#code [+o himi] by ChanServ
07:40 Kindamoody is now known as Kindamoody|afk
07:48
<&McMartin>
Some code from my investigations:
07:48
<&McMartin>
nop
07:48
<&McMartin>
nop:nop:nop:nop:nop:nop:nop:nop:nop:nop
07:48
<&McMartin>
;; fuckit aaaaaaaaaaaaa
07:49
<&McMartin>
( http://img.pandawhale.com/82387-badger-NOPE-fuck-it-gif-Imgur-
07:50
<&McMartin>
( http://img.pandawhale.com/82387-badger-NOPE-fuck-it-gif-Imgur-oKpf.gif )
07:50
<&McMartin>
There we go
07:52
<~Vornicus>
access denied!
07:53
<&McMartin>
Huh, if I paste it breaks, but http://img.pandawhale.com/82387-badger-NOPE-fuck-it-gif-Imgur-oKPf.gif works fine
08:18 Turaiel is now known as Turaiel[Offline]
08:23 Syloq [Syloq@NetworkAdministrator.Nightstar.Net] has quit [Operation timed out]
08:26 macdjord [macdjord@Nightstar-c0i1dq.cable.rogers.com] has joined #code
08:26 mode/#code [+o macdjord] by ChanServ
08:42 macdjord [macdjord@Nightstar-c0i1dq.cable.rogers.com] has quit [Connection reset by peer]
08:43 macdjord [macdjord@Nightstar-c0i1dq.cable.rogers.com] has joined #code
08:43 mode/#code [+o macdjord] by ChanServ
09:02 thalass [thalass@Nightstar-s6dmeo.bigpond.net.au] has joined #code
09:02 mode/#code [+o thalass] by ChanServ
09:20 himi [fow035@Nightstar-v37cpe.internode.on.net] has quit [Ping timeout: 121 seconds]
09:33 himi [fow035@Nightstar-v37cpe.internode.on.net] has joined #code
09:33 mode/#code [+o himi] by ChanServ
10:28
<@Tarinaky>
http://gfycat.com/FastScornfulBalloonfish << Born to be Kerbal? Kerbal to be Wild?
10:30
< simon>
heh
10:35
< froztbyte>
<McMartin> Huh, if I paste it breaks, but http://img.pandawhale.com/82387-badger-NOPE-fuck-it-gif-Imgur-oKPf.gif works fine
10:35
< froztbyte>
probably referral header stuff
10:35
< froztbyte>
some people do some weird stuff with content access
10:36
< froztbyte>
although offhand I don't recall if S3 allows that
10:40 himi [fow035@Nightstar-v37cpe.internode.on.net] has quit [Ping timeout: 121 seconds]
10:53 himi [fow035@Nightstar-v37cpe.internode.on.net] has joined #code
10:53 mode/#code [+o himi] by ChanServ
11:30 JackKnife [Z@Nightstar-484uip.cust.comxnet.dk] has joined #code
11:30 mode/#code [+o JackKnife] by ChanServ
11:42 himi [fow035@Nightstar-v37cpe.internode.on.net] has quit [Ping timeout: 121 seconds]
11:45 VirusJTG [VirusJTG@Nightstar-6i5vf7.sta.comporium.net] has joined #code
11:54 himi [fow035@Nightstar-v37cpe.internode.on.net] has joined #code
11:54 mode/#code [+o himi] by ChanServ
12:07 ErikMesoy [Erik@Nightstar-t5i7tl.80-203-18.nextgentel.com] has quit [[NS] Quit: Leaving.]
12:13 ErikMesoy [Erik@Nightstar-t5i7tl.80-203-18.nextgentel.com] has joined #code
12:13 mode/#code [+o ErikMesoy] by ChanServ
12:47 thalass_ [thalass@Nightstar-s6dmeo.bigpond.net.au] has joined #code
13:00 himi [fow035@Nightstar-v37cpe.internode.on.net] has quit [Ping timeout: 121 seconds]
13:13 himi [fow035@Nightstar-v37cpe.internode.on.net] has joined #code
13:13 mode/#code [+o himi] by ChanServ
13:14 Vornicus [Vorn@ServerAdministrator.Nightstar.Net] has quit [[NS] Quit: Leaving]
13:22 Syloq [Syloq@Nightstar-mbk.c3p.254.173.IP] has joined #code
13:22 mode/#code [+o Syloq] by ChanServ
13:46 celticminstrel [celticminst@Nightstar-57p13c.dsl.bell.ca] has joined #code
13:46 mode/#code [+o celticminstrel] by ChanServ
13:47 himi [fow035@Nightstar-v37cpe.internode.on.net] has quit [Ping timeout: 121 seconds]
13:58
<@AnnoDomini>
http://www.dangermouse.net/gurps/science/temps.html <- Does anyone know how to determine planetary temperatures in systems with multiple stars?
14:01 himi [fow035@Nightstar-v37cpe.internode.on.net] has joined #code
14:01 mode/#code [+o himi] by ChanServ
14:03 domtron [domtron@Nightstar-mpsjoq.sub-174-237-35.myvzw.com] has joined #code
14:07
<@ErikMesoy>
Surely you just extend that equation to have the planet absorb radiation from two stars?
14:10 thalass_ [thalass@Nightstar-s6dmeo.bigpond.net.au] has quit [[NS] Quit: g'night!]
14:11
<@Tarinaky>
Basically you have two terms of incident radiation, one for each star.
14:12
<@Tarinaky>
Noting that the distance between one of the stars will vary considerably - since it'll be orbiting the main star at considerable distance (otherwise gravity isn't stable enough for the formation of planets~)
14:12 thalass [thalass@Nightstar-s6dmeo.bigpond.net.au] has quit [[NS] Quit: Leaving]
14:12
<@Tarinaky>
I should drop the word considerably, since this is astronomy that's a given.
14:15
<@ErikMesoy>
It might be a binary star system with two stars of very similar size orbiting one another closely and the planet being far out.
14:18 Orthia [orthianz@Nightstar-3tp.juj.184.203.IP] has quit [Ping timeout: 121 seconds]
14:20 domtron [domtron@Nightstar-mpsjoq.sub-174-237-35.myvzw.com] has quit [Connection closed]
14:21 domtron [domtron@Nightstar-mpsjoq.sub-174-237-35.myvzw.com] has joined #code
14:32 Orthia [orthianz@Nightstar-3tp.juj.184.203.IP] has joined #code
14:32 mode/#code [+o Orthia] by ChanServ
14:41 domtron [domtron@Nightstar-mpsjoq.sub-174-237-35.myvzw.com] has quit [Connection closed]
14:45 domtron [domtron@Nightstar-mpsjoq.sub-174-237-35.myvzw.com] has joined #code
15:08 domtron [domtron@Nightstar-mpsjoq.sub-174-237-35.myvzw.com] has quit [Connection closed]
15:10 Turaiel[Offline] is now known as Turaiel
15:13 domtron [domtron@Nightstar-mpsjoq.sub-174-237-35.myvzw.com] has joined #code
15:20 Derakon_ [Derakon@Nightstar-5fqf0m.ca.comcast.net] has joined #code
15:21 Derakon [Derakon@Nightstar-5fqf0m.ca.comcast.net] has quit [Operation timed out]
15:25 himi [fow035@Nightstar-v37cpe.internode.on.net] has quit [Ping timeout: 121 seconds]
15:32
<@Tarinaky>
ErikMesoy: iirc, for that to work, the stars would have to be /exactly/ matched for mass (not just closely). Which seems incredibly unlikely.
15:35
<@AnnoDomini>
Does internal heating affect surface temperature much?
15:35
<@ErikMesoy>
Tarinaky: I'm thinking this. http://en.wikipedia.org/wiki/File:Orbit2.gif
15:36
<@Tarinaky>
ErikMesoy: iirc there's /something/ in modern cosmology that says you're very unlikely to have atmosphere baring planets with that set-up.
15:37
<@Tarinaky>
I think because the further away you are from a star the less massive the objects that form are, and the less likely they are to go from planetoid to planet.
15:37
<@Tarinaky>
But I Am Not An Exoplanetary Astronomer
15:38
<@AnnoDomini>
I recall there being several planets found in multiple systems recently.
15:38
<@AnnoDomini>
All of them gas giants, of course.
15:39 himi [fow035@Nightstar-v37cpe.internode.on.net] has joined #code
15:39 mode/#code [+o himi] by ChanServ
15:40
<@AnnoDomini>
There's even one that the discoverers nicknamed Tatooine, because it orbits a binary like ErikMesoy linked.
15:40
<@Tarinaky>
Plus binary stars that're close together have shorter lifespans (candle at both ends~) because the dominant star will siphon stellar matter off the other until supernova occurs.
15:40
<@Tarinaky>
Okay.
15:40
<@Tarinaky>
Ignore me.
15:40
<@AnnoDomini>
Not necessarily. It depends how close in relation to their Roche limit they are.
15:41
<@AnnoDomini>
If under, it will happen as you say.
15:41
<@AnnoDomini>
If over, then they have a much longer lifespan.
15:41
<@celticminstrel>
There are hundreds or thousands of known exoplanets. Not just several.
15:42
<@celticminstrel>
And not all of them gas giants, either.
15:42
<@celticminstrel>
Some are rocky and estimated to be about twice the size (or was it radius) of Earth.
15:42
<@Tarinaky>
Terrestrial exoplanets are new enough that popular science hasn't caught up yet :P
15:43
<@celticminstrel>
Heh.
15:43
<@celticminstrel>
Maybe.
15:43
<@celticminstrel>
Anyway, leaving.
15:43 celticminstrel [celticminst@Nightstar-57p13c.dsl.bell.ca] has quit [[NS] Quit: And lo! The computer falls into a deep sleep, to awake again some other day!]
16:12 himi [fow035@Nightstar-v37cpe.internode.on.net] has quit [Ping timeout: 121 seconds]
16:15 domtron [domtron@Nightstar-mpsjoq.sub-174-237-35.myvzw.com] has quit [Ping timeout: 121 seconds]
16:16 JackKnife [Z@Nightstar-484uip.cust.comxnet.dk] has quit [[NS] Quit: If the world didn't suck, we'd all fall off.]
16:16
<@Tarinaky>
Preview of the next version of KSP! https://www.youtube.com/watch?v=itrfdpD3uv4
16:24 himi [fow035@Nightstar-v37cpe.internode.on.net] has joined #code
16:24 mode/#code [+o himi] by ChanServ
16:30 domtron [domtron@Nightstar-foj933.sub-174-252-144.myvzw.com] has joined #code
16:49 domtron [domtron@Nightstar-foj933.sub-174-252-144.myvzw.com] has quit [Connection closed]
16:51 domtron [domtron@Nightstar-foj933.sub-174-252-144.myvzw.com] has joined #code
16:58 Turaiel is now known as Turaiel[Offline]
16:59 JackKnife [Z@Nightstar-ro94ms.balk.dk] has joined #code
16:59 mode/#code [+o JackKnife] by ChanServ
17:34
<@ErikMesoy>
AnnoDomini: My father has recently been cleaning house and is throwing out some books. I get to call dibs before they go into the trash, he thought you might be interested too. The books include programming manuals for C++, Lisp, Windows, and Prolog. Do you think you might want anything?
17:39 domtron [domtron@Nightstar-foj933.sub-174-252-144.myvzw.com] has quit [Connection closed]
17:41 domtron [domtron@Nightstar-foj933.sub-174-252-144.myvzw.com] has joined #code
17:52
<@AnnoDomini>
ErikMesoy: Yes.
18:10 domtron [domtron@Nightstar-foj933.sub-174-252-144.myvzw.com] has quit [Connection closed]
18:11 domtron [domtron@Nightstar-foj933.sub-174-252-144.myvzw.com] has joined #code
18:24 Derakon_ is now known as Derakon
18:24 mode/#code [+ao Derakon Derakon] by ChanServ
18:32 domtron [domtron@Nightstar-foj933.sub-174-252-144.myvzw.com] has quit [Ping timeout: 121 seconds]
18:33 domtron [domtron@Nightstar-foj933.sub-174-252-144.myvzw.com] has joined #code
18:49 celticminstrel [celticminst@Nightstar-57p13c.dsl.bell.ca] has joined #code
18:49 mode/#code [+o celticminstrel] by ChanServ
18:56 ErikMesoy is now known as Bastard
18:56 [R] is now known as DurNad
19:21 domtron [domtron@Nightstar-foj933.sub-174-252-144.myvzw.com] has quit [Connection closed]
19:30
<@celticminstrel>
"out << streambuf" doesn't perform any formatting, right?
19:31
< DurNad>
If you didn't tell it to, it shouldn't
19:31
<@celticminstrel>
Well, generally << performs formatting.
19:31
<@celticminstrel>
It's what it's for.
19:31
<@celticminstrel>
Normally you use .write() if you don't want formatting, but I think <<streambuf might be an exception to that.
19:33 domtron [domtron@Nightstar-foj933.sub-174-252-144.myvzw.com] has joined #code
19:45
<@celticminstrel>
What are the chances of strnlen existing on Windows?
19:49
<@celticminstrel>
Wait, I need to convert the string to integer, not find its length. Never mind.
21:25
<&McMartin>
celticminstrel: If you're using MinGW you have all the things right there; if you're using MSVC, POSIX-y stuff often has extra underscores involved and a few families of things
21:25
<&McMartin>
googling function names with "msdn" added often gives good official docs on that stuff
21:26 Kindamoody|afk is now known as Kindamoody
21:27
<@celticminstrel>
I'll remember that.
21:28
<@celticminstrel>
This is far from being ready to compile for Windows, but I'm trying to keep it in mind as I write stuff (this is part of the reason I told clang to compile as "c++11" instead of "gnu++11").
21:28 * McMartin nods
21:29
<&McMartin>
MS cares a lot more about being standard in C++ than C, so if you're using MSVS2012 or later necessary changes should be minimal
21:29 domtron [domtron@Nightstar-foj933.sub-174-252-144.myvzw.com] has quit [Connection closed]
21:29
<&McMartin>
And basically at what I usually call the "man 2" layer
21:29
<@celticminstrel>
"man 2 layer"?
21:29
<&McMartin>
You know how man pages have chapters?
21:29
<@celticminstrel>
Kind of?
21:29
<&McMartin>
stuff like fopen is in chapter 3 and so it gets marked fopen(3)
21:30
<&McMartin>
stuff like creat and open and unlink is in chapter 2
21:30 domtron [domtron@Nightstar-foj933.sub-174-252-144.myvzw.com] has joined #code
21:30
<&McMartin>
Basically, C++ stdlib will be handled but if you ever drop down to actual POSIX system calls, Windows *probably* doesn't have them
21:31
<&McMartin>
So you'd be using CreateFileW and SetFileDisposition and such instead.
21:31 mode/#code [+o RchrdB] by ChanServ
21:32
<@Tamber>
https://github.com/TamberP/Klompen/commit/b39fed3214f624322801f736335ce1417ff89e 82 *sigh* I've only just gone and fixed something that's been an issue for about... a year or so, that I couldn't figure out.
21:32
<&McMartin>
(Windows has a simple POSIX compatibility layer for the absolute basics but it's not good for much. If you need Windows to behave like POSIX, Cygwin is the way to go)
21:32
<@Tamber>
Apparently, trying to code at OhGodWhy o'clock, on excessive amounts of caffiene, renders you fucktionally braindead; who knew!
21:32
<&McMartin>
(If you just need the C standard library, though, MinGW will be fine and produce more Windows-y binaries)
21:32
<@celticminstrel>
I don't think I need it to behave like POSIX? I'm not using POSIX stuff, anyway.
21:32
<&McMartin>
Tamber: A SHOCK!
21:32
<&McMartin>
celticminstrel: Yeah, OpenGL is well-supported
21:33
<@celticminstrel>
Or if I am using it somewhere, it'd be in the platform-dependent sections and thus be replaced for the Windows codebase.
21:33
<&McMartin>
Though raw GLX isn't available, I assume you're using a wrapper, yea
21:33
<&McMartin>
h
21:33
<@celticminstrel>
I dunno what "raw GLX" means. I'm using a wrapper library, but I'm also calling some gl* stuff.
21:33
<@celticminstrel>
I still have some CoreFoundation stuff that I need to get rid of or isolate.
21:34
<&McMartin>
Oh
21:34
<&McMartin>
AGL
21:34
<@celticminstrel>
?
21:34
<&McMartin>
GLX/AGL/WGL'
21:34
<@celticminstrel>
Uh...?
21:34
<&McMartin>
Those are the libraries that talk to the windowing system, and are next to but not strictly part of OpenGL
21:34
<@celticminstrel>
Ah.
21:35
<&McMartin>
They're all super-platform dependent, as you'd expect
21:35
<@celticminstrel>
Yeah, my only GL include is GL.h.
21:35
<&McMartin>
Yeah, you'll be fine
21:36
<@celticminstrel>
Though I did put a conditional around it since Apple puts it in a different place than every other platform. 9_9
21:38 domtron [domtron@Nightstar-foj933.sub-174-252-144.myvzw.com] has quit [Connection closed]
21:48 Kindamoody is now known as Kindamoody[zZz]
21:54 domtron [domtron@Nightstar-foj933.sub-174-252-144.myvzw.com] has joined #code
21:54 DurNad is now known as [R]
21:55 Bastard is now known as ErikMesoy
22:23 domtron [domtron@Nightstar-foj933.sub-174-252-144.myvzw.com] has quit [Connection closed]
22:23 HotShot[ipad] [HotShot@Nightstar-v7se27.try.wideopenwest.com] has joined #code
22:25 domtron [domtron@Nightstar-foj933.sub-174-252-144.myvzw.com] has joined #code
22:28 Vornicus [Vorn@ServerAdministrator.Nightstar.Net] has joined #code
22:28 mode/#code [+qo Vornicus Vornicus] by ChanServ
22:39 HotShot[ipad] [HotShot@Nightstar-v7se27.try.wideopenwest.com] has quit [Connection closed]
22:46 HotShot[ipad] [HotShot@Nightstar-v7se27.try.wideopenwest.com] has joined #code
23:04 domtron [domtron@Nightstar-foj933.sub-174-252-144.myvzw.com] has quit [Ping timeout: 121 seconds]
23:12 domtron [domtron@Nightstar-foj933.sub-174-252-144.myvzw.com] has joined #code
23:19 domtron [domtron@Nightstar-foj933.sub-174-252-144.myvzw.com] has quit [[NS] Quit: Leaving]
23:29
<&McMartin>
Oh hey, after upgrading to Trusty, my Linux lappy now mysteriously supports OpenGL 3.3
23:30
<&McMartin>
That means I can probably actually run that old Modern OpenGL Programming tutorial if I want to now \o/
--- Log closed Sun Apr 20 00:00:17 2014
code logs -> 2014 -> Sat, 19 Apr 2014< code.20140418.log - code.20140420.log >

[ Latest log file ]