[go-nuts] Compile-time Instrumentation

2017-08-18 Thread kpratt
Is there any way in go to do this? Ideally I'd like to be able to do something like pass the compiler an AST -> AST function to be run between front and back end compile steps. The best way I see atm is to do a precompile job that dumps the AST back out to a different directory and compiles tha

[go-nuts] Re: Getting some strange benchmark results

2017-08-18 Thread kpratt
>From the recent GopherCon, golang's profiler has a tool for inspecting allocations that might solve your problem. https://youtu.be/2557w0qsDV0?list=PLq2Nv-Sh8EbZEjZdPLaQt1qh_ohZFMDj8&t=526 -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To uns

[go-nuts] go/types#Check is not resolving external package source positions.

2017-10-26 Thread kpratt
I have a simple example file: == package gobbledy_gook import ( "log" turtle "github.com/rs/zerolog/log" "os" "github.com/rs/zerolog" ) var LOG = turtle.Logger.Output(os.Stdout).Error() func g() []zerolog.Logger { return []zerolog.Logger{} } func

[go-nuts] The feature I want most, weak *

2017-02-09 Thread kpratt
The feature I want most in go is automatic reference counting. I don't really care how mainline GC works but I want the language to be open to the possibility of ARC-GC. In order for that to be able to handle cycles you need a weak_ptr type that can requires explicit graduation to a shared_ptr.

Re: [go-nuts] The feature I want most, weak *

2017-02-09 Thread kpratt
Thx, that looks like an interesting paper. -- 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 http

Re: [go-nuts] The feature I want most, weak *

2017-02-09 Thread kpratt
I'll look into that api and maybe it will solve my problems. Though, to be understood I'm not asking for ARC, I'm asking for a keyword so the spec is compatible with ARC. > > -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe fro

[go-nuts] Expressing test dependence

2017-02-24 Thread kpratt
What I want is a way to say if Test_A fails then don't run Test_B because it's guaranteed to fail and that just creates noise in the output. So instinctively I'd like something like annotations for this. // @DependsOn [ "Test_A" ] func Test_B(t *testing.T) { .test stuff } https://github