Skip to content

Commit ab525f8

Browse files
committed
[doc] note rough edges with compiler notes of nonlite version
1 parent f55c6cc commit ab525f8

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

README.org

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -535,8 +535,7 @@ Compiling the last form should emit a compiler note such as the following:
535535
; could not be determined
536536
#+end_src
537537

538-
If you are using SLIME, you should also see the =(mean array-like)= form underlined to indicate that it was this form that emitted this compiler note. This should also be evident from the compiler note emitted above. This compiler note says that the type of =array-like= could not be derived.
539-
Let us try supplying a more specific argument.
538+
If you are using SLIME, you should also see the =(mean array-like)= form underlined to indicate that it was this form that emitted this compiler note. This should also be evident from the compiler note emitted above. This compiler note says that the type of =array-like= could not be derived. Let us try supplying a more specific argument.
540539

541540
#+begin_src lisp
542541
(defun single-float-mean (array)
@@ -591,7 +590,7 @@ For a single-float array of size 1000x1000, this made no performance difference.
591590

592591
Here, for arrays of size 100, this results in a performance difference of about 4 times! If or not this is relevant depends on your use case.
593592

594-
^: =numericals:mean= actually uses peltadot instead of polymorphic-functions, but the concepts are similar.
593+
^: =numericals:mean= actually uses peltadot instead of polymorphic-functions, but the concepts are similar. Improving the compiler notes for these cases is still a work in progress. So, expect rough edges!
595594

596595
^^: =BMAS_ssum= uses SIMD under the hood. Because it is a C function, you can use it wherever you can use CFFI!
597596

0 commit comments

Comments
 (0)