Re: [Jprogramming] does mema handover to the gc mechanism, looping...

2020-12-08 Thread Joey K Tuttle
Jobs - bad assumption. Having said that, I don't want to discourage entrepreneurs, looking forward to your startup. Loops and resources. Henry is modest and I haven't seen any remarks indicating you have absorbed Henry's book - J for C Programmers https://www.jsoftware.com/help/jforc/content

Re: [Jprogramming] does mema handover to the gc mechanism, looping...

2020-12-08 Thread Hauke Rehr
Maybe this is the time for me to pick up my work on the four main composition conjunctions. Actually, I don’t remember why we didn’t go on from where we got in May. @Henry, Ian, Art: Do you remember why we didn’t go on here? Is anything missing? I don’t remember there was anything we couldn’t agre

Re: [Jprogramming] NYCJUG today in an hour

2020-12-08 Thread Devon McCormick
You could join the "J Dynamic Functional" Meetup. On Tue, Dec 8, 2020 at 4:44 PM 'Rob Hodgkinson' via Programming < programm...@jsoftware.com> wrote: > Sorry to this group, had meant to send to Devon directly. > > > On 9 Dec 2020, at 8:43 am, 'Rob Hodgkinson' via Programming < > programm...@jsoft

Re: [Jprogramming] NYCJUG today in an hour

2020-12-08 Thread 'Rob Hodgkinson' via Programming
Sorry to this group, had meant to send to Devon directly. > On 9 Dec 2020, at 8:43 am, 'Rob Hodgkinson' via Programming > wrote: > > Sorry Devon, would have joined, but only just saw this notice/time now… too > late and have work tasks this morning. > > Is there a list that sends out for invi

Re: [Jprogramming] NYCJUG today in an hour

2020-12-08 Thread 'Rob Hodgkinson' via Programming
Sorry Devon, would have joined, but only just saw this notice/time now… too late and have work tasks this morning. Is there a list that sends out for invites / calendar ? Or is it always regular (eg 2nd Tue monthly or whatever ?)…/Rob > On 9 Dec 2020, at 7:23 am, Devon McCormick wrote: > >

Re: [Jprogramming] does mema handover to the gc mechanism, looping...

2020-12-08 Thread emacstheviking
Yes Henry I know about those. I have a reasonable understanding of it but I lack the flying time in general solving real issues with J. I spent 45 minutes last night just absorbing the page on ranks, array, k-cells and framesit makes sense when you read it! I am never going to get a job worki

[Jprogramming] NYCJUG today in an hour

2020-12-08 Thread Devon McCormick
The materials for today's meeting are here: https://code.jsoftware.com/wiki/NYCJUG/2020-12-08 The link to join the meeting may be found here: https://www.meetup.com/J-Dynamic-Functional-Programming/events/rcnjwrybcqblb/ Hope to see some of you there! -- Devon McCormick, CFA Quantitative Consu

Re: [Jprogramming] does mema handover to the gc mechanism, looping...

2020-12-08 Thread Henry Rich
Do you know about NuVoc and the ancillary pages pointed to below the primitive table?  There is a lot written about rank. Henry Rich On 12/8/2020 2:27 PM, emacstheviking wrote: Hauke, PERFECT! ,.psz &.> pqfname@(res&;)"0 i.ncols ┌───┐ │id │ ├───

Re: [Jprogramming] Writings of Keith Smillie

2020-12-08 Thread Devon McCormick
I just put all the files from the zip up here: http://sigapl.org/ArticlesKeithSmillie.php . Please take a look and let me know what you think. On Tue, Dec 8, 2020 at 1:29 PM Murray Eisenberg wrote: > Where is the zip file with Smillie’s files? > > > On8 Dec 2020 02:18:57 -0500, Devon McCormick

Re: [Jprogramming] does mema handover to the gc mechanism, looping...

2020-12-08 Thread emacstheviking
Hauke, PERFECT! ,.psz &.> pqfname@(res&;)"0 i.ncols ┌───┐ │id │ ├───┤ │invoice_id │ ├───┤ │created│ ├───┤ │status │ ├───┤ │ce_survey_id │ ├───┤ │

Re: [Jprogramming] Writings of Keith Smillie

2020-12-08 Thread Murray Eisenberg
Where is the zip file with Smillie’s files? > On8 Dec 2020 02:18:57 -0500, Devon McCormick > wrote: > > These essays [of Keith Smillie] are pertinent today and most of the code > ought to work with an > obvious exception: the Windows-based GUI code circa J 4.01. > >

Re: [Jprogramming] does mema handover to the gc mechanism, looping...

2020-12-08 Thread emacstheviking
Bingo Hauke, I was waiting patiently and you arrived. :D I will study those in great detail for sure. Thanks for your time, Sean On Tue, 8 Dec 2020 at 17:15, Hauke Rehr wrote: > Did I miss something or didn’t anyone answer the looping question yet? > > Without knowing much about what the names

Re: [Jprogramming] does mema handover to the gc mechanism, looping...

2020-12-08 Thread emacstheviking
Raul, I'm sure you credit me with far more intelligence than I really have :) Currently I am striving to write a proof-of-concept game in Pure J with call outs to SDL2. However, I am beginning to think that for anything more, it might be better to have a C "app" that then loads up jlib. I want J t

Re: [Jprogramming] does mema handover to the gc mechanism, looping...

2020-12-08 Thread emacstheviking
Henry, I know where the mines are. I wasn't planning anything so rash, merely posing some idle questions. My code has already used, mema and memf, as well as memr and ic without issue. Sean. On Tue, 8 Dec 2020 at 16:42, Henry Rich wrote: > Don't even think about fooling with J memory blocks.

Re: [Jprogramming] does mema handover to the gc mechanism, looping...

2020-12-08 Thread Hauke Rehr
Did I miss something or didn’t anyone answer the looping question yet? Without knowing much about what the names involved are doing, I think it ought to be pqfname@(res&;)"0 i. ncols which will have the shape (shape of i. ncols)×(shape of whatever pqfname res;0 returns) Am 08.12.20 um 14:34 schri

Re: [Jprogramming] does mema handover to the gc mechanism, looping...

2020-12-08 Thread Henry Rich
That's just the beginning.  You picked a line with a comment: what are all the other lines doing? Valid blocks have many flags and many implied dependencies. Henry Rich On 12/8/2020 11:54 AM, Raul Miller wrote: Stuff like https://github.com/jsoftware/jsource/blob/master/jsrc/cc.c#L366 ? Than

Re: [Jprogramming] does mema handover to the gc mechanism, looping...

2020-12-08 Thread Raul Miller
Stuff like https://github.com/jsoftware/jsource/blob/master/jsrc/cc.c#L366 ? Thanks, -- Raul On Tue, Dec 8, 2020 at 11:42 AM Henry Rich wrote: > > Don't even think about fooling with J memory blocks. Use mema, memr, > memw, memf, memu. Anything else will crash. > > Henry Rich > > On 12/8/202

Re: [Jprogramming] does mema handover to the gc mechanism, looping...

2020-12-08 Thread Henry Rich
Don't even think about fooling with J memory blocks.  Use mema, memr, memw, memf, memu.  Anything else will crash. Henry Rich On 12/8/2020 11:37 AM, Raul Miller wrote: I would classify that as possible, but maybe not in the way that you are envisioning. (1) There's a header that J's array mec

Re: [Jprogramming] does mema handover to the gc mechanism, looping...

2020-12-08 Thread Raul Miller
I would classify that as possible, but maybe not in the way that you are envisioning. (1) There's a header that J's array mechanism would need in front of that string (in older versions of J -- the newer versions support aliasing into arrays, but require a J array to alias -- I haven't studied eno

Re: [Jprogramming] does mema handover to the gc mechanism, looping...

2020-12-08 Thread emacstheviking
Is it even possible then "introduce" a new managed (ie auto garbage collected reference counted) string variable given some C pointer to a string? On Tue, 8 Dec 2020 at 15:48, bill lam wrote: > mema memf are exactly the same as malloc and free in c. > > memr involves memory copy, no alias. >

Re: [Jprogramming] does mema handover to the gc mechanism, looping...

2020-12-08 Thread emacstheviking
OK, that at least solved that point. Thanks Bill. On Tue, 8 Dec 2020 at 15:48, bill lam wrote: > mema memf are exactly the same as malloc and free in c. > > memr involves memory copy, no alias. > > On Tue, Dec 8, 2020, 9:34 PM emacstheviking wrote: > > > Apologies for the length of this email

Re: [Jprogramming] does mema handover to the gc mechanism, looping...

2020-12-08 Thread bill lam
mema memf are exactly the same as malloc and free in c. memr involves memory copy, no alias. On Tue, Dec 8, 2020, 9:34 PM emacstheviking wrote: > Apologies for the length of this email but my brain has thrown one again... > > I am currently working on a wrapper for Postgres using libpq-fe. It's

[Jprogramming] does mema handover to the gc mechanism, looping...

2020-12-08 Thread emacstheviking
Apologies for the length of this email but my brain has thrown one again... I am currently working on a wrapper for Postgres using libpq-fe. It's working but in need of some higher level functions to make result sets easier to work with and feel more J-like. Once the query is executed, all result

Re: [Jprogramming] Seeking advice on structures

2020-12-08 Thread emacstheviking
Thanks Devon. Most helpful. I am a seasoned C/C++ programmer but a total newbie with J. I've surprised myself thus far by getting a working SDL2 and Postgres (libpq) wrapper up and running but they are more FFI code than idiomatic J. I am having the same sorts of thoughts as I did when I first lea