|
From: | Blake McBride |
Subject: | Re: [Bug-apl] Towards a keyed and component file system |
Date: | Sat, 19 Apr 2014 10:22:05 -0500 |
Hi,
I guess 10 ⎕CR is better suitable for that because it uses a portable subset of Unicode for APL values.
I believe performance issues are a question of the past, so a little overhead is worth to be paid for
simplicity. 10⎕CR output can be decoded with ⍎¨ for example:
⎕←X←'Hello' 1 (2 3)
Hello 1 2 3
⎕←Y←10 ⎕CR 'X'
X←3⍴0 X[0+⍳3]←'∘',1, 0 ((⎕IO+0)⊃X)←5⍴'Hello' ((⎕IO+2)⊃X)←2⍴2,3
)ERASE X
0⍴ ⍎¨Y
X
Hello 1 2 3
/// Jürgen
On 04/19/2014 04:43 PM, Elias Mårtenson wrote:
You are right. The SQL implementation uses C strings behind the scenes for both SQLite and Postgres.
I'll be happy to implement BLOB support if you can suggest a good syntax for it from APL.
Regards,Elias
On 19 April 2014 22:34, Blake McBride <address@hidden> wrote:
Looks good. I am a little concerned that the vector produced by 3 ⎕TF may have trouble going to and from an SQL VARCHAR using the existing (and fantastic!) library. I am not sure, but there may be a problem with C null characters ('\0') or other non-printable characters. Some feedback on this would be very helpful.
Thanks!
Blake
[Prev in Thread] | Current Thread | [Next in Thread] |