Re: [go-nuts] Re: *-TeX (Star-TeX) v0.7.1 w/ pure-Go PDF generation

2025-04-15 Thread 'Sebastien Binet' via golang-nuts
Hallo Patrick, On Tue Apr 15, 2025 at 11:59 CET, Patrick wrote: > Hello Sebastien, [...] > I have given up on > it but at least tried to mimic the algorithmic behaviour > in https://github.com/boxesandglue/boxesandglue yes, I had stumbled upon your nice set of packages. they gave me some clues

[go-nuts] *-TeX (Star-TeX) v0.7.1 w/ pure-Go PDF generation

2025-04-12 Thread 'Sebastien Binet' via golang-nuts
hi there, Star-TeX v0.7.1 is out: - https://pkg.go.dev/star-tex.org/x/tex@v0.7.1 - https://git.sr.ht/~sbinet/star-tex After a (very) long hiatus, development of Star-TeX has resumed. Star-TeX is a pure-Go TeX engine, built upon/with modernc.org/knuth. v0.7.1 brings pure-Go TeX → PDF generation.

Re: [go-nuts] Is it necessary to change the behavior of maps.Keys and maps.Values?

2024-12-23 Thread 'Sebastien Binet' via golang-nuts
Hi, If you want a slice in lieu of an iterator, you can use the slices package and its Collect function : https://pkg.go.dev/slices#Collect hth, -a Dec 24, 2024 05:08:01 fliter : > > > Since the x/exp/maps era, I have used maps.Keys and maps.Values > ​​extensively. They are very useful and

[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] 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

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

[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