Perl 6 - the future is here, just unevenly distributed

IRC log for #pogl, 2017-07-03

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

All times shown according to UTC.

Time Nick Message
03:05 chm joined #pogl
04:56 Mithaldu joined #pogl
11:02 chm joined #pogl
18:22 nrdvana joined #pogl
18:23 nrdvana chm: Hi
18:23 chm nrdvana: hi back...
18:24 nrdvana currently reading around for a way to test an X server whether it supports indirect rendering
18:24 chm I'm in the process of installing Dist::Zilla via cpan to see if I can build from the git repo
18:24 nrdvana seems like not many people actually want it though :-)
18:25 nrdvana also, the git repo has quite a bit of un-published code in it
18:25 nrdvana I was trying to build a compositing window manager, and figured I'd wait to publish until I'd implemented every GLX call needed to make that happen
18:25 chm nrdvana: Yes, indirect rendering was cool but is it usually not accelerated so lower interest (from me included)
18:26 nrdvana currently X11 does accelerated indirect.  so the benefit of indirect is that two programs can contribte to the rendering
18:26 nrdvana but it prevents other things like memory maps direct to the driver
18:27 nrdvana so all depends on what you're trying to do with OpenGL
18:27 chm nrdvana: My focus is on the OpenGL part and less on platform variations.
18:27 nrdvana my new plan was to use compositing window manager tech to let two programs contribute to rendering
18:28 chm nrdvana: The new OpenGL::Modern no longer includes the kitchen sink of GLUT, X11, GLU, Array
18:28 chm nrdvana: Your X11::GLX is perfect since it seems to be a superset of what GLX+X11 there is in OpenGL.
18:28 nrdvana OpenGL::Modern also probably lost support for glTranslate and friends, right?  ;-)
18:29 chm If you take a look at the pogl_gl_top.xs file in the OpenGL distribution you'll see what is there now.
18:29 chm No, OpenGL::Modern is building all the OpenGL extensions from the GLEW include file processing.
18:30 chm It is a work in progress because there are a *zillion* function calls and I'm new to the shader stuff
18:30 chm and not really a power programmer so the XS is a bit of a struggle.  I know what is needed but the implementation is not so easy.  :-)
18:31 chm nrdvana: OpenGL::Modern already has more OpenGL support than OpenGL.
18:31 nrdvana ok, cool.  so I don't have to fight through the shaders yet unless I want to?
18:31 chm nrdvana: The missing piece is the direct perl bindings for functions taking pointers
18:31 chm since those can be either a value or an array and input or output depending on usage.
18:31 nrdvana I'm a veteran C guy, and mostly veteran perl guy these days, and I just learned XS this past winter
18:32 nrdvana though I'd written a little Inline::C
18:32 chm I would be happed to add you as a developer to my OpenGL repos on github.
18:32 nrdvana in past years
18:32 nrdvana I'd be happy to help where I can
18:33 nrdvana my driving project is the perl-powered delorean.  were you at TPC this year?
18:33 chm My userid on github is devel-chm and there are a number of OpenGL repos there.
18:33 nrdvana "driving project", hehe, pun intended I guess
18:33 chm Yes, for the first time.
18:34 chm Part of the motivation for the modern opengl APIs is that you can use new embedded platforms.
18:34 nrdvana well then I might have met you :-)
18:34 chm Most of those don't do old-style opengl.
18:35 chm Maybe, but with parallel sessions it is hard to coordinate unless you plan ahead.
18:36 nrdvana I realize that the matrix/vertex functions are deprecated, but I feel like I don't really have time to learn shaders, and the old drawing was easy to prototype with
18:36 chm nrdvana: My other perl "hat" is Perl Data Language release manager.
18:38 chm As I said, OpenGL::Modern will include all the OpenGL from 1.x and up.  I've advertised as 2.x and higher because that is the new stuff.  OpenGL already covers the earlier bindings.
18:39 nrdvana cmh: pdl looks interesting.  hadn't seen it before
18:40 nrdvana btw, I think one problem OpenGL 1 has with previous stuff is the constants aren't becoming perl constants.  I'd been meaning to investigate more, but I think each access to a constant is running in O(n) time
18:40 chm nrdvana: Right now PDL-2.x is in a stable spot and I'm trying to re-archtect a new core computation engine to replace the build time, fixed types list of PDL-2.x
18:41 nrdvana I'd be interested if OpenGL::Modern could deliver actual constants for 1.x code
18:41 chm nrdvana: OpenGL::Modern doesn't have the problem because Mithaldu cleverly generates perl constant subs on use
18:41 nrdvana cool
18:41 chm You might be able to do such a trick with OpenGL if OpenGL::Modern doesn't have what you need (yet)
18:42 chm BTW: it is *much* easier to work with live user feedback.  If you try something with OpenGL::Modern that doesn't work, please report.
18:42 nrdvana sure
18:42 chm I definitely prioritize user reports over the total ~2000 functions to do.
18:43 chm Please feel free to add what OpenGL functions you use to https://github.com/devel-chm/OpenGL-Modern/issues/7
18:44 chm which is an issue tracking OpenGL usages that I know about to finish first.
18:45 nrdvana hm, work is calling.  I might have to resume later tonight
18:45 nrdvana chm: what time zone are you?
18:45 chm ok, nice chatting /o
18:45 chm o/
18:45 chm EST
18:45 nrdvana cool, same here
18:46 nrdvana (but I'll at least hang out in the channel here)
18:48 chm nrdvana: I've sent invites to all my github OpenGL repos

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