Perl 6 - the future is here, just unevenly distributed

IRC log for #pdl, 2016-07-23

| Channels | #pdl index | Today | | Search | Google Search | Plain-Text | summary

All times shown according to UTC.

Time Nick Message
18:16 drrho joined #pdl
20:25 chm joined #pdl
20:27 chm CandyAngel: The memory leak appears to happen when the functions are called with an extra (incorrect) argument.
20:28 CandyAngel Oh, am I not supposed to do that?
20:28 chm CandyAngel: Please add it to the sf.net tracker so we can tighten up the arg handling.
20:28 chm The arguments for glutDisplayFunc() and all are the same as for the original C GLUT (just the callback routine).
20:28 CandyAngel It only seems to leak for glutIdle
20:28 chm That said, robust code checks would be helpful to users.
20:29 chm Actually, it probably leaks a bit but unless you're calling things many times, you won't notice.
20:29 chm In theory, it could cause some sort of stack corruption leading to failure more dramatically.
20:29 CandyAngel It doesn't leak even if I call glutPostRedisplay in the idle callback
20:31 CandyAngel Oh wait, maybe it does. Sorry
20:31 CandyAngel Getting confused because I have been trying lots of ways trying to narrow it down
20:32 chm Yes, I understand.  There was a recent bug with PDL where if you passed an extra arg to a sort routine, SEGFAULT
20:32 CandyAngel Ouchhhh
20:32 chm While technically incorrect code---bad for the user experience.
20:33 chm It might make sense to have some prototyping/compile time check to provide early warnings to users.
20:33 CandyAngel Well, in this case, it doesn't really need to error, it should just not work (not pass the extra arguments to the callback)
20:33 CandyAngel I discovered it completely by accident
20:33 CandyAngel And then never used it until recently :D
20:34 chm Part of the problem with FreeGLUT is that GLUT is not open sourced so that the docs can be used.
20:34 CandyAngel We (OpenHMD) recently got some Vive support working, so I've got excitement about coding my VR things back
20:34 chm As a result, the FreeGLUT docs are sort of like this (same as GLUT with this new stuff).
20:35 chm Cool!
20:35 chm Are you an OpenHMD developer?
20:36 CandyAngel Yeps
20:37 chm I'll definitely have to add that to my list of tracked developments.
20:37 CandyAngel ^_^
20:38 CandyAngel It's one of the reasons I have been asking about Modern OpenGl in Perl
20:40 CandyAngel I want to use OpenHMD and Perl to make VR games and stuff
20:47 chm I'm interested in stereo visualization---it would be cool to combine that with HMD (Perl-Mon-Go!)
20:49 CandyAngel Stereo Visualisation?
20:51 CandyAngel Hmm.. I'll add it to sf once it lets me log in :P
20:58 CandyAngel Even reset my password and it won't let me in >.<
21:30 CandyAngel chm: Sorry, I can't log into sf to log the issue :/

| Channels | #pdl index | Today | | Search | Google Search | Plain-Text | summary