Permalink
Commits on Dec 12, 2013
Commits on Jul 2, 2013
  1. Add check for below array bounds

    Signed-off-by: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
    iwamatsu committed with davisp Jul 2, 2013
  2. __GNUC__ is a better choice than __GCC__

    Signed-off-by: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
    iwamatsu committed with davisp Jul 2, 2013
  3. Fix typo in utils.h

    Signed-off-by: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
    iwamatsu committed with davisp Jul 2, 2013
Commits on Jun 5, 2013
  1. Prevent segfaults on unterminated strings

    A single quote input was causing segfaults due to sneaking past the
    string termination logic. This patch corrects that lapse in conditional
    by only parsing strings where a closing quote was found. All other
    strings are rejected as invalid.
    
    Big thanks to Jean-Charles Campagne (@jccampagne) for reporting the
    issue.
    davisp committed Jun 5, 2013
Commits on Apr 24, 2013
  1. Fix compilation on GCC 4.8

    davisp committed Apr 24, 2013
Commits on Mar 29, 2013
Commits on Mar 4, 2013
  1. Merge remote-tracking branch 'davisp/master'

    Conflicts:
    	Makefile
    	rebar.config
    benoitc committed Mar 4, 2013
Commits on Feb 25, 2013
  1. Turn on compiler optimizations

    Because reasons.
    davisp committed Feb 25, 2013
  2. Forgot to refactor the roundtrip tests

    I removed some columns to try and minimize the amount of test data I'm
    requiring and forgot to update the test code.
    davisp committed Feb 25, 2013
  3. Add tests from double-conversion library

    I pulled in a lot of tests from the double-conversion test suite to make
    sure we don't accidentally break behavior in the future.
    davisp committed Feb 25, 2013
  4. Bug fix for large doubles with a fraction

    My truth table was a bit busted for extreme value doubles.
    davisp committed Feb 25, 2013
  5. Check in the double-conversion dependency

    While using rebar's dependency management was surprisingly easy it
    broke apps that tried to build Jiffy as a dependency due to relative
    path #includes.
    
    This also fixes a few other issues. Most notably it removes the use of
    the ECMAScript compatible encoding due to JSON's lack of support for +/-
    Inf and NaN.
    davisp committed Feb 24, 2013
Commits on Feb 24, 2013
  1. Encode floating point numbers as short as possible

    Floating point numbers are no longer encoded as a one to one mapping
    of their binary representation, but as short as possible (while still
    being acurate). The double-conversion library [1] is used to do the
    hard work.
    
    The ECMAScript compatible conversion is used.
    
    [1] https://code.google.com/p/double-conversion/
    vmx committed Feb 24, 2013
Commits on Feb 10, 2013
  1. Remove some old cruft from rebar.config

    I must've originally copied this config from Emonk.
    davisp committed Feb 10, 2013
Commits on Jan 21, 2013
  1. No longer escape forward slashes

    After a few requests and some reflection I've decided to stop escaping
    forward slashes in strings while still accepting the escaped version
    through the decoder. This appears to mimic the behavior of other popular
    JSON libraries I've checked (Ruby and Python).
    davisp committed Jan 21, 2013
  2. Remove stray while loop

    Apparently I missed this when refactoring a do/while loop into a
    standard while loop. It was a harmless extra invocation to check if the
    stack was empty.
    davisp committed Jan 21, 2013
Commits on Oct 30, 2012
  1. Revert "catch nif load error"

    This reverts commit 852db2e.
    benoitc committed Oct 30, 2012
  2. Adjust rebar.config to support rebar v2.0

    - Include Windows preprocessor definitions that rebar is missing
    - Minor changes to optimisation flags
    Dave Cottlehuber committed with davisp Oct 24, 2012
  3. Normalize whitespace in Makefile

    davisp committed with Dave Cottlehuber Oct 23, 2012
  4. Add PHONY targets for safety

    Just trying to be a bit more thorough in the Makefile targets.
    davisp committed with Dave Cottlehuber Oct 23, 2012
  5. Add a distclean target for Make

    This runs a `git clean -fxd` to revert to a pristine Git clone.
    davisp committed with Dave Cottlehuber Oct 23, 2012
  6. Use the Git protocol for PropEr

    I've had reports that HTTPS seems to fail a bit more often than the Git
    URLs. I've seen this before as well so I've gone ahead and switched
    protocols for the clone.
    davisp committed with Dave Cottlehuber Oct 23, 2012
Commits on Oct 29, 2012
  1. Make PropEr a soft dependency

    This prevents applications that depend on Jiffy from requiring PropEr as
    a dependency just to run Jiffy's full test suite. If you want to run the
    full test suite you'll have to run Jiffy's Makefile directly which
    creates a `.jiffy.dev` marker that enables the full test suite.
    davisp committed Oct 29, 2012
Commits on Oct 24, 2012
  1. adjust rebar.config to support rebar v2.0 release

    - include WINDOWS preprocessor definitions that rebar is missing
    - minor changes to optimisation flags
    Dave Cottlehuber committed Oct 24, 2012
Commits on Oct 23, 2012
  1. Normalize whitespace in Makefile

    davisp committed Oct 23, 2012
  2. Add PHONY targets for safety

    Just trying to be a bit more thorough in the Makefile targets.
    davisp committed Oct 23, 2012
  3. Add a distclean target for Make

    This runs a `git clean -fxd` to revert to a pristine Git clone.
    davisp committed Oct 23, 2012
  4. Use the Git protocol for PropEr

    I've had reports that HTTPS seems to fail a bit more often than the Git
    URLs. I've seen this before as well so I've gone ahead and switched
    protocols for the clone.
    davisp committed Oct 23, 2012
Commits on Sep 25, 2012
  1. catch nif load error

    benoitc committed Sep 25, 2012
Commits on Jun 7, 2012
  1. Fix code reloading for Jiffy

    As it turns out I did not understand the documenation for
    load/upgrade/unload correctly. load/upgrade are called conditionally if
    there's code in the VM for the NIF. Ie, no code means load is called,
    where as if code exists, upgrade is called.
    
    unload is called regardless once per load/unload. This means that
    load/upgrade in Jiffy's case will each create a state object and unload
    will free it each time. I was missing the fact that unload is called
    every time and hence I don't need to clear the state in upgrade.
    davisp committed Jun 7, 2012
  2. Be paranoid about the values sent to upgrade

    The docs aren't entirely clear on the order of calls for upgrades so
    this is mostly just in case old_priv ever happens to not be what load
    returned in priv.
    davisp committed Jun 7, 2012
  3. Fix hot code upgrades

    davisp committed Jun 7, 2012
Commits on Jun 5, 2012
  1. Update rebar to 2.0.0

    davisp committed Jun 5, 2012