Re: [Jprogramming] docs for 11!:n (JWd)?

2023-04-17 Thread bill lam
I am unsure if the rust string is unicode or not. Anyhow J strings are utf8 and you may need to convert between unicode and utf8 inside the interface. On Tue, Apr 18, 2023 at 2:15 AM Michal Wallace wrote: > That makes sense now. Thanks, Bill. > > JPrez is (or rather was) a console application, s

Re: [Jprogramming] Problem with integer arithmetic

2023-04-17 Thread 'Pascal Jasmin' via Programming
> Example: 5 % m. 7 (9) gives 5 *(mod 7) (inverse of 9(mod 7)) example is not clear to me: is 5 % m. 7 (9) 7 | 5 % 9  NB.? I don't understand % as a typical application of modular arithmetic.   On Monday, April 17, 2023 at 02:56:28 p.m. EDT, Henry Rich wrote: In the next beta u m. n me

Re: [Jprogramming] Problem with integer arithmetic

2023-04-17 Thread 'Mike Day' via Programming
So m. is (or rather, will be) new, not old... Brilliant! Thanks, Mike Sent from my iPad > On 17 Apr 2023, at 19:56, Henry Rich wrote: > > In the next beta u m. n means 'u(mod n)' and will work for + - * % ^ . %. > coming soon. > > The only specials I see with m&| are m&|@^ and m&|@(n&^

Re: [Jprogramming] Problem with integer arithmetic

2023-04-17 Thread Henry Rich
In the next beta u m. n means 'u(mod n)' and will work for + - * % ^ .  %. coming soon. The only specials I see with m&| are m&|@^ and m&|@(n&^) which can be replaced by [n] (^ m. m) y. Example: 5 % m. 7 (9) gives 5 *(mod 7) (inverse of 9(mod 7)) Henry Rich On 4/17/2023 2:07 PM, 'Michael Da

Re: [Jprogramming] docs for 11!:n (JWd)?

2023-04-17 Thread Michal Wallace
That makes sense now. Thanks, Bill. JPrez is (or rather was) a console application, so I wanted to make a new frontend that could draw a text console quickly, but also do the audio recordings. My first attempt was to write an extension for the Godot game engine using rust, leading to: https://gi

Re: [Jprogramming] Problem with integer arithmetic

2023-04-17 Thread 'Michael Day' via Programming
u m. n ?  I thought m. disappeared many versions ago, along with x. y. etc ! Could you provide an example?    And is m&|@u deprecated for other verbs u ? Float results would be helpful.  Presumably an array would be returned as float if at least one element needed to float,  as usual. Thanks a

Re: [Jprogramming] docs for 11!:n (JWd)?

2023-04-17 Thread Michal Wallace
Aha! I was not aware of the ide_qt repo. I was only looking in qtide, and was confused why there weren't any *.ijs files. Good point. I think at one point, I had defined a verb called 'whence' that would do this process and tell you where a name came from. On Mon, Apr 17, 2023 at 1:43 PM Raul Mi

Re: [Jprogramming] docs for 11!:n (JWd)?

2023-04-17 Thread Raul Miller
I think you are looking for https://github.com/jsoftware/ide_qt/blob/master/qt.ijs#L225 for wd getting the address. (And wd itself is defined a few lines above there, on line 211.) For jgl2, it would be here: https://github.com/jsoftware/ide_qt/blob/master/gl2.ijs#L131 Note that you could also

Re: [Jprogramming] docs for 11!:n (JWd)?

2023-04-17 Thread bill lam
I should have said both j and jqt can call each other directly using the visible dllexport function name as entry points. jlib.h in jsource repos and gl2.ijs etc in qt ide addon. The function prototype of gl2 are listed in gl2.ijs of qt ide. gl2class.h is the implementation already. If you look a

Re: [Jprogramming] can i record audio in jqt?

2023-04-17 Thread Raul Miller
It would need added support in https://github.com/jsoftware/qtide -- right now, jqt doesn't have a control which uses QAudioRecorder. But it seems doable. Thanks, -- Raul On Mon, Apr 17, 2023 at 1:02 PM Michal Wallace wrote: > > I see there is a qtaudio_wasapi.dll and qtaudio_windows.dll... >

[Jprogramming] can i record audio in jqt?

2023-04-17 Thread Michal Wallace
I see there is a qtaudio_wasapi.dll and qtaudio_windows.dll... And I see this on the QT site: https://doc.qt.io/qt-5/qtmultimedia-multimedia-audiorecorder-example.html Could I have used this somehow to record audio from out-of-the-box J rather than making my own J frontend? (I don't regret makin

Re: [Jprogramming] docs for 11!:n (JWd)?

2023-04-17 Thread Michal Wallace
Thanks Bill. I have JWd working now, but I'm a little confused about what you're trying to tell me about jQT. You're saying that jqt can call j.dll directly, but what does that have to do with J calling functions defined in the frontend? How does jgl2 (for example) get the address of the corresp