Re: [go-nuts] io.Reader can return (n, err), both non-zero

2024-03-25 Thread Diego Joss
ation and an "func io.Read(io.Reader, p) (int, > error)" wrapper function that caches the error and only returns err!=nil > iff n!=0 ? > > But this maybe just complicate things? > > Diego Joss a következőt írta (2024. március 25., hétfő, 10:16:43 UTC+1): > >> H

Re: [go-nuts] io.Reader can return (n, err), both non-zero

2024-03-25 Thread Diego Joss
an to call Read a second time to get the EOF. > Just for sake of discussion/argumentation, it's still possible for the callee implementation to cache the error status which is returned in the next Read call. Thus a single RPC (or lock) call is performed. -- Diego Joss -- You received this m

Re: [go-nuts] How to minimize RAM usage during Go binary compilation

2023-07-12 Thread Diego Joss
Or it could be embedded using package embed (https://pkg.go.dev/embed). Just another candidate solution. -- Diego On Wed, 12 Jul 2023 at 14:30, 'Sean Liao' via golang-nuts < golang-nuts@googlegroups.com> wrote: > considering it is primarily static information, maybe it should be passed > in and

Re: [go-nuts] how is xml.Decoder.CharsetReader supposed to be held?

2022-05-06 Thread Diego Joss
Does this work for you? https://go.dev/play/p/xLRawVhcRtF -- Diego -- 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

Re: [go-nuts] Allow a TCP connection, but not a TLS connection based on an ACL

2022-03-31 Thread Diego Joss
cepted". Thus the meaning of "Accept" for the net.Listener, and your (*aclListener) are not the same: net.Listener considers as acceptable any connection, (*aclListener) accepts only connections under certain constraints. Would this work for you? -- Diego Joss -- You received this

Re: [go-nuts] Performance issue with os.File.Write

2020-12-20 Thread Diego Joss
As Jan said "apples and oranges", in this case comparing *os.Stdout with C File *stdout is not fair. The equivalent of *os.Stdout in C is the filedescriptor 1 (STDOUT macro), and the equivalent of *os.Stdout.Write is write(2) (the syscall), not fwrite or fputs. If you retry your microbenchmark

Re: [go-nuts] Re: implementing macro in plan 9 assembly

2020-10-19 Thread Diego Joss
Have a look at https://golang.org/doc/asm and examples are always a good source of inspiration. For example https://golang.org/src/math/dim.go at line 35 defines the prototype for function Max, which is implemented in assembly in https://golang.org/src/math/dim_amd64.s -- Diego On Fri, 16 Oct

Re: [zathura] replace g_content_type_guess with libmagic

2013-01-29 Thread Diego Joss
Hi everyone, regarding the fallback solution (as is done for the database), I will be glad to implement it, however I won't have time before this weekend. Benoît Knecht: Sebastian Ramacher wrote: Benoît Knecht wrote: It would also be great if you could do localization on the message

Re: [dev] [st] 0.2 is out

2012-02-08 Thread Diego Joss
Hi, there is a minor error on the website in the News section for the announcement: a href=http://st.suckles.org;st 0.2/a I think it should be ;-) a href=http://st.suckless.org;st 0.2/a Have a nice day, -- Diego Joss

Re: [sup-talk] Showing archived messages

2011-09-29 Thread Diego Joss
Hi, if I'm not mistaken, you can use the 'all' keyword to match all messages. I haven't tested with sup, but sup is using xapian, and with notmuch (http://notmuchmail.org/), which also uses xapian, it works. thus try: all -label:inbox Diego On Thu, Sep 29, 2011 at 02:06:29PM -0700, David J.

Re: [dev] which minimal os

2011-02-12 Thread Diego Joss
Hi, Noone mentioned Slackware. You can configure your system as minimal as you want it to. Some supplied packages may have an old version (depending on your use), but the slackbuilds.org supply pretty much anything you want. And you can always compile what you need.

Re: [dev] wmii freezes momentarily and regularly

2011-01-19 Thread Diego Joss
Hi I don't know anything about the gui stuff, but it seems you simply haven't configured wpasupplicant. To configure it---if you installed it from the ubuntu repositories, which should be (almost) the same as the Debian packages---look at the /usr/share/doc/wpasupplicant/README.Debian. The