For your eyes

2020-10-31 Thread Christian Robert
For your eyes, strerror←{⎕fio[2] |⍵} {((⍵ 1)⍴⍳⍵), [2] strerror ¨ ⍳⍵} 133# 133 is actual max of error as on 2020-11-01 in linux kernel 5, here all of thems... 1 Operation not permitted 2 No such file or directory 3 No such process 4 Interrupted system call 5 Inpu

Another slow each (∨/¨)

2020-10-31 Thread Hans-Peter Sorge
Hi, the ∨/¨ on nested logical vectors is running slow.   )WSID IS CLEAR WS ⍝ get the data for testing   ⍴f ←  ⎕FIO[49] '/OTH/APL/trunk/src/Makefile.in' 5246 ⍝ timer     t←⎕FIO[50] 1 ⍝ Finding SQL-records is fast. The ∨/¨ is the slow guy - about 2 min. ⍝ I would expect that " (

Re: ⎕FIO Buffer limit is 5000 Bytes

2020-10-31 Thread Hans-Peter Sorge
EIJHHH - never thought about it - COOOL. ⍝IBM APL: ⍎ ')HOST ls' VALUE ERROR   )HOST ls     ^   ⍎')HOST ls' ^ ⍝ GNU-APL: l ← ⍎ ')HOST ls -1' And it works:-)) Makes life much easier. f ← ⍎ ')HOST cat filename' ⍝ returns the file as nested vec

Re: ⎕FIO Buffer limit is 5000 Bytes

2020-10-31 Thread Dr . Jürgen Sauermann
Hi, On 10/30/20 6:14 PM, Kacper Gutowski wrote: On Fri, Oct 30, 2020 at 02:34:35PM +0100, Dr. Jürgen Sauermann wrote: There is also ⎕FIO[26] which reads an entire file, but I am not sure how it works with popen()ed streams. It doesn't at all because it takes a path which additionally needs to