Skip to content

Commit

Permalink
feat: add time comparison.
Browse files Browse the repository at this point in the history
  • Loading branch information
Panadestein committed Nov 7, 2024
1 parent c6c3a47 commit f82b343
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/bqn/rollim.bqn
Original file line number Diff line number Diff line change
Expand Up @@ -56,3 +56,5 @@ BM 6‿1‿3‿1‿3‿3‿4‿3‿3‿5
HL ← (+´«⊒˜≤+`/
HS+´∨≥1+⊒˜
(HL≡HS)@‿HL 14141195511110

HLHS {𝕎_timed𝕩}¨< 1e8 •rand.Range 1e3
9 changes: 9 additions & 0 deletions src/rollim.org
Original file line number Diff line number Diff line change
Expand Up @@ -260,6 +260,15 @@ implement this useless thing:
#+RESULTS:
: 5

If someone ever published that much, sorting will eventually be slower:

#+begin_src bqn :tangle ./bqn/rollim.bqn :exports both
HL‿HS {𝕎•_timed𝕩}¨< 1e8 •rand.Range 1e3
#+end_src

#+RESULTS:
: ⟨ 0.083824959 0.21801262700000001 ⟩

A testament to the idea that the simplest solution in BQN is often the most efficient:
I initially clip my citations array with ={≠¨⊔≠∘𝕩¨⌾(≥⟜≠∘𝕩⊸/)𝕩}=, which is just =/⁼≠⊸⌊=.

Expand Down

0 comments on commit f82b343

Please sign in to comment.