Search found 33 matches

by RichardP|Dyalog
Tue Sep 10, 2024 9:26 am
Forum: Microsoft.NET
Topic: How to get a Byte Array ?
Replies: 15
Views: 66191

Re: How to get a Byte Array ?

It appears you can also populate with square bracket indexing

Code: Select all

 ByteArray←{
     ⎕IO←0 ⋄ ⎕USING←''
     ba←System.Array.CreateInstance(System.Byte)(≢⍵)
     ba[⍳≢⍵]←⍵
     ba
 }
by RichardP|Dyalog
Mon Sep 09, 2024 9:29 am
Forum: Windows: GUI, COM/OLE/ActiveX
Topic: Writing binary values to Windows registry
Replies: 1
Views: 3649

Re: Writing binary values to Windows registry

Following on from the post that you linked, I was able to write to a binary registry entry as follows: ⎕using←'' ⍝ Using full paths to show where everything comes from hkcu←Microsoft.Win32.Registry.CurrentUser key←hkcu.CreateSubKey⊂'Software\Foo\' ba←System.Array.CreateInstance(System.Byte)4 ⍝ Create ...
by RichardP|Dyalog
Mon Jul 29, 2024 7:31 am
Forum: Language
Topic: Combining Take and Drop on a matrix for efficiency?
Replies: 15
Views: 35817

Re: Combining Take and Drop on a matrix for efficiency?

I would still just vote for recognising N↑M↓ and N↓M↑ as idiom rather than extending the syntax.
by RichardP|Dyalog
Fri Feb 23, 2024 9:22 am
Forum: Chat
Topic: Fault in version 18.0.38756
Replies: 5
Views: 33236

Re: Fault in version 18.0.38756

Unfortunately without more details, it is impossible to say why this is happening or what to do to mitigate it. I recommend you use Link to keep your active workspace synchronised with a folder on the file system - that way, whenever you make changes to something in the workspace then those changes ...
by RichardP|Dyalog
Wed Feb 21, 2024 11:08 am
Forum: Chat
Topic: APL AoC Wiki
Replies: 1
Views: 16753

Re: APL AoC Wiki

You can create an account on the APL Wiki and edit the page yourself. Or if you provide links to the content you wish to share (code repository, videos, blog posts) then we can add it. Convention appears to be to give full names, but if you prefer we can just list you as "jmosk".
by RichardP|Dyalog
Fri Jan 26, 2024 10:30 am
Forum: APL Chat
Topic: Advent of Code Data Files
Replies: 5
Views: 19715

Re: Advent of Code Data Files

No I do not believe there is such a repository. Those sample inputs are not full puzzle inputs, which require you to be logged in to the site to obtain. The website also states that the Advent of Code site content is not free to distribute: https://adventofcode.com/2023/about. In general it is not ...
by RichardP|Dyalog
Thu Jan 25, 2024 8:23 am
Forum: Language
Topic: Left and right operand
Replies: 1
Views: 11048

Re: Left and right operand

⍺⍺ and ⍵⍵ are the operands of a Dop. Where a Dfn is a function denoted by curly braces and the use of ⍺ and ⍵ to refer to the left and right arguments, a Dop is an operator denoted by curly braces, the use of ⍺⍺ and ⍵⍵ to refer to the left and right operands. An operator binds to its operands to crea ...
by RichardP|Dyalog
Tue Jan 09, 2024 10:52 am
Forum: APL Chat
Topic: Raspberry PI - Keyboard
Replies: 2
Views: 22616

Re: Raspberry PI - Keyboard

Can you also describe how you set up APL input on your Raspberry Pi? Prior to 18.2, APL input using the Windows key (Raspberry key) was enabled when starting Dyalog by default. This persists even after exiting Dyalog, which was confusing for many users, so we disabled it. From 18.2 onwards, you need ...
by RichardP|Dyalog
Tue Apr 04, 2023 8:55 am
Forum: Microsoft.NET
Topic: EXCEL Files under LINUX - XL2APL does not work under 18.2
Replies: 5
Views: 104133

Re: EXCEL Files under LINUX - XL2APL does not work under 18.

Hi Florian
This appears to have hit bugs in the .NET Core / new .NET bridge in the interpreter. We are working to resolve the issues, and will let you know when they are available to use by installing the latest release of Dyalog.

Thanks, and sorry for the delay
Rich Park