Old OpengGL (1.x) is still supported on J8 if viedo card OpenGL driver is opengl 1.x or it provides compatibility profile. Some minor code modification is needed, please see jwiki and various opengl demos in qt demo and wd demo. OTOH webgl must use shader language IIRC.
Сб, 22 фев 2014, Raul Miller писал(а): > Talking about issues (as opposed to coding itself) probably belongs in chat > forum, not programming. > > We should try to make sure that programming forum messages always includes > some J expressions. > > And not just "sarcastic" expressions like =i.9 > > Ideally, in programming forum, we should also try to invite people to be > responding with code. > > I think we can tolerate minor deviations from this rule, but I think we > should also get in the habit of moving topics between forums as > appropriate. And (as a courtesy, since not everyone will want to subscribe > to all forums) I think we should often make the effort to Cc the person we > are responding to. > > That said, note that wd exists in j8. It has not been abandoned. The J8 > version could use some more work - there are wd commands that worked in J6 > which no longer make sense, and we need to do something to help people > trying J6 code on J8, so they have a way forward. > > My ideal would be that we could do complete backwards compatibility in user > space (some addon script). It's not just wd though, that has changed from > J6 to J8. Consider, for example, this entry from > http://rosettacode.org/wiki/OpenGL#J > > coclass 'example' > > (coinsert[require) 'jzopengl' > > > > create=:3 :0 > > ogl=: ''conew'jzopengl' > > wd 'pc p;cc c isigraph opengl rightmove bottommove;pas 0 0;pshow;' > > ) > > > > p_close=: destroy=:3 :0 > > destroy__ogl'' > > wd'pclose' > > codestroy'' > > ) > > > > corner=:4 :0 > > glColor3d x > > glVertex2d y > > ) > > > > p_c_paint=:3 :0 > > rc__ogl'' > > glClear GL_COLOR_BUFFER_BIT > > glBegin GL_TRIANGLES > > 1 0 0 corner 0 0-0.5 > > 0 1 0 corner 1 0-0.5 > > 0 0 1 corner 0 1-0.5 > > glEnd'' > > show__ogl'' > > ) > > > > conew~'example' > > > That works fine, for me, in J6 (though on windows 64 I had to work around a > problem where windows does not have a "64 bit" opengl implementation and > J64 needs to use the "32 bit" implementation). > > > It fails in J8 because the require statement does not work. > > > I (or someone) should probably go back in and do a j8 jqt version and a j8 > jhs (webgl) version. > > > But rosettacode is offline right now. I do not know if they are being > subjected to a denial of service attack from the internet or if it's a > funding issue or if they are about to shut down. Experience suggests that > whatever problem currently being experienced there is temporary. But anyone > who deals with computers knows that it's important to have backups because > we will have occasional catastrophic failures. Redundancy is important and > a necessary aspect of technological advance. > > > Thanks, > > > -- > > Raul > > > > > > > On Sat, Feb 22, 2014 at 8:47 AM, Björn Helgason <gos...@gmail.com> wrote: > > > One of the issues I have with J recent years is dropping the excelent wd > > from J6. > > > > I loved how easy it was to create screens etc. > > > > Dropping it for an uncertain future was a really bold move. > > > > I did not like it much but went with the flow. > > > > I do like JHS and all the new things it brings. > > > > Now the new JQT seems to give us wd back and better if anything. > > > > If you want to get people interested in J in 5 minutes it is by showing > > some of the plot demos and show how easy the definitions are to use with > > your code and also how easy it is to create guis to your apps with wd > > commands. > > > > Working with data is fine. > > > > Being able to work with them and present them easy is great. > > > > Grid and plots mixed with wd is brilliant. > > > > Showing helps, demos and labs in 5 minutes gives good ideas. > > > > - > > Björn Helgason > > gsm:6985532 > > skype:gosiminn > > On 22.2.2014 13:26, "Don Guinn" <dongu...@gmail.com> wrote: > > > > > There are so many "what ifs" in investing, managing a home and family. At > > > least J makes it a lot easier to try different strategies. > > > > > > > > > On Sat, Feb 22, 2014 at 12:08 AM, Björn Helgason <gos...@gmail.com> > > wrote: > > > > > > > Talking about present value or getting a promise of something in the > > > > future. > > > > > > > > It is not just interest rate but also inflation you need to think > > about. > > > > > > > > Not to mention broken promises and not paying back in the future. > > > > > > > > Bring in the value of a hamburger now or in the future or a painting or > > > > gold. > > > > > > > > It sure gets more complex. > > > > > > > > What about getting a hamburger now and keeping it for a few years? > > > > > > > > It is always difficult to get people interested in something > > > > > > > > I saw a short demo recently of how to get the bones out of a chicken > > > with a > > > > minimum damage to the skin. > > > > > > > > It is pretty easy now that I know how to do it and I have done it a few > > > > times. > > > > > > > > I am wondering why I did not start doing it years ago. > > > > > > > > - > > > > Björn Helgason > > > > gsm:6985532 > > > > skype:gosiminn > > > > On 22.2.2014 01:42, "Don Guinn" <dongu...@gmail.com> wrote: > > > > > > > > > Years ago I was in a class where the day's topic was the present > > value > > > > and > > > > > future value of money. The teacher asked for a volunteer. As you > > know, > > > > kids > > > > > are reluctant to volunteer. He finally got a volunteer. The student > > > came > > > > > up, he gave the student a dollar and said thanks for volunteering and > > > he > > > > > could sit back down. Then he asked for another volunteer. Now lots of > > > > > volunteers. He picked one. He gave the student a business card which > > he > > > > > wrote on the back that he could redeem it for a dollar one year from > > > that > > > > > date. The student sat back down. > > > > > > > > > > Then the instructor asked the first volunteer if he wanted to trade, > > > > which > > > > > he didn't. The instructor asked him "Why not trade? They're both > > worth > > > a > > > > > dollar. Well, how much would you charge to trade?" Needless to say, > > the > > > > > following discussion made the differences between present value and > > > > future > > > > > value and risks in future investments become crystal clear. And he > > > never > > > > > had to resort to any arithmetic. > > > > > > > > > > That really taught me the importance of present value of investments > > > that > > > > > mature in the future. So I think of for example, a dollar three years > > > > from > > > > > now is only worth a little over $0.86 today at 5% interest. A > > different > > > > way > > > > > to look at it, but easier to explain to kids. > > > > > > > > > > I had that business card stuck on my bulletin board in my office for > > > > years. > > > > > Don't know what ever happened to it. > > > > > > > > > > > > ---------------------------------------------------------------------- > > > > > For information about J forums see > > http://www.jsoftware.com/forums.htm > > > > ---------------------------------------------------------------------- > > > > For information about J forums see http://www.jsoftware.com/forums.htm > > > > > > > ---------------------------------------------------------------------- > > > For information about J forums see http://www.jsoftware.com/forums.htm > > ---------------------------------------------------------------------- > > For information about J forums see http://www.jsoftware.com/forums.htm > > > ---------------------------------------------------------------------- > For information about J forums see http://www.jsoftware.com/forums.htm -- regards, ==================================================== GPG key 1024D/4434BAB3 2008-08-24 gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3 gpg --keyserver subkeys.pgp.net --armor --export 4434BAB3 ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm