[go-nuts] Export fs.FS as FUSE fs

2023-06-22 Thread Tamás Gulácsi
Hi, Does anyone know an existing solution for exporting an fs.FS as a FUSE filesystem? As fs.FS is standard now, this would open several new possibilities, as a lot of interesting fs.FS implementations exist (zip, tar, DB, embedded, union ), and this one little glue code could export them a

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

2023-06-22 Thread 'Axel Wagner' via golang-nuts
On Thu, Jun 22, 2023 at 11:04 PM cpa...@gmail.com wrote: > Anyone can choose to stop reading it or posting to it. Opening it will not > stop individuals from protesting. > I'm going to state the obvious: Given that closing it was an act of protest, opening it will certainly stop *some* individua

Re: [go-nuts] Re: 'go run hello.go' taking ~30 seconds on windows

2023-06-22 Thread Henry
I am running Windows 11 with Kaspersky. I don't have such problems. When it comes to Windows, it isn't as simple as blaming your AV. Windows is a complex OS and it is doing many different things in the background (e.g. doing maintenance, installing updates, etc.). You should open your Task Man

Re: [go-nuts] Re: 'go run hello.go' taking ~30 seconds on windows

2023-06-22 Thread Amnon
Someone should publish a benchmark of compiling Go code on Windows, Linux, osX. People can take this into account when selecting their development platform. And if enough people complain about Windows machines being several orders of magnitude slower than similar priced competing platforms, then

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

2023-06-22 Thread cpa...@gmail.com
You can vote here https://www.reddit.com/r/golang/comments/14fg8zz/remaining_closed/ I don't personally like the reddit api changes but want the Golang subreddit open. Anyone can choose to stop reading it or posting to it. Opening it will not stop individuals from protesting. -- You received

[go-nuts] pgfs: an fs.FS implementation on top of the Postgres Large Objects API

2023-06-22 Thread 'Mohamed Attahri' via golang-nuts
Hey there, Just released https://pkg.go.dev/mohamed.attahri.com/pgfs It's essentially an fs.FS interface implementation that uses Large Objects on Postgres, with all the bells and whistles. It's powerful, because you essentially get a filesystem that's tied to a database transaction, and it c

[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] Re: 'go run hello.go' taking ~30 seconds on windows

2023-06-22 Thread Jet Li
Like to note that if you mean Windows Defender, there is no way to disable that after Build 20H2 iirc where I was task to deploy Windows 10 and could not find the option in Windows Group Policy settings after the update, if Go app are affected by Windows Defender. Your only option is to use olde

Re: [go-nuts] Why is reflect.CanAddr() returning false in this case ?

2023-06-22 Thread Jan Mercl
On Thu, Jun 22, 2023 at 12:16 PM christoph...@gmail.com wrote: > > I'm trying to get the uintptr address of a value p for which I have the > reflect.Value so that I can compare it with the value obtained with > v.Pointer() when p is a pointer. > > Here is a simple recursive pointer example code

[go-nuts] Why is reflect.CanAddr() returning false in this case ?

2023-06-22 Thread christoph...@gmail.com
I'm trying to get the uintptr address of a value p for which I have the reflect.Value so that I can compare it with the value obtained with v.Pointer() when p is a pointer. Here is a simple recursive pointer example code showing what happens: https://go.dev/play/p/pST8DierbXS It is a pointer

[go-nuts] How do you use traceback ?

2023-06-22 Thread wilk
There is a proposal to add a trace only opt-in at error level. Only on this error I like to know the method and line. *Apart* to know if it's something useful to add in the standard lib or not (to don't pollute the github issue), how do you use the traceback in errors ? Do you add a full tracebac