[Jprogramming] atomic vs. string representations
'Pascal Jasmin' via Programming
programming at jsoftware.com
Mon May 4 00:42:02 UTC 2020
Parsing is pretty fast, so hard to measure.
One big thing "against" linear representations executed with do(".) is that it can only return a noun.
On Sunday, May 3, 2020, 07:51:32 p.m. EDT, Raoul Schorer <raoul.schorer at gmail.com> wrote:
Hi all,
I have been comparing manually built identical phrases (a dyadic verb
with its arguments) and executing it with ". or `:6. My understanding
was that the advantage of atomic representation was that it bypassed
parsing and that the execution model was:
input string -> parsing -> atomic representation -> interpretation -> result
However, I was surprised to see no speedup at all when transitioning
from string to atomic representation. Of course, my particular code may
be the issue. What are the usual strengths and weaknesses of string vs.
atomic representation?
Thanks!
Raoul
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm
More information about the Programming
mailing list