[go-nuts] [ANN] sako: a Wallabag-compatible read-it-later application

2024-07-31 Thread 'Sebastien Binet' via golang-nuts
hi there, I've just tagged v0.3.0 of sako[1], a Wallabag[2]-compatible read-it-later application. I was getting tired of using the shared Wallabag instance from one of the CHATONS[3], which was getting slow (especially on the weekends), and I didn't want to self-host a big PHP stack. So I've i

Re: [go-nuts] error : undefined: app.NewWindow

2024-04-22 Thread 'Sebastien Binet' via golang-nuts
The latest tagged version of Gio removed that function. Please have a look at the release notes: https://gioui.org/news/2024-04 Hth, -s Apr 22, 2024 19:56:34 Ian Lance Taylor : > On Mon, Apr 22, 2024 at 10:54 AM AndyPeng wrote: >> >> Imported the "gioui.org/app" package,but got an error whe

[go-nuts] [ANN] Go client for PeerTube

2024-04-05 Thread 'Sebastien Binet' via golang-nuts
hi there, just a quick email to announce my latest small pet project of the week : - https://sr.ht/~sbinet/peertube A simple (and incomplete) Go client for PeerTube[1] (an alternative to Big Tech's video platforms). Right now, the client can: - authenticate with a PeerTube server, - list acco

Re: [go-nuts] Can't figure out how to create an All() iter.Seq[T] method

2024-03-13 Thread Sebastien Binet
hi Mark, On Wed Mar 13, 2024 at 13:32 CET, 'Mark' via golang-nuts wrote: > I've been trying to learn how to create an `All() iter.Seq[T]` method > for a > simple set type (a map wrapper): > > playground > > It won't work in the playground of course, but

Re: [go-nuts] Go/Python interop

2023-11-23 Thread Sebastien Binet
e something along these lines with go-python/gopy (a set of tools to automatically expose a Go package as a CPython module), I speak from "some" experience) so, I'd tend to agree with your previous self :) what did change your mind ? -s > On Thursday, November 23, 2023 at 3:4

Re: [go-nuts] Go/Python interop

2023-11-23 Thread Sebastien Binet
On Thu Nov 23, 2023 at 01:24 CET, Eli Bendersky wrote: > On Wed, Nov 22, 2023 at 11:31 AM Sebastien Binet > > wrote: > > > Hi there, > > > > In this week "compiler minutes" [1], one can read: > > > > """ > > - Go on future

[go-nuts] Go/Python interop

2023-11-22 Thread Sebastien Binet
Hi there, In this week "compiler minutes" [1], one can read: """ - Go on future platforms (RAM efficiency. NUMA?) - (maybe) Go-Python interop for AI-powered applications - [David]: is it a good idea to use cgo for Go-Python interop? - [Michael]: no. better with pipe or RPC """ Would it be possib

[go-nuts] Re: [ANN] go-zeromq/zmq4: pure-Go implementation of ZeroMQ

2023-08-24 Thread Sebastien Binet
Hi there, (Apologies for the belated answer, I am on holidays with patchy network coverage) I had worked on this pure Go library to make the installation of Gophernotes (an IPython kernel for Go) easier (just go-get-able). It was also part of PoC for an IPC-based data acquisition system at CERN

Re: [go-nuts] Re: [ANN] go-zeromq/zmq4: pure-Go implementation of ZeroMQ

2023-08-23 Thread 'Sebastien Binet' via golang-nuts
Hi there, (Apologies if you get it twice, sent it from my CERN account) (Apologies for the belated answer, I am on holidays with patchy network coverage) I had worked on this pure Go library to make the installation of Gophernotes (an IPython kernel for Go) easier (just go-get-able). It was als

[go-nuts] Is there a good way to make binary files compiled on a high-version machine run on a low-version machine?

2023-08-11 Thread 'Sebastien Binet' via golang-nuts
Did you try: export CGO_ENABLED=0 go build ? -- 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. To view this discussion o

Re: [go-nuts] Please consider voting to reopen Golang subreddit

2023-06-27 Thread 'Sebastien Binet' via golang-nuts
On Tue Jun 27, 2023 at 16:54 CET, Christoph Berger wrote: > > Personally, I see this as an opportunity to switch to a more > > FOSS-friendly alternative: kbin, lemmy, you name it, as long as it > > rhymes with fediverse. > > There is forum.golangbridge.org and maybe more, but the problem is, how >

Re: [go-nuts] Please consider voting to reopen Golang subreddit

2023-06-27 Thread 'Sebastien Binet' via golang-nuts
On Tue Jun 27, 2023 at 00:09 CET, Eltjon Metko wrote: > > I find this a strange stance, given that most of the people actually > participating in the protest are unpaid volunteers. So I don't see how > that > can be considered a "commercial dispute", to be honest. > > The commercial dispute is bet

[go-nuts] odt: an OpenOffice/LibreOffice document parser

2023-06-22 Thread Sebastien Binet
hi there, I've just cut [`odt@v0.1.0`][1], an OpenOffice document parser, "automatically" generated from the RelaxNG specification document. `odt` also provides `odt2md`, a command that tries its best to convert an ODT file into a CommonMark one. ``` $> go install sbinet.org/x/odt/cmd/odt2md@l

Re: [go-nuts] Experience with building JS and Python bindings for a Go library

2023-05-22 Thread 'Sebastien Binet' via golang-nuts
For CPython, there's github.com/go-python/gopy that tries to automatically wrap a Go package into a CPython module. There's also go-python/gpython, a pure-Go Python3 interpreter (without all the batteries, though). For JS, I guess there's GopherJS. hth, -s May 23, 2023 02:35:15 Taco de Wolff

Re: [go-nuts] Re: https://go-talks.appspot.com still working?

2023-05-13 Thread 'Sebastien Binet' via golang-nuts
On Sat May 13, 2023 at 17:02 CET, Jens-Uwe Mager wrote: > Someone must have fixed something, as it was not working when I posted. I believe this is because api.github.com (what go-talks is using to retrieve the slides and serve them) is rate limited/throttled. I've migrated all my slides from t

Re: [go-nuts] no IPv6 for golang proxy ?

2023-02-19 Thread 'Sebastien Binet' via golang-nuts
Hi Björn, On Sun Feb 12, 2023 at 10:38 CET, Björn Graf wrote: > Hej, > > Seems to be fine here: > > $ host proxy.golang.org > proxy.golang.org has address 142.251.209.145 > proxy.golang.org has IPv6 address 2a00:1450:4005:802::2011 > > And that pretty much sums up all my knowledge of DNS :) it wa

[go-nuts] no IPv6 for golang proxy ?

2023-02-12 Thread 'Sebastien Binet' via golang-nuts
hi there, since a couple of weeks now, it seems I can't go-get update my dependencies through the $GOPROXY: $> go get -u -v go: gioui.org@v0.0.0-20230118222818-e0cf570339bd: Get "https://proxy.golang.org/gioui.org/@v/v0.0.0-20230118222818-e0cf570339bd.mod": dial tcp: lookup proxy.golang.org on

Re: [go-nuts] godoc and generic code

2022-11-03 Thread 'Sebastien Binet' via golang-nuts
On Thu Nov 3, 2022 at 14:02 CET, Jan Mercl wrote: > On Thu, Nov 3, 2022 at 12:49 PM Hotei wrote: > > > I added some generic code to a project and godoc doesn't seem to like that > > and stops working when it sees the generics. It's a 4 year old version of > > godoc so that's perhaps not a surpr

Re: [go-nuts] proposal: Qo

2022-10-19 Thread 'Sebastien Binet' via golang-nuts
On Wed Oct 19, 2022 at 19:13 CET, wrote: > > > With quantum computing coming out very shortly I am wondering when the > creators of Go will make Qo? > > _reposted from Github [1]_ you'd need to dive a bit more into the specifics for this proposal to take off: - would you envision a "simple" Go -

Re: [go-nuts] Re: private go documentation server similar to https://pkg.go.dev

2022-09-23 Thread 'Sebastien Binet' via golang-nuts
On Fri Sep 23, 2022 at 07:32 CET, brainman wrote: > Thank you Sebastian, > > That might actually work for me. I will play with it to see if it suits > us. > I still wish I can just use https://pkg.go.dev , but we cannot have > everything. > > I also want to thank you for writing http://github.com/g

Re: [go-nuts] Re: private go documentation server similar to https://pkg.go.dev

2022-09-12 Thread 'Sebastien Binet' via golang-nuts
On Mon Sep 12, 2022 at 11:04 CET, brainman wrote: > Thanks for the link. I briefly looked at that program, and I cannot even > figure it out how I can use it for my purpose - serve documentation for > about hundred of private github repos. I believe you can do this with this maintained fork of god

Re: [go-nuts] Generics

2022-05-27 Thread 'Sebastien Binet' via golang-nuts
what you may be looking at is (in the words of Rog Peppe) "structural type constraints": https://go.dev/play/p/HiFc9CUfI7P -s On Fri May 27, 2022 at 18:32 CET, Martin Schnabel wrote: > the reason your snippet does not work is that you pass in *payload as T > and the zero value of a pointer type

Re: [go-nuts] generics: parametric types unmarshaling

2022-04-15 Thread 'Sebastien Binet' via golang-nuts
On Fri Apr 15, 2022 at 10:52 CET, roger peppe wrote: > > what am I missing? > > how do I convey the constraint "unmarshaling usually imply passing a > > pointer to some value" ? > > > > This is a classic use case for structural type constraints: > https://go.dev/play/p/-stEjeeqQD0 thanks a lot! a

Re: [go-nuts] Re: generics: parametric types unmarshaling

2022-04-15 Thread 'Sebastien Binet' via golang-nuts
hi, On Fri Apr 15, 2022 at 08:00 CET, Zhaoxun Yan wrote: > Here is my note on json & struct, run it somewhere and it may give you a > hint. > > package main > > import "fmt" > import "encoding/json" > > type prices struct{ > Price float64 `json:"price"` > floor float64 > Ceiling float64 > settle f

[go-nuts] generics: parametric types unmarshaling

2022-04-14 Thread 'Sebastien Binet' via golang-nuts
hi there, I am playing a bit with generics. I am trying to implement a parametrized "Read" function that unmarshals bytes into some type value that implements an interface: type T1 struct { v string } func (t *T1) UnmarshalBinary(p []byte) error { t.v = string(p) return n

[go-nuts] heuristics for d/l and seeking into http-served files

2022-03-01 Thread 'Sebastien Binet' via golang-nuts
hi there, I am trying to give access to files over http(s), exposing the resource as an io.ReaderAt (via Accept-Ranges): - https://github.com/go-hep/hep/compare/main...sbinet-hep:groot-httpio-pread-cache?expand=1 despite my "best" attempts (implementing a parallel-reader-at, getting bytes-range

Re: [go-nuts] Is Go good choice for porting graph based app?

2022-02-04 Thread 'Sebastien Binet' via golang-nuts
On Fri Feb 4, 2022 at 12:35 CET, Kamil Ziemian wrote: > Are you code available somewhere on Internet? Looking at some graph > handling code in Go would be very helpful to me. it's over there: - https://pkg.go.dev/gonum.org/v1/gonum/graph - https://pkg.go.dev/gonum.org/v1/gonum/graph/... hth, -s

Re: [go-nuts] Writing SIMD ASM

2022-01-20 Thread 'Sebastien Binet' via golang-nuts
On Fri Jan 21, 2022 at 02:28 CET, Greg Lowe wrote: > Hi team, > > I'm a recent Gopher, and have had great success over the past year > developing an insurance modelling application. The tooling is great, > thanks > to the team for creating it. > > 1) SIMD Workflow > > I've got hot functions in my a

Re: [go-nuts] Re: Tutorial about WebRTC? (sharing screen + SFU)

2021-12-10 Thread 'Sebastien Binet' via golang-nuts
Jason, On Fri Dec 10, 2021 at 08:34 CET, Jason E. Aten wrote: > Hi Sebastien, > > Might be too old; but chrome has/had some interesting debugging tools: > > https://webrtchacks.com/hangout-analysis-philipp-hancke/ thanks for the pointer. a bit old, but educative still. > also, just in case it di

[go-nuts] Tutorial about WebRTC? (sharing screen + SFU)

2021-12-06 Thread 'Sebastien Binet' via golang-nuts
hi there, for $REASONS (more or less explained below), I am trying to create a little application that would: - serve an end-point where users could share their screen (browser tab, browser or whole screen) - serve another end-point where a dedicated RPi would navigate and display the shared

Re: [go-nuts] Limit the number of goroutine while using errgroup

2021-11-05 Thread 'Sebastien Binet' via golang-nuts
One can use errgroup.Group in conjunction with x/sync/semaphore. -s Nov 5, 2021 17:36:56 Reach John : > How to control the number of goroutines when using errgroup? Is there a best > practice? > -- > You received this message because you are subscribed to the Google Groups > "golang-nuts" gro

[go-nuts] no replace directive allowed for "go install" ?

2021-10-27 Thread 'Sebastien Binet' via golang-nuts
hi there, I was updating instructions to install binaries for a package of mine, with Go modules enabled. and I got: $> cd /tmp/dir $> go install -v go-hep.org/x/hep/cmd/root2yoda@latest go: downloading go-hep.org/x/hep v0.29.2 go: go-hep.org/x/hep/cmd/root2yoda@latest (in go-hep.org/x/hep@v0.29

Re: [go-nuts] go/types: differentiate b/w defined named types

2021-09-21 Thread 'Sebastien Binet' via golang-nuts
Axel, On Tue Sep 21, 2021 at 15:56 CET, Axel Wagner wrote: > The underlying type is defined recursively > : > > Each type T has an underlying type: If T is one of the predeclared > boolean, > > numeric, or string types, or a type literal, the corresponding underl

[go-nuts] go/types: differentiate b/w defined named types

2021-09-21 Thread 'Sebastien Binet' via golang-nuts
hi there, I am a bit confused by go/types and defined named types: https://play.golang.org/p/izESp473jOq the above link shows a program using the go/types package and shows how the four types T0, T1, T2 and T3: ``` package p type T0 struct { F int} type T1 struct { T0 } type T2 T1 type T3 T0 `

Re: [go-nuts] [ANN] Scriggo - Go template engine and embeddable interpreter

2021-09-16 Thread 'Sebastien Binet' via golang-nuts
On Wed Sep 15, 2021 at 15:15 CET, Marco Gazerro wrote: > Announcing Scriggo, an open source Golang template engine that uses Go > as > its scripting language. Scriggo also includes an embeddable interprter > for > the Go language. > > https://github.com/open2b/scriggo it's a rather interesting pro

Re: [go-nuts] fonts, bitmap and the (old TeX) PK file format

2021-09-14 Thread 'Sebastien Binet' via golang-nuts
On Fri Aug 27, 2021 at 15:28 CET, 'Sebastien Binet' via golang-nuts wrote: > hi there, > > I am working on providing a pure-Go TeX engine. > to achieve such a thing, I'd need to be able to decode and use the > so-called "PacKed font file" format (PK fonts)

Re: [go-nuts] Re: fonts, bitmap and the (old TeX) PK file format

2021-09-02 Thread 'Sebastien Binet' via golang-nuts
nks all for the input and pointers, -s > > Andy > > On 9/1/21 1:01 PM, 'Sebastien Binet' via golang-nuts wrote: > > Howard, > > > > On Wed Sep 1, 2021 at 18:11 CET, Howard C. Shaw III wrote: > >> You would implement the Face interface to have yo

Re: [go-nuts] Re: fonts, bitmap and the (old TeX) PK file format

2021-09-01 Thread 'Sebastien Binet' via golang-nuts
Howard, On Wed Sep 1, 2021 at 18:11 CET, Howard C. Shaw III wrote: > You would implement the Face interface to have your fonts available to > Go's > text drawing routines. You can try using basicfont directly, however it > is > fixedwidth only. But just implementing the interface does not seem tha

[go-nuts] fonts, bitmap and the (old TeX) PK file format

2021-08-27 Thread 'Sebastien Binet' via golang-nuts
hi there, I am working on providing a pure-Go TeX engine. to achieve such a thing, I'd need to be able to decode and use the so-called "PacKed font file" format (PK fonts). (I know it's a very old & deprecated file format, but I figured it would be easier on me to start "old tech" first) I think

Re: [go-nuts] Re: Email threading package?

2021-08-06 Thread 'Sebastien Binet' via golang-nuts
There's that: https://git.sr.ht/~emersion/go-emailthreads (Quickly scanning the sources, it seems it "just" performs a topological sort, though) hth, -s Aug 7, 2021 00:41:41 Tuhin Nair : > Hey, this is a long shot but any chance you found a Go implementation for the > JWZ algorithm? > > On

Re: [go-nuts] golang-announce rss feed

2021-07-29 Thread 'Sebastien Binet' via golang-nuts
Jul 28, 2021 18:02:06 Ferdy : > Up until this morning I had the golang-announce group as an RSS feed in my > teams channel, to keep us updated on new releases, using this url > https://groups.google.com/forum/feed/golang-announce/msgs/rss_v2_0.xml?num=5 > > But it seems this feature has just sto

Re: [go-nuts] Tools to extract packages?

2021-07-19 Thread 'Sebastien Binet' via golang-nuts
Hi, Jul 18, 2021 20:42:35 Andy Bursavich : > In the Kubernetes ecosystem, I frequently run into a problem where I want to > use some custom resource but its API package is in the same module as its > controller (and loads of other crap) that have a massive dependency chain > (often broken and

Re: [go-nuts] how to purge invalid tags from GOPROXY?

2021-07-01 Thread Sebastien Binet
On Thu Jul 1, 2021 at 17:47 CET, Jay Conrod wrote: > As Dan mentioned, the version containing the retractions must be the > highest version, so you'd need to tag v1.4.3 or higher. If that version > retracts itself, it won't appear in the version list either. right. indeed, after having tagged v1.

Re: [go-nuts] how to purge invalid tags from GOPROXY?

2021-07-01 Thread Sebastien Binet
Hi Jay, On Thu Jul 1, 2021 at 00:45 CET, Jay Conrod wrote: > Hi Sebastien, once a version is in proxy.golang.org, it usually can't be > removed. This is important to ensure that builds continue working when a > repository disappears upstream. > > You may want to publish a new version with a retrac

[go-nuts] how to purge invalid tags from GOPROXY?

2021-06-25 Thread Sebastien Binet
hi there, I've forked a fork of a Go package (github.com/jung-kurt/gofpdf). But as the modus operandi of such a thing is rather unwieldy in github (PRs would always be created by default against the original package instead of my fork), I've deleted the forked repo, created a new repo with the sam

[go-nuts] packages for a self-hosted http(s) (reverse?) multi-proxy

2021-06-06 Thread 'Sebastien Binet' via golang-nuts
hi, I am trying to setup a little self-hosted http(s) server at home. it should be able to serve the following: - https://example.com/x/pkg1 [a 'go-get'-able Go pkg] - https://example.com/x/pkg2 [ditto] - https://example.com/mumble [a mumble server for family and friends] - https://example.com/cl

Re: [go-nuts] gonum plot : font error

2021-05-17 Thread 'Sebastien Binet' via golang-nuts
Salut Fred, On Mon May 17, 2021 at 14:11 CET, Fred wrote: > Hi, > I have 2 computers with Linux Manjaro and go version 1.16.3. > The same scatter plot > works > on > one computer and produces on the other these already known errors

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

2021-03-14 Thread Sebastien Binet
There's something to be said to the notion of being able to better inter-op with C code bases, though. If we had a C compiler written in Go (like modernc.org/cc perhaps), integrated with the Go compiler (yes, that's an additional maintenance issue), that would spit off Go-compatible ASM, then we

Re: [go-nuts] Re: go get v git clone

2021-03-12 Thread Sebastien Binet
One has to admit this is a bit of an unfortunate regression in the 'go get' workflow. Especially for 'vanity import' packages. What's the repository holding the sources for e.g. 'golang.org/x/tools' or 'gioui.org' ? It used to be really simple to fetch any 'go get'-import-able project. Now, not

[go-nuts] io/fs: {mount,overlay}fs

2021-03-12 Thread Sebastien Binet
hi there, I am looking for an io/fs.FS-based package that can "mount" a provided io/fs.FS filesystem under some directory on some other io/fs.FS. ie: more or less the io/fs equivalent of: $> mount /dev/sd4 /mnt/sub/dir subtree := os.DirFS("/path/to/some/dir") _, _ = subtree.Open("file1.txt") //

Re: [go-nuts] Re: Differences between go1.16 and go1.15 ?

2021-02-22 Thread Sebastien Binet
also, if you find any odd behavior, or API issues, or possible improvements, etc... feel free to reach out on the gonum mailing list: - gonum-...@googlegroups.com (feel free to also reach out if Gonum did a good job at fulfilling your use case :P) -s ‐‐‐ Original Message ‐‐‐ On Saturda

Re: [go-nuts] [ANN] star-tex: a Go engine for TeX

2021-02-22 Thread Sebastien Binet
On Sun Feb 21, 2021 at 18:54 CET, Bakul Shah wrote: > On Feb 21, 2021, at 9:14 AM, Sebastien Binet wrote: > > > > On Sun Feb 21, 2021 at 17:46 CET, Patrick wrote: > >> Hi Sebastien, > >> > >> that was a manual translation of the web file. > >>

Re: [go-nuts] Re: [ANN] star-tex: a Go engine for TeX

2021-02-21 Thread Sebastien Binet
On Sun Feb 21, 2021 at 18:19 CET, Patrick wrote: > My problem with the TeX code base was that TeX is mainly spaghetti code > (once untangled) and has many places where one would rather use Go code > instead of the 'hacks' DEK has used to ensure compatibility (for example the > ASCII input/output).

Re: [go-nuts] Re: [ANN] star-tex: a Go engine for TeX

2021-02-21 Thread Sebastien Binet
On Sun Feb 21, 2021 at 17:46 CET, Patrick wrote: > Hi Sebastien, > > that was a manual translation of the web file. > My plan was to do more than that, ... TeX is such a beast. yeah... "how hard would it be to translate ~20k lines of C/C++ code (or 6k lines of obfuscated Pascal code) into a set of

Re: [go-nuts] Re: [ANN] star-tex: a Go engine for TeX

2021-02-21 Thread Sebastien Binet
Hi Patrick, Nice! Did you manually translated it or was it done with some tooling? -s Original Message On Feb 21, 2021, 07:43, Patrick < std...@gmail.com> wrote: Hi Sebastien, a few years ago I started with dvitype https://github.com/speedata/gotex Patrick Sebastien

[go-nuts] [ANN] star-tex: a Go engine for TeX

2021-02-16 Thread Sebastien Binet
hi there, I'd like to introduce star-tex[1], a (Work In Progress) TeX engine. it wraps the output of the official texlive tex.w WEB file (ie: C/C++ files) as a CGo package. the idea is to replace in an adiabatical fashion the C bits with their Go equivalent. there's already code that can correc

Re: [go-nuts] x/image/font: Font serialization

2021-02-08 Thread Sebastien Binet
‐‐‐ Original Message ‐‐‐ On Friday, February 5th, 2021 at 11:18 PM, Nigel Tao wrote: [...] > > > What's your proposed API? > > > > package sfnt > > > > // Marshal returns the OTF encoding of f. > > > > func Marshal(f Font) ([]byte, error) > > func MarshalWriter(w io.Writer, f Font) erro

Re: [go-nuts] x/image/font: Font serialization

2021-02-05 Thread Sebastien Binet
‐‐‐ Original Message ‐‐‐ On Friday, February 5th, 2021 at 2:10 AM, Nigel Tao wrote: > On Fri, Feb 5, 2021 at 7:00 AM Sebastien Binet wrote: > > > but as I wrote in the OP, it's not completely satisfying. > > one needs to keep track of the association font.Fac

Re: [go-nuts] x/image/font: Font serialization

2021-02-04 Thread Sebastien Binet
2021 at 8:28 PM, Robert Engels wrote: > If you have the data to pass to Parse then you have the data to embed the > font in the pdf. > > > On Feb 4, 2021, at 12:02 PM, Sebastien Binet s...@sbinet.org wrote: > > > > hi there, > > > > Right now, I am pretty

[go-nuts] x/image/font: Font serialization

2021-02-04 Thread Sebastien Binet
hi there, Right now, I am pretty happy with the state of the x/image/font{,/sfnt,/opentype}} packages. I can load TTF/OTF files, draw some glyphs in a way that (almost) resembles LaTeX[1]. Great. (and many thanks, by the way.) We migrated gonum/plot[2] from freetype to x/image/font recently and

Re: [go-nuts] Announcing godocs.io, a maintained fork of godoc.org

2021-01-22 Thread Sebastien Binet
hi, On Wed Jan 20, 2021 at 23:44 CET, Drew DeVault wrote: > Greetings. For those who do not wish to follow Golang to pkg.go.dev, and > prefer the authentic godoc.org experience, I have forked the gddo > codebase and set up an instance which will be maintained indefinitely: > > https://godocs.io >

Re: [go-nuts] Creating a serde-like framework for Go using generics?

2021-01-12 Thread Sebastien Binet
With 'go/types' and the like, one can relatively easily automatically generate the (de)serialization code. See: - go-hep.org/x/hep/brio IIRC, specialization is off the table at the moment. -s Original Message On Jan 12, 2021, 21:14, Keith Wipf < keithwi...@gmail.com> wrote:

Re: [go-nuts] Linux distro..based only on GO

2020-12-31 Thread Sebastien Binet
I believe that's what u-root is: - https://github.com/u-root/u-root there are probably others. ‐‐‐ Original Message ‐‐‐ On Thursday, December 31st, 2020 at 4:40 PM, Kevin Chadwick wrote: > On 12/31/20 3:26 PM, L Godioleskky wrote: > > > It seems to me a Linux distro based entirely o

Re: [go-nuts] Runtime cost of type assertions

2020-12-30 Thread Sebastien Binet
it's because (well, one of the reasons, rather) we didn't find a great API to create a new type and add methods to it: - one needs a new typename - one needs a set of methods that have the receiver type as first argument. you're a bit in a chicken-and-egg situation because it would be great to b

Re: [go-nuts] Re: Generics - please provide real life problems

2020-12-24 Thread Sebastien Binet
Like every other feature from Go. Think channels and goroutines. Or the reflect package. Or the unsafe one. Or big large fat interfaces. Or the empty interface. Original Message On Dec 24, 2020, 11:42, wilk wrote: > On 24-12-2020, Marcin Romaszewicz wrote: > >> Generics would al

Re: [go-nuts] Generics - please provide real life problems

2020-12-23 Thread Sebastien Binet
Hi, I apologize but I must disagree. Those *are* real life examples. At least they're extracted from these. Especially the 'chans' package (the set of generic functions that apply to any 'chan T') or the 'mapreduce' one. You can't discard those away from the back of your hand. -s Sent from Pr

Re: [go-nuts] [generics] Print[T Stringer](s []T) vs Print(s []Stringer)

2020-12-23 Thread Sebastien Binet
to illustrate what Ian wrote, with your example: https://go2goplay.golang.org/p/YTqF-WS0m6O func main() { var ps = []*Person{ &Person{"Arthur Dent", 42}, &Person{"Zaphod Beeblebrox", 9001}, } Print(ps) // ok. Printi(ps) // compilati

Re: [go-nuts] Re: Dynamic include path in cgo?

2020-08-09 Thread Sebastien Binet
Another possible course of action is to have all the logic of generating these lines embedded inside a 'go generate' program. That's what has been done in go-python/gopy for example. -s Original Message On Aug 10, 2020, 06:18, wrote: > On Sunday, August 9, 2020 at 9:56:43 AM

Re: [go-nuts] gophers analysing genomes

2020-08-06 Thread Sebastien Binet
‐‐‐ Original Message ‐‐‐ On Thursday, August 6, 2020 9:16 AM, 'Dan Kortschak' via golang-nuts wrote: > The genome of the New Zealand 'lizard', the tuatara[1], has just been > sequenced and published in Nature[2,3]. > > The analysis of the genome included an examination of the repetitive

Re: [go-nuts] Go Present slide syntax supported by talks.godoc.org

2020-07-23 Thread Sebastien Binet
hi, I don't know what are the plans for this feature, but here is an issue that tracks its status: https://github.com/golang/gddo/issues/680 hth, -s ‐‐‐ Original Message ‐‐‐ On Thursday, July 23, 2020 12:34 AM, Tong Sun wrote: > Hi, > > I want to use the new Markdown Syntax instead of

Re: [go-nuts] golang in industrial projects

2020-07-07 Thread Sebastien Binet
hi, wrt Modbus, I have been using that library for the slow control of the LSST telescope testbench[1]: - github.com/goburrow/modbus pretty robust. [1]: https://github.com/go-lsst/fcs-lpc-motor-ctl ‐‐‐ Original Message ‐‐‐ On Tuesday, July 7, 2020 10:35 AM, Erman Imer wrote: > Hello,

Re: [go-nuts] [generics] slightly surprising syntax for *T methods

2020-06-20 Thread Sebastien Binet
02:12, Ian Lance Taylor wrote: > On Wed, Jun 17, 2020 at 12:09 AM Sebastien Binet wrote: >> >> I was playing a bit w/ pointer methods[1] to see how this could be applied >> to a pet peeve of mine: ensuring at compile-time that, e.g., >> json.Decoder.Decode ta

[go-nuts] Re: [generics] slightly surprising syntax for *T methods

2020-06-17 Thread Sebastien Binet
for completeness' sake, there is indeed no need for pointer methods: https://go2goplay.golang.org/p/1WD7WRAmNim (my main point was the gotcha w/ 'func (dec *Decoder(*T)) F()') ‐‐‐ Original Message ‐‐‐ On Wednesday, June 17, 2020 9:08 AM, Sebastien Binet wrote: > h

[go-nuts] [generics] slightly surprising syntax for *T methods

2020-06-17 Thread Sebastien Binet
hi there, I was playing a bit w/ pointer methods[1] to see how this could be applied to a pet peeve of mine: ensuring at compile-time that, e.g., json.Decoder.Decode takes a pointer to a value: https://go2goplay.golang.org/p/J2Lr5QrkKTj this works: func Decode(type *T)(ptr *T) error {

Re: [go-nuts] Re: go2go (generics) and function binding

2020-06-03 Thread Sebastien Binet
Ian, ‐‐‐ Original Message ‐‐‐ On Monday, June 1, 2020 5:54 AM, Ian Lance Taylor wrote: > On Sat, May 30, 2020 at 2:32 AM Sebastien Binet d...@sbinet.org wrote: > > > the thing I am trying to solve is, basically, a generic way to: > > > > - pass a fun

Re: [go-nuts] Re: go2go (generics) and function binding

2020-06-02 Thread Sebastien Binet
ught it is not worth creating a new topic > just for this lilttle question. > > Thank you. > > Am Samstag, 30. Mai 2020 11:33:37 UTC+2 schrieb Sebastien Binet: > >> hi there, >> >> I was trying out the generics proposal >> https://github.com/golang/go

[go-nuts] go2go (generics) and function binding

2020-05-30 Thread Sebastien Binet
hi there, I was trying out the generics proposal https://github.com/golang/go/issues/15292, via the "Go2 playground": https://ccbrown.github.io/wasm-go-playground/experimental/generics the thing I am trying to solve is, basically, a generic way to: - pass a function with any number of parameters

Re: [go-nuts] [HELP] Install golang.org/x/tools/present successful but cannot find the binary

2020-05-27 Thread Sebastien Binet
hi, golang.org/x/tools/present is the package. golang.org/x/tools/cmd/present is the command. you should install the command :) (which will in turn compile and install the package under the cover). hth, -s ‐‐‐ Original Message ‐‐‐ On Wednesday, May 27, 2020 7:05 AM, Gede Pentium wrot

Re: [go-nuts] Request to update https://github.com/gonuts/go-shellquote

2020-05-11 Thread Sebastien Binet
On Sun, May 10, 2020 at 12:27 AM wrote: > https://github.com/gonuts/go-shellquote is 9 commits behind > https://github.com/kballard/go-shellquote. > > Could someone push the latest commits to the gonuts branch? > done. -s -- You received this message because you are subscribed to the Google G

Re: [go-nuts] Packages "Not found" at godoc.org

2020-05-10 Thread Sebastien Binet
It seems like gitlab is going through some maintenance work (I get a 503 when trying to reach the files of the packages you labeled as working). Perhaps it's just that (and some caching effect)? sent from my droid On Sun, May 10, 2020, 11:11 Jan Mercl <0xj...@gmail.com> wrote: > It came to my at

Re: [go-nuts] Go course

2020-03-26 Thread Sebastien Binet
On Thu, Mar 26, 2020 at 3:29 PM David Riley wrote: [...] > But: > > - You still need to import something just to print a line, and it is > confusingly (to the novice) named "fmt" > - You still need to declare a function called main(), and most brand-new > programmers don't understand functions ye

Re: [go-nuts] Cross compiling with CGO without having a C compiler for each target platform

2020-02-26 Thread Sebastien Binet
On Wed, Feb 26, 2020 at 6:34 PM Robert Engels wrote: > Depending on your use of SQLite there are a few pure Go libraries that > might simplify things. > such as: - https://github.com/go-sqlite/sqlite3 (incomplete) - https://github.com/alicebob/sqlittle (much more complete) (I am the original au

Re: [go-nuts] Bound checks elimination hint.

2020-02-21 Thread Sebastien Binet
On Fri, Feb 21, 2020 at 5:36 PM Bruno Albuquerque wrote: > I wrote some simple code to convert a RGB24 image represented as a []byte > to a NRGBA image (also as a []byte), like so: > > https://play.golang.org/p/Y7ICg7t4_nd > > Unfortunately, the performance is lacking here and I am trying to impr

Re: [go-nuts] Future of Error Formatting in the Standard Library

2020-01-16 Thread Sebastien Binet
On Sun, Jan 5, 2020 at 2:34 PM Joseph Lorenzini wrote: > > Hi all, > > > In the Go 2: Errors Proposal (issue 29934), a decision was made to defer > error formatting changes and come up with a revised proposal for 1.14. I > believe 1.14 is close to being release but I have not seen a proposal. I >

Re: [go-nuts] Plot Go's benchmark result

2019-12-06 Thread Sebastien Binet
there's this from Austin Clements: https://godoc.org/github.com/aclements/go-misc/benchplot On Fri, Dec 6, 2019 at 2:22 AM Tong Sun wrote: > Hi, > > Any existing tools out there that can turn Go's benchmark result from text > into chart? > > I'm looking for a simple/light-weighted solution, lik

[go-nuts] Re: eg-based pkg/errors to x/xerrors migration tool?

2019-11-28 Thread Sebastien Binet
On Tue, Nov 19, 2019 at 9:34 AM Sebastien Binet wrote: > hi there, > > before I try my hand to this, has anyone already written an eg-based tool > to (almost?) entirely automatically migrate a package from pkg/errors to > x/xerrors? > > non eg-based tools also accepted

[go-nuts] eg-based pkg/errors to x/xerrors migration tool?

2019-11-19 Thread Sebastien Binet
hi there, before I try my hand to this, has anyone already written an eg-based tool to (almost?) entirely automatically migrate a package from pkg/errors to x/xerrors? non eg-based tools also accepted :) cheers, -s -- You received this message because you are subscribed to the Google Groups "

Re: [go-nuts] Unit testing AMQP/build flags for tests

2019-11-19 Thread Sebastien Binet
On Tue, Nov 19, 2019 at 6:37 AM burak serdar wrote: > On Mon, Nov 18, 2019 at 10:24 PM Shane H wrote: > > > > > > > > On Tuesday, November 19, 2019 at 4:11:52 PM UTC+11, burak serdar wrote: > >> > >> > >> > >> This is what I usually do in these situations: > >> > >> var amqpDial=amqp.Dial > >>

Re: [go-nuts] Re: Any support for proxy certificates (RFC3820) ?

2019-09-24 Thread Sebastien Binet
On Tue, Sep 24, 2019 at 10:40 AM Christophe Meessen < christophe.mees...@gmail.com> wrote: > Answering to my self. > > In case someone else is sharing the need, I found this Go package that > provides support for x509 proxy certificates. > https://gitlab.cern.ch/flutter/go-proxy > nice! -s --

Re: [go-nuts] pushing too far reflect usage ? another attempts to pipline based processing

2019-08-05 Thread Sebastien Binet
Hi Clement, it's a nice investigation of the benefits and limits of using reflect. I guess it would also be as interesting to investigate what this library would look like if the current draft for generics were to be accepted :) -s On Sun, Aug 4, 2019 at 4:13 PM clement auger wrote: > You te

Re: [go-nuts] uncompress a .zz file in Go

2019-05-21 Thread Sebastien Binet
On Tue, May 21, 2019 at 5:08 PM Nitish Saboo wrote: > Hi, > > How to uncompress .zz file in Go? > use top? (sorry.) I don't know of any Go package that handle directly Zzip archives. but it seems ZZip archives somehow use LZMA2 compression. and there's (at least) a package to do that: - https:/

Re: [go-nuts] the Dominance of English in Programming Languages

2019-04-29 Thread Sebastien Binet
On Mon, Apr 29, 2019 at 8:08 AM Reto wrote: > In my view you don't necessarily need to speak English, although it helps > a lot. > Go uses utf-8 for all identifiers, so assuming you treat the keywords as > blobs and just remember when to use which you should be fine. > > The issue being more that

Re: [go-nuts] How many Go compilers are out there?

2019-04-25 Thread Sebastien Binet
On Thu, Apr 25, 2019 at 5:55 PM Ian Lance Taylor wrote: > On Thu, Apr 25, 2019 at 8:29 AM JuciÊ Andrade wrote: > > > > These are the ones I am aware of: > > > > . GC toolchain > > . GCC > > . gopherjs > > > > By Go compiler I mean any tool that understands Go source files and > generates executa

Re: [go-nuts] Compile C++ with cgo

2019-04-15 Thread Sebastien Binet
On Thu, Apr 11, 2019 at 5:54 PM av wrote: > Hi *, > > I want to compile C++ code, because the library I need is C++ only. > > Here is my wrapper.hpp: > #include > > void print() { > std::cout << "Xx"; > } > > And here is my main.go: > package main > > // #cgo CXXFLAGS: -I. > // #cgo CFLAGS: -I

Re: [go-nuts] trouble passing an argument to a script

2019-02-26 Thread Sebastien Binet
On Tue, Feb 26, 2019 at 2:09 PM Natxo Asenjo wrote: > > > On Tue, Feb 26, 2019 at 10:58 AM Natxo Asenjo > wrote: > >> >> hi, >> >> On Tuesday, February 26, 2019 at 10:51:28 AM UTC+1, Sebastien Binet wrote: >>> >>> from the com

Re: [go-nuts] trouble passing an argument to a script

2019-02-26 Thread Sebastien Binet
from the compilation error, it would seem kingpin.Flag...ExistingFile() returns a *string, not a string. so these lines: fmt.Printf("%v, %s, %T\n", config, config, config) cfg, err := ini.Load(config) should be replaced with: fmt.Printf("%v, %s, %T\n", *config, *config, *config) cfg, err := ini

[go-nuts] drop-in replacement of net with default netgo build tag ?

2019-02-21 Thread Sebastien Binet
hi there, I am building a couple of packages that somehow need to import "net" and "net/http". I'd like for the users of my packages to get, by default, a statically linked binary. I know about the "go build -tags netgo" technique but I'd prefer if one didn't have to fiddle with those. so... is t

Re: [go-nuts] tool to automatically refresh godoc ?

2019-02-13 Thread Sebastien Binet
On Sat, Dec 22, 2018 at 2:15 AM Dan Kortschak wrote: > And yes. The curl option is -d, not -F, so > > curl -X POST -d "path=${IMPORTPATH}" https://godoc.org/-/refresh > > works and could easily be made into a post-push hook to be run in the > root of the package like so: > > for pkg in $(go list

Re: [go-nuts] The performance comparation of Golang and Java

2019-01-24 Thread Sebastien Binet
Also-rans: the global math/rand functions are thread safe (drawing a random number is protected by a mutex.) If the Java one isn't thread safe, you are comparing apples with oranges. Try creating a local rand.Rand and see what gives. HTH, -s sent from my droid On Fri, Jan 25, 2019, 07:45 Micha

[go-nuts] Gonum user survey

2019-01-20 Thread Sebastien Binet
The Gonum project would like to hear what you think to help us improve the project. We are conducting a user survey to understand user preferences and to guide the future of the project. Please help us understand how to develop the code and the community by participating in the survey by 28 Februa

  1   2   >