Re: [go-nuts] What are the reasonable reasons to use pointers?

2019-01-01 Thread Ian Lance Taylor
On Tue, Jan 1, 2019 at 6:42 PM Bakul Shah wrote: > > On Tue, 01 Jan 2019 03:34:34 -0800 =?UTF-8?B?5LyK6Jek5ZKM5Lmf?= > wrote: > > > > What are the reasonable reasons to use pointers? Are pointers neseccary? > > Pointers are not necessary as a programming language feature > but are necessary in

Re: [go-nuts] Re: Announcing a Fyne GUI toolkit

2019-01-01 Thread Chris FractalBach
I've been experimenting with writing games in Go ever since webAssembly came out. Are games a possible use case for the GUI? I saw u mention you were working on... "basically a canvas that can draw line/rect/text/images(including svg) and some basic window handling." Which sounds like all

[go-nuts] Re: How to inplement C# DESCryptoServiceProvider in Go Lang?

2019-01-01 Thread Pat Farrell
On Saturday, October 3, 2015 at 1:38:18 PM UTC-4, Tuan Hoang Anh wrote: > > Hello. How to inplement C# DESCryptoServiceProvider in Go Lang? I have > Decrypt in C# and want Encrypt in go lang. > Can I ask a fundamental question: Why is anyone in 2019 trying to implement DES? While it was made a

Re: [go-nuts] Re: go for robotic control, walking balance, quad flight control

2019-01-01 Thread Bakul Shah
On Tue, 01 Jan 2019 15:40:41 -0800 Pat Farrell wrote: > > On Monday, December 31, 2018 at 4:19:50 PM UTC-5, minf...@arcor.de wrote: > > > > So perhaps you should saddle your horse backwards, and then decide if > > Golang as front-end development language > > is really the right choice for you.

Re: [go-nuts] What are the reasonable reasons to use pointers?

2019-01-01 Thread Bakul Shah
On Tue, 01 Jan 2019 03:34:34 -0800 =?UTF-8?B?5LyK6Jek5ZKM5Lmf?= wrote: > > What are the reasonable reasons to use pointers? Are pointers neseccary? Pointers are not necessary as a programming language feature but are necessary in implementing a programming language. As an example, Scheme

Re: [go-nuts] What are the reasonable reasons to use pointers?

2019-01-01 Thread Michael Jones
in fact... array indices and fortran's call by address rules make it a pointer language in the sense you mean. when i was a mere boy i had to decode brian kernighan's magical packing of triangular arrays using such a scheme. ;-) On Tue, Jan 1, 2019 at 5:23 PM Drew Derbyshire wrote: > > > On

Re: [go-nuts] What are the reasonable reasons to use pointers?

2019-01-01 Thread Drew Derbyshire
On Tuesday, January 1, 2019 at 9:13:44 AM UTC-8, Jan Mercl wrote: > > > On Tue, Jan 1, 2019 at 12:34 PM 伊藤和也 > > wrote: > > > What are the reasonable reasons to use pointers? Are pointers necessary? > > Yes, they're necessary in non-trivial programs. Without pointers any > program can use only

Re: [go-nuts] What are the reasonable reasons to use pointers?

2019-01-01 Thread Michael Jones
Most of the answers have been shared already. I'll add only the meaning: Basic variables associate names with the value of data, but pointer variables associate names with the location of data. In an array or slice the name and index serve similar purposes, where the 5 in m[5] is a kind of

Re: [go-nuts] Re: go for robotic control, walking balance, quad flight control

2019-01-01 Thread Dan Kortschak
And we have these. On Tue, 2019-01-01 at 15:43 -0800, Pat Farrell wrote: > > On Tuesday, January 1, 2019 at 6:07:03 PM UTC-5, robert engels wrote: > > > > > > Wouldn’t you wrap the slices custom structs with a domain specific  > > interface? You can create whatever notation is needed... > > >

Re: [go-nuts] Re: go for robotic control, walking balance, quad flight control

2019-01-01 Thread Dan Kortschak
Who uses [][]T for this? Gonum has implementations for many of the things that you would need here and other projects provide other aspects. On Tue, 2019-01-01 at 14:52 -0800, minfo...@arcor.de wrote: > > Am Montag, 31. Dezember 2018 23:06:23 UTC+1 schrieb kortschak: > > > > > > Where do we

Re: [go-nuts] Re: go for robotic control, walking balance, quad flight control

2019-01-01 Thread Pat Farrell
On Tuesday, January 1, 2019 at 6:07:03 PM UTC-5, robert engels wrote: > > Wouldn’t you wrap the slices custom structs with a domain specific > interface? You can create whatever notation is needed... > Perhaps I'm naive but I was expecting that a two dimensional metric of quaternions would be

[go-nuts] Re: go for robotic control, walking balance, quad flight control

2019-01-01 Thread Pat Farrell
On Monday, December 31, 2018 at 4:19:50 PM UTC-5, minf...@arcor.de wrote: > > So perhaps you should saddle your horse backwards, and then decide if > Golang as front-end development language > is really the right choice for you. And then Golang doesn't treat complex > matrix algebra well... > >

Re: [go-nuts] Re: Announcing a Fyne GUI toolkit

2019-01-01 Thread Andrew Williams
Hi, Vulcan looks like an interesting project and could provide an event higher performance rendering for a Fyne driver. Unfortunately support does not seem to be as widespread as OpenGL (and there seem to be some fun driver issues) so my knowledge is currently theoretical. Thanks, Andrew —

Re: [go-nuts] Re: go for robotic control, walking balance, quad flight control

2019-01-01 Thread robert engels
Wouldn’t you wrap the slices custom structs with a domain specific interface? You can create whatever notation is needed... > On Jan 1, 2019, at 4:52 PM, minfo...@arcor.de wrote: > > > > Am Montag, 31. Dezember 2018 23:06:23 UTC+1 schrieb kortschak: > Where do we fall down? > > On Mon,

Re: [go-nuts] Re: go for robotic control, walking balance, quad flight control

2019-01-01 Thread minforth
Am Montag, 31. Dezember 2018 23:06:23 UTC+1 schrieb kortschak: > > Where do we fall down? > > On Mon, 2018-12-31 at 01:38 -0800, minf...@arcor.de wrote: > > And then Golang doesn't treat complex > > matrix algebra well... > You really want to do controller design with go's 2-dimensional

[go-nuts] Re: WebAssembly: Auto-generating Go bindings for javascript/DOM from the Web Standards.

2019-01-01 Thread Chris FractalBach
Are the # channels on slack? -- 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

Re: [go-nuts] What are the reasonable reasons to use pointers?

2019-01-01 Thread Andy Balholm
Some languages, like Java, don’t have explicit pointer types. But they do it by making almost everything an implicit pointer. Andy > On Jan 1, 2019, at 9:13 AM, Jan Mercl <0xj...@gmail.com> wrote: > > > On Tue, Jan 1, 2019 at 12:34 PM 伊藤和也 > wrote: > > >

Re: [go-nuts] Re: A single type to wrap text/template.Template and html/template.Template

2019-01-01 Thread Renee Jylkka
Hi K, Thanks for your response.  It looks to me like this would give me both an HTML template and a text template.  In my case, it's an either-or thing, which is what is so frustrating.  If the page is an html page, it stores an html/template in the map.  If it's a csv page, it stores a

Re: [go-nuts] What are the reasonable reasons to use pointers?

2019-01-01 Thread Jan Mercl
On Tue, Jan 1, 2019 at 12:34 PM 伊藤和也 wrote: > What are the reasonable reasons to use pointers? Are pointers neseccary? Yes, they're necessary in non-trivial programs. Without pointers any program can use only (named) variables declared in the program. Pointers allow creating (anonymous)

[go-nuts] Re: What are the reasonable reasons to use pointers?

2019-01-01 Thread jake6502
What Cris said is one reason. That is, if you need the function being called to be able to change the value, then use a pointer. If you pass a value instead of a pointer, then changes made by the function being called are not visible to the caller. (The situation is more complicated, but that

Re: [go-nuts] In go, are there any naming conventions?

2019-01-01 Thread Ian Denhardt
>For example, for packages, variables, constants, functions, struct, >project names, labels, methods and interfaces. https://golang.org/doc/effective_go.html#names That whole document is also worth a read. -Ian -- You received this message because you are subscribed to the Google

[go-nuts] In go, are there any naming conventions?

2019-01-01 Thread 伊藤和也
For example, for packages, variables, constants, functions, struct, project names, labels, methods and interfaces. -- 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

[go-nuts] Re: WebP encoder

2019-01-01 Thread Mandolyte
You might consider one of the projects that "transpile" C to Go. Might give you a jump start. For reference, here are two of them: https://godoc.org/modernc.org/ccgo/v2 https://godoc.org/github.com/elliotchance/c2go/transpiler On Sunday, December 30, 2018 at 12:08:21 AM UTC-5, Jeffrey wrote: > >

Re: [go-nuts] Re: Announcing a Fyne GUI toolkit

2019-01-01 Thread Mandolyte
Hey, the thread isn't that old... but have a question since you are in the thick of GUI things: what do you think of Vulkan? On Sunday, December 30, 2018 at 5:19:26 PM UTC-5, Andrew Williams wrote: > > Hi, > > For anyone still interested in this project but held back by the EFL build > or

Re: [go-nuts] What are the reasonable reasons to use pointers?

2019-01-01 Thread Chris Burkert
Pointers are useful to pass around shared state. Values are usually copied so changes on one copy are not visible on the other. Pointers on the other hand are an address to some value (and the address is also copied by passing it around) but the value these addresses point to is exactly one same

Re: [go-nuts] What are the reasonable reasons to use pointers?

2019-01-01 Thread Peter Mogensen
On 1/1/19 12:34 PM, 伊藤和也 wrote: > What are the reasonable reasons to use pointers? Are pointers neseccary? "All problems in computer science can be solved by another level of indirection" -- David Wheeler Happy New Year ;-) -- You received this message because you are subscribed to the

[go-nuts] What are the reasonable reasons to use pointers?

2019-01-01 Thread 伊藤和也
What are the reasonable reasons to use pointers? Are pointers neseccary? -- 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