You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Finally iterate over the results and make sure the results match
However the last step is incomplete - we generate a list of 512 integers, however we only test the first 20 or so results. While that's probably indicative of success it isn't sufficient to prove it.
The reason we don't test all the numbers is because the operation of (nth) is so. damn. slow.
nth could be moved to golang, to make it super-fast, or it could be improved in other ways. Decide, and do the necessary.
The text was updated successfully, but these errors were encountered:
skx
added a commit
that referenced
this issue
Nov 2, 2022
(nth ..) is slow, very slow, due to its recursive nature. However
working with lisps and using nth is common, so it makes sense to
move the implementation from lisp into the golang core.
This closes#75
The sorting.lisp example does some stuff:
However the last step is incomplete - we generate a list of 512 integers, however we only test the first 20 or so results. While that's probably indicative of success it isn't sufficient to prove it.
The reason we don't test all the numbers is because the operation of (nth) is so. damn. slow.
nth could be moved to golang, to make it super-fast, or it could be improved in other ways. Decide, and do the necessary.
The text was updated successfully, but these errors were encountered: