Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
rklmno
searching Neon…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
6 ms
·
1.
▲
by
rklmno
5y ago
Like was mentioned, the simplest behavior is treat this as an error case. Other possibilities include: (*) extending the length of the short array to match the length of the long array -- padding with zeros on the right -- before adding. (*
2.
▲
by
rklmno
5y ago
That's not really the issue. It's certainly true that, depending on how the code is written, you may not be able to optimize out the language implementation from the compiled program. But that just turns into a link against a libr
3.
▲
by
rklmno
5y ago
Yes, each J function has several array representations.
4.
▲
by
rklmno
5y ago
Mostly yes. Numbers (and character) are implemented as arrays with 0 dimensions. Text would be an array of characters with 1 dimension (the number of characters), and generally speaking the dimension of an array is a one dimensional list of