code logs -> 2015 -> Fri, 23 Jan 2015< code.20150122.log - code.20150124.log >
--- Log opened Fri Jan 23 00:00:10 2015
00:01
<@Shiz>
or p00p
00:29 Checkmate [Z@Nightstar-ev6.6um.94.83.IP] has quit [Ping timeout: 121 seconds]
00:38 Derakon[AFK] is now known as Derakon
00:50 Thalass|TF2 is now known as Thalass
02:08 Checkmate [Z@Nightstar-484uip.cust.comxnet.dk] has joined #code
02:08 mode/#code [+o Checkmate] by ChanServ
02:46 Turaiel[Offline] is now known as Turaiel
03:25 Reiv_ [NSwebIRC@Nightstar-q8avec.kinect.net.nz] has joined #code
03:27 Reiv [NSwebIRC@ServerAdministrator.Nightstar.Net] has quit [Ping timeout: 121 seconds]
04:35 Vornicus [vorn@ServerAdministrator.Nightstar.Net] has quit [[NS] Quit: Leaving]
04:54 Thalass [thalass@Nightstar-h1qmno.eastlink.ca] has quit [Connection closed]
05:01
<@celticminstrel>
I think I'm finding myself wanting for...else.
05:01
<@celticminstrel>
(In C++)
05:13
<&McMartin>
You can fake it with an extra boolean variable
05:13
<&McMartin>
(set it before any call to break, execute the "else" clause if it's not set)
05:14
<@celticminstrel>
Currently it's being faked by leaving the loop variable external to the loop scope and checking if it's equal to the upper bound... I don't really want the loop variable external to the loop scope, but it was already like that and I haven't gotten around to changing it.
05:15
<@celticminstrel>
I've probably done it with the boolean variable somewhere too, though.
05:15
<&McMartin>
You can of course create new scopes whenever you want
05:15
<&McMartin>
It's just ugly
05:15
<@celticminstrel>
I actually do that too.
05:15
<&McMartin>
You can {} with no other excuse though
05:15 Derakon is now known as Derakon[AFK]
05:16
<@celticminstrel>
Yeah, I'm aware of that.
05:16
<@celticminstrel>
I can't remember why I did it in a few places.
05:24 macdjord [macdjord@Nightstar-r9vt2h.mc.videotron.ca] has quit [Ping timeout: 121 seconds]
05:35 macdjord [macdjord@Nightstar-r9vt2h.mc.videotron.ca] has joined #code
05:35 mode/#code [+o macdjord] by ChanServ
05:57 Turaiel is now known as Turaiel[Offline]
06:38 Kindamoody[zZz] is now known as Kindamoody
06:38 Checkmate [Z@Nightstar-484uip.cust.comxnet.dk] has quit [Ping timeout: 121 seconds]
06:44 Kindamoody is now known as Kindamoody|out
06:58 gnolam [lenin@Nightstar-lhk.n94.131.88.IP] has joined #code
06:58 mode/#code [+o gnolam] by ChanServ
08:15
< Julius>
WTF.
08:15
< Julius>
"Grey" is a darker shade than "DarkGrey"?
08:17 AverageJoe [evil1@Nightstar-2ofrtr.ph.cox.net] has joined #code
08:25 Orthia [orthianz@Nightstar-gk7ip5.callplus.net.nz] has quit [Ping timeout: 121 seconds]
08:30 Orthia [orthianz@Nightstar-mb2.1ga.224.119.IP] has joined #code
08:30 mode/#code [+o Orthia] by ChanServ
09:28 celticminstrel [celticminst@Nightstar-de4ll6.dsl.bell.ca] has quit [[NS] Quit: And lo! The computer falls into a deep sleep, to awake again some other day!]
09:44 Orthia [orthianz@Nightstar-mb2.1ga.224.119.IP] has quit [Ping timeout: 121 seconds]
09:49 Orthia [orthianz@Nightstar-beg.vlm.98.101.IP] has joined #code
09:49 mode/#code [+o Orthia] by ChanServ
10:01 AverageJoe [evil1@Nightstar-2ofrtr.ph.cox.net] has quit [[NS] Quit: Leaving]
10:08 * TheWatcher pokes at MELPA
10:09 * TheWatcher blinks, installs a bunch of packages, watches emacs crackle with increased power
10:35 gnolam [lenin@Nightstar-lhk.n94.131.88.IP] has quit [Connection closed]
11:16 gnolam [lenin@Nightstar-t1tbf0.cust.bahnhof.se] has joined #code
11:16 mode/#code [+o gnolam] by ChanServ
12:48 * TheWatcher stabs library writers who can't document their fucking API properly
12:56 * Tarinaky retaliates with perfect documentation written in <language you don't speak>
12:56
<@Tarinaky>
Dutch
12:57
< Julius>
You can write Dutch?
12:58
<@Tarinaky>
No.
12:59
<@Tarinaky>
I can barely manage to write English on a good day.
13:00
<@TheWatcher>
A language I don't speak is at least a problem I can address
13:01
<@TheWatcher>
As long as the documentation is complete and accurate? It can be worked with.
13:02
<@TheWatcher>
it isn't likely to require me to trawl through thousands of lines of sourcecode to work out what the fuck something is doing.
13:29
<@Shiz>
I can write Dutch
13:29
<@Shiz>
what's up
13:50 jeroud [sid10043@Nightstar-a1k27g.irccloud.com] has quit [[NS] Quit: ]
13:50 jeroud [sid10043@Nightstar-6br85t.irccloud.com] has joined #code
13:50 mode/#code [+ao jeroud jeroud] by ChanServ
13:58
<@Tarinaky>
Shiz: Write an API document incomprehensible to a native English speaker while being perfectly clear and correct Dutch.
13:58
<@Tarinaky>
Shiz: Then shout it at TheWatcher.
13:58
<@Shiz>
(Y)
13:58
<@Shiz>
first, I'm going to scrape steam API headers for my C steamworks wrapper
14:20 Orthia [orthianz@Nightstar-beg.vlm.98.101.IP] has quit [Ping timeout: 121 seconds]
14:24 Orthia [orthianz@Nightstar-ma4.dub.224.119.IP] has joined #code
14:24 mode/#code [+o Orthia] by ChanServ
14:41 thalass [thalass@Nightstar-h1qmno.eastlink.ca] has joined #code
14:41 mode/#code [+o thalass] by ChanServ
15:15 Turaiel[Offline] is now known as Turaiel
15:16 Checkmate [Z@Nightstar-484uip.cust.comxnet.dk] has joined #code
15:16 mode/#code [+o Checkmate] by ChanServ
15:16 Turaiel is now known as Turaiel[Offline]
15:21
<@iospace>
well
15:21
<@iospace>
they did it
15:22
<@iospace>
they used a goto the wrong way
15:52
<@thalass>
...
15:52
<@thalass>
Even I'm not that incompetent. >.>
15:56
<@Tarinaky>
'they'?
15:56
<@Tarinaky>
And the wrong way presumably being multiple entry into a function?
16:43 celticminstrel [celticminst@Nightstar-de4ll6.dsl.bell.ca] has joined #code
16:43 mode/#code [+o celticminstrel] by ChanServ
18:33 Checkmate [Z@Nightstar-484uip.cust.comxnet.dk] has quit [Ping timeout: 121 seconds]
18:55 Kindamoody|out is now known as Kindamoody
19:35
<&McMartin>
There are ABIs that totally allow that >_>
19:47
<@celticminstrel>
?
19:57
<&McMartin>
Multiple entry into a function
21:43 * McMartin also gets Rust working on his IRC machine, whose binary install was breaking for dumb reasons.
22:24 Checkmate [Z@Nightstar-pdi1tp.customer.tdc.net] has joined #code
22:24 mode/#code [+o Checkmate] by ChanServ
22:40
<&McMartin>
Mmm
22:40
<&McMartin>
I'm normally a fan of ML-style algebraic datatypes.
22:40
<&McMartin>
But I admit it is unfortunate that Objective-C's "struct FSRef {Uint8 hidden[80]; };" becomes this in Swift:
22:40
<&McMartin>
struct FSRef { var hidden: (UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt
22:40
<&McMartin>
8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8) }
22:41
<&ToxicFrog>
22:41 * McMartin notes that Rust is not reduced to this =P
22:42 Kindamoody is now known as Kindamoody[zZz]
22:42
<&ToxicFrog>
Memo to self: if someone asks if they can ask "a quick question" at 1730 on friday, say no.
22:43
<&ToxicFrog>
It's never quick.
22:43
<&McMartin>
s/at 1730 on friday/
22:43
<&McMartin>
Though if it's the morning you'll have time for it
22:43
<&ToxicFrog>
It's always something like "hey, would it be possible to implement <thing that completely violates one of the most fundamental invariants of our software>"
22:44
<&McMartin>
"We need it in like four hours"
22:47
<&jerith>
4pm ticket for a brand new deployment with no server requested because QA tomorrow morning.
22:47
<&jerith>
Fortunately that wasn't on my plate.
22:50
<&McMartin>
(The Rust for this would be "struct Fsref { hidden: [u8; 80] }")
22:50
<&ToxicFrog>
Yeah, answering these questions is, to some extent, my job. But it seems like anything described as "a quick question" never is.
22:54
<&McMartin>
It's kind of funny. Pascal had size-of-array-as-part-of-the-type silliness in it and this was one of the standard reasons cited for the langauge being unusable bullshit
22:54
<&McMartin>
In this modern era where we also have (a) type inference, (b) slice types, and (c) 53 different ways of doing generics, suddenly they are once again the new hotness
22:54
<&McMartin>
If C had had slice types instead of just saying "we can just use a single pointer to the first element instead!" the world would look very different now
22:54
<@Tamber>
What's old is new again. *shrug*
22:54
<&McMartin>
Well
22:54
<&McMartin>
More "we were in fact missing important parts of this"
22:55
<&McMartin>
We didn't have even remotely usable type inference anywhere until the late 1970s, and we didn't get it *right* until the late 1980s/early 1990s, IIRC.
22:58
<&McMartin>
I first formally encountered slice types as a language construct in Go, but IIRC it swiped them from somewhere else (and they aren't quite the same thing as Python slices)
22:58
<&McMartin>
A lot of string implementations did stuff like that under the hood, I suppose
23:07 Vornicus [vorn@ServerAdministrator.Nightstar.Net] has joined #code
23:07 mode/#code [+qo Vornicus Vornicus] by ChanServ
23:28 elz0rro [cmnd@Nightstar-nelvj0.dyn.optonline.net] has joined #code
23:29 elz0rro [cmnd@Nightstar-nelvj0.dyn.optonline.net] has quit [[NS] Quit: - nbs-irc 2.39 - www.nbs-irc.net -]
--- Log closed Sat Jan 24 00:00:26 2015
code logs -> 2015 -> Fri, 23 Jan 2015< code.20150122.log - code.20150124.log >

[ Latest log file ]