Haxe + numba sample
$ haxe build.hxml
$ python testhx.py
Test.hx:28: 499999700005.0959
Test.hx:29: first calc, 0.20508950000000015
Test.hx:33: 499999700005.0959
Test.hx:34: second calc, 0.05553469999999994
Thread 0:: Dispatch queue: com.apple.main-thread | |
0 libsystem_kernel.dylib 0x18f60584c __psynch_cvwait + 8 | |
1 libsystem_pthread.dylib 0x18f642638 _pthread_cond_wait + 1232 | |
2 BasicWindow-debug 0x104c51b8c HxSemaphore::Wait() + 68 (Thread.h:234) | |
3 BasicWindow-debug 0x104c49048 hx::DebuggerContext::DoBreak(hx::DebugStatus, int, String const*) + 496 (Debugger.cpp:304) | |
4 BasicWindow-debug 0x104c5196c hx::DebuggerContext::Break(hx::DebugStatus, int, String const*) + 128 (Debugger.cpp:344) | |
5 BasicWindow-debug 0x104c48d58 hx::Breakpoints::HandleBreakpoints(hx::StackContext*) + 912 (Debugger.cpp:677) | |
6 BasicWindow-debug 0x104c4899c __hxcpp_on_line_changed(hx::StackContext*) + 24 (Debugger.cpp:1478) | |
7 BasicWindow-debug 0x104b3bb4c BasicWindow_obj::main() + 432 (BasicWindow.cpp:38) | |
8 BasicWindow-debug 0x104c0dec4 __hxcpp_main + 32 (__mai |
LBITS := $(shell getconf LONG_BIT) | |
MARCH ?= $(LBITS) | |
PREFIX ?= /usr/local | |
INSTALL_DIR ?= $(PREFIX) | |
INSTALL_BIN_DIR ?= $(PREFIX)/bin | |
INSTALL_LIB_DIR ?= $(PREFIX)/lib | |
INSTALL_INCLUDE_DIR ?= $(PREFIX)/include | |
LIBS=fmt sdl ssl openal ui uv mysql |
Haxe + numba sample
$ haxe build.hxml
$ python testhx.py
Test.hx:28: 499999700005.0959
Test.hx:29: first calc, 0.20508950000000015
Test.hx:33: 499999700005.0959
Test.hx:34: second calc, 0.05553469999999994
#!/bin/sh | |
help=0 | |
latest=0 | |
verbose=0 | |
status=0 | |
usage() { | |
cat <<-EOF | |
${0##*/} [options] |
#!/bin/sh | |
# Written by Mike Ensor ([email protected]) | |
# Copywrite 2012 | |
# Use as needed, modify, have fun! | |
# This is intended to be used for Maven3 + Mac OSX | |
# | |
# To use: | |
# in your ".bashrc" or ".bash_profile" add the following line: | |
# source ~/<path to script>/colorize-maven.sh |
package worker; | |
import flash.display.Sprite; | |
import flash.system.*; | |
import haxe.io.*; | |
import format.swf.*; | |
/** | |
* usage: | |
* -lib format |
using haxe.macro.ExprTools; | |
import haxe.macro.Context; | |
import haxe.macro.Expr; | |
class ElvisReflect { | |
@:noUsing macro static public function fast(args:Array<Expr>) { | |
if (args.length == 0) return macro {}; | |
function map(e:Expr):Expr { |
function getField(field:ClassField):Field { | |
var typedExpr = field.expr(); | |
var expr = typedExpr != null ? Context.getTypedExpr(typedExpr) : null; | |
var f = { | |
name: field.name, | |
doc: field.doc, | |
pos: field.pos, | |
meta: field.meta.get(), | |
kind: null, |
package ; | |
import haxe.macro.Expr; | |
/** | |
* ... | |
* @author deep <[email protected]> | |
*/ | |
class ElseMacros | |
{ |
package ; | |
#if macro | |
import haxe.macro.Context; | |
import haxe.macro.Expr; | |
#end | |
/** | |
* ... | |
* @author deep <[email protected]> | |
*/ | |
class Measure |