Commits on Dec 12, 2014
  1. @rurban

    update submodule libuv to master

    rurban committed Dec 12, 2014
  2. @rurban
  3. @rurban
Commits on Dec 11, 2014
  1. @rurban

    3rd/libuv: remove defunct --disable-dtrace, update 1.0 conf fix

    deleted upstream
    rurban committed Dec 11, 2014
  2. @rurban

    travis: add osx (beta)

    rurban committed Nov 21, 2014
  3. @rurban

    numcmp jit

    Note that SSE cmp via ucomisd needs other jump ops, than non-SSE cmp:
    iop: jl, jg, jle, jge, je, jne for normal cmp comparisons,
    xop: jb, jbe, jae, ja, je, jne for SSE ucomisd comparisons.
    
    TODO: optimize true/false with less jumps
    rurban committed Nov 20, 2014
  4. @rurban

    3rd: joyent => libuv/libuv change

    rurban committed Dec 11, 2014
Commits on Nov 26, 2014
  1. @rurban

    numeric cmp in bytecode #76

    rurban committed Nov 20, 2014
  2. @rurban

    libuv-1.0: readdir->scandir, add scandir_next

    also add mkdtemp, FS_MKDTEMP, FS_ACCESS, DIRENT types
    rurban committed Nov 26, 2014
Commits on Nov 20, 2014
  1. @rurban

    whitespace only

    rurban committed Nov 20, 2014
Commits on Nov 17, 2014
  1. @rurban

    fix whitespace in example/nqueens.pn also

    but this is still broken
    rurban committed Nov 18, 2014
  2. @rurban

    fix example/ackermann.pn

    arithmetic is whitespace sensitive: m-1. fixme
    rurban committed Nov 18, 2014
  3. @rurban
Commits on Oct 14, 2014
  1. @rurban

    potion_str_at: need signed start

    rurban committed Oct 14, 2014
Commits on Oct 12, 2014
  1. @rurban

    string: improve performance of at and ord

    do not calc unneccessary utf8_strlen
    do not recalc unneccessary utf8 offsets
    add potion_utf8char_nextchar for str_at (gets fast length of next utf8 char)
    rurban committed Oct 12, 2014
Commits on Oct 8, 2014
  1. @rurban
  2. @rurban
  3. @rurban

    p2 README cleanup

    rurban committed Oct 8, 2014
Commits on Oct 4, 2014
  1. @rurban
  2. @rurban

    comments only

    rurban committed Oct 4, 2014
  3. @rurban

    .travis: newline at end of file

    rurban committed Oct 4, 2014
  4. @rurban

    .travis: one-line messages only

    rurban committed Oct 4, 2014
  5. @rurban
  6. @rurban
Commits on Oct 3, 2014
  1. @rurban

    Merge remote-tracking branch 'up/master' into p2

    and fixup removed Num class
    rurban committed Oct 3, 2014
  2. @rurban

    align with branch p2

    rurban committed Oct 3, 2014
  3. @rurban

    Merge remote-tracking branch 'up/master' into p2

    We really need to merge both, even if the 2 branches
    have many cherry-picked duplicates.
    
    Fixed all Conflicts:
    	.gitignore
    	.gitmodules
    	ChangeLog
    	INSTALL.md
    	Makefile
    	README
    	config.mak
    	core/asm.h
    	core/ast.c
    	core/callcc.c
    	core/compile.c
    	core/file.c
    	core/gc.c
    	core/internal.c
    	core/internal.h
    	core/load.c
    	core/objmodel.c
    	core/opcodes.h
    	core/potion.c
    	core/potion.h
    	core/primitive.c
    	core/string.c
    	core/syntax.y
    	core/table.c
    	core/vm-ppc.c
    	core/vm-x86.c
    	core/vm.c
    	dist.mak
    	doc/Doxyfile
    	doc/Doxyfile.chm
    	doc/INTERNALS.md
    	doc/footer.sh
    	doc/glossary.textile
    	doc/start.textile
    	example/99bottles.pn
    	example/nbody.pn
    	example/nqueens.pn
    	lib/buffile.c
    	lib/potion/compile/c.pn
    	syn/compile.c
    	syn/greg.h
    	syn/tree.c
    	test/api/gc-test.c
    	test/numbers/parens.pn
    	test/runtests.sh
    	test/testccs.sh
    	tools/config.sh
    	tools/greg.c
    	tools/mk-release.sh
    rurban committed Oct 3, 2014
  4. @rurban

    merge parts from p2

    rurban committed Oct 3, 2014
  5. @rurban

    gettuple: add potion_fwd, disable gc for Potion->pbuf

    and define OP_MAX smaller as Potion->target pre-allocates this.
    potion_dump_stack: print better gc state, prot/birth/OLD.
    rurban committed Oct 3, 2014
  6. @rurban

    gettuple: handle upvals also, fixes nbody

    the tuple can be an upval also, not just a local.
    
    change example/nbody.pn to use the fast tuple syntax.
    time: 0m22.584s => 0m22.091s with example/nbody.pn 1000000
      = 2% win only
    perl:   0m23.446s
    lua:    0m7.689s
    luajit: 0m0.299s
    rurban committed Oct 3, 2014
Commits on Oct 2, 2014
  1. @rurban

    gettuple: fix indirect jit access. parse -1 as number literal.

    needed to convert the index in PN to int in %rdx.
    add - to dec parser and handle it in PN_ATOI.
    rurban committed Oct 3, 2014
  2. @rurban

    gettuple: improve ASM_TPL_IMM jit. just wrong rdx index now, but corr…

    …ect tuple in rax
    
    X86_DEBUG: nicer stack printout with 0x
    rurban committed Oct 1, 2014
  3. @rurban

    gettuple: use ASM_TPL_IMM to encode int<1024 and use >1024 for reg in…

    …dices
    
    so we have 0-1023 for direct indices and 1024-2055 for regs.
    add better opcode descriptions in vm.c
    gettuple is now only for fast unchecked PNTuple access, no bounds checks
    no negative indices.
    Improve potion_x86_debug: add rcx, rdx.
    vm: mark reg+1 as reserved when gettuple needs reg+1.
    jit still broken for the prev. getlocal (wrong %rax)
    rurban committed Sep 28, 2014
  4. @rurban

    gettuple jit: disable JIT_UNCHECKED_TUPLE

    it does not work.
    align comments
    rurban committed Sep 26, 2014
  5. @rurban

    gettuple jit: simplify and fix

    harmonize 32+64 bit. JIT_UNCHECKED_TUPLE works now, but
    op.a for IMM is still wrong, in both versions
    rurban committed Sep 26, 2014