Wonderful!
Thank you Eric.
On Thu, 25 Feb 2021 at 15:57, Eric Iverson wrote:
> I am pleased to announce the addition of Ken's 'Elementary Functions: An
> Algorithmic Treatment' to the set of pdf versions of early APL/J
> publications. This book was published in 1966.
>
> https://code.jsoftware.c
"csv/tsv is amoung the best in scalability," ...it's a shame my
illustrious UK government don't know about this...
many moons ago I wrote some code with Dr.Racket to extract 20 year old
BTRIEVE records from a VAX system and migrate it into MS SQL Server. In the
end for various reasons the only fo
https://www.fosshub.com/Evince.html
I use Evince a lot under linux but there is a Windows installation package
available at the above url
On Tue, 5 Jan 2021 at 08:29, HH PackRat wrote:
> On 1/4/21, Devon McCormick wrote:
> > I used to use Sumatra and only stopped because it did not survive the
Ian,
Working with Google drive seems deliberately difficult.
There used to be a linux file system widget that let you copy files from
the command line but I am not sure if that exists any more.
https://itsfoss.com/use-google-drive-linux/
On Sat, 2 Jan 2021 at 22:52, Ian Clark wrote:
> My son h
Hi Joey,
Hear hear! Long live the command line.
Once browser UI madness has peaked we'll be running IBM3270 sessions in
them again.
On Thu, 24 Dec 2020 at 22:27, Joey K Tuttle wrote:
> Inspired greetings - thanks Hauke and Raul.
>
> My own angle (not code) on it is that I read the emails on my
Thank you Jan!
I am 55 now, I still feel as dumb as ever but at least the journey has
been, and continues to be interesting and meeting like minds along the way!
All the best you you in this madness too.
On Thu, 24 Dec 2020 at 15:24, Jan-Pieter Jacobs
wrote:
> In Sean's case I'd use:
>
> 100
greeting
> o =: o + +`*:`%:`<:"0 , $&> |. greeting
> o (4 : '(+&x)&.(a.&i.)&.> y')"0 greeting
>
> Am 24.12.20 um 14:05 schrieb emacstheviking:
> > Henry,
> >
> > What's the upper bound on that pre-allocated l
Henry,
What's the upper bound on that pre-allocated list, that's a good technique
actually. But what do I know?
My main issue was more the fact I couldn't see another way to do it but
both Raul and Clifford have shown me the way.
Seasons greeting to all, I'd express that in J but...
On Thu, 24 D
2 620 116
>
> 0 840 45
>
> 2 581 444
>
> 2 166 629
>
> 1 217 202
>
>
>
>
>
> On Thu, Dec 24, 2020 at 5:48 AM emacstheviking wrote:
>
> > I have a simple verb that returns a list of randomised numbers
> >
> > stargen=: monad define
> >
I have a simple verb that returns a list of randomised numbers
stargen=: monad define
'maxx maxy'=.y
(?2),(?maxx),(?maxy), 1
)
For the life of me I have failed to just call it and create a table of the
results.
Initially I tried 100 $ stargen 1024;768 but that just calls it once and
cycle repeat
ed, 23 Dec 2020 at 16:11, Björn Helgason wrote:
> In general trying to explain something you are trying to solve to someone
> often makes you see the solution even if that somone does not understand
> what you are talking about.
>
> Þann mið., 23. des. 2020, 15:23 emacstheviking
wrote:
> Order of evaluation is right to left. These are all monads.
>
> ?2, ?100, ?100
>
> ?2, ? 100 , rand0
>
> If rand0 is 0 the next ? will return a float.
>
> Henry Rich
>
> On 12/23/2020 9:39 AM, emacstheviking wrote:
> > Henry,
> >
> > I am
Henry,
I am not exactly sure what you mean but after posting I spotted that I was
assigning type to a random value then using that as the argument to roll, I
fixed that. If you start a jconsole session and type
?2, ?100, ?100
sooner or later you get a float... placing parens. around it
(?2), (?
I am confused as to why trying to return a list of random numbers produces
floating point values now and then, seemingly random! :D
Passing >0 is, as I understand it, a half-open interval, as an integer so
why the floats?
stargen=: 3 : 0
'maxx maxy'=.y
smoutput 'maxx:',(":maxx),' maxy:',(":maxy)
t
tious, though, I imagine that we'd grab the
> region this way, set the cursor back to where it was, and grab a {{ }}
> delimited definition, and if we get both run some tests on them to see
> which was the best match (which has a start which is closest to the
> cursor, probably).
Morning.
I wrote this quickly, it works for me, YMMV and its as simple as it needs
to be, it mostly finds the start and end of the current verb definition.
The j-mode I have has
compile line
compile region
compile buffer
I offer 'jselverb' which I have bound to C-c C-v as that fits the pattern,
i
o comment that I have a hard time with your posts
> because they seem to be incomplete so I cannot understand them. For example
> I cannot see input nouns (data) for your verbs and cannot see sample
> applications of your verbs.
>
>
> On Fri, Dec 11, 2020 at 8:04 AM emacstheviking
ns of your verbs.
>
>
> On Fri, Dec 11, 2020 at 8:04 AM emacstheviking wrote:
>
> > OK, I have spent some time on my postgres wrapper, using Haukes comment I
> > now have this:
> >
> > NB. Simple crude SELECT operation
> > pgsel=: 3 : 0
> > conn
OK, I have spent some time on my postgres wrapper, using Haukes comment I
now have this:
NB. Simple crude SELECT operation
pgsel=: 3 : 0
conn=: pqconnectdb<'dbname=usda'
res=: pqexec conn;'select * from fd_group order by fddrp_desc limit 3'
ncols=: pqnfields res
nrows=: pqntuples res
)
NB. Fro
rote:
> Thanks Sean.
> Chris Burke contributed most of the terminal integration code that makes it
> really productive.
> A bunch of things could still be added - integrated plotting would be
> really nice but it works well for me as it is.
>
> Cheers,
>
> On Thu, Dec 10, 2020
to start a J console
Cmd+L to load the file I just loaded into that J session
Then one uses Cmd+Backtick to jump to the console and Cmd+1 to get back the
source file.
Thanks Ric!
On Thu, 10 Dec 2020 at 03:19, HH PackRat wrote:
> On 12/9/20, emacstheviking wrote:
> > Thanks Dev
https://github.com/tikkanz/j-vscode
On Thu, 10 Dec 2020 at 00:36, Devon McCormick wrote:
> I did not know there is a VSCode J-plugin.
>
> On Wed, Dec 9, 2020 at 6:24 PM emacstheviking wrote:
>
> > Thanks Devon... you wrote the VSCode J-plugin then? Amazing stuff, using
d mention the following
> > addon that I use to help me move data back and forth from C structs to J.
> >
> > https://github.com/tikkanz/data_struct
> >
> > On Tue, Dec 8, 2020 at 10:46 PM emacstheviking
> wrote:
> >
> > > Thanks Devon.
> > >
> If not, you should.
>
> > On 2020Dec 8, at 12:49, emacstheviking wrote:
> >
> > 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 mi
working with J unless I start my own start-up
I guess.
Thanks.
Sean
On Tue, 8 Dec 2020 at 19:36, Henry Rich wrote:
> 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
ght 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 schrieb emacstheviking:
> > Apologies for the length of this email but my brain has thrown one
> again...
> &
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 schrieb emacstheviking:
> > Apologies for the length of this
t; memory during their operation (except in carefully restricted cases).
>
> --
> Raul
>
> On Tue, Dec 8, 2020 at 11:24 AM emacstheviking wrote:
> >
> > Is it even possible then "introduce" a new managed (ie auto garbage
> > collected reference counted) string variable
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.
mory 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
> > working bu
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
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
> ones are more flexible, e.g.what if the number of "marks" varies
> substantially from student to student?
>
> Also, boxed arrays can be quite efficient. As a rule of thumb, you
> don't want to box very small things as each box incurs the overhead of
> a p
f flexibility.
>
> With that in mind, I suggest learn the tools and then consider the
> structure depending on the nature of the problem, but they are pretty well
> all there for you to use.
>
> HTH Rob
>
> > On 7 Dec 2020, at 7:50 am, emacstheviking wrote:
> >
> &
d as the average person on this list, I guess.
>
> Am 06.12.20 um 21:13 schrieb emacstheviking:
> > What's the conventional wisdom / best practice on defining data
> structures
> > for an application?
> >
> > Given there is no explicit keyword/operator sup
What's the conventional wisdom / best practice on defining data structures
for an application?
Given there is no explicit keyword/operator support like C (typdef,
struct) is it merely a case of convention and using boxed structures. I
have read several operators that can modify structures both as
For me, I have settled for being able to stop the event loop, edit the code
then resume the event loop where I left off and that's working well for me.
basically I have u (for UI!) -routines
uprep''
ugo 0 means when SDL_QUIT is received, leave everything up, ugo 1 will
call sdl_destroywindow a
->Props.
> Thanks to "emacstheviking".
>
> On Mon, Nov 30, 2020 at 6:43 PM 'Rob Hodgkinson' via Programming <
> programm...@jsoftware.com> wrote:
>
> > Apology I missed this…
> >
> > There are 2 choices:
> >
> > Since these
Hi, I have found a mistake on this page:
https://code.jsoftware.com/mediawiki/index.php?title=Vocabulary/JayTaster&oldid=29568
IN the section 'Pulling items from a list', in the second code box:
index=: {
1 index PROPS NB. no, not the first item, but the second.
++
|mass|
++
0:01:40
> Library: 9.01.24
> J Android: 1.4.09/10/29
> Platform: Android 64 (arm64-v8a)
> Installer: unknown
> InstallPath: /storage/emulated/0/Android/data/com.jsoftware.j.android/files
> Contact: www.jsoftware.com
>
> https://code.jsoftware.com/wiki/Guides/JAndroid
>
&g
ternal codes can invoke the callback, but since J is single threaded and
> has no event loop, therefore callback has no chance of being called. If you
> run J in a separate thread, you will be responsible to handle cross thread
> communication.
>
> On Mon, Nov 30, 2020, 5:22 PM emacs
I found the Lab on cdcallback and followed it, I did the qsort version and
it all works as described but applying it to my SDL application I got this
as soon as the timer kicks in, I tried different timer values to ensure it
was related:
timerid:1
|stack error: sdl_renderpresent
| sdl_render
Bill had fixed a dozen subtle mostly floating point bugs but
> the configurations seemed to require a more advanced setup than my own.
>
> I do a fair bit of J-ing on my phone and I can't tell you how delighted I
> am that I don't have to support it.
>
> Thanks guys!
&g
hub.io
>
> --
>
> from: Hauke Rehr
> to: programm...@jsoftware.com
> date: Nov 29, 2020, 5:16 AM
> subject: Re: [Jprogramming] J and Web Assembly
>
> >no, favoring emacs over vi is the most insane thought
>
> --
>
> from: emacstheviking
> to: p
back'
>
> In Jqt: Help>Studio>Lab Category:System
>
> You could run the lab in jconsole, but probably more convenient in JHS or
> Jqt.
>
> On Sun, Nov 29, 2020 at 3:46 AM emacstheviking wrote:
>
> > My application does not want Qt or wd in the mix at all. I want
Anybody even tried this?
I have spent an hour reading the web assembly docs and I don't see why it
couldn't be done apart from the !: commands which could be problematic.
I'm seeing a 'core' of the J language that provides basic language
capability and then uses the WA interface to providea JS wa
I set up a polling loop I ran into
> problems with J not getting time for handling
> Its own user events. I made some attempts to use wd ‘msgs’ from the window
> driver but was unsuccessful.
>
> Tom McGuire
>
> > On Nov 27, 2020, at 1:36 PM, emacstheviking wrote:
> >
_Log' > n *c' cd <'test'
>
> or maybe
>
> '/usr/local/lib/libSDL2.dylib SDL_Log' > n *c *c' cd '%s';'test'
>
> On Sun, Nov 29, 2020, 4:22 AM emacstheviking wrote:
>
> > I am trying to create a call
I am trying to create a call to SDL_Log which takes a format string and
then any number of arguments as expected like printf sprintf et al.
Given that the declaration doesn't allow one to declare such a thing, I
thought I would have to do something like this...
'/usr/local/lib/libSDL2.dylib SDL
On Sat, Nov 28, 2020, 12:19 AM emacstheviking wrote:
>
> > Final more J-like solution to my problem, thanks bill Iam for the
> nudge...
> >
> > dmva =: 4 : '''''&$ each (x{y)'
> >
> > This allows me to specify the actual array positions I wa
tasty!
On Fri, 27 Nov 2020 at 17:29, Henry Rich wrote:
> ''($,)y
>
> Henry Rich
>
> On 11/27/2020 11:23 AM, Raul Miller wrote:
> > ''$y only produces scalars when y is non-empty and has no more than
> > one dimension.
> >
> > To always produce scalars, you'd want {.,y
> >
> > But, because you're
no more than
> one dimension.
>
> To always produce scalars, you'd want {.,y
>
> But, because you're not working with multi-dimensional arrays, you
> don't need to ravel them. And, the approach you choose does work.
>
> I hope this helps,
>
> --
> Ra
again,
Sean.
On Fri, 27 Nov 2020 at 13:05, bill lam wrote:
> probably your width and height are not scalar but singleton array. you can
> check them with monad $ .
>
> On Fri, Nov 27, 2020, 8:00 PM emacstheviking wrote:
>
> > Given these working external function declarat
bill Iam for nudging me!
--this-- is the reason I still love software development after 44 years of
starting it.
I now feel confident to emulate an 'sdcheck' (sockets.ijs) for myself to
catch errors from the API. Excellent stuff is J for sure.
Thanks all,
Back to the hack
Sean.
ly your width and height are not scalar but singleton array. you can
> check them with monad $ .
>
> On Fri, Nov 27, 2020, 8:00 PM emacstheviking wrote:
>
> > Given these working external function declarations:
> >
> > SDL_GetWindowSize n x *i *i
> > S
Given these working external function declarations:
SDL_GetWindowSize n x *i *i
SDL_GetRendererOutputSize n x *i *i
SDL_CreateRGBSurface > x i i i i i i i i
then these two calls:
'ww wh'=:2}.sdl_getwindowsize appw;(,_1);(,_1)
'rw rh'=:2}.sdl_getrendereroutputsize appr;(,_1);(,_1)
work and produ
56 matches
Mail list logo