code logs -> 2016 -> Fri, 19 Aug 2016< code.20160818.log - code.20160820.log >
--- Log opened Fri Aug 19 00:00:28 2016
00:13 * Vornicus does some actual work work, then throws ten minutes at fixing dumb errors in vornball's collisions, gets... http://imgur.com/9XMXMxQ
00:51
<&McMartin>
Ha ha ha ha
00:51 * McMartin is doing battle with the Apple audio toolkits
00:51
<&McMartin>
Its error codes turn out to be very large and noncontiguous
00:51
<&McMartin>
"Unspecified Error", for example, is error code 2003329396
00:51
<&McMartin>
Why would you do that, you ask
00:51
<&McMartin>
Here' why
00:51
<&McMartin>
>>> struct.pack(">I", 2003329396)
00:51
<&McMartin>
'what'
00:51
<&Derakon>
Gotta leave some room in the address space in case you need to jump to an interior address~
00:52
<&Derakon>
...wait, what?
00:52
<&McMartin>
Yep, what.
00:52
<&Derakon>
What the what.
00:52
<&McMartin>
That the what!
00:52
<&McMartin>
All these error codes are actually four-character strings, a la IFF chunk IDs.
00:55
<&McMartin>
(The one I actually hit, before I went digging, turns out to be "insz" - invalid input size)
01:07 catadroid`` is now known as catadroid
01:15
< catadroid>
I was once invalid
02:09 catadroid [catadroid@Nightstar-6lsb6p.dab.02.net] has quit [The TLS connection was non-properly terminated.]
02:09 catadroid [catadroid@Nightstar-6lsb6p.dab.02.net] has joined #code
02:21 catadroid` [catadroid@Nightstar-6t7pjt.dab.02.net] has joined #code
02:23 catadroid [catadroid@Nightstar-6lsb6p.dab.02.net] has quit [Ping timeout: 121 seconds]
02:29 himi [sjjf@Nightstar-dm0.2ni.203.150.IP] has joined #code
02:29 mode/#code [+o himi] by ChanServ
02:40 gizmore [kvirc@Nightstar-3756co.dip0.t-ipconnect.de] has joined #code
04:33 McMartin [mcmartin@Nightstar-rpcdbf.sntcca.sbcglobal.net] has quit [Ping timeout: 121 seconds]
04:35 McMartin [mcmartin@Nightstar-rpcdbf.sntcca.sbcglobal.net] has joined #code
04:35 mode/#code [+ao McMartin McMartin] by ChanServ
04:39 gizmore [kvirc@Nightstar-3756co.dip0.t-ipconnect.de] has quit [Operation timed out]
04:40 gizmore [kvirc@Nightstar-inm87o.dip0.t-ipconnect.de] has joined #code
05:06 gizmore [kvirc@Nightstar-inm87o.dip0.t-ipconnect.de] has quit [[NS] Quit: KVIrc 4.9.2 Aria http://www.kvirc.net/]
05:15 VirusJTG_ [VirusJTG@Nightstar-6i5vf7.sta.comporium.net] has joined #code
05:18 VirusJTG [VirusJTG@Nightstar-6i5vf7.sta.comporium.net] has quit [Ping timeout: 121 seconds]
05:30 * Vornicus continues making vornball https://www.twitch.tv/vornotron
05:33 Derakon is now known as Derakon[AFK]
05:38 himi [sjjf@Nightstar-dm0.2ni.203.150.IP] has quit [Ping timeout: 121 seconds]
06:06
<~Vornicus>
I have to figure something out soon. Floor mode is used whenever you're touching a solid object, and it will apply force in directions parallel to the surface it's touching. For most situations this is just fine - most of the time, you'll either travel along the surface (if you're on an upward-facing surface, or travelling at decent speed on an upside-down surface), or fall away from the surface (if you're touching an upside down surface
06:06
<~Vornicus>
that you don't have the speed to stay stuck to). But there's one situation where that's not true.
06:06
<~Vornicus>
Vertical walls.
06:18
<~Vornicus>
Where gravity doesn't get you away from the wall or push you into it, and indeed in the real world there's no friction, so rolling on the wall isn't going to work in the first place.
06:26
<~Vornicus>
...guess that makes sense, actually. I can check forces and if indeed I'm in a position where my toward-wall force is 0, I use air controls instead of parallel controls.
07:43
< catadroid`>
Yay Vornball
07:50
<~Vornicus>
:D
07:50 catadroid` is now known as catadroid
07:52 * Vornicus is making progress and it's so nice.
07:53
< catadroid>
^.^
07:53
< catadroid>
Huzzah
07:54
<~Vornicus>
did you see the bouncy thing from earlier
07:55
< catadroid>
I don't think so
07:56
<~Vornicus>
http://imgur.com/9XMXMxQ
07:57
< catadroid>
PHYSICS!
08:01 McMartin [mcmartin@Nightstar-rpcdbf.sntcca.sbcglobal.net] has quit [[NS] Quit: reboot]
08:03 McMartin [mcmartin@Nightstar-rpcdbf.sntcca.sbcglobal.net] has joined #code
08:03 mode/#code [+ao McMartin McMartin] by ChanServ
08:05
<&McMartin>
PHYSICS
08:05
< catadroid>
MCMARTIN
08:07
<&McMartin>
YES, IT IS I
08:07
<&McMartin>
though not for long
08:08 * McMartin was at the office until 2230 today, is totally going to bed now
08:08
< catadroid>
Oh shit dawg
08:08
< catadroid>
Sleep well
08:09 wolfmoon [uid178473@Nightstar-6br85t.irccloud.com] has joined #code
08:29 himi [sjjf@Nightstar-v37cpe.internode.on.net] has joined #code
08:29 mode/#code [+o himi] by ChanServ
08:30 Kindamoody[zZz] is now known as Kindamoody|out
08:45
< wolfmoon>
Pi: What is tree structures generally used for?
08:45
< wolfmoon>
What are*
08:48
<~Vornicus>
things I have used trees for: interpreters; pathfinding; sorting & searching; shade
08:48
< wolfmoon>
Hmm, that makes sense.
08:49
< wolfmoon>
Vornicus: How does one make code more elegant? In terms of, what is the difference between elegant and non-elegant code?
08:50
<~Vornicus>
Less I have to think about to understand a piece of code, the better it is
08:51 * Vornicus looks in his text editor at the 80 line method he wrote yesterday
08:51
<~Vornicus>
Don't code like that if you can avoid it, let me tell you
08:51 catadroid` [catadroid@Nightstar-7tqcdo.dab.02.net] has joined #code
08:51
< wolfmoon>
Haha, okay. I understand that. So sometimes it is better to split up your code into functional functions :D
08:52
< wolfmoon>
Like I did with an API-fetcher I had. I had a getForecast() and under there an setForecast() which just wrote it to the DB but that still was classified into little bits of functionality
08:53
< wolfmoon>
So is that more "elegant" than just writing to the DB in the getForecast()?
08:54
<@Pi>
wolfmoon: Almost everything :D
08:54 catadroid [catadroid@Nightstar-6t7pjt.dab.02.net] has quit [Ping timeout: 121 seconds]
08:55
<~Vornicus>
-- actually, right now I *should* refactor this, I'm going to need to anyway, and since you're here and I'm here I can show you how, if you want
08:55
<@Pi>
If you're working in a language like Haskell, especially, almost everything is graphs and trees.
08:56
< wolfmoon>
Pi: okay XD I think I did use tree structures when writing my own path-finding algorythm. (lost the code for that, unfortunately, but it was a bit buggy and did not find the best route)
08:56
< wolfmoon>
Vornicus: sure! Then I can at least kind of understand what it means to have elegant code XD
08:56
<~Vornicus>
https://www.twitch.tv/vornotron
08:57
<@Pi>
wolfmoon: That kind of factoring is great, yeah.
08:58
< wolfmoon>
Pi: Awesome :D
08:58
<@Pi>
The best code builds a vocabulary to solve a problem, and then states the solution clearly and elegantly using that vocabulary.
08:58
< wolfmoon>
Vornicus: what is that? (in other words, what does your code do)
08:59
<~Vornicus>
YOu're in there? good, I can start talking. :)
08:59
< wolfmoon>
Pi: Ah! That does help to define it more :)
08:59
<@Pi>
Good code is also flexible, and easy to modify for slight changes.
08:59
< wolfmoon>
Vornicus: It is slow as fuck though. (bad internet, I suppose)
08:59
<@Pi>
That is, slight changes in the requirements should result in slight changes to the code.
09:00
< wolfmoon>
Pi: Awesome :D thank you for clarifying
09:00
<@Pi>
Of a small change in functionality needs huge changes to the code, something is structured wrong.
09:01
<@Pi>
(If, even)
09:02
< wolfmoon>
Vornicus: Sorry, I can not attend your web thingie. Too slow internet
09:02
< wolfmoon>
Pi: I understand that ^^
09:02
<~Vornicus>
:(
09:02
<~Vornicus>
sad day. I must code like noone's watching
09:02
< wolfmoon>
Vornicus: Sorry /: but it seems you do have an audience though
09:04
<~Vornicus>
(insert that scene from whatever the hell movie it is where someone slides into the frame in like socks and underwear and dances to -- uh -- man I can't remember)
09:05
< wolfmoon>
Vornicus: Risky business?
09:05
< wolfmoon>
https://www.google.co.za/webhp?sourceid=chrome-instant&ion=1&espv=2&ie=UTF-8#q=m ovie%20where%20where%20someone%20slides%20into%20the%20frame%20in%20like%20socks %20and%20underwear%20and%20dances
09:05
<~Vornicus>
yeah, google was quite skilled...
09:05
< wolfmoon>
XD
09:05
< wolfmoon>
hahah I googled your exact description
09:05
< wolfmoon>
Got that
09:17
<~Vornicus>
man, young tom cruise
09:44 himi [sjjf@Nightstar-v37cpe.internode.on.net] has quit [Ping timeout: 121 seconds]
09:58 celticminstrel is now known as celmin|Zzzzzz
10:08 Vornicus [Vorn@ServerAdministrator.Nightstar.Net] has quit [Ping timeout: 121 seconds]
10:12
< wolfmoon>
Who here enjoys doing the project Euler?
10:12
< wolfmoon>
https://projecteuler.net/archives
10:15 catadroid` [catadroid@Nightstar-7tqcdo.dab.02.net] has quit [[NS] Quit: Bye]
10:15 catadroid [catadroid@Nightstar-7tqcdo.dab.02.net] has joined #code
10:19 * TheWatcher sighs
10:19
<@TheWatcher>
Requesting documentation should not be a Big Thing.
10:19
<@TheWatcher>
It should just be there. Give me the sodding link to it. Argh
10:21 himi [sjjf@Nightstar-v37cpe.internode.on.net] has joined #code
10:22 mode/#code [+o himi] by ChanServ
10:24
< wolfmoon>
/
10:26
< catadroid>
D:
10:26
< catadroid>
Maybe you should document how it's supposed to work
10:29
<@TheWatcher>
I did, as part of the project description at the start.
10:31
< catadroid>
Maybe you should sell that documentation to increase its value
10:33
<@TheWatcher>
I'd prefer to just get the documentation I need our of these muppets.
10:37
< catadroid>
So I have this flamethrower
10:40
<@TheWatcher>
I was going to go with the woodchipper option.
10:51
<@Pi>
wolfmoon: I should do Euler again.
10:51
<@Pi>
I did some of it way back. Fun learnings.
10:55
< wolfmoon>
Pi: It is really fun! I finished up till #12
10:55
<@Pi>
wolfmoon: There are a few more things like that you can check out.
10:55
<@Pi>
exercism.io is cool :)
10:55
<@Pi>
It's focused on code style and feedback from other users, rather than just the problem solutions themselves.
10:57
< wolfmoon>
Pi: That looks really amazing. I think I shall give that a try
11:19
< wolfmoon>
*rawr*
11:19
< wolfmoon>
-rawr
11:20
< wolfmoon>
__rawr
11:20
< wolfmoon>
Grr
11:20
< wolfmoon>
How does one do that comment thing?
11:21
<@TheWatcher>
You mean
11:21 * TheWatcher this thing?
11:21
< wolfmoon>
Yes
11:21
<@TheWatcher>
/me <whatever>
11:21 * wolfmoon rawr
11:21
< wolfmoon>
Yay
11:21
< wolfmoon>
Thank you :)
11:22
<@TheWatcher>
:)
11:25
< wolfmoon>
I want to learn lu
11:25
< wolfmoon>
lua
11:25
< wolfmoon>
It looks like a nice language actually :P)
11:25
< wolfmoon>
But I am currently quite busy with django and machine learning
11:30
< catadroid>
Lua is a lovely little language
11:42
<@TheWatcher>
wolfmoon: you should learn perl!
11:43
< wolfmoon>
TheWatcher: Why? :P I mean, what do you like about perl? What makes it notable?
11:44
< wolfmoon>
Pi: I want to try to do one of the euler challenges in an esoteric language like brainfuck
11:47
<@Pi>
That can be fun :D
11:47
<@Pi>
How about doing it in Haskell~?
11:48
<@Pi>
Oh god not Perl.
11:48
<@Pi>
Run away
11:48
<@Pi>
I learned Perl. (I even own the Camel book.) Would not recommend, though.
11:49
<@Pi>
(Sorry TheWatcher :)
11:50
< wolfmoon>
Pi: What is Haskell~?
11:51
< wolfmoon>
Oh :D
11:51
< wolfmoon>
Hmm.. It looks like Haskell would be fun to learn as well ^^
11:52 * TheWatcher chuckles
11:54 * wolfmoon me
11:54
< wolfmoon>
XD
11:54
<@Pi>
Ooh, Haskell is my favourite language probably
11:54
< wolfmoon>
https://www.google.co.za/webhp?sourceid=chrome-instant&ion=1&espv=2&ie=UTF-8#q=H askell
11:55
< wolfmoon>
We should go to Haskell :D
11:55
<@Pi>
Beware of getting me started about it. :)
11:55
< wolfmoon>
Haskell vineyards
11:55
< wolfmoon>
https://www.google.co.za/maps/uv?hl=en&pb=!1s0x1dcc4cf02264c473:0x3171b61a06c270 d8!2m5!2m2!1i80!2i80!3m1!2i20!3m1!7e115!4shttp://www.roomsforafrica.com/establis hment.do?id%3D12344!5sHaskell+-+Google+Search&imagekey=!1e1!2shttp://www.roomsfo rafrica.com/new-gallery/theresidencexhaskellvineyards_1_24-x_large.jpg&sa=X&ved= 0ahUKEwjAl5vLp83OAhXkJMAKHYTDBTkQoioIgQE
11:55
< wolfmoon>
wCg
11:55
< wolfmoon>
Haha I will beware of it XD
12:12 mode/#code [+ao ToxicFrog ToxicFrog] by ChanServ
12:15
<@abudhabi>
What's the Keplerian formula for orbital distance in 3D?
12:16
<@abudhabi>
I found the 2D formula, but how does adding inclination affect it? Not at all?
12:20
<&ToxicFrog>
abudhabi: the orbit always lies completely on a 2d plane. Changing the inclination just changes the orientation of that plane relative to the primary.
12:21
<&ToxicFrog>
From the perspective of the orbiting body, it's eqv to rotating the primary in place without touching the orbital path at all.
12:21
<&ToxicFrog>
So yes, just use the 2d formula and ignore inclination.
12:22
<@abudhabi>
Cool.
12:22
<@abudhabi>
Thanks.
12:34 catadroid [catadroid@Nightstar-7tqcdo.dab.02.net] has quit [The TLS connection was non-properly terminated.]
12:35 catadroid [catadroid@Nightstar-7tqcdo.dab.02.net] has joined #code
12:49
<@abudhabi>
I'm getting slightly weird results.
12:49
<@abudhabi>
A small inclination gives me slight changes in z-coordinates, which is expected.
12:49
<@abudhabi>
What isn't expected is that it's from a base of the semi-major axis.
12:50
<@abudhabi>
http://pastebin.com/raw/KfhAcdAx
12:51
< wolfmoon>
abudhabi: It sounds like you are working on something interesting :D I always love doing interesting things like that
13:25
<@TheWatcher>
Ugh, I hate Java.
13:26
<@TheWatcher>
So much arsing with classpaths and goat sacrifices and opaque stupid problems
13:27
< wolfmoon>
TheWatcher: I agree. I had to learn it for highschool IT
13:27
< wolfmoon>
It was bs
14:01 celmin|Zzzzzz is now known as celticminstrel
14:10 * TheWatcher eyes The Button, decides to set up a class 6 ward before pressing it, because of the inconvenience of having face ripped off by awful things from Beyond
14:11
<@TheWatcher>
Well, bugger me
14:11
<@TheWatcher>
It works
14:22
< wolfmoon>
Haha I am glad it works XD
14:24
< wolfmoon>
Has anyone heard of Norman's Sky? Someone used Unity at a gaming expo to create an 8-bit version of No Man's Sky within 8 hours. As a game, it is horrid but as a piece of novilty is it quite awesome :D
14:33
<&ToxicFrog>
TheWatcher: do you have to work in *java*, or do you have to work *on the JVM*?
14:33
<&ToxicFrog>
If the latter, get your clojure on.
14:35
<@TheWatcher>
The former; more specificially a combination of jenkins plugin wrangling, and performing the dread rituals required to make jenkins work properly with ant/ivy/cobertura/sonarqube/custom automated marking gubbins/ohgodsthebleedingfromtheeyes
14:37
< catadroid>
I once had eyes
14:39
< wolfmoon>
catadroid: What do you mean?
15:06
< catadroid>
Hm I really want to implement a Lisp
15:06
< catadroid>
Just because I can
15:07
<&ToxicFrog>
wolfmoon: she works in C++! Where she's going, they don't need eyes to C
15:08
<@Pi>
Everyone should implement a Lisp at least once :)
15:08
<@Pi>
It's a great experience.
15:09
<&ToxicFrog>
I implemented a forth once, I don't think I ever implemented a lisp.
15:09
<@TheWatcher>
ToxicFrog: ... groan
15:09
<@Pi>
I haven't done a Forth yet. I should.
15:10
< catadroid>
I suspect i might end up implementing quite a lot of Lisp
15:10
<@Pi>
I began poking at a metacircular-ish Haskell implementation at one point.
15:11
<&ToxicFrog>
This is kind of making me want to write (in clojure) a clojure compiler that emits LLVM IR instead JVM bytecode
15:11
<@Pi>
The type system is the main niggle there, though; I'm not sure how to approach that metacircularly (or whether that's even possible)
15:13
<&ToxicFrog>
This is probably a bad idea.
15:17
<@Pi>
Hmm! http://okmij.org/ftp/tagless-final/JFP.pdf
15:18 * Pi tries to remember that for later
15:21 catadroid` [catadroid@Nightstar-3l438m.dab.02.net] has joined #code
15:24 * catadroid` is having thinks about how stack frames are object oriented object state blocks that are neatly owned
15:24 catadroid [catadroid@Nightstar-7tqcdo.dab.02.net] has quit [Ping timeout: 121 seconds]
15:32
<@Pi>
In Python stack frames are just Python objects :)
15:32
<@Pi>
You can even pickle and unpickle them if you're crazy enough.
15:33
<@Pi>
(I wrote a resumable continuation / do syntax hack like that once.)
15:36
< catadroid`>
Well, variable access is basically just special syntax for accessing your stack frame I suppose
15:36
< catadroid`>
With rules for recursing
15:41
<@Pi>
Usually the scope resolution happens at compile time these days.
15:41
<@Pi>
There are few languages with dynamic scoping still.
15:41
<@Pi>
Elisp is still dynamically scoped, right? :)
15:46
<@abudhabi>
http://pastebin.com/raw/KfhAcdAx <- Anyone have an idea why the z coordinate is off by 10?
15:52
< catadroid`>
My head aims
15:52
< catadroid`>
swims
15:52
< catadroid`>
With too many ideas
15:53
<&ToxicFrog>
Pi: postscript, and clojure has optional dynamic scoping with (binding)
15:54
<&ToxicFrog>
(which is fantastic on those rare occasions you need it)
15:54
<@Pi>
catadroid`: If this is your kind of poison, you should dip into #lambdanow on Freenode :)
15:54
<@Pi>
Lots of language geekery happens there on occasion.
15:54
< catadroid`>
I don't want to overload myself
15:56
<@Pi>
Oki, all good. Just thought I'd mention. :)
16:25 VirusJTG [VirusJTG@Nightstar-6i5vf7.sta.comporium.net] has joined #code
16:25 mode/#code [+ao VirusJTG VirusJTG] by ChanServ
16:28 VirusJTG_ [VirusJTG@Nightstar-6i5vf7.sta.comporium.net] has quit [Ping timeout: 121 seconds]
16:36 catadroid` [catadroid@Nightstar-3l438m.dab.02.net] has quit [The TLS connection was non-properly terminated.]
16:37 catadroid [catadroid@Nightstar-3l438m.dab.02.net] has joined #code
16:46 Derakon[AFK] is now known as Derakon
16:46
<&Derakon>
http://help.adobe.com/en_US/livecycle/11.0/DesignerScriptingRef/search.html?gsa= 1&q=app
16:48 catadroid` [catadroid@Nightstar-3l438m.dab.02.net] has joined #code
16:48 catadroid [catadroid@Nightstar-3l438m.dab.02.net] has quit [The TLS connection was non-properly terminated.]
16:55 catadroid` [catadroid@Nightstar-3l438m.dab.02.net] has quit [[NS] Quit: Bye]
17:24 wolfmoon [uid178473@Nightstar-6br85t.irccloud.com] has quit [[NS] Quit: Connection closed for inactivity]
17:35 Vornicus [Vorn@ServerAdministrator.Nightstar.Net] has joined #code
17:35 mode/#code [+qo Vornicus Vornicus] by ChanServ
18:01 ion [Owner@Nightstar-oj1.09k.65.184.IP] has quit [Ping timeout: 121 seconds]
18:20 ion [Owner@Nightstar-oj1.09k.65.184.IP] has joined #code
19:09 ion [Owner@Nightstar-oj1.09k.65.184.IP] has quit [Ping timeout: 121 seconds]
19:10 ion [Owner@Nightstar-oj1.09k.65.184.IP] has joined #code
19:24 ion [Owner@Nightstar-oj1.09k.65.184.IP] has quit [Ping timeout: 121 seconds]
20:25
<&jerith>
Pi: You're talking at CTPUG tomorrow, right?
20:26
<@Pi>
Yup!
20:27
<&jerith>
Excellent.
20:27
<~Vornicus>
misread that as connecticut first
20:27
<@Pi>
If all goes as planned. xD
20:27
<&jerith>
Want to do a combined "Functional Programming For Pythoners" talk at pyconza?
20:29
<~Vornicus>
'cause if it were in new haven I'd be all up in that
20:29
<&jerith>
Vornicus: You should totally come to Cape Town for pyconza.
20:30
<~Vornicus>
Clearly
20:31
<&jerith>
ZA's pretty cheap if you have dollars. It's just travel that's tricky.
20:37
<@Pi>
jerith: Oh god xD
20:37
<@Pi>
That's not a definite no. I have no idea if I'm ready to talk at PyConZA though!
20:37
<&jerith>
Pi: Is that a "yes"? :-P
20:37
<@Pi>
That's a maybe, maybe?
20:37
<&jerith>
Pi: If I can do it, you definitely can.
20:37
<@Pi>
What would a combined talk involve?
20:38
<&jerith>
I'll let you know when I've done one~
20:42
<~Vornicus>
what the maybe
22:02 Kindamoody|out is now known as Kindamoody
22:11 ion [Owner@Nightstar-oj1.09k.65.184.IP] has joined #code
22:18 ion [Owner@Nightstar-oj1.09k.65.184.IP] has quit [Ping timeout: 121 seconds]
22:21 ion [Owner@Nightstar-oj1.09k.65.184.IP] has joined #code
22:32 catadroid [catadroid@Nightstar-ivk.emm.215.90.IP] has joined #code
--- Log closed Sat Aug 20 00:00:44 2016
code logs -> 2016 -> Fri, 19 Aug 2016< code.20160818.log - code.20160820.log >

[ Latest log file ]