Perl 6 - the future is here, just unevenly distributed

IRC log for #pdl, 2015-01-28

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

All times shown according to UTC.

Time Nick Message
02:46 mohawk joined #pdl
16:20 CandyAngel joined #pdl
16:24 CandyAngel Is there anyone here who uses the OpenGL side of PDL?
16:40 vicash Mithaldu ^^
16:41 Mithaldu i use OpenGL.pm and PDL in opengl
16:41 Mithaldu CandyAngel: seriously though, don't ask to ask, it's bad form
16:42 CandyAngel Sorry
16:43 CandyAngel My brain is all kaput from trying to get my project to work
16:43 CandyAngel Basically, I want to use GLX_EXT_texture_from_pixmap from Perl
16:43 CandyAngel And it looks like PDL might give me access to the functions I need to do so
16:44 CandyAngel Because POGL (which I have been trying to use) doesn't have the GLX bindings for it
16:45 Mithaldu if you're missing constants or functions in opengl, you get to hack them in yourself
16:45 Mithaldu chm is working on making a new version that uses glew, but until then duct-taping is the way to go
16:45 Mithaldu here's my branch where i've ducktaped things in: https://github.com/wchristian/OpenGL.pm/commits/gltut
16:46 CandyAngel Well I looked at the PDL documentation and the functions I need are mentioned in PDL::Graphics::OpenGL
16:46 Mithaldu that said, i have no idea how PDL would help you in getting those functions
16:46 CandyAngel Or.. think I need
16:47 CandyAngel I have no idea what I'm doing, I'm trying to learn so I can make the program I want :)
16:47 Mithaldu i haven't the slightest idea about that module
16:47 CandyAngel Okie okie
16:47 CandyAngel dokie*
16:47 Mithaldu i don't even know what GLX_EXT_texture_from_pixmap is
16:47 CandyAngel Thank you for your time ^_^
16:47 CandyAngel Oh
16:47 CandyAngel It makes X draw a pixmap from its memory to the GPU as a texture
16:48 CandyAngel So I can use window pixmaps (compositing) without copying it to userspace and back
16:49 Mithaldu no wonder i never heard of it, i work on windows
16:49 CandyAngel That would explain it :)
16:50 CandyAngel Do you know what WGL is?
16:50 Mithaldu i'd recommend throwing chm an email
16:50 Mithaldu nope, never heard of it
16:50 CandyAngel Oh, I was going to say GLX is the equivalent of that :P
16:51 Mithaldu well, i get the rough idea
16:51 CandyAngel Okie, I will see if he maybe could add it, or add something so I can make my own wrapper using Inline::C maybe
16:51 Mithaldu OpenGL.pm seems to include some glx functionality
16:51 Mithaldu maybe you can just add it yourself
16:52 CandyAngel Mhm, I'm looking into all options :)
16:53 CandyAngel Been trying for like.. a week to get it working with ffmpeg and stuff but I'm struggling to get it to behave well
16:53 Mithaldu maybe perl is not exactly the best choice :)
16:54 Mithaldu anyhow, do throw him an email, because he's gonna read this at some point and if he has your mail he'll know how to answer if he has one
16:54 CandyAngel Will dooo
16:54 CandyAngel And Perl is the best choice.. for me.. I know it far better than any other language
16:55 CandyAngel You should have seen me try to do stuff with Inline::C.. what a disaster -.-
16:55 Mithaldu you have my sympathy, i know what that's like
16:55 CandyAngel I got it working in the end though. I didn'tgive up!
16:57 Mithaldu yeah, that's the story of my opengl tutorial
16:57 CandyAngel And the thing that I made is actually why I am looking at this
16:57 CandyAngel Trying to make a VR desktop for my Rift
16:57 Mithaldu that is brave
16:58 CandyAngel It cannot be said, without lying, that I am not always challenging myself *nodnod*
16:59 Mithaldu now that's a nice abuse of english
16:59 CandyAngel This just normally entails going headfirst into the deep end
17:00 mohawk inline::c is quite good
17:00 mohawk if you have problems with it, ask on #inline
17:00 Mithaldu unless you have hard questions
17:00 mohawk oh?
17:00 Mithaldu then just go and cry in a corner
17:00 mohawk what kind of hard questions? ;-)
17:01 Mithaldu my buffer of structs made of variably-sized pieces of data
17:01 mohawk ha ha
17:02 mohawk well, that's legitimately hard anyhow
17:02 Mithaldu yes what i said :)
17:02 mohawk on the C level, i mean
17:02 Mithaldu nah, on c it's easy :v
17:02 mohawk so write some XS yourself
17:02 mohawk ultimately, I::C is just a very very nice wrapper to do the XS stuff for you
17:02 Mithaldu that's not the goal of the exercise
17:03 mohawk go on
17:03 Mithaldu and it wouldn't be a useful api anyhow
17:03 Mithaldu once i get around to it the only thing i can do is give up on the variable-sized thing and abuse pdl futher
17:04 Mithaldu mohawk: i mean, all i really need is a wrapper around I::C::Struct that wraps an array of such objects
17:05 Mithaldu have a function so i can get a pointer to the whole thing, and one to instantiate a perl object pointing at a struct at a given index inside the array
17:05 Mithaldu but that is way beyond my expertise
17:06 mohawk such modesty
17:06 Mithaldu can't tell if sarcasm, funny, or just way over my head
17:09 mohawk huh, that was a bit complex
17:09 mohawk i think you're genuinely being modest because your expertise is significant
17:09 mohawk but there may have been a dash of irony as well
17:11 Mithaldu my c expertise is minimal
17:11 Mithaldu i can think in algorithms and data structures
17:11 mohawk fair enough
17:11 Mithaldu i may be able to cobble something together that compiles, by copy-pasting bits and pieces strategically from msdn and reading the docs for 3 days straight
17:11 Mithaldu but i have absolutely 0 confidence that i didn't cause a machine-destroying memory leak in the process even if it seems to work
17:29 CandyAngel mohawk: Inline::C is very good :) I didn't have problems with it, I had problems with using it while not knowing C :P
17:30 mohawk CandyAngel, yes, that would present a challenge
17:30 CandyAngel And I conquered it! :D
17:31 mohawk but with stackoverflow et al these days, not too hard a one
17:31 mohawk good effort
17:31 CandyAngel I also had the people in #openhmd helping me which was great
17:32 CandyAngel I may be the only person who uses Perl for VR, but I still made it work!
17:32 CandyAngel Well, one of 2 people
17:36 mohawk CandyAngel, you might be one of the first
17:36 mohawk if it gets good enough for that purpose, i doubt you'll be the last
17:36 mohawk good work in blazing a trail
17:37 mohawk Mithaldu, did you file an RT ticket re your I::Struct issues?
17:37 Mithaldu mohawk: what issues?
17:37 Mithaldu my only issue is
17:37 Mithaldu "doesn't do array"
17:37 mohawk i think you and Heinz (filer of another open ticket) might have a lot of ideas to bounce off each other
17:37 mohawk that's an issue
17:38 Mithaldu that's a feature request :P
17:38 mohawk potayto, potahto
17:38 mohawk i hear the I::Struct maintainer is a really reasonable, even awesome, guy
17:38 mohawk and very responsive to that sort of thing
17:41 CandyAngel You know what, now I'm getting more ideas for my VR desktop
17:42 CandyAngel Like have a table with CPU/memory usage 3D graphs on them :|
17:42 Mithaldu might be nice for multicore things
17:50 Mithaldu mohawk: i don't trust cpan uploaders as a rule
17:50 Mithaldu they never release fixes in a timely manner
17:50 Mithaldu myself included
17:57 vicash CandyAngel: i am curious about your VR devices that you use. Oculus Rift ?
18:03 CandyAngel vicash: Yeah, I have a DK1
18:04 CandyAngel It's the only one I've tried too. I don't know any other people nearby interested in this sort of stuff
18:29 vicash cool
19:56 mohawk i think i may have fixed parallel builds on my local PDL repo
19:56 mohawk which is nice
19:59 mohawk so time to make the tests parallelisable as well
20:00 mohawk sorry sivoais, you had your chance :-)
20:04 mohawk sivoais, the tests still need updating to use Test::More though, i won't do that :-)
21:54 CandyAngel I think I'm losing my mind
21:54 CandyAngel OpenGL::Array has randomly vanished :|
22:21 CandyAngel yes, ignore me
22:21 CandyAngel Whoever allowed me to code should be banned from letting people code :D
22:22 mohawk i'll get right on that
22:22 mohawk had it vanished after all?
22:25 CandyAngel No
22:25 CandyAngel You're not supposed to do 'use OpenGL::Array'
22:25 CandyAngel It just comes with 'use OpenGL' :|
22:26 CandyAngel i don't even know how I managed that considering I'd used it like.. yesterday
22:27 CandyAngel Actually, is talking about this stuff okay in here?
22:27 CandyAngel It's quite off topic :P
22:37 mohawk it's not like there's another conversation you're drowning out
22:37 mohawk and OGL is quite on-topic with PDL, so far as i can tell

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