Coder Social home page Coder Social logo

apex-go's People

Contributors

codefromthecrypt avatar evacchi avatar jsoverson avatar pkedy avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

apex-go's Issues

make codegen failing ...

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

bug: install of apex-go failing..

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

dependencies for apex and nano bus. Maybe Hermit is your cup of tea

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

Question: source maps

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.