How does it perform compared to pre-compilation? I would think it is such a thin margin it's barely worth doing? Also, order-dependency is a pretty big problem considering how little Go code will be written in this kind of order, since it doesn't have to be. I would think therefore that to fix this problem you will have to have a pre-interpretation pass on the parser that populates the namespace and dependency-orders it.
On Friday, 27 April 2018 20:33:41 UTC+3, Max wrote: > > > website: https://github.com/cosmos72/gomacro > install: go get github.com/cosmos72/gomacro > > At version 2.6, gomacro has almost complete Go language support, including > import of third-party libraries (easy on Linux, requires a recompiling on > other platforms), > declaring new interface types and implementing them. > > Extensions with respect to compiled Go: > * integrated debugger, see https://github.com/cosmos72/gomacro#debugger > * untyped constants can be manipulated directly at prompt, providing a > handy arbitrary precision calculator. Example: > ``` > const c = 1<<1000 > c + 1<<500 * 1<<200 > ``` > * implicit conversion from untyped constants to *big.Int, *big.Rat and > *big.Float. Example: > ``` > import "math/big" > var i *big.Int = 1<<1000 > var r *big.Rat = 1.00000000000000000000000001 > var f *big.Float = 1e123456 > ``` > > Currently missing features: > * out-of-order code is not supported: symbols must be declared before > using them. > * some rarely used corner cases with interpreted interfaces are not > implemented > > For a graphical front-end, see https://github.com/gopherdata/gophernotes, > the Go kernel for Jupyter notebooks and nteract (uses a slightly older > version of gomacro). > > As usual, feedback is welcome :) > > Max > -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.