code logs -> 2016 -> Wed, 03 Feb 2016< code.20160202.log - code.20160204.log >
--- Log opened Wed Feb 03 00:00:48 2016
00:07 catalyst [catalyst@Nightstar-bt5k4h.81.in-addr.arpa] has quit [[NS] Quit: Leaving]
00:14 catadroid [catalyst@Nightstar-sf13eu.dab.02.net] has joined #code
00:19 catadroid` [catalyst@Nightstar-sf13eu.dab.02.net] has joined #code
00:19 catadroid [catalyst@Nightstar-sf13eu.dab.02.net] has quit [Connection closed]
00:22 catadroid` is now known as catadroid
00:38 Derakon[AFK] is now known as Derakon
00:44 Alek [Alek@Nightstar-n7s.4qg.15.24.IP] has quit [Ping timeout: 121 seconds]
00:52 Alek [Alek@Nightstar-n7s.4qg.15.24.IP] has joined #code
00:52 mode/#code [+o Alek] by ChanServ
01:42 himi [fow035@Nightstar-f0n.5hq.44.138.IP] has joined #code
01:42 mode/#code [+o himi] by ChanServ
02:16 himi [fow035@Nightstar-f0n.5hq.44.138.IP] has quit [Ping timeout: 121 seconds]
03:37 Turaiel[Offline] is now known as Turaiel
03:54 Red_Queen [Z@Nightstar-r9lk5l.cust.comxnet.dk] has joined #code
03:54 mode/#code [+o Red_Queen] by ChanServ
03:56 Crossfire [Z@Nightstar-r9lk5l.cust.comxnet.dk] has quit [Ping timeout: 121 seconds]
03:56 Red_Queen is now known as Crossfire
04:16 Reiv [NSwebIRC@Nightstar-q8avec.kinect.net.nz] has quit [Ping timeout: 121 seconds]
04:36 Turaiel is now known as Turaiel[Offline]
05:02 Crossfire [Z@Nightstar-r9lk5l.cust.comxnet.dk] has quit [Ping timeout: 121 seconds]
05:10 Derakon is now known as Derakon[AFK]
05:40 Kindamoody[zZz] is now known as Kindamoody
06:00 Vornicus [Vorn@ServerAdministrator.Nightstar.Net] has quit [Connection closed]
06:07 himi [fow035@Nightstar-f0n.5hq.44.138.IP] has joined #code
06:07 mode/#code [+o himi] by ChanServ
06:34 catadroid` [catalyst@Nightstar-surcvr.dab.02.net] has joined #code
06:37 catadroid [catalyst@Nightstar-sf13eu.dab.02.net] has quit [Ping timeout: 121 seconds]
06:43 himi [fow035@Nightstar-f0n.5hq.44.138.IP] has quit [Ping timeout: 121 seconds]
07:41
<@gnolam>
*THERMONUCLEAR DERP*
07:41 * gnolam headdesks repeatedly.
07:44
< catadroid`>
Que?
07:51
<@gnolam>
The sudden realization that I had reinvented the square wheel.
07:52
< catadroid`>
Sometimes, that happens
07:52
< catadroid`>
I thought I'd done that then I realised what I had mistaken for an abstraction was not
08:15 catadroid` [catalyst@Nightstar-surcvr.dab.02.net] has quit [[NS] Quit: Bye]
08:31 Kindamoody is now known as Kindamoody|afk
08:34 celticminstrel [celticminst@Nightstar-uce74q.dsl.bell.ca] has quit [[NS] Quit: And lo! The computer falls into a deep sleep, to awake again some other day!]
10:06
<@Wulfric>
gnolam: Explain.
10:09
<@gnolam>
Turned out to be one of the times where "I know, I'll use regular expressions" did not in fact lead to me having two problems.
10:10
<@gnolam>
And I have no idea how that didn't occur to me from the start.
10:41
<@Wulfric>
I see.
10:41
<@Wulfric>
Were you parsing the string character by character?
11:30 himi [fow035@Nightstar-f0n.5hq.44.138.IP] has joined #code
11:30 mode/#code [+o himi] by ChanServ
11:45 Emmy-zZz is now known as Emmy
12:46 himi [fow035@Nightstar-f0n.5hq.44.138.IP] has quit [Ping timeout: 121 seconds]
13:08 himi [fow035@Nightstar-f0n.5hq.44.138.IP] has joined #code
13:08 mode/#code [+o himi] by ChanServ
14:04 Crossfire [Z@Nightstar-r9lk5l.cust.comxnet.dk] has joined #code
14:04 mode/#code [+o Crossfire] by ChanServ
14:29 celticminstrel [celticminst@Nightstar-uce74q.dsl.bell.ca] has joined #code
14:29 mode/#code [+o celticminstrel] by ChanServ
15:24 Natanian [NSwebIRC@Nightstar-f3k.t3q.245.162.IP] has joined #code
15:53 himi [fow035@Nightstar-f0n.5hq.44.138.IP] has quit [Ping timeout: 121 seconds]
16:42 himi [fow035@Nightstar-f0n.5hq.44.138.IP] has joined #code
16:42 mode/#code [+o himi] by ChanServ
17:16 Derakon [chriswei@Nightstar-5mvs4e.ca.comcast.net] has joined #code
17:16 mode/#code [+ao Derakon Derakon] by ChanServ
17:16 * Derakon blarghs at Java and code optimizing.
17:17 himi [fow035@Nightstar-f0n.5hq.44.138.IP] has quit [Ping timeout: 121 seconds]
17:17
<&Derakon>
I have three different combinations of variants of functions: 8-bit pixels vs. 16-bit, single-component (grayscale) vs. multi-component (e.g. RGB), and cropped with a mask vs. full image.
17:17
<&Derakon>
I don't wanna write 8 different functions just so they'll be fast enough. :(
17:25
<&Derakon>
I wish Java had some kind of macro system so I could re-use code between these different variants.
17:43 himi [fow035@Nightstar-f0n.5hq.44.138.IP] has joined #code
17:44 mode/#code [+o himi] by ChanServ
17:48
<@Wulfric>
Derakon: Can't you extract some common stuff and share it?
17:50
<&Derakon>
Wulfric: the functions are literally just double-for loops iterating over a bunch of pixels in slightly different ways.
17:51
<@[R]>
So... functors
17:52
<@[R]>
You can do functors
17:55
<&Derakon>
Not in Java 6.
17:56
<&Derakon>
I mean, you can have runnables, but I strongly suspect that the increased overhead from calling them would make them impractical.
17:56
<&Derakon>
Considering that performance is at a premium here.
17:58
<@[R]>
Java 1.1 is when Anon classes were introduced AFAICT
17:59
<@[R]>
If only there were some kind of way to time things so as to compare them?
18:00
<&Derakon>
:p
18:01
<&Derakon>
I'd have to do some kind of wacky compositing of behaviors with shared state via the class fields or something.
18:02 * celticminstrel is currently trying to draw a flow-chart of a relation... :S
18:02
<@celticminstrel>
...a textual flowchart, so like "A => B => C => A" or "D <=> e".
18:03
<&Derakon>
Here's the kinds of variations I'm looking at, BTW: http://pastebin.com/6bLSYsNb
18:03
<@Wulfric>
Derakon: Abstract class with method loop() that contains the loop and a call to the abstract doCalc(). Child class defines doCalc().
18:03
<@Wulfric>
Or is that too newfangled?
18:03
<@[R]>
That's been supported since Java 1.1
18:04
<&Derakon>
Okay, so I'm doing pretty simple things here; I just have to do hundreds of thousands of them very quickly.
18:04
<&Derakon>
Function call overhead may well be an issue.
18:05
<@Wulfric>
Aren't there some kind of compiler optimizations like function inlining?
18:05 * Wulfric waves hands vaguely.
18:15 catalyst [catalyst@Nightstar-bt5k4h.81.in-addr.arpa] has joined #code
18:40
<&Derakon>
Yeah, so replacing the variants with three different Runnables that accomplish the same thing reduces my performance by about 15%.
18:43
<@Wulfric>
Pity Java doesn't support static abstract methods.
18:58 Wulfric is now known as abudhabi
18:59 Crossfire [Z@Nightstar-r9lk5l.cust.comxnet.dk] has quit [Ping timeout: 121 seconds]
19:04 Kindamoody|afk is now known as Kindamoody
19:21 Derakon [chriswei@Nightstar-5mvs4e.ca.comcast.net] has quit [[NS] Quit: leaving]
19:21 Crossfire [Z@Nightstar-ev6.6um.94.83.IP] has joined #code
19:21 mode/#code [+o Crossfire] by ChanServ
19:47
<&McMartin>
It's not clear what that would even mean; static rather strongly implies "nonvirtual" unless you're using a *very* variant system.
20:05 VirusJTG [VirusJTG@Nightstar-6i5vf7.sta.comporium.net] has quit [Connection closed]
20:13 himi [fow035@Nightstar-f0n.5hq.44.138.IP] has quit [Ping timeout: 121 seconds]
20:34 VirusJTG [VirusJTG@Nightstar-6i5vf7.sta.comporium.net] has joined #code
20:37 Reiv [NSwebIRC@Nightstar-q8avec.kinect.net.nz] has joined #code
20:37 mode/#code [+o Reiv] by ChanServ
21:41 Kindamoody [Kindamoody@Nightstar-0lgkcs.tbcn.telia.com] has quit [Connection closed]
21:42 Kindamoody|autojoin [Kindamoody@Nightstar-0lgkcs.tbcn.telia.com] has joined #code
21:42 mode/#code [+o Kindamoody|autojoin] by ChanServ
21:43 Kindamoody|autojoin is now known as Kindamoody
22:10 himi [fow035@Nightstar-f0n.5hq.44.138.IP] has joined #code
22:10 mode/#code [+o himi] by ChanServ
22:34 himi [fow035@Nightstar-f0n.5hq.44.138.IP] has quit [Ping timeout: 121 seconds]
22:47 Kindamoody is now known as Kindamoody[zZz]
23:15 Emmy is now known as Emmy-zZz
--- Log closed Thu Feb 04 00:00:53 2016
code logs -> 2016 -> Wed, 03 Feb 2016< code.20160202.log - code.20160204.log >

[ Latest log file ]