Re: [Jprogramming] Running a video game loop

2014-08-29 Thread Raul Miller
Actually, thinking about this - you could reduce average wait time (if that is significant) by introducing a third instance which does nothing but relay messages. (You could pilot this using a file or two, to represent the middle layer, but that could introduce occasional errors with partially wri

Re: [Jprogramming] Running a video game loop

2014-08-29 Thread 'Pascal Jasmin' via Programming
I think the system timer or new jqt form timers are going to be part of the solution. You can schedule them for 34 ms. In Jqt you can also have independent timers, but that is unlikely to be a useful experiment, unless there are time based game data updates independent of frames. Your keyboar

Re: [Jprogramming] Running a video game loop

2014-08-29 Thread Eric Iverson
Latest version of JHS supports timer events which would allow interesting web game apps. On Friday, August 29, 2014, Neill Robson wrote: > Hello to all on the forum! If any you happen to know Mr. (Henry) Rich, I'm > one of his students. > > The most direct way to create a constantly updating scr

Re: [Jprogramming] Running a video game loop

2014-08-29 Thread Joe Bogner
Hi Neill Here are a couple links that may be of interest I agree with Bill that a loop makes sense. Sockets may ne unnecessary. Pascal's task scheduler can be used without sockets and it basically acts as a cooperative scheduler http://www.jsoftware.com/jwiki/PascalJasmin/OOP%20scheduler%20and%2

Re: [Jprogramming] Running a video game loop

2014-08-29 Thread Raul Miller
What I think you want to do here is run two instances of J. One instance for your "ticks" and the other for your "frames". Sockets would be a way for these instances to communicate. Loosely speaking: one of the instances would be a "web browser" and the other would be a "web server" (but the comp

Re: [Jprogramming] Running a video game loop

2014-08-29 Thread bill lam
I can see nothing wrong with using explicit loop in J in the context you described. I suggest you translate java into j to get a working prototype first. On Aug 30, 2014 7:23 AM, "Neill Robson" wrote: > Hello to all on the forum! If any you happen to know Mr. (Henry) Rich, I'm > one of his stude

[Jprogramming] Running a video game loop

2014-08-29 Thread Neill Robson
Hello to all on the forum! If any you happen to know Mr. (Henry) Rich, I'm one of his students. The most direct way to create a constantly updating screen in J is to run the relevant gl2 commands in a sys_timer verb, set to repeat at a certain interval by the window driver. However, for a video ga

Re: [Jprogramming] I'd like to add you to my professional network on LinkedIn

2014-08-29 Thread Don Kelly
OOPS! Don On 29/08/2014 3:43 PM, Raul Miller wrote: Always be suspicious of email from strangers addressed to "you". Thanks, -- For information about J forums see http://www.jsoftware.com/forums.htm

Re: [Jprogramming] I'd like to add you to my professional network on LinkedIn

2014-08-29 Thread Raul Miller
Always be suspicious of email from strangers addressed to "you". Thanks, -- Raul On Fri, Aug 29, 2014 at 6:34 PM, Don Kelly wrote: > I am gratified but will be unsubscribing as I am long retired and out of any > active professional loop. > > Dr. Don Kelly P.eng (life member-Alberta) > > On 28

Re: [Jprogramming] I'd like to add you to my professional network on LinkedIn

2014-08-29 Thread Don Kelly
I am gratified but will be unsubscribing as I am long retired and out of any active professional loop. Dr. Don Kelly P.eng (life member-Alberta) On 28/08/2014 9:25 PM, Gary Luther wrote: Hi, I'd like to add you to my professional network on LinkedIn. - Gary Accept: http://www.linkedin.com/b

Re: [Jprogramming] Copy & Paste

2014-08-29 Thread Devon McCormick
Also, if you run jconsole, a C&P executes each line as if they were entered serially. On Fri, Aug 29, 2014 at 5:48 AM, Joe Bogner wrote: > In addition to Linda's answer: > > for quick evaluation of scripts on the clipboard, you can use F8 in > jqt (Run->Clipboard). In JHS, there's a scratch win

Re: [Jprogramming] Trampolining (was Adler-32)

2014-08-29 Thread Jose Mario Quintana
Thomas wrote: > I am actually more encouraged now about the prospects of O. This is a performance comparison of a classic, tail recursive, and a TCO versions of factorial: NB. Factorial... fact =. 1:`(* $:@<:)@.(1&<)NB. Classic tail =.(* , <:@:])/

Re: [Jprogramming] Copy & Paste

2014-08-29 Thread Joe Bogner
In addition to Linda's answer: for quick evaluation of scripts on the clipboard, you can use F8 in jqt (Run->Clipboard). In JHS, there's a scratch window (action->scratch) You can also do it manually from within jqt: NB. execute clipboard contents (0!:1) wd 'clippaste' On Fri, Aug 29, 2014

Re: [Jprogramming] Copy & Paste

2014-08-29 Thread seb_foren
Many thanks for your very helpful answer! :) -- Originalnachricht -- Von: "Linda Alvord" An: programm...@jsoftware.com Gesendet: 29.08.2014 11:04:24 Betreff: Re: [Jprogramming] Copy & Paste Sebastian, J has two environments and they are quite different, but they are both also similar.

Re: [Jprogramming] Copy & Paste

2014-08-29 Thread Linda Alvord
Sebastian, J has two environments and they are quite different, but they are both also similar. Each has a an active "terminal". Cut and paste is line by line as the terminal responds like a person. The dialog is enter, response, enter.. Each has a place for putting code. In jqt the choices are

[Jprogramming] Copy & Paste

2014-08-29 Thread seb_foren
Hi, How can I actually copy and paste J scripts to a term window and execute the code directly. So far I copied small scripts (only a few lines) line per line, but this is not a really solution and now I have to copy scripts with many lines. Best regards, Sebastian --