All Projects → go2hx → go2hx

go2hx / go2hx

Licence: MIT License
Go -> Haxe -> JS Java C# C++ C Python Lua

Programming Languages

haxe
709 projects
go
31211 projects - #10 most used programming language

Projects that are alternatives of or similar to go2hx

RCCpp DX11 Example
Runtime Compiled C++ example based on the Dear ImGui DirectX11 Example
Stars: ✭ 35 (-28.57%)
Mutual labels:  compile
python-makefun
Dynamically create python functions with a proper signature.
Stars: ✭ 62 (+26.53%)
Mutual labels:  compile
qaffeine
Decaffeinate your JS-powered CSS stylesheets
Stars: ✭ 22 (-55.1%)
Mutual labels:  transpiler
json-sql-builder2
Level Up Your SQL-Queries
Stars: ✭ 59 (+20.41%)
Mutual labels:  transpiler
sugartex
SugarTeX is a more readable LaTeX language extension and transcompiler to LaTeX. Fast Unicode autocomplete in Atom editor via https://github.com/kiwi0fruit/atom-sugartex-completions
Stars: ✭ 74 (+51.02%)
Mutual labels:  transpiler
escapin
Escapin is a JS/TS transpiler for escaping from complicated usage of cloud services and APIs
Stars: ✭ 20 (-59.18%)
Mutual labels:  transpiler
habrlang
Step by Step guide how to make your own programming language
Stars: ✭ 20 (-59.18%)
Mutual labels:  transpiler
rewrite-imports
Rewrite `import` statements as `require()`s; via RegExp
Stars: ✭ 31 (-36.73%)
Mutual labels:  transpiler
cli
Nexss PROGRAMMER 2.x - innovative and evolutionary programming tool - over 50 programming languages
Stars: ✭ 15 (-69.39%)
Mutual labels:  compile
bck2brwsr
Bck2Brwsr VM to transpile Java bytecode to JavaScript
Stars: ✭ 93 (+89.8%)
Mutual labels:  transpiler
go-mlog
Go to Mindustry (MLOG) compiler, runtime and decompiler (WIP)
Stars: ✭ 19 (-61.22%)
Mutual labels:  transpiler
docker-esp-sdk
Executable docker image to easily compile and flash for the ESP32 and ESP8266
Stars: ✭ 30 (-38.78%)
Mutual labels:  compile
Headache
Programming Language that compiles to 8 Bit Brainfuck
Stars: ✭ 59 (+20.41%)
Mutual labels:  transpiler
LunarML
A Standard ML compiler that produces Lua/JavaScript
Stars: ✭ 127 (+159.18%)
Mutual labels:  transpiler
sqlglot
Python SQL Parser and Transpiler
Stars: ✭ 310 (+532.65%)
Mutual labels:  transpiler
War3Net
A .NET implementation of Warcraft III related libraries.
Stars: ✭ 76 (+55.1%)
Mutual labels:  transpiler
fastaop
🚀 lightweight, high-performance AOP framework based on Java Annotation Processing, similar to Lombok
Stars: ✭ 87 (+77.55%)
Mutual labels:  compile
BashClass
BashClass is an Object Oriented Programming language that compiles to BASH 4.4
Stars: ✭ 40 (-18.37%)
Mutual labels:  transpiler
grizzly
A Python-to-SQL transpiler as replacement for Python Pandas
Stars: ✭ 27 (-44.9%)
Mutual labels:  transpiler
js-slang
Implementations of the Source languages, which are small sublanguages of JavaScript designed for SICP JS
Stars: ✭ 41 (-16.33%)
Mutual labels:  transpiler

go2hx

Compile: Go -> Haxe -> Js, Lua, C#, C++, Java, C, Python

warning: heavily experimental still a ways to go before an alpha.

Come give feedback on what Go libraries you want supported!

Getting started

haxelib git go2hx https://github.com/go2hx/go2hx

Compile and run code with interp target

haxelib run go2hx --interp ./main.go

Compile and generate build file with hashlink target

haxelib run go2hx --hxml build.hxml --norun --hl run.hl ./main.go

Shows percentage of tests passing out of total

Language features

go2hx supports a subset of language features that have not been extensively tested yet. It does not include any support for go routines, The list includes:

  • control flow statements for/if/range
  • all statements except statements relating to go routines, control-flows/branches/decls
  • all exprs conversion/literals/access

Standard library support

The standard library that has been rewritten in Haxe has partial support, It does not include any support for unsafe, embeds, testing, and cgo, The most supported libraries in order includes:

  • reflect
  • fmt
  • os
  • strings
  • strconv
  • math

Acknowledgement

A spiritual successor to Tardisgo written by Elliott Stoneham, The developer that has set the building blocks conceptually for this project, as well as a code contributor, with use of some of his code from Tardisgo.

Build from source

haxelib dev go2hx .

Look at Run.hx to see how the building occurs.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].