code logs -> 2015 -> Fri, 06 Feb 2015< code.20150205.log - code.20150207.log >
--- Log opened Fri Feb 06 00:00:35 2015
00:22 gnolam [lenin@Nightstar-afpphi.tbcn.telia.com] has quit [[NS] Quit: Quit]
00:26
<&McMartin>
Ugh
00:27
<&McMartin>
So, for my Klotski-solving shootout, I've been thinking through what I'd need to do to solve it in C.
00:27
<&McMartin>
Doing it right involves "implement or borrow a balanced binary tree or hashmap implementation" and "write a simple refcounting garbage collector" >_<
00:27
<&McMartin>
So... that one non-speed-related argument right there
00:50 Turaiel[Offline] is now known as Turaiel
01:01 ASCII [pink@Nightstar-rcj56n.dyn.optonline.net] has joined #code
01:25 Alek [omegaboot@Nightstar-c8t.a00.36.73.IP] has joined #code
01:25 mode/#code [+o Alek] by ChanServ
01:25
<~Vornicus>
Yeah, it's kind of a terror
01:27
<~Vornicus>
I guess you could, if you were very careful, create a bijection between states and numbers
02:16 Checkmate [Z@Nightstar-484uip.cust.comxnet.dk] has joined #code
02:20 thalass [thalass@Nightstar-h1qmno.eastlink.ca] has quit [Ping timeout: 121 seconds]
02:41 thalass_ [thalass@Nightstar-h1qmno.eastlink.ca] has joined #code
02:41 thalass_ is now known as Thalass
02:42 mode/#code [+o Thalass] by ChanServ
03:12 Thalass [thalass@Nightstar-h1qmno.eastlink.ca] has quit [Ping timeout: 121 seconds]
03:23
<&McMartin>
That's called "a hashmap implementation"
03:42 Thalass [thalass@Nightstar-h1qmno.eastlink.ca] has joined #code
03:42 mode/#code [+o Thalass] by ChanServ
03:54 Ogredude [quassel@NetworkAdministrator.Nightstar.Net] has quit [Ping timeout: 121 seconds]
04:10 Ogredude [quassel@Nightstar-dm1jvh.projectzenonline.com] has joined #code
04:10 mode/#code [+o Ogredude] by ChanServ
04:13 Reivthia is now known as Orthia
04:38 Julius [abudhabi@Nightstar-7nkq9k.de] has quit [Ping timeout: 121 seconds]
04:44
<~Vornicus>
I mean a static one
04:44
<~Vornicus>
Or rather, one where, given a number, you can find the state
04:52 Vornicus [vorn@ServerAdministrator.Nightstar.Net] has quit [[NS] Quit: Leaving]
04:55 Julius [abudhabi@Nightstar-7nkq9k.de] has joined #code
05:12 Turaiel is now known as Turaiel[Offline]
05:24 Derakon is now known as Derakon[AFK]
05:40 himi [fow035@Nightstar-dm0.2ni.203.150.IP] has quit [Ping timeout: 121 seconds]
05:46 celticminstrel [celticminst@Nightstar-q7on2v.dsl.bell.ca] has quit [Ping timeout: 121 seconds]
05:48 celticminstrel [celticminst@Nightstar-j5b.hci.93.65.IP] has joined #code
05:48 mode/#code [+o celticminstrel] by ChanServ
05:55 celticminstrel [celticminst@Nightstar-j5b.hci.93.65.IP] has quit [[NS] Quit: KABOOM! It seems that I have exploded. Please wait while I reinstall the universe.]
07:22 Kindamoody[zZz] is now known as Kindamoody
07:31 himi [fow035@Nightstar-v37cpe.internode.on.net] has joined #code
07:31 mode/#code [+o himi] by ChanServ
07:40 Checkmate [Z@Nightstar-484uip.cust.comxnet.dk] has quit [Ping timeout: 121 seconds]
07:43 AverageJoe [evil1@Nightstar-2ofrtr.ph.cox.net] has joined #code
08:10 himi [fow035@Nightstar-v37cpe.internode.on.net] has quit [Ping timeout: 121 seconds]
08:13 Orthia [orthianz@Nightstar-lf8.qso.224.119.IP] has quit [Ping timeout: 121 seconds]
08:13 himi [fow035@Nightstar-v37cpe.internode.on.net] has joined #code
08:13 mode/#code [+o himi] by ChanServ
08:17 Orthia [orthianz@Nightstar-vgeau6.callplus.net.nz] has joined #code
08:17 mode/#code [+o Orthia] by ChanServ
08:21 AverageJoe [evil1@Nightstar-2ofrtr.ph.cox.net] has quit [[NS] Quit: Leaving]
08:29 Kindamoody is now known as Kindamoody|afk
08:34 himi [fow035@Nightstar-v37cpe.internode.on.net] has quit [Ping timeout: 121 seconds]
09:00 himi [fow035@Nightstar-v37cpe.internode.on.net] has joined #code
09:00 mode/#code [+o himi] by ChanServ
09:17 himi [fow035@Nightstar-v37cpe.internode.on.net] has quit [Ping timeout: 121 seconds]
09:18 Orthia is now known as Reivthia
09:25 himi [fow035@Nightstar-v37cpe.internode.on.net] has joined #code
09:25 mode/#code [+o himi] by ChanServ
09:32 himi [fow035@Nightstar-v37cpe.internode.on.net] has quit [Ping timeout: 121 seconds]
09:36 himi [fow035@Nightstar-v37cpe.internode.on.net] has joined #code
09:36 mode/#code [+o himi] by ChanServ
10:44 Orthia [orthianz@Nightstar-u1mlet.callplus.net.nz] has joined #code
10:44 mode/#code [+o Orthia] by ChanServ
10:46 Reivthia [orthianz@Nightstar-vgeau6.callplus.net.nz] has quit [Ping timeout: 121 seconds]
10:48 Orthia is now known as Reivthia
11:21
<@Tarinaky>
So. I have a large array, I want to split it into smaller subarrays of length N
11:21
<@Tarinaky>
How do I do this in Ruby?
11:23 Checkmate [Z@Nightstar-484uip.cust.comxnet.dk] has joined #code
11:24 Orthia [orthianz@Nightstar-lf8.qso.224.119.IP] has joined #code
11:24 mode/#code [+o Orthia] by ChanServ
11:26 Reivthia [orthianz@Nightstar-u1mlet.callplus.net.nz] has quit [Ping timeout: 121 seconds]
11:26 Orthia is now known as Reivthia
11:28
<@Tarinaky>
I can only come up with hacky C-like ways of doing it.
11:31
<&McMartin>
Does Ruby have a Go-like notion of Slices?
11:31
<&McMartin>
(Are these subarrays supposed to be aliased to the big array, or copies of fragments of it?)
11:31
< gizmore>
https://www.google.de/search?hl=en&q=ruby+chunck+process+arrays&gws_rd=cr&ei=Cab UVOyNJ8jharWngfAH
11:31
<@Tarinaky>
McMartin: Just copies.
11:32
< gizmore>
userids.each_slice(100) do |a|
11:32
< gizmore>
a.ha!
11:32
< gizmore>
end
11:32
<@Tarinaky>
Danke.
11:34
< gizmore>
my pleasure
11:35
< gizmore>
ruby has a quite elegant and short syntax, once you get used to it... my next language might be python :)
11:35
< gizmore>
but also it´s worth to try JRuby... not sure yet :)
11:35
<@Tarinaky>
I'm coming at it from Python
11:36
<@Tarinaky>
I find ruby syntax complicated and the online-documentation is difficult to index through looking for the right thing (I was looking at the docs for Array when I should have been looking at Enumerable)
11:38
<@Tarinaky>
It's certainly more terse than Python.
11:38
<@Tarinaky>
+though.
11:39 Syka_ [the@Nightstar-c409v3.vividwireless.net.au] has joined #code
11:39 Syka [the@Nightstar-c409v3.vividwireless.net.au] has quit [Connection closed]
12:00 EvilDarkLord [jjlehto3@Nightstar-evu5hu.org.aalto.fi] has quit [Ping timeout: 121 seconds]
12:02 EvilDarkLord [jjlehto3@Nightstar-evu5hu.org.aalto.fi] has joined #code
12:40
<@Tarinaky>
Hmm. Interesting idea I read on /r/gamedev. How would you implement the pre-rendered scenery/backgrounds from games like FFVII if you were to do it today for retrokitsch.
12:41
<@Tarinaky>
Obviously the motivation for doing it doesn't exist anymore on modern hardware but it did have a charm in the same way matte-painting backdrops did in movies.
12:48
<@Tarinaky>
The big issue is if you go ostentatious with the animation it's going to use up a lot of texture memory per frame.
12:48
<@Tarinaky>
I'm not sure how much of a show-stopper that is.
13:09 Thalass [thalass@Nightstar-h1qmno.eastlink.ca] has quit [Ping timeout: 121 seconds]
13:09 Thalass [thalass@Nightstar-h1qmno.eastlink.ca] has joined #code
13:09 mode/#code [+o Thalass] by ChanServ
13:19 * TheWatcher sighs at students in the java lab
13:19
<@TheWatcher>
"X isn't working and throws an exception!"
13:20
<@TheWatcher>
Uh, right.
13:21
<@TheWatcher>
And I am suppose to Divine through the Luminiferous Ăther what that exception is, eh?
13:21 * Tarinaky baps TheWatcher.
13:22
<@Tarinaky>
If they knew how to be decent human beings they wouldn't be paying 9k/anum to learn how to be decent human beings.
13:22
< Julius>
Since when does university teach that?
13:23 himi [fow035@Nightstar-v37cpe.internode.on.net] has quit [Ping timeout: 121 seconds]
13:24 himi [fow035@Nightstar-v37cpe.internode.on.net] has joined #code
13:24 mode/#code [+o himi] by ChanServ
13:29 Julius is now known as Jekal
13:29 EvilDarkLord is now known as Vord
13:34
<@Tarinaky>
Also: I'd forgotten why I hated FP.
13:35
<@Tarinaky>
foo.zip( foo.drop(1) ).map |foo,bar|
13:35 * Tarinaky face desks
13:49
<@Tarinaky>
map, map zip, reduce map, guissarm, glaive, pike.
13:57 Jekal is now known as AnnoDomini
13:57 Vord is now known as EvilDarkLord
14:32 Turaiel[Offline] is now known as Turaiel
14:39 Checkmate is now known as Serah
14:39 Serah is now known as Checkmate
14:40 mode/#code [+o Checkmate] by ChanServ
14:46 Alek [omegaboot@Nightstar-c8t.a00.36.73.IP] has quit [Ping timeout: 121 seconds]
14:49 Alek [omegaboot@Nightstar-c8t.a00.36.73.IP] has joined #code
14:49 mode/#code [+o Alek] by ChanServ
15:15 Turaiel is now known as Turaiel[Offline]
15:16 Turaiel[Offline] is now known as Turaiel
15:23 * TheWatcher sighs
15:24
<@TheWatcher>
And, having finally received the code, I determine immediately that the student has used the wrong server name, so no wonder it's throwing exceptions
15:25
<@TheWatcher>
Because documentation apparently happens to other people.
16:19 Turaiel is now known as Turaiel[Offline]
16:32 gnolam [lenin@Nightstar-afpphi.tbcn.telia.com] has joined #code
16:32 mode/#code [+o gnolam] by ChanServ
16:54
<@Tarinaky>
I am really bad at my job :
16:54
<@Tarinaky>
*:/
17:16 celticminstrel [celticminst@Nightstar-j5b.hci.93.65.IP] has joined #code
17:16 mode/#code [+o celticminstrel] by ChanServ
17:21 Turaiel[Offline] is now known as Turaiel
17:56 McMartin [mcmartin@Nightstar-rpcdbf.sntcca.sbcglobal.net] has quit [Ping timeout: 121 seconds]
18:05 AverageJoe [evil1@Nightstar-2ofrtr.ph.cox.net] has joined #code
18:27 Red_Queen [Z@Nightstar-484uip.cust.comxnet.dk] has joined #code
18:27 mode/#code [+o Red_Queen] by ChanServ
18:29 Checkmate [Z@Nightstar-484uip.cust.comxnet.dk] has quit [Ping timeout: 121 seconds]
18:39 Xires is now known as ^Xires
18:41 ErikMesoy is now known as Cyneric
18:53 ^Xires is now known as Xires
19:00 Alek [omegaboot@Nightstar-c8t.a00.36.73.IP] has quit [Ping timeout: 121 seconds]
19:30 Alek [omegaboot@Nightstar-c8t.a00.36.73.IP] has joined #code
19:30 mode/#code [+o Alek] by ChanServ
19:45 Thalass [thalass@Nightstar-h1qmno.eastlink.ca] has quit [[NS] Quit: augh ffs]
20:03 AverageJoe [evil1@Nightstar-2ofrtr.ph.cox.net] has quit [Operation timed out]
21:11 Red_Queen [Z@Nightstar-484uip.cust.comxnet.dk] has quit [Ping timeout: 121 seconds]
21:54 thalass [thalass@Nightstar-h1qmno.eastlink.ca] has joined #code
21:55 mode/#code [+o thalass] by ChanServ
21:59 Kindamoody|afk is now known as Kindamoody
22:05 Turaiel is now known as Turaiel[Offline]
22:21 Checkmate [Z@Nightstar-pdi1tp.customer.tdc.net] has joined #code
22:21 mode/#code [+o Checkmate] by ChanServ
22:26 Vorntastic [Vorn@Nightstar-k70f1n.ct.comcast.net] has joined #code
22:28
< Vorntastic>
http://imgur.com/I42tMfH it's getting better.
22:33
<@TheWatcher>
\o/
22:46 Cyneric is now known as ErikMesoy
22:54 Vorntastic [Vorn@Nightstar-k70f1n.ct.comcast.net] has quit [[NS] Quit: Bye]
23:01 Kindamoody is now known as Kindamoody[zZz]
23:30 Vornicus [vorn@ServerAdministrator.Nightstar.Net] has joined #code
23:30 mode/#code [+qo Vornicus Vornicus] by ChanServ
23:35 VirusJTG [VirusJTG@Nightstar-6i5vf7.sta.comporium.net] has quit [Connection closed]
23:44 * Vornicus hunts around
23:44
<~Vornicus>
I know that Java and C both have hexadecimal floating point literals available. What others do?
23:47
<&ToxicFrog>
Lua does.
23:47
<&ToxicFrog>
Interestingly, Clojure does not.
23:51 VirusJTG [VirusJTG@Nightstar-6i5vf7.sta.comporium.net] has joined #code
23:55 VirusJTG [VirusJTG@Nightstar-6i5vf7.sta.comporium.net] has quit [Connection closed]
23:58 VirusJTG [VirusJTG@Nightstar-6i5vf7.sta.comporium.net] has joined #code
--- Log closed Sat Feb 07 00:00:49 2015
code logs -> 2015 -> Fri, 06 Feb 2015< code.20150205.log - code.20150207.log >

[ Latest log file ]