@dzaima I installed java jre/jdk I ran the convert.py and I can't seem to get it running. I you have any suggestions, I'm all ears. I hope I can get it running.
@Adám No. I looked at it now. Thanks. This page dfns.dyalog.com/n_kbmac.htm is helpful but I use a Turkish keyboard and uptick is Option+Shift+G. That makes a little difficult. Maybe I need to map uptick to another key. Or switch to Windows. But the screen of my Mac is much better
@zeynel Tbf, it does say (if the country you require is not shown, then please e-mail us). Btw, in RIDE it is very easy to select prefix key, but you want it for other applications, right?
@zeynel Great, but be aware that this week is our user meeting, so almost everyone is going to be very busy. This may also explain the delay in response to your forum request.
@Adám Good. No hurry. It all works fine now. It would be easier in the long run if I can get to uptick with single keystroke. But I'm confused about RIDE. Here docs.dyalog.com/17.0/RIDE%20User%20Guide.pdf it says RIDE is installed with Dyalog but I only see the Dyalog icon in the applications folder.
@zeynel Yes, it is a bit confusing. It is because on macOS, RIDE is the default interface, and so its icon is just labelled Dyalog. A normal user may not even be aware that RIDE is a separate thing.
@gnu-nobody Firstly, you could use an adverb for 3 "arguments" or a conjunction for 4 arguments, but the normal way is to use a list as right argument, with one element per "argument.
@nathanrogers the only place with "idea" is a comment in the example. Unless you've modified that, I have no idea why is that showing up. It seems that it successfully compiled though?
Actually, maybe it's unicodes fault & it's failing to understand ⍝ as ⍝? ._.
I'm doing new String(loadBytes(...)) so that's probably what's happening ಠ_ಠ
@nathanrogers Pushed some changes. It should work now. I hope.
@Adám Makes sense now. So I was using RIDE without knowing it. Unrelated, but do you know if the code in the editor can be printed? Now I copy it and paste it on google docs and print it from there.
You can write explicit adverbs or conjunctions that works just like a function with three or four arguments, though it's not a usual way to program in J
that's when you don't want to bother special-casing something for chars, nums, etc - you just handle everything as Arr-s (or Value-s, I still don't understand why they must be separate classes...)
@dzaima ah, right
@dzaima except the result from .values() is Value[], not a single fanned-out Arr whose elements are separate scalars
@dzaima really almost every built-in could be just a wrapper class
@ngn the thing is I've got all the required infrastructure & implementing that would only mean making changes to the ⌽ builtin & creating the class, everything else happens automatically
@ngn well true, but if it were just the reversing functions I could unwrap them & join the transforming math together
@ngn Arr is specifically for things that are not simple scalars, and Primitive is specifically for simple scalars. Value is for both of those, i.e. anything that can be stored in arrays
of course I could join the two together but I like the OOP difference from simple scalars & everything else
@Cowsquack that forces squeezing of the datatype. i.e. if the array was assumed to have multiple types but actually has only doubles, it can be converted to DoubleArr
really that shouldn't be needed there (and wont after I push the fix)
@ngn I don't really have a good place for those things. The impl for ⌽ & ⊖ is in Arr, so either there or just in CatBuiltin as a static method to be called from both places
@ngn No. I sent an email to them. My keyboard is not supported. It's a Turkish keyboard starting with F. There is also a QWERTY Turkish keyboard very similar to English language keyboards, but I don't use it.
@ngn Thanks! That's right. But I have 'w' on the first key where uptick is in English language keyboards and that seems the most logical choice. But what will happen if I ever need to use w?
@zeynel if you've configured the prefix to be something else, "w" should work as usual
@zeynel if that's your prefix key, in order to type a literal "w", you'd have to type "w" followed by a space (if i'm not mistaken...), so it's probably not a good choice. why not pick a non-alphabetic key, like ";" for instance?
is this what your keyboard looks like?
you could also use one of the accented letters as a prefix, if that's more convenient
@zeynel If your keyboard looks like what ngn posted, why not use < (next to Shift) as prefix key? To type < you can just use <,3. It seems a good location for a "shifting" key.
@ngn Yes, but with some changes. Maybe I'll try ö next to j. @Adám I don't have < next to shift because I have a longer shift key. ö may work fine. Thanks to both. It would be easier now.
@nathanrogers on linux I do <compose> ⊃ _, but there's no default compose thing for windows
I could probably copy-paste the logic of ⊇ to [] (though that won't support ; as that's a whole another story), but that's for tomorrow, I should go to sleep :p
@dzaima A thought about argument types to bg, fill, etc. why are they strings? is there some limitation? bg taking varargs of integer rgb values like the P5 background function would seem to make a lot of sense since apl is really good at working with numbers
the 1st number (a) should be 255, otherwise you're setting the bg to a transparent color and it just happens to actually not fill as transparent because that doesn't make sense