[go-nuts] Re: [DSP] butterworth 4th order High-pass filter requests

2022-12-07 Thread Brian Candler
http://www.catb.org/~esr/faqs/smart-questions.html#homework On Wednesday, 7 December 2022 at 18:09:31 UTC seokta...@gmail.com wrote: > Hi guys, > > I've been diving into GOLANG less than 1 month. > Now I am looking for the DSP filter for butterworth 4th order High-pass > filter for study. > > I

[go-nuts] Re: Hide Golang Code from Exported package

2022-12-07 Thread Marcello H
if you produce an executable, nobody sees the actual Go code. build it with: go build -ldflags "-s -w" or you could try to obfuscate it: https://github.com/burrowers/garble or you can make a self-extracting executable Op woensdag 7 december 2022 om 19:09:31 UTC+1 schreef nsing...@gmail.com: >

[go-nuts] Go 1.20 Release Candidate 1 is released

2022-12-07 Thread announce
Hello gophers, We have just released go1.20rc1, a release candidate version of Go 1.20. It is cut from release-branch.go1.20 at the revision tagged go1.20rc1. Please try your production load tests and unit tests with the new version. Your help testing these pre-release versions is invaluable. Re

Re: [go-nuts] Re: Interfaces for nested types with common structure

2022-12-07 Thread 'Daniel Lepage' via golang-nuts
On Wed, Dec 7, 2022 at 4:39 AM Brian Candler wrote: > On Tuesday, 6 December 2022 at 21:05:48 UTC dple...@google.com wrote: > >> I am trying to figure out if there's a good way to build a helper that >> can be used against different sets of nested types that have a common >> structure. >> >> So,

Re: [go-nuts] Re: Why not tuples?

2022-12-07 Thread 'Thomas Bushnell BSG' via golang-nuts
Use the json package to parse the incoming data. Transform it as you please. Use the json package to format the output. I'm not sure I see the problem. On Sat, Dec 3, 2022, 10:47 PM Diogo Baeder wrote: > Hi there, sorry for weighting in so late in the game, but I just started > again to learn G

[go-nuts] [DSP] butterworth 4th order High-pass filter requests

2022-12-07 Thread 이석태
Hi guys, I've been diving into GOLANG less than 1 month. Now I am looking for the DSP filter for butterworth 4th order High-pass filter for study. I just found github.com/jfcg/butter but 'butter' package has 1st order and 2nd order filter kernal. Is there any 4th order for butterworth high-pas

[go-nuts] Hide Golang Code from Exported package

2022-12-07 Thread neeraj singhi
Hi All, We are looking for a way to distribute a Golang Package. but We ant to hide the Code which we have written. We went Through Creating A DLL to distribute but it crashes at different point while running. As we have distribute to Both linux and windows . And i found that for linux we can u

Re: [go-nuts] Golang 1.19+ preemption model on a preemptive linux kernel?

2022-12-07 Thread 'drc...@google.com' via golang-nuts
>From the POV of not-runtime-code, preemption can happen anywhere. Certainly with GOMAXPROCS > 1, there is OS preemption, and Go's default goroutine preemption is now potentially preemptive in most parts of non-runtime functions. On Monday, December 5, 2022 at 7:12:54 PM UTC-5 ren...@ix.netcom.

Re: [go-nuts] Re: Why not tuples?

2022-12-07 Thread Diogo Baeder
Thanks Brian, that's actually similar to what I'm already doing. Cheers! On Wednesday, December 7, 2022 at 8:16:53 AM UTC-3 Brian Candler wrote: > On Tuesday, 6 December 2022 at 22:27:38 UTC dple...@google.com wrote: > >> It'd be great if, for example, you could tag an entire type like: >> >> ty

Re: [go-nuts] Re: Why not tuples?

2022-12-07 Thread Brian Candler
On Tuesday, 6 December 2022 at 22:27:38 UTC dple...@google.com wrote: > It'd be great if, for example, you could tag an entire type like: > > type Row struct { `json:tuple` > date int64 > score float64 > city string > } > > so that > > var v []Row > json.Unmarshal(data, &v) > > would automa

[go-nuts] Re: Interfaces for nested types with common structure

2022-12-07 Thread Brian Candler
On Tuesday, 6 December 2022 at 21:05:48 UTC dple...@google.com wrote: > I am trying to figure out if there's a good way to build a helper that can > be used against different sets of nested types that have a common structure. > > So, for example, say there are two libraries, `lib1` and `lib2` and