code logs -> 2016 -> Fri, 18 Nov 2016< code.20161117.log - code.20161119.log >
--- Log opened Fri Nov 18 00:00:44 2016
00:14 starkruzr [quassel@Nightstar-7qsccf.fios.verizon.net] has quit [Connection closed]
00:34 Vash [Vash@Nightstar-uhn82m.ct.comcast.net] has joined #code
00:56 macdjord|wurk is now known as macdjord
01:05 Derakon[AFK] is now known as Derakon
03:15 macdjord [macdjord@Nightstar-cd2k4t.mc.videotron.ca] has quit [[NS] Quit: We *are* shining examples of humanity. It's just that the light we shine with is generally Oppenheimer's.]
03:38 macdjord [macdjord@Nightstar-cd2k4t.mc.videotron.ca] has joined #code
03:38 mode/#code [+o macdjord] by ChanServ
03:53 catadroid [catalyst@Nightstar-kevei2.dab.02.net] has joined #code
03:54 catadroid [catalyst@Nightstar-kevei2.dab.02.net] has quit [[NS] Quit: Bye]
03:56 macdjord [macdjord@Nightstar-cd2k4t.mc.videotron.ca] has quit [Ping timeout: 121 seconds]
04:05 Vash [Vash@Nightstar-uhn82m.ct.comcast.net] has quit [Connection closed]
04:17 macdjord [macdjord@Nightstar-cd2k4t.mc.videotron.ca] has joined #code
04:17 mode/#code [+o macdjord] by ChanServ
05:10 Derakon is now known as Derakon[AFK]
06:09 Azash [Azash@wizard.engineering] has quit [Ping timeout: 121 seconds]
06:09 Azash [Azash@wizard.engineering] has joined #code
06:09 mode/#code [+o Azash] by ChanServ
06:51 macdjord is now known as macdjord|slep
07:10 celticminstrel [celticminst@Nightstar-m1asbe.dsl.bell.ca] has quit [[NS] Quit: And lo! The computer falls into a deep sleep, to awake again some other day!]
07:42 Emmy [Emmy@Nightstar-9p7hb1.direct-adsl.nl] has quit [Ping timeout: 121 seconds]
08:29 Emmy-werk [NSkiwiirc@Nightstar-41pbej.static.chello.nl] has joined #code
08:29 mode/#code [+o Emmy-werk] by ChanServ
08:42 Kindamoody[zZz] is now known as Kindamoody
09:28 Kindamoody is now known as Kindamoody|afk
09:57 Emmy-werk [NSkiwiirc@Nightstar-41pbej.static.chello.nl] has quit [[NS] Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
11:01 Emmy-werk [NSkiwiirc@Nightstar-41pbej.static.chello.nl] has joined #code
11:01 mode/#code [+o Emmy-werk] by ChanServ
11:40 catadroid [catalyst@Nightstar-kj0.tcr.132.82.IP] has joined #code
11:40 Emmy-werk [NSkiwiirc@Nightstar-41pbej.static.chello.nl] has quit [[NS] Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
12:47 Vornicus [Vorn@ServerAdministrator.Nightstar.Net] has quit [Ping timeout: 121 seconds]
14:13 McMartin [mcmartin@Nightstar-rpcdbf.sntcca.sbcglobal.net] has quit [Operation timed out]
14:16 McMartin [mcmartin@Nightstar-rpcdbf.sntcca.sbcglobal.net] has joined #code
14:16 mode/#code [+ao McMartin McMartin] by ChanServ
14:23 catadroid` [catalyst@Nightstar-rlmb84.dab.02.net] has joined #code
14:25 catadroid [catalyst@Nightstar-kj0.tcr.132.82.IP] has quit [Ping timeout: 121 seconds]
14:55 catadroid` is now known as catadroid
15:01
< catadroid>
Dammit now I'm writing list comprehensions and wishing they were transducers
15:01
< catadroid>
What have I done to my brain
15:15
<@Logar>
Replaced it with a small shell script.
15:22
< catadroid>
...small ?
15:36
<@Logar>
You can't fit much more than a fortune cookie text in a shell!
15:38 macdjord|slep is now known as macdjord|wurk
16:15
<@Tarinaky>
catadroid: What's a transducer in thios context?
16:18
<&ToxicFrog>
Tarinaky: http://clojure.org/reference/transducers
16:26
<@Tarinaky>
Ah, I wish I was better at FP
16:35
< catadroid>
Just watch rich Hickey's presentations
16:35
< catadroid>
You'll pick things up :)
16:38
<&ToxicFrog>
s/presentations$/\0 and write a bunch of lisp/
16:38
<@Tarinaky>
yehno
16:51
<&ToxicFrog>
Whyever not?
16:58
<@Tarinaky>
Only a limited number of hours in the day and there's just no money in Lisp.
16:58
<@Tarinaky>
Being able to do cool FP things in C++ = Big Money though.
16:58
<@Tarinaky>
That probably makes me the very worst kind of programmer.
17:01
< catadroid>
Nah
17:01
< catadroid>
It makes you pragmatic
17:01
< catadroid>
Fwiw the best move I ever made learning how to write C++ was to pick up some rudimentary Scheme and apply the ideas to my code, though
17:08 celticminstrel [celticminst@Nightstar-m1asbe.dsl.bell.ca] has joined #code
17:08 mode/#code [+o celticminstrel] by ChanServ
17:08
<&ToxicFrog>
^
17:09
<&ToxicFrog>
I pretty much only use C++ and Python at work, but learning other languages has made me a better programmer in general.
17:12
< catadroid>
Same
17:12
<@Tarinaky>
You're right. But I'm stretched pretty far thin atm :(
17:13
< catadroid>
Yeah, it's not mandatory, and I was lucky because I got to learn scheme at uni
17:13
<@Tarinaky>
"This to will pass"
17:13
< catadroid>
Also, I'm stupid and do things like read the C++ standard in my spare time so~
17:31
<@Tarinaky>
Are you a three star programmer yet?
17:34
<@Tarinaky>
*snrk* on slap over TCP/IP: "At least they're kind enough to use TCP for the slapping. That means yoiu get to send ACK slaps back."
17:34
< catadroid>
Yes.
17:34
< catadroid>
I'm going to verify that, one sec
17:36
< catadroid>
Ah, nevermind, it's just a reinterpret_cast<void**>
17:37 Kindamoody|afk is now known as Kindamoody
17:37
< catadroid>
(which is because I'm using reflection to traverse an arbitrary tree of data)
17:37
< catadroid>
(because I'm mad)
17:38
<@Tarinaky>
Honestly, the most irksome part of that snippet is you're using a void* in C++
17:38
<@Tarinaky>
I'm not even sure if that's legal under --pedantic.
17:40
<@Tarinaky>
I guess it probably is.
17:42
< catadroid>
It has to be, because the type isn't known until runtime
17:45
<@Tarinaky>
Isn't this what the Factory pattern is for though?
17:45
< catadroid>
The code is generic enough to work on types known at runtime on instances known at runtime
17:46
<@Tarinaky>
Okay. I'll take your word for it,
17:46
< catadroid>
It's beneficial for that not to be duplicated once per type
17:46
< catadroid>
Though that's an angle I would consider if the code to generate it was cleverer~
17:47
< catadroid>
(but yes, in general it's an awful code smell)
17:48
<@Tarinaky>
At my last job one of my DLLs passed void* to Ruby. But that was justifyable in that 1) it was C and 2) I was only using them as opaque pointers and not performing any casts on them.
17:48
<@Tarinaky>
Just using the memory addresses as unique ids.
17:49
<@Tarinaky>
Well, casting them back in the low-level I guess to pass them back into the thing I was wrapping.
17:49
<@Tarinaky>
I forget.
17:49
< catadroid>
Yeah, my rule is that void*s are acceptable at your api edges (where you are immediately casting to a known type) and where you have shared code that's type erased (so the edges of that code essentially save the type info)
17:50
< catadroid>
This thing I'm talking about is a bit of a grey area but has aspects of both of those things
17:50
< catadroid>
It's not my favourite piece of code
17:51
<@Tarinaky>
It was basically ruby functions to getSomeResource():void*, doSomethingWithResource(void*), freeSomeResource(void*)
17:51 * catadroid nods
17:52
< catadroid>
I've seen systems that unnecessarily bypass the C++ type systems (and have to regularly work with one) and those are just pointless headaches
18:32
<@celticminstrel>
[Nov 18@12:13:40pm] catadroid: Also, I'm stupid and do things like read the C++ standard in my spare time so~
18:32
<@celticminstrel>
Oh hey, that sounds familiar. :O
18:39 celticminstrel [celticminst@Nightstar-m1asbe.dsl.bell.ca] has quit [[NS] Quit: KABOOM! It seems that I have exploded. Please wait while I reinstall the universe.]
18:41 Tarinaky [Tarinaky@Nightstar-ak1gaj.programmingresearch.com] has quit [Connection closed]
18:41 celticminstrel [celticminst@Nightstar-m1asbe.dsl.bell.ca] has joined #code
18:41 mode/#code [+o celticminstrel] by ChanServ
18:45 celticminstrel [celticminst@Nightstar-m1asbe.dsl.bell.ca] has quit [[NS] Quit: KABOOM! It seems that I have exploded. Please wait while I reinstall the universe.]
18:45 celticminstrel [celticminst@Nightstar-m1asbe.dsl.bell.ca] has joined #code
18:45 mode/#code [+o celticminstrel] by ChanServ
18:50 celticminstrel [celticminst@Nightstar-m1asbe.dsl.bell.ca] has quit [[NS] Quit: KABOOM! It seems that I have exploded. Please wait while I reinstall the universe.]
18:55 celticminstrel [celticminst@Nightstar-h4m24u.dsl.bell.ca] has joined #code
18:55 mode/#code [+o celticminstrel] by ChanServ
18:57 catadroid [catalyst@Nightstar-rlmb84.dab.02.net] has quit [[NS] Quit: Bye]
20:39 Vornicus [Vorn@ServerAdministrator.Nightstar.Net] has joined #code
20:39 mode/#code [+qo Vornicus Vornicus] by ChanServ
20:45 Emmy [Emmy@Nightstar-n0j.aif.74.176.IP] has joined #code
20:45 mode/#code [+o Emmy] by ChanServ
21:55 Vash [Vash@Nightstar-uhn82m.ct.comcast.net] has joined #code
22:22 Emmy [Emmy@Nightstar-n0j.aif.74.176.IP] has quit [Ping timeout: 121 seconds]
23:44 catalyst [catalyst@Nightstar-bt5k4h.81.in-addr.arpa] has joined #code
--- Log closed Sat Nov 19 00:00:00 2016
code logs -> 2016 -> Fri, 18 Nov 2016< code.20161117.log - code.20161119.log >

[ Latest log file ]