code logs -> 2015 -> Tue, 14 Jul 2015< code.20150713.log - code.20150715.log >
--- Log opened Tue Jul 14 00:00:39 2015
00:20 Vornicus [Vorn@ServerAdministrator.Nightstar.Net] has joined #code
00:20 mode/#code [+qo Vornicus Vornicus] by ChanServ
00:35 Derakon[AFK] is now known as Derakon
01:28 himi [fow035@Nightstar-dm0.2ni.203.150.IP] has joined #code
01:28 mode/#code [+o himi] by ChanServ
01:38 Vash [Vash@Nightstar-uhn82m.ct.comcast.net] has joined #code
01:38 mode/#code [+o Vash] by ChanServ
02:21 VirusJTG [VirusJTG@Nightstar-6i5vf7.sta.comporium.net] has quit [Connection closed]
02:22 turaiel_ [32f5756e@Nightstar-d81bfg.mibbit.com] has joined #code
02:41 VirusJTG [VirusJTG@Nightstar-6i5vf7.sta.comporium.net] has joined #code
03:11 Vash [Vash@Nightstar-uhn82m.ct.comcast.net] has quit [[NS] Quit: Quit]
03:15 turaiel_ [32f5756e@Nightstar-d81bfg.mibbit.com] has quit [[NS] Quit: http://www.mibbit.com ajax IRC Client]
03:38 catadroid [catalyst@Nightstar-hvbafa.dab.02.net] has joined #code
03:41 catadroid` [catalyst@Nightstar-votnko.dab.02.net] has quit [Ping timeout: 121 seconds]
04:22 catadroid [catalyst@Nightstar-hvbafa.dab.02.net] has quit [Connection closed]
04:22 catadroid [catalyst@Nightstar-hvbafa.dab.02.net] has joined #code
04:33 Vornicus [Vorn@ServerAdministrator.Nightstar.Net] has quit [Connection closed]
05:07 Derakon is now known as Derakon[AFK]
05:25 Meatyhandbag [sebastianfe@Nightstar-eud.amv.73.97.IP] has quit [Client exited]
05:26 Meatyhandbag [sebastianfe@Nightstar-eud.amv.73.97.IP] has joined #code
05:34 Meatyhandbag [sebastianfe@Nightstar-eud.amv.73.97.IP] has quit [Client exited]
05:48 thalass [thalass@Nightstar-m49.o7s.158.104.IP] has quit [Operation timed out]
06:08 Checkmate [Z@Nightstar-r9lk5l.cust.comxnet.dk] has joined #code
06:08 mode/#code [+o Checkmate] by ChanServ
06:32 iwata-san [noob@Nightstar-7k9t85.fios.verizon.net] has joined #code
07:02 Kindamoody[zZz] is now known as Kindamoody
08:19 mac [macdjord@Nightstar-r9vt2h.mc.videotron.ca] has joined #code
08:19 mode/#code [+o mac] by ChanServ
08:22 macdjord|slep [macdjord@Nightstar-r9vt2h.mc.videotron.ca] has quit [Ping timeout: 121 seconds]
08:29 VirusJTG [VirusJTG@Nightstar-6i5vf7.sta.comporium.net] has quit [Connection closed]
08:32 himi [fow035@Nightstar-dm0.2ni.203.150.IP] has quit [Ping timeout: 121 seconds]
09:20 Kindamoody is now known as Kindamoody|afk
10:08 catadroid` [catalyst@Nightstar-ve8ou2.dab.02.net] has joined #code
10:12 catadroid [catalyst@Nightstar-hvbafa.dab.02.net] has quit [Ping timeout: 121 seconds]
10:44 VirusJTG [VirusJTG@Nightstar-6i5vf7.sta.comporium.net] has joined #code
10:50 himi [fow035@Nightstar-v37cpe.internode.on.net] has joined #code
10:50 mode/#code [+o himi] by ChanServ
10:56 catadroid` is now known as catadroid
11:19 mac [macdjord@Nightstar-r9vt2h.mc.videotron.ca] has quit [Ping timeout: 121 seconds]
11:24 mac [macdjord@Nightstar-r9vt2h.mc.videotron.ca] has joined #code
11:24 mode/#code [+o mac] by ChanServ
12:21
< catadroid>
I am a wizard
12:21
< catadroid>
a reckless reckless wizard
12:22
< catadroid>
*(reinterpret_cast<void**>(thing));
12:22
< catadroid>
is something I am now using
12:23 * TheWatcher edges away
12:23
< catadroid>
:D
12:23
< catadroid>
don't come near me I'm quite pointed
12:25
<@TheWatcher>
I'm hoping this is for intereacting with opaque types in an API or something?
12:26
< catadroid>
yeah, types effectively built from external reflection since C++ lacks it naively
12:26
< catadroid>
natively*
12:26 * TheWatcher nod
12:26
< catadroid>
I suppose naively works too
12:27
<@TheWatcher>
Okay, I can put the pitchfork and torch away then~
12:27
< catadroid>
:)
12:29
<@TheWatcher>
(There's one codebase I've had to work with where the author seemed to thing that reinterpret_cast should be used wherever possible and that static_cast is for wimps. The resulting raeg was epic..)
12:47 Meatyhandbag [sebastianfe@Nightstar-d6h.cq4.73.97.IP] has joined #code
12:52
< catadroid>
...
12:52
< catadroid>
reinterpret_cast is the devil and must only be used as a last resort
12:54
< Wizard>
catadroid: Please
12:54
< Wizard>
Also reinterpret_cast is best
12:54
< Wizard>
It's called job security
12:58
<@TheWatcher>
catadroid: yeah. After I'd gone through, refactoring and rewriting, there were no reinterpret_casts in there; not a single one was needed.
13:02 * catadroid big thumbs up
13:25 * ToxicFrog plies catadroid with candied sexprs
13:29
< catadroid>
mmm
13:29 * catadroid calls ToxicFrog and returns some time hence
14:49 thalass [thalass@Nightstar-m49.o7s.158.104.IP] has joined #code
14:49 mode/#code [+o thalass] by ChanServ
16:26 catadroid` [catalyst@Nightstar-ve8ou2.dab.02.net] has joined #code
16:26 catadroid [catalyst@Nightstar-ve8ou2.dab.02.net] has quit [A TLS packet with unexpected length was received.]
16:38 catadroid [catalyst@Nightstar-vs7i4u.dab.02.net] has joined #code
16:40 catadroid` [catalyst@Nightstar-ve8ou2.dab.02.net] has quit [Ping timeout: 121 seconds]
16:46 kourbou [kourbou@Nightstar-deqg8j.fbx.proxad.net] has joined #code
17:08 gizmore [kvirc@Nightstar-fup8ar.dip0.t-ipconnect.de] has joined #code
18:21 Netsplit *.net <-> *.split quits: @jerith, kourbou, @Orthia, catadroid, @iospace, @thalass, @Kindamoody|afk, @McMartin, iwata-san, Xires, (+8 more, use /NETSPLIT to show all of them)
18:22 Netsplit over, joins: &Reiver, VirusJTG, @Orthia, &ToxicFrog, @mac, @thalass, catadroid, starkruzr, @Kindamoody|afk, kourbou (+4 more)
18:22 kourbou [kourbou@Nightstar-deqg8j.fbx.proxad.net] has quit [[NS] Quit: To Simmml: If I hate you it's because I don't like the way you're numbing the pain with alcohol and drugs, instead of actually working to make it better.]
19:01 McMartin [mcmartin@Nightstar-rpcdbf.sntcca.sbcglobal.net] has joined #code
19:01 mode/#code [+ao McMartin McMartin] by ChanServ
19:03 jerith [jerith@Nightstar-ip7ar2.slipgate.net] has joined #code
19:03 223AAAVWE [jjlehto3@Nightstar-16qmfh.org.aalto.fi] has joined #code
19:03 mode/#code [+ao jerith jerith] by ChanServ
19:03 catalyst [catalyst@Nightstar-bt5k4h.81.in-addr.arpa] has joined #code
19:04 catadroid [catalyst@Nightstar-vs7i4u.dab.02.net] has quit [[NS] Quit: Bye]
19:08 iospace [Alexandria@Nightstar-fkokc2.com] has joined #code
19:08 mode/#code [+o iospace] by ChanServ
20:08 gizmore [kvirc@Nightstar-fup8ar.dip0.t-ipconnect.de] has quit [[NS] Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
20:12 Checkmate [Z@Nightstar-r9lk5l.cust.comxnet.dk] has quit [Ping timeout: 121 seconds]
20:15 Kindamoody|afk is now known as Kindamoody
20:39 mac [macdjord@Nightstar-r9vt2h.mc.videotron.ca] has quit [Ping timeout: 121 seconds]
20:46 macdjord [macdjord@Nightstar-r9vt2h.mc.videotron.ca] has joined #code
20:46 mode/#code [+o macdjord] by ChanServ
20:52
<&McMartin>
I got to do some awesome reflectiony stuff but instead of abusing reinterpret_cast I abused templates.
20:52
<&McMartin>
I'm not sure that was the sane move, truth be told
20:53
<&McMartin>
There are certain kinds of polymorphism it disallows
20:54 Turaiel [Brandon@Nightstar-8lr.ml4.192.12.IP] has quit [Ping timeout: 121 seconds]
20:56 Kindamoody is now known as Kindamoody[zZz]
20:58
< catalyst>
templates just lack the power I really want in most cases
20:58
< catalyst>
they're pretty neat for some things though
21:01 Turaiel [Brandon@Nightstar-8lr.ml4.192.12.IP] has joined #code
21:02
<&McMartin>
They're for replacing horrible preprocessor garbage, or reams of pregenerated code, here
21:02
<&McMartin>
Though there is still a ream or two of pregenerated code for the templates to serve as a friendly face to
21:16
< catalyst>
I mostly use templates to reduce generated code
21:16
< catalyst>
(as in, proper use of templates reduces the number of instructions for routines)
21:19
<&McMartin>
I find that result surprising. What's the before/after?
21:19
<&McMartin>
(Or perhaps we are accounting differently; I would think that the code replication inherent in template reinstantiation with various types would overwhelm the gain from dropping virtual method lookups)
21:22
< catalyst>
It mostly has to do with being able to inline code and overload things like search algorithms at compile-time
21:22
< catalyst>
you essentially end up calling different routines based on iterator tags and the like
21:23 * McMartin nods
21:23
< catalyst>
basically I write soft real-time software which cares more about reducing the number of instructions per loop than the overall number of instructions
21:23
< catalyst>
(i.e. games :P)
21:23
<&McMartin>
Oh!
21:23
<&McMartin>
Yes, OK, that is where I was confused
21:23
< catalyst>
I figured so
21:23
< catalyst>
I worded it poorly
21:23
<&McMartin>
I was thinking instructions *emitted by the code generator*, not executed
21:23
<&McMartin>
Yes, that is all the sense, etc
21:23
< catalyst>
basically, I get to implement the standard library or a reasonable facsimile of it at work
21:23
< catalyst>
I feel like a wizard
21:24
<&McMartin>
(And yeah, I'm targeting mobile platforms with this stuff, so I have to worry a little about both, but honestly more the executed-instructions case at this point)
21:24
< catalyst>
aye
21:24
<&McMartin>
Woo, wizardry
21:24
< Wizard>
Woo
21:24
< catalyst>
it's surprisingly similar to coding for optimisation of power usage, I find
21:24
< catalyst>
haha :D
21:26
<&jerith>
It is all your fault.
21:26
<&jerith>
(That there are words in my IRC client for me to read.)
21:29
< catalyst>
Oh
21:29
< catalyst>
:P
23:41 Meatyhandbag [sebastianfe@Nightstar-d6h.cq4.73.97.IP] has quit [Client exited]
23:46 Vornicus [Vorn@ServerAdministrator.Nightstar.Net] has joined #code
23:46 mode/#code [+qo Vornicus Vornicus] by ChanServ
23:52 Meatyhandbag [sebastianfe@Nightstar-d6h.cq4.73.97.IP] has joined #code
--- Log closed Wed Jul 15 00:00:54 2015
code logs -> 2015 -> Tue, 14 Jul 2015< code.20150713.log - code.20150715.log >

[ Latest log file ]