1. 23 Aug, 2016 1 commit
    • Attila Lendvai's avatar
      numbers.lisp/lerp: The correct version is numerically stable, · 926a0666
      Attila Lendvai authored
      at the expense of an extra multiply. The unstable version can often be
      converted to a fast instruction on a lot of machines, though this is
      machine/implementation specific. As alexandria is more about correct code,
      than efficiency, and we're only talking about a single extra multiply,
      many would prefer the stable version.
      
      Patch by github.com/mfiano.
      926a0666
  2. 03 Apr, 2016 3 commits
    • Jan Moringen's avatar
      use implementation's EMPTYP when available · afaf1a16
      Jan Moringen authored
      Using the implementation's EMPTYP has the potential advantage of
      supporting user-defined sequence types (as is the case with SBCL).
      
      This commit tests for SEQUENCE:EMPTYP and defines ALEXANDRIA:EMPTYP in
      terms of it.
      
      For implementations that do not provide SEQUENCE:EMPTYP, nothing
      changes.
      afaf1a16
    • Jan Moringen's avatar
      use EMPTYP instead of e.g. PLUSP and LENGTH were appropriate · 8b89a71b
      Jan Moringen authored
      EMPTYP usually (except, maybe, for some user-defined sequence types) has
      two advantages:
      
      1. it has O(1) runtime while LENGTH can be O(n)
      
      2. it can work on user-defined, infinite sequences (given implementation
         support and integration of ALEXANDRIA:EMPTYP with the
         implementation's mechanism as is the case for SBCL)
      8b89a71b
    • Jan Moringen's avatar
      add READ-STREAM-CONTENT-INTO-{STRING,BYTE-VECTOR} · dce97236
      Jan Moringen authored
        export and document them
      
        use them in READ-FILE-INTO-{STRING,BYTE-VECTOR}
      
        no smoke test for READ-STREAM-CONTENT-INTO-BYTE-VECTOR due to lack of
        something like WITH-INPUT-FROM-BYTE-VECTOR
      dce97236
  3. 02 Apr, 2016 2 commits
  4. 27 Apr, 2015 1 commit
  5. 30 Jul, 2014 3 commits
  6. 12 May, 2014 1 commit
  7. 04 Mar, 2014 4 commits
  8. 16 Feb, 2014 2 commits
  9. 26 Jan, 2013 8 commits
  10. 26 Apr, 2012 1 commit
    • Nikodemus Siivola's avatar
      tweak EXTREMUM · 0c39310e
      Nikodemus Siivola authored
       Return NIL if the sequence is empty, instead of the NO-EXTREMUM nonsense.
      
       It was bad design, because it's not an error someone higher up the stack can
       sensibly handle, and handling it locally is too verbose and slow.
      
          (or (extremum ...) (error ...))
      
       expresses the common case succintly, and fits the pattern of existing
       sequence functions.
      
       If it is deemed necessary, we can also add &KEY DEFAULT, but that seems
       overkill and has little precedent in sequence functions.
      0c39310e
  11. 25 Apr, 2012 1 commit
  12. 22 Apr, 2012 2 commits
    • Nikodemus Siivola's avatar
      untabify tests · daa08725
      Nikodemus Siivola authored
        Yech. Phui. Tabs.
      daa08725
    • Nikodemus Siivola's avatar
      adjust tests · a8fa3994
      Nikodemus Siivola authored
        Workarounds for the Clisp and CMUCL failures.
      
        Newer Clisp's no longer have the stack-overflow for the hash-table test, so
        enable it too.
      a8fa3994
  13. 30 Mar, 2012 3 commits
  14. 07 Mar, 2012 1 commit
  15. 02 Mar, 2012 1 commit
  16. 20 Jan, 2012 3 commits
    • tpapp's avatar
      generic MEAN and MEDIAN, new function DISPLACE-ARRAY · 485544d4
      tpapp authored
       Objects other than sequences have means and medians (eg probability
       distributions, arrays, sequences/arrays wrapped in another object, etc), so
       it makes sense to make these functions generic.
      
       DISPLACE-ARRAY is a small utility function that is used in the implementation
       of MEDIAN for arrays, but is also of general utility because it makes the
       creation of displaced arrays simpler, dispensing with the need to specify the
       element type, and offering sensible defaults when one wants vectors.
      
       Also added tests for all the new functions/methods.
      485544d4
    • Jyrki Jaakkola's avatar
      36800ad1
    • Ryan Davis's avatar
      convert ENSURE-GETHASH into a macro · d92432dd
      Ryan Davis authored
       Evaluate the default-form only if we actually use it.
      d92432dd
  17. 09 Nov, 2011 1 commit
  18. 02 Nov, 2011 2 commits