[go-nuts] Re: gomobile - SIGPIPE

2018-02-05 Thread Elias Naur
It's hard to know what's causing the SIGPIPE without more information. Ideally, a standalone recipe to reproduce the problem. Make sure you have the latest version of gomobile as well. - elias On Monday, February 5, 2018 at 10:53:09 PM UTC+1, mi...@ubo.ro wrote: > > I'm trying to develop a gom

[go-nuts] Re: gomobile - SIGPIPE

2018-02-13 Thread Elias Naur
t of background (i.e. unlock the phone) > 5. You get SIGPIPE > > https://github.com/themihai/testios > > > gomobile version > gomobile version +5704e18 Mon Jan 22 17:02:51 2018 + (android,ios); > androidSDK= > > Mihai. > > > > On Tuesday, February 6, 2

[go-nuts] Re: flutter' app crash met with gomobile package .aar

2018-03-21 Thread Elias Naur
I have no experience with that combination. Is there a stack trace or error message along with the crash? On Wednesday, March 21, 2018 at 1:37:11 PM UTC+1, jlp hu wrote: > > flutter' app crash met with gomobile package .aar > >1. > >I follow the guidence https://flutter.io/platform-c

[go-nuts] Re: using gofmt "internally" to format a string, aka in memory go code formatter

2018-03-26 Thread Elias Naur
The gofmt command by default reads from standard input and outputs to standard output. It doesn't need a temporary file. Alternatively, use the go/ast package to parse Go source and go/printer to pretty print it. - elias On Monday, March 26, 2018 at 7:29:15 PM UTC+2, Darko Luketic wrote: > >

[go-nuts] gomobile bind "skipped function" error in xcode

2018-04-29 Thread Elias Naur
Only byte slices ([]byte) are supported by gomobile bind. Try replacing your int slices with byte slices and it should appear in ObjC. -- 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

[go-nuts] Re: I want to run a go project called syncthing on iOS , but I have some issues

2018-09-12 Thread Elias Naur
Tamás is right: go install or go build should be enough. Mare sure you have a recent version of Xcode (I use version 9.x) installed. Here's my attempt: $ go get -u github.com/syncthing/syncthing/cmd/syncthing $ GOARCH=arm64 CGO_ENABLED=1 ~/go-tip/bin/go build -tags ios -o syncthing github.com/s

[go-nuts] Re: x/mobile: forcing IntelliJ to fully reload changes to AAR

2018-09-21 Thread Elias Naur
Hi, Since the gradle has no maintaner anymore (https://github.com/golang/go/issues/25314) so I deleted its mention from the Wiki page. I think you're better off not using the plugin and manually rebuild the AAR file with gomobile bind. - elias On Friday, September 21, 2018 at 8:13:20 PM UTC

[go-nuts] [gomobile] How to generate reverse-bindings for Java without the gradle-plugin?

2018-10-18 Thread Elias Naur
Does gomobile bind work? If not, what does it say? - elias -- 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

[go-nuts] Re: [gomobile] How to generate reverse-bindings for Java without the gradle-plugin?

2018-10-19 Thread Elias Naur
/bin/gobind -lang=go,java > -outdir=/var/folders/wz/4c7lp4w92y99_2bmpyx0j8smgn/T/gomobile-work-238062479 > > git.xxx.com/test failed: exit status 1 > > > On Thursday, October 18, 2018 at 11:28:25 PM UTC+2, Elias Naur wrote: >> >> Does >> >> gomobile

[go-nuts] Re: [gomobile] How to generate reverse-bindings for Java without the gradle-plugin?

2018-10-19 Thread Elias Naur
folders/wz/4c7lp4w92y99_2bmpyx0j8smgn/T/gomobile-work-615111792 > > -bootclasspath=/Users/timcooijmans/Development/AndroidSDK/platforms/android-27/android.jar > > git.xxx.com/test failed: exit status 1 > > > On Friday, October 19, 2018 at 9:30:04 AM UTC+2, Elias

[go-nuts] Re: gomobile: what's the right way to make widgets?

2018-10-29 Thread Elias Naur
On Monday, October 29, 2018 at 11:48:06 AM UTC+1, Laurent Moussault wrote: > > > IMHO there is vacuum right-now, an opportunity for a native framework that > allows the same design freedom as web interfaces, but implemented directly > on top of the OSes (and Vulkan, probably). I think something

Re: [go-nuts] Re: gomobile: what's the right way to make widgets?

2018-11-11 Thread Elias Naur
søn. 11. nov. 2018 14.48 skrev komuW : > Do you plan on making that UI library public(open source or not) at some > point? > Yes. As soon as I'm happy with the API I'll release it under a very liberal licence, perhaps even unlicenced. > On Monday, 29 October 2018 16:5

Re: [go-nuts] Re: OpenAL and microphone on macos using the mobile pkg

2019-03-08 Thread Elias Naur
On Thu, Mar 7, 2019 at 11:11 PM whitehexagon via golang-nuts wrote: > > Thanks! That got me some steps further down the rabbit hole :) > > gomobile: the Android requires the golang.org/x/mobile/exp/audio/al, but the > OpenAL libraries was not found. Please run gomobile init with the -openal > fl

Re: [go-nuts] Re: gomobile genjava duplicate constructor definition

2019-03-18 Thread Elias Naur
On Mon, Mar 18, 2019 at 6:33 PM wrote: > > Elias, thank you for the prompt response and submitting a fix. > > I have checked this out, and though it does result in successful compilation, > it does not solve my problem because the public constructor is removed > allowing me no initializer access

[go-nuts] Re: gomobile and module

2019-04-22 Thread Elias Naur
On Mon, Apr 22, 2019 at 9:24 PM Junda Liu wrote: > > Hi Elias, > > Thanks so much for working on gomobile! We've used it heavily to ensure same > code base between server and client sdk. > Hi Junda, I took the liberty of CC'ing golang-nuts. My replies are below, perhaps others know more. > I a

[go-nuts] gobind generated constructor for struct containing []byte sometimes corrupts data

2017-08-02 Thread Elias Naur
[]byte arguments are passed by reference, not copied. You need to copy any byte slices you retain after the function or method call. - elias -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emai

Re: [go-nuts] Re: gobind generated constructor for struct containing []byte sometimes corrupts data

2017-08-03 Thread Elias Naur
the go code, then it >> just deletes it as soon as the constructor returns? >> And then the getE method just reads whatever happens to be in memory >> where the old array was without throwing any error despite the fact that >> the old byte[] has been garbage collected and

Re: [go-nuts] Re: gobind generated constructor for struct containing []byte sometimes corrupts data

2017-08-04 Thread Elias Naur
me somewhere I can read more > about this issue please? > > Also, are the automatically generated setters (i.e. struct.setE() ) doing > the necessary cloning, or should I implement my own? > The setters are cloning. If not it's a bug :) > Thanks a lot again! > > On Thur

[go-nuts] Re: gomobile socket permissions

2017-08-15 Thread Elias Naur
I've only had problems when I forgot to ask for android.permission.INTERNET whic I assume you have. Can you post a more complete program that demonstrates the problem? - elias On Tuesday, August 15, 2017 at 5:58:21 PM UTC+2, Dan Ballard wrote: > > StrictMode.ThreadPolicy policy = new StrictMod

[go-nuts] Re: gomobile socket permissions

2017-08-16 Thread Elias Naur
Hi, Have you tried the golang.org/x/mobile/example/network example? It's a "pure" Go app that doesn't use Java bindings, but its network access properties should be the same. If that works, you could modify golang.org/x/mobile/example/bind to introduce a simple http.Get (or net.Dial) and see i

[go-nuts] Why is Shiny's text rendering quantizes to the pixel grid?

2017-09-15 Thread Elias Naur
Hi, Working on a immediate mode fork of Shiny, I ran into this comment: // We round up the ascent and descent separately, instead of asking for // the metrics' height, since we quantize the baseline to the integer // pixel grid. For example, if ascent and descent were both 3.2 pixels, // then the

[go-nuts] Re: DNS problem and cross-compile to GOOS=android|linux GOARCH=arm + CC=

2017-09-15 Thread Elias Naur
On Friday, September 15, 2017 at 7:15:25 PM UTC+2, ulde...@strongdm.com wrote: > Hi, > > > It fails when I run: > ``` > CC="${GOPATH}/android-ndk/bin/arm-linux-androideabi-gcc" GOOS=android > GOARCH=arm GOARM=7 go build > # github.com/ucirello/android-test > warning: unable to find runtime/cgo.a

Re: [go-nuts] cannot assign 1 values to 2 variables [simple error handling]

2017-09-18 Thread Elias Naur
Just to expand on Ian's reply: you seem to want to have loadPage return any errors, similar to what ReaedFile does. If so, you need to declare loadPage to return two values, like so: func loadPage(title string) (*Page, error) And return a nil *Page and the error if ReadFile fails: body, err :=

[go-nuts] Gomobile and SAF

2017-10-12 Thread Elias Naur
Hi, As I noted on the issue, you should avoid the reverse binding for now and use Go interfaces instead. The following change to the gomobile bind example demonstrates the technique: diff --git a/example/bind/android/app/src/main/java/org/golang/example/bind/MainActivity.java b/example/bind/

[go-nuts] Re: gomobile bind doesn't work for socket.

2017-10-16 Thread Elias Naur
I think this is a problem with the kcp-go package. Building the package for darwin/arm64 gives me the same error: $ GOOS=darwin GOARCH=arm64 go install github.com/xtaci/kcp-go # golang.org/x/net/internal/socket dev/go/src/golang.org/x/net/internal/socket/cmsghdr.go:9:10: undefined: cmsghdr - el

[go-nuts] Re: gomobile bind doesn't work for socket.

2017-10-16 Thread Elias Naur
or and I > didn't google the solution about how to fix it. > It's very appreciated if you can give me some hints about the root reason > of this problem or the possible sollution. > > 在 2017年10月16日星期一 UTC+8下午5:11:52,Elias Naur写道: >> >> I think this is a proble

[go-nuts] Re: gomobile bind doesn't work for socket.

2017-10-16 Thread Elias Naur
is right and I > use it on the desktop) > > I am not sure whether I did bad fix. It really like that socket didn't > work. > > 在 2017年10月16日星期一 UTC+8下午5:56:45,Elias Naur写道: >> >> I was wrong. The root cause seem to be that the zsys_darwin_arm64.go (for

[go-nuts] Re: Invalid Segment Alignment when pushing to iTunesConnect

2017-10-22 Thread Elias Naur
Hi Paul, What version of Go, Xcode an macOS are you using? I'd like to help you debug the problem, but Xcode doesn't seem to allow me to run the validation of an archived build without a developer account. - elias On Sunday, October 22, 2017 at 6:34:15 AM UTC+2, pru...@gmail.com wrote: > > I'

[go-nuts] Re: Invalid Segment Alignment when pushing to iTunesConnect

2017-10-22 Thread Elias Naur
Another thing: Is the problem present in go tip (to become 1.10) as well? And finally, can you reproduce the problem with the simple golang.org/x/mobile/example/bind example? - elias On Sunday, October 22, 2017 at 10:26:15 AM UTC+2, Elias Naur wrote: > > Hi Paul, > > What version

Re: [go-nuts] Re: Invalid Segment Alignment when pushing to iTunesConnect

2017-10-23 Thread Elias Naur
On Mon, Oct 23, 2017 at 2:09 PM wrote: > I reproduced the problem using the gomobile bind example with the > following code changes. > > diff --git a/cmd/gomobile/build_iosapp.go b/cmd/gomobile/build_iosapp.go > > index 0b2a923..8480790 100644 > > --- a/cmd/gomobile/build_iosapp.go > > +++ b/cmd/

Re: [go-nuts] Re: Invalid Segment Alignment when pushing to iTunesConnect

2017-10-23 Thread Elias Naur
m https://github.com/golang/go/wiki/Mobile work > for you in Xcode 9? I accepted all Xcode fixes. Is it better to not do this? > > On Monday, October 23, 2017 at 10:27:24 AM UTC-4, Elias Naur wrote: > >> >> >> On Mon, Oct 23, 2017 at 2:09 PM wrote: >>

Re: [go-nuts] Re: Invalid Segment Alignment when pushing to iTunesConnect

2017-10-23 Thread Elias Naur
d(src, darwinArm64Env, "-buildmode=c-archive", "-o="+arm64Path); err != nil { return nil, err } ? - elias On Mon, Oct 23, 2017 at 5:28 PM wrote: > Ok thank you!. Bind does validate after setting ENABLE_BITCODE to NO in > the build settings. > >

Re: [go-nuts] Re: Invalid Segment Alignment when pushing to iTunesConnect

2017-10-23 Thread Elias Naur
jc_superrefs: 0x8 (addr 0x4145360 offset 1332064) >> >> Section __objc_ivar: 0x14 (addr 0x4145368 offset 1332072) >> >> Section __objc_data: 0xa0 (addr 0x4145380 offset 1332096) >> >> Section __rodata: 0x6f038 (addr 0x4145420 offset 1332256) >> >> Sectio

Re: [go-nuts] Re: Invalid Segment Alignment when pushing to iTunesConnect

2017-10-23 Thread Elias Naur
it into the next go release? I don't want to hold > things up as I google "change list" with various combinations of "golang", > "git" and "submit go patch". > > I had thought about raising a golang issue as the next step. Would this > mak

[go-nuts] Re: gomobile bind -target=ios ld: framework not found OpenGL

2018-01-28 Thread Elias Naur
Only OpenGL ES (OpenGLES.framework) is available on iOS. Furthermore, iOS builds use the frameworks installed in the platform directory. On my system that's /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks or /Applica

Re: [go-nuts] [ANN] Gio: portable immediate mode GUI programs in Go for iOS/tvOS, Android, macOS, Linux, Windows

2019-06-05 Thread Elias Naur
On Thursday, 6 June 2019 00:43:22 UTC+2, dol...@gmail.com wrote: > > Him > > Source Hut actually requires me to create an account to read the mailing > list. Hmph. > That's surprising. I went to https://lists.sr.ht/~eliasnaur/gio-dev with a private browser session and it showed up fine. The "n

Re: [go-nuts] [ANN] Gio: portable immediate mode GUI programs in Go for iOS/tvOS, Android, macOS, Linux, Windows

2019-06-11 Thread Elias Naur
> > And on android, I can delete characters, but not input any (Samsung Galaxy >> S8, Android 9) >> >> > Thanks for bringing it up, I've added it to the issue tracker: > https://todo.sr.ht/~eliasnaur/gio/7. It's not entirely unexpected; I have > only implemented the very basic parts of the Andr

[go-nuts] Re: [ANN] Gio: portable immediate mode GUI programs in Go for iOS/tvOS, Android, macOS, Linux, Windows

2019-06-14 Thread Elias Naur
On Friday, June 14, 2019 at 12:58:40 PM UTC+2, Mark Bauermeister wrote: > > Any plans for a Vulkan back-end? > When I'm happy with the OpenGL ES backend then yes, Vulkan is the logical next step. - elias -- You received this message because you are subscribed to the Google Groups "golang-n

[go-nuts] Can you spare a Samsung S5 for the Gio project?

2019-07-29 Thread Elias Naur
Hi, I'm trying to fix a Gio (gioui.org) bug where the rendering is corrupted on a Samsung S5 (https://todo.sr.ht/~eliasnaur/gio/10). I can't reproduce it on my own devices, so on the off chance someone has a spare lying around I would greatly appreciate if you could send it to me. I'll cover the s

[go-nuts] Re: Can you spare a Samsung S5 for the Gio project?

2019-07-29 Thread Elias Naur
On Mon, Jul 29, 2019 at 7:15 PM Tanguy ⧓ Herrmann wrote: > > Mine actually died today, so I can't even reproduce that bug anymore… > And it was my spare. Waiting for the repair of my S8 meanwhile. > Heh. I suppose that's another way to fix the issue: killing all S5s one by one. - elias -- You

[go-nuts] Re: Replace modules from command line

2019-08-08 Thread Elias Naur
mandag den 5. august 2019 kl. 18.46.01 UTC+2 skrev Peter Feichtinger: > > Hi Go Nuts, > > I have a rather unusual use case and I'm hoping for some input. > > For testing purposes, I want to build a Go binary with different versions > of one of its dependencies. The only way I could think of was

[go-nuts] Re: GoMobile tools not recognised

2019-08-28 Thread Elias Naur
søndag den 18. august 2019 kl. 21.27.24 UTC+1 skrev starzar: > > On installing Golang mobile tools > on my > Windows10-64bit machine,the gomobile tools are not recognised . The > installation path is the *GOROOT PATH C:\Go*. > > GolangVersi

Re: [go-nuts] Re: [ANN] Gio: portable immediate mode GUI programs in Go for iOS/tvOS, Android, macOS, Linux, Windows

2019-09-05 Thread Elias Naur
> > Hi, I wanted to try gio this week, and after a lot of work getting > kde-plasma v5.14.3 working on Wayland (Funtoo x86_64), I now have hit the > same issue here: > > https://git.sr.ht/~eliasnaur/gio/tree/master/ui/app/os_wayland.go#L1134 > > "wayland: no xdg_wm_base available" > > I'm a n

[go-nuts] Re: x/mobile: Samples for reverse binding in gomobile

2019-09-06 Thread Elias Naur
fredag den 6. september 2019 kl. 13.29.33 UTC+2 skrev Jay Sharma: > > Hello All, > > *I can not see any samples for reverse binding (Calling function from go > layer of java layer) in gomobile.* > > > There is the original proposal: https://github.com/golang/go/issues/16876 There is also some

Re: [go-nuts] Re: x/mobile: Samples for reverse binding in gomobile

2019-09-09 Thread Elias Naur
On Mon Sep 9, 2019 at 3:09 AM Jay Sharma wrote: > > *Next I want to try with my own classes in java.. I want to define class > and call it from go. * > *Can you please suggest, in that case how to build with gomobile ?* > I think you can use the -classpath option to gomobile. -- elias -- You

Re: [go-nuts] Re: x/mobile: Samples for reverse binding in gomobile

2019-09-10 Thread Elias Naur
On Tue Sep 10, 2019 at 4:26 AM Jay Sharma wrote: > --=_Part_1258_983331168.1568114760099 > Content-Type: text/plain; charset="UTF-8" > > Hello @elias, > > I tried the following: > > 1. Created a java class : > > package reversebinding; > > public class RBinding { > public static String g

Re: [go-nuts] Re: x/mobile: Samples for reverse binding in gomobile

2019-09-11 Thread Elias Naur
On Wed Sep 11, 2019 at 3:51 AM Jay Sharma wrote: > > > I have one doubt when we build using gomobile in that I am giving the > classpath to my .class java file. > *Will it be included in .aar or I have to include that .class file along > with .aar in my android application. * > The class fil

Re: [go-nuts] Re: x/mobile: Samples for reverse binding in gomobile

2019-09-11 Thread Elias Naur
On Wed Sep 11, 2019 at 7:20 AM Jay Sharma wrote: > > > *Now, I want to create object of this class in go and want to call method > using that object from go. * > > I was checking your proposal (https://github.com/golang/go/issues/16876) > but could not able to make it. :( The proposal suggest

Re: [go-nuts] Re: x/mobile: Samples for reverse binding in gomobile

2019-09-12 Thread Elias Naur
On Thu Sep 12, 2019 at 2:35 AM Jay Sharma wrote: > > *Hello Elias,* > > *Following is my java file: * > > > package reversebinding; > > public class RBinding { > public static String getStringFromJava() { > return "Hello from java !!"; > } > } > > > Your Java method is declare

Re: [go-nuts] micro review and hello gio: portable GUI code, all in Go

2019-10-04 Thread Elias Naur
> FYI, Elias gave a talk about this project at Gophercon: > https://www.youtube.com/watch?v=9D6eWP4peYM . > > Ian > And another at Gophercon UK: https://www.youtube.com/watch?v=PxnL3-Sex3o And there will be another (+workshop) at GoLab later this month :) Thank you for the glowing (micro) r

[go-nuts] Re: wasm - Browser gets stuck due memory usage

2019-11-10 Thread Elias Naur
Possible duplicate of https://github.com/golang/go/issues/35111 (garbage collection of js.Value references) which was recently fixed. Please try with gotip (https://godoc.org/golang.org/dl/gotip) or build from source. Note that the fix for #35111 made js.Value equality tests a compile time error

[go-nuts] Re: cgo, CString and C.free

2016-09-02 Thread Elias Naur
Hi, Test() never actually dereference the C string (now dangling) pointer after C.free. And even if it did, it is unlikely that the C.free() resulted in the memory page your string resided on was unmapped. Segfaults only happen if you access unmapped memory. - elias On Friday, September 2, 2

[go-nuts] Re: Request for advice: Developing for Android

2016-09-22 Thread Elias Naur
On Thursday, September 22, 2016 at 5:34:24 PM UTC+2, Peter Kleiweg wrote: > > I try the examples on https://github.com/golang/go/wiki/Mobile > > Native applications -> Building and deploying to Android works fine. > > On "SDK applications and generating bindings" I get into problems. > > It says

[go-nuts] Re: Request for advice: Developing for Android

2016-09-22 Thread Elias Naur
On Thursday, September 22, 2016 at 6:35:13 PM UTC+2, Peter Kleiweg wrote: > > > > Op donderdag 22 september 2016 18:28:43 UTC+2 schreef Peter Kleiweg: >> >> Op donderdag 22 september 2016 18:08:10 UTC+2 schreef Elias Naur: >>> >>> >>> >

Re: [go-nuts] Mobile + camera

2016-09-23 Thread Elias Naur
Hi Glen, The proposal for accessing Android APIs directly has landed: https://github.com/golang/go/issues/16876. In theory, that should be enough for accessing the camera from Go. In practice, the new features are very recent and you might encounter problems along the way. Feel free to report

Re: [go-nuts] Mobile + camera

2016-09-23 Thread Elias Naur
On Friday, September 23, 2016 at 11:51:31 AM UTC-4, Elias Naur wrote: >> >> Hi Glen, >> >> The proposal for accessing Android APIs directly has landed: >> https://github.com/golang/go/issues/16876. In theory, that should be >> enough for accessing the camera from Go. I

[go-nuts] Re: gomobile: target=ios, getting incompatible pointer types assigning to 'GoUniverseerror *' from 'goSeqErrorWrapper *' [-Wincompatible-pointer-types]

2016-09-28 Thread Elias Naur
Hi, Use the -work flag to gomobile to output working directory and to preserve the generated files. What revision are your gomobile tool compiled at? CL 29052 should have fixed that error. - elias On Wednesday, September 28, 2016 at 2:14:30 PM UTC+2, Joe Blue wrote: > > > Hey all, > > i am c

Re: [go-nuts] Re: gomobile: target=ios, getting incompatible pointer types assigning to 'GoUniverseerror *' from 'goSeqErrorWrapper *' [-Wincompatible-pointer-types]

2016-09-29 Thread Elias Naur
e/Library/Android/sdk/platforms/android-24 >> >> It fixed all the errors:) >> >> thankyou >> >> >> >> >> On Thu, Sep 29, 2016 at 9:13 AM Joe Blue > >> wrote: >> >>> thank Elias. Nice >>> >>> I am on

[go-nuts] Re: gomobile - error building android library on osx

2016-11-02 Thread Elias Naur
Hi, Please file a new issue with the reproduction steps and the source for a (minimal) Go package that demonstrates the problem. Feel free to CC me on the issue. - elias On Tuesday, November 1, 2016 at 1:33:07 PM UTC+1, Danilo Luiz Rheinheimer Danilo wrote: > > Hi, > > I have a gomobile li

[go-nuts] Re: latest gomobile arm64-only?

2016-12-05 Thread Elias Naur
On Monday, December 5, 2016 at 7:44:23 AM UTC+1, andrey mirtchovski wrote: > > I'm having issues with the latest gomobile + reverse java bindings. I > have a piece of code that linked with a C library via CGO. Previously > (around 6 months ago) everything appeared file: cross compile library >

[go-nuts] Re: gomobile: support/v7/app vs app

2016-12-19 Thread Elias Naur
Use a package rename for one of the imports: import sapp "android.support.v7.app.AppCompatActivity" And then use "sapp" for the support library app Java package. - Elias man. 19. dec. 2016 kl. 06.59 skrev andrey mirtchovski : > The main activity in the reverse example uses a > support/v7/app.Ap

[go-nuts] Gomobile: Getting errors when trying to build reverse example

2016-12-24 Thread Elias Naur
It seems your gobind command is out of date. Update it and gomobile with go install golang.org/x/mobile/cmd/... - elias -- 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

Re: [go-nuts] Re: Gomobile: Getting errors when trying to build reverse example

2016-12-25 Thread Elias Naur
Hi, Can I persuade you to send a complete example that demonstrates the package name clash problem and one that demonstrates the runtime JNI crash? Thanks. - elias On Saturday, December 24, 2016 at 11:27:56 PM UTC+1, andrey mirtchovski wrote: > > Apologies for the digression. > > >> This su

[go-nuts] Anyone with a spare mac machine to setup new iOS builders?

2016-12-27 Thread Elias Naur
Hi, The darwin/arm and darwin/arm64 (iOS) builders have been down most of the Go 1.8 development cycle, as discussed here: https://groups.google.com/forum/#!topic/golang-dev/s0zT1uANSv8 That thread resulted in Josh offering me an iPhone with a broken display as a new iOS builder. I hadn't seri

Re: [go-nuts] Re: Gomobile: Getting errors when trying to build reverse example

2017-01-01 Thread Elias Naur
That was more difficult than expected. The CL series ending with https://go-review.googlesource.com/c/34777/ should fix both problems. A backwards incompatible change had to be made to implicit "this" types. Instead of using a super class, you now use the wrapped type for the generated class. R

Re: [go-nuts] Re: Gomobile: Getting errors when trying to build reverse example

2017-01-12 Thread Elias Naur
Every required change should be in now. Please try again. On Friday, January 6, 2017 at 8:09:22 PM UTC+1, glenford williams wrote: > > thanks. any idea when this will merged? > > On Sunday, 1 January 2017 17:28:01 UTC-5, Elias Naur wrote: >> >> That was more difficult than

[go-nuts] Re: [gomobile] Is it possible to call my own ObjC code from Go using reverse binding?

2017-01-13 Thread Elias Naur
On Friday, January 13, 2017 at 2:26:11 PM UTC+1, nik.ku...@gmail.com wrote: > > Hello, everyone! As I know gomobile now supports reverse binding for ObjC > (thanks @elisnaur). I'd like to know - is it working only for system > modules or I can use it to call my own ObjC code from go as well? >

[go-nuts] Re: x/mobile: How to generate a builtin error type binding by gobind command?

2016-06-27 Thread Elias Naur
You can't, at least not yet. The use of the builtin error type is an implementation detail of CL 24100 which is about how errors and exceptions are represented in the generated bindings. The CL does make the path toward exposing error to the native languages easier in the future. - elias On M

[go-nuts] Re: can't install gomobile

2016-07-02 Thread Elias Naur
This is my fault, sorry. Please try https://go-review.googlesource.com/#/c/24720/ then reinstall the gomobile tool and see if that fixes the problem. - elias On Saturday, July 2, 2016 at 4:56:58 AM UTC+2, JM wrote: > > windows pro on 64x. Anyone know what's going on here? Im using the > foll

Re: [go-nuts] Re: can't install gomobile

2016-07-03 Thread Elias Naur
far: > > > C:\WINDOWS\system32>go get golang.org/x/mobile/cmd/gomobile > > C:\WINDOWS\system32>gomobile init > > > > > > On Saturday, July 2, 2016 at 6:11:13 AM UTC-6, Elias Naur wrote: >> >> This is my fault, sorry. Please try >> >>

[go-nuts] Re: java.lang.UnsatisfiedLinkError: Native method not found: go.Universe.init:()V

2016-07-07 Thread Elias Naur
Thanks for reporting this. It should be fixed with https://go-review.googlesource.com/#/c/24800/ - elias On Thursday, July 7, 2016 at 8:45:47 AM UTC+2, Lewis Deng wrote: > > bind/genjava.go > > if g.pkg == nil { > g.Printf("clazz = (*env)->FindClass(env, %q);\n", "go/Universe$"+ > s.obj.Name())

[go-nuts] Re: Go's Deprecation Policy + Android NDK

2017-03-30 Thread Elias Naur
Go has very few dependencies on its environment, so it should be able to run on quite old phones. I have a 4.1 device still running that I regularly test Go (with Go Mobile) on. I would recommend using the newest Go version for your projects. There are often important fixes in newer Go versions

Re: [go-nuts] Re: Go's Deprecation Policy + Android NDK

2017-03-30 Thread Elias Naur
minimum version of 4.1 or even 4.3 is not unreasonable, I think. In particular if you're just starting development now. - elias > > On Thursday, March 30, 2017 at 4:49:52 PM UTC+3, Elias Naur wrote: > > Go has very few dependencies on its environment, so it should be able

[go-nuts] Re: golang tour - floating point numbers

2017-04-14 Thread Elias Naur
Your expression is (effectively) ((z*z-x)/2)*z. Use parentheses to group the 2*z term: (z*z-x)/(2*z). - elias On Friday, April 14, 2017 at 2:30:33 PM UTC+2, ksam...@redhat.com wrote: > > Hello, > > Am a newbie to golang, and was trying myself with golang tour. > > > I was trying https://tour.

[go-nuts] Re: Go + Android NDK + Intel Processor

2017-05-01 Thread Elias Naur
I've updated the Wiki page. Go Mobile supports arm, arm64, 386 and amd64 devices and emulators today. - elias On Monday, May 1, 2017 at 6:10:30 PM UTC+2, Tomi Häsä wrote: > > Yet another newbie question, sorry. > > What does this part in the Gomobile wiki mean: > > "Note: Currently only ARM dev

Re: [go-nuts] Re: Go + Android NDK + Intel Processor

2017-05-01 Thread Elias Naur
On Mon, May 1, 2017 at 9:30 PM Tomi Häsä wrote: > The situation with MIPS seems intriguing. There were promises of Android > MIPS devices for last year: > > > http://www.pcworld.com/article/2601040/first-mobile-device-with-mips-64bit-processor-coming-in-2016.html > > State of MIPS regarding Andro

[go-nuts] Re: Attemping a native Go android app, running into gobind error

2017-06-26 Thread Elias Naur
Hi Dan, The gomobile reverse mode is very experimental, much more so than regular gomobile bindings. When in trouble, you'll probably have most luck going back to a working state and then add imports and usages of the reverse packages one at a time. Also, while the reverse bindings can be usef

[go-nuts] Re: x/mobile: using syscalls on iOS

2017-06-27 Thread Elias Naur
I believe this is https://github.com/golang/go/issues/17490 . I don't know if any apps have been rejected because of the use of raw syscalls. I know of several apps that were accepted. - elias On Tuesday, June 27, 2017 at 2:44:59 PM UTC+2, petra...@minus5.hr wrote: > > Hello, > > > While on WW

[go-nuts] Re: http.Server.Shutdown() crashing?

2017-07-09 Thread Elias Naur
Your main goroutine probably exits before the handler gets to write "after shutdown" to the console. Try adding a time.Sleep(1*time.Second) as the very last line in main(). - elias On Sunday, July 9, 2017 at 1:53:36 PM UTC+2, char...@gmail.com wrote: > > Hi, > > Go code after calling srv.Shutd

Re: [go-nuts] Shiny

2017-07-16 Thread Elias Naur
Hi, I had plans to work on a GUI library that follows many of the design choices from Flutter. In particular, I'd like to experiment with immediate mode drawing and a layout manager based on Cassowary. As backend I plan to avoid too much upfront work and bind to Skia. I'd be very interested in

[go-nuts] Re: [ANN] Renderview v0.1.0 with go mod, Gio, and Fyne support

2020-02-24 Thread Elias Naur
On Saturday, February 22, 2020 at 5:00:33 AM UTC+1, howar...@gmail.com wrote: > > > I have updated it to support go modules, and added support for the > recently appearing Gio and Fyne GUI toolkits. They are both operational, if > a bit oddly. I tested Gio on Windows yesterday when I had a cha

Re: [go-nuts] Re: [ANN] Renderview v0.1.0 with go mod, Gio, and Fyne support

2020-02-26 Thread Elias Naur
On Tue Feb 25, 2020 at 3:21 PM, wrote: > I worked it out, will update the programs later. It was not that the > events > were missing - once I enabled the good old Printf debugger, I saw that > the > events are flowing fine. The issue is that on Linux, every Move Mouse > event > reflected what but

Re: [go-nuts] Re: [ANN] Renderview v0.1.0 with go mod, Gio, and Fyne support

2020-02-27 Thread Elias Naur
On Mon, Feb 24, 2020 at 9:36 AM Elias Naur wrote: >> For example, with Gio, I had to download a set of .DLL files and extract >> them into the root folder of my Go build, as documented on the Gio website. > > > I happen to be working on a direct3d port of Gio which

Re: [go-nuts] Re: [ANN] Gio: portable immediate mode GUI programs in Go for iOS/tvOS, Android, macOS, Linux, Windows

2020-03-12 Thread Elias Naur
On Thu, Mar 12, 2020 at 6:03 PM husam alkdary wrote: > > where I can find a simple examples of GIO with golang so I can try it > There are 4 examples here: https://git.sr.ht/~eliasnaur/gio/tree/master/example You can run them from a Go module with `go run`. For example: $ go run gioui.

[go-nuts] [ANN] Unik, a Go unikernel capable of running Gio GUI programs

2020-04-13 Thread Elias Naur
Hi, I just completed the proof-of-concept for a Go unikernel, Unik, which allows Go programs to run without an operating system directly in virtual machines. Unlike similar projects Unik is written in Go (and assembler), and it is compiled into Go programs just like any other Go dependency. Uni

Re: [go-nuts] Re: [ANN] Unik, a Go unikernel capable of running Gio GUI programs

2020-04-14 Thread Elias Naur
On Mon Apr 13, 2020 at 4:15 PM, Michael Jones wrote: > IBM VM/370 and much that followed is exactly this “VM is a hardware > abstraction” line of reasoning. Logging into a user session was to > “IPL a > machine.” (Initial Program Load, imagine an IBM PC bios screen rushing > by) > Exactly. It was

Re: [go-nuts] Re: [ANN] Unik, a Go unikernel capable of running Gio GUI programs

2020-04-14 Thread Elias Naur
On Mon Apr 13, 2020 at 2:06 PM, Brian Candler wrote: > --=_Part_1452_1022817720.1586811991060 > Content-Type: text/plain; charset="UTF-8" > > On Monday, 13 April 2020 19:42:17 UTC+1, Elias Naur wrote: > > > > The project is an experiment in a larger explorat

Re: [go-nuts] Re: [ANN] Gio: portable immediate mode GUI programs in Go for iOS/tvOS, Android, macOS, Linux, Windows

2020-04-18 Thread Elias Naur
On Fri Apr 17, 2020 at 6:38 PM, wrote: > > Thank you for your Contribution to ease the gioui. > Following link you mentioned for installation in your read file > > https://man.sr.ht/~eliasnaur/gio/install.md > > does not working now. > > Please explain me how to install goui. > Thank you again. >

Re: [go-nuts] Re: [ANN] Gio: portable immediate mode GUI programs in Go for iOS/tvOS, Android, macOS, Linux, Windows

2020-04-28 Thread Elias Naur
On Tue, Apr 28, 2020 at 3:23 PM Fino wrote: > > hello Elias, > > as far as I understand, GIO is a 2D GUI lib, maybe similar with Flutter, > > is it possible to embed one/multi 3D widget inside a view/window? > > any architecture thinking on such requirement? > The other way around is possible: em

Re: [go-nuts] Re: Link Go againsta a static 32 bit 3rd party library

2021-02-21 Thread Elias Naur
On Sun, Feb 21, 2021, 22:03 Luis Furquim wrote: > Great! It works! > May I post your answer (also giving the credits) on stack overflow? > Sure. No credit necessary, you're doing the work of posting it :) Elias -- You received this message because you are subscribed to the Google Groups "go

Re: [go-nuts] insane idea to eliminate CGO latency

2021-03-14 Thread Elias Naur
On Sun Mar 14, 2021 at 12:30, Wojciech S. Czarnecki wrote: > On Sat, 13 Mar 2021 22:57:11 -0800 (PST) > "Jason E. Aten" wrote: > > > Iminimize the cost of crossing the CGO barrier from Go code into C code and > > back. > > I personally regard this cost as godsend ;) It incentivises us to rewrite

Re: [go-nuts] insane idea to eliminate CGO latency

2021-03-14 Thread Elias Naur
On Sun Mar 14, 2021 at 13:03, Jan Mercl wrote: > On Sun, Mar 14, 2021 at 12:57 PM Elias Naur wrote: > > > > Eg. if you really need to hook at battle-tested C code that needs no > > > further maintenance, you may try https://github.com/minio/c2goasm > > > It lets