Re: [go-nuts] Why not sync.Mutex is designed as an interface

2022-12-16 Thread 'Yuchen Xie' via golang-nuts
That makes sense. Thanks for replying. regards On Wednesday, November 9, 2022 at 1:11:35 AM UTC+8 Ian Lance Taylor wrote: > On Tue, Nov 8, 2022 at 7:55 AM Xie Yuchen wrote: > > > > I checked with the issue about how to refer no-copy and the check of > cmd/vet. After checking, I'm curious that

Re: [go-nuts] How to disable all go compiler build output compressions?

2022-12-16 Thread Dmitriy P
It seems you not interact with data variable in main or other places, so go automatically drop it Just add `print(len(data))` or something like this in main function and binary instantly grow up пятница, 16 декабря 2022 г. в 10:15:24 UTC+3, Aurora: > By empty, I mean it didn't actually

[go-nuts] Re: Achieving C/C++/Rust comparable performance with Golang

2022-12-16 Thread Rich
Too often people look at one benchmark -- speed in execution to determine what the best language is. Is Rust better than Go because it can run a benchmark faster? The problem the original developers were trying to solve wasn't that C/C++ or other languages couldn't run fast enough, Ken

Re: [go-nuts] WebAssembly and Filesystem access

2022-12-16 Thread Raffaele Sena
tinygo now has a "wasi" target that you can try. On Fri, Dec 16, 2022 at 2:10 PM 'Kevin Chowski' via golang-nuts < golang-nuts@googlegroups.com> wrote: > I recently learned that WASI ( > https://github.com/bytecodealliance/wasmtime/blob/main/docs/WASI-intro.md) > supports filesystem

Re: [go-nuts] WebAssembly and Filesystem access

2022-12-16 Thread 'Kevin Chowski' via golang-nuts
I recently learned that WASI (https://github.com/bytecodealliance/wasmtime/blob/main/docs/WASI-intro.md) supports filesystem abstractions directly for WASM code. Is there an plan to integrate this into Go? On Saturday, November 5, 2022 at 5:59:08 AM UTC-6 Konstantin Khomoutov wrote: > On

Re: [go-nuts] Re: Achieving C/C++/Rust comparable performance with Golang

2022-12-16 Thread Sven Nebel
Thank you for all the insights! On Fri, 16 Dec 2022 at 14:59, Rich wrote: > Too often people look at one benchmark -- speed in execution to determine > what the best language is. Is Rust better than Go because it can run a > benchmark faster? The problem the original developers were trying to