apexlang / apex-go Goto Github PK
View Code? Open in Web Editor NEWGolang support for the Apex language
License: Apache License 2.0
Golang support for the Apex language
License: Apache License 2.0
am on main branch.
on the latest deno.
install deno and apex...
# needs deno !!
# https://github.com/denoland/deno_install#install-specific-version
curl -fsSL https://deno.land/x/install/install.sh | sh
######################################################################## 100.0%
Archive: "/Users/apple/.deno"/bin/deno.zip
inflating: "/Users/apple/.deno"/bin/deno
Deno was installed successfully to "/Users/apple/.deno"/bin/deno
Manually add the directory to your $HOME/.zshrc (or similar)
export DENO_INSTALL=""/Users/apple/.deno""
export PATH="$DENO_INSTALL/bin:$PATH"
Run '"/Users/apple/.deno"/bin/deno --help' to get started
# now can install apex
cd apex && "/Users/apple/.deno"/bin/deno install -f -A --unstable ./apex.ts
✅ Successfully installed apex
/Users/apple/.deno/bin/apex
ℹ️ Add /Users/apple/.deno/bin to PATH
export PATH="/Users/apple/.deno/bin:$PATH"
apex version
apex version 0.1.16 darwin/amd64
Now for apex-go:
cd tinyjson/tinyjson && go install .
## now build apex-go
cd apex-go && apex generate
Generating model/msgpack.go...
Compilation error: Error: Dynamic require of "https://deno.land/x/[email protected]/go/mod.ts" is not supported
Generating model/wapc.go...
Compilation error: Error: Dynamic require of "https://deno.land/x/[email protected]/tinygo/mod.ts" is not supported
Generating cmd/wapc/main.go...
Compilation error: Error: Dynamic require of "https://deno.land/x/[email protected]/tinygo/mod.ts" is not supported
Generating model/model.go...
Compilation error: Error: Dynamic require of "https://deno.land/x/[email protected]/go/mod.ts" is not supported
Formatting model/model.go...
Formatting model/msgpack.go...
Formatting model/wapc.go...
Formatting cmd/wapc/main.go...
Running: tinyjson -all model/model.go
apex: error: Compilation error: Error: Dynamic require of "https://deno.land/x/[email protected]/go/mod.ts" is not supported; Compilation error: Error: Dynamic require of "https://deno.land/x/[email protected]/tinygo/mod.ts" is not supported; Compilation error: Error: Dynamic require of "https://deno.land/x/[email protected]/tinygo/mod.ts" is not supported; Compilation error: Error: Dynamic require of "https://deno.land/x/[email protected]/go/mod.ts" is not supported
make[1]: *** [Makefile:22: codegen] Error 1
cd apex-go
apex-go apex generate
Generating model/model.go...
Generating model/msgpack.go...
Generating model/wapc.go...
✘ [ERROR] Could not resolve "@wapc/codegen/tinygo"
generate.ts:3:30:
3 │ import { ExportVisitor } from "@wapc/codegen/tinygo";
╵ ~~~~~~~~~~~~~~~~~~~~~~
You can mark the path "@wapc/codegen/tinygo" as external to exclude it from the
bundle, which will remove this error.
apex: error: esbuild returned errors: [{ Could not resolve "@wapc/codegen/tinygo" 0xc00197f740 [{You can mark the path "@wapc/codegen/tinygo" as external to exclude it from the bundle, which will remove this error. <nil>}] <nil>}]
i guess i am missing something ?
which wasm-opt
/usr/local/bin/wasm-opt
which esbuild
/usr/local/bin/esbuild
which tinygo
/usr/local/bin/tinygo
great project. Like all projects i immediately hit dependency issues.
you might like hermit. It is not your average dependency system.
https://github.com/cashapp/hermit
It can install rust and golang or anything that's a binary, but also products of them also like some binary.
It fully supports different OS and ARCH.
it can then fully manage the env and keep each repo your working on having only the versions of the binary dependences you want.
It also very fast...
It seems like a god thing for all layers. so for nanonbus too, etc.
it will create a folder called "bin", and then mange all the binaries in there for you.
here is an example: https://github.com/cashapp/hermit/tree/master/bin
Does this allow to look back at the IDL from the runtime ?
So if you compile a idl , when you’re using it at runtime you can see the line of code from back in the IDL
debugging is then easier.
Maybe source providence is a bette name for this :)
then with a continuous compiler setup you can see the wrong code, edit it, and get a new wasm module load up. Compiler as a service with quasi “edit and continue” debugging .
Thanks . Apex is amazing
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.