public inbox for nncp-devel@lists.stargrave.org
Atom feed
* Single combined executable
@ 2025-09-19 13:31 Sergey Matveev
  2025-09-19 13:47 ` Eugene Medvedev
  2025-09-19 18:14 ` John Goerzen
  0 siblings, 2 replies; 5+ messages in thread
From: Sergey Matveev @ 2025-09-19 13:31 UTC (permalink / raw)
  To: nncp-devel

[-- Attachment #1: Type: text/plain, Size: 419 bytes --]

Greetings!

In the following release I am going to create a single executable binary
for the whole NNCP suite. All nncp-* commands should be symlinks to the
"nncp" executable, that will run corresponding command based on the name.
That will greatly decrease the whole NNCP's suite installation size.

-- 
Sergey Matveev (http://www.stargrave.org/)
LibrePGP: 12AD 3268 9C66 0D42 6967  FD75 CB82 0563 2107 AD8A

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 265 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Single combined executable
  2025-09-19 13:31 Single combined executable Sergey Matveev
@ 2025-09-19 13:47 ` Eugene Medvedev
  2025-09-19 14:02   ` Sergey Matveev
  2025-09-19 18:14 ` John Goerzen
  1 sibling, 1 reply; 5+ messages in thread
From: Eugene Medvedev @ 2025-09-19 13:47 UTC (permalink / raw)
  To: nncp-devel

On Fri, 19 Sept 2025 at 16:31, Sergey Matveev <stargrave@stargrave•org> wrote:

> That will greatly decrease the whole NNCP's suite installation size.

That would greatly simplify getting it into Termux repo, too. Right now
the 48Mb package I'm getting is a turnoff for them.

-- 
Eugene Medvedev

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Single combined executable
  2025-09-19 13:47 ` Eugene Medvedev
@ 2025-09-19 14:02   ` Sergey Matveev
  0 siblings, 0 replies; 5+ messages in thread
From: Sergey Matveev @ 2025-09-19 14:02 UTC (permalink / raw)
  To: nncp-devel

[-- Attachment #1: Type: text/plain, Size: 633 bytes --]

*** Eugene Medvedev [2025-09-19 16:47]:
>That would greatly simplify getting it into Termux repo, too. Right now
>the 48Mb package I'm getting is a turnoff for them.

Well, that is the price of static linking and a quantity of executables.
Currently I got the following sizes:

    $ ./build
    $ stat -f "%z" bin/nncp
    18953978

    $ GO_LDFLAGS=-s ./build
    $ stat -f "%z" bin/nncp
    13304110

    $ GO_CFLAGS="-tags noyggdrasil" GO_LDFLAGS=-s ./build
    $ stat -f "%z" bin/nncp
    5779758

-- 
Sergey Matveev (http://www.stargrave.org/)
LibrePGP: 12AD 3268 9C66 0D42 6967  FD75 CB82 0563 2107 AD8A

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 265 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Single combined executable
  2025-09-19 13:31 Single combined executable Sergey Matveev
  2025-09-19 13:47 ` Eugene Medvedev
@ 2025-09-19 18:14 ` John Goerzen
  2025-09-19 18:47   ` Sergey Matveev
  1 sibling, 1 reply; 5+ messages in thread
From: John Goerzen @ 2025-09-19 18:14 UTC (permalink / raw)
  To: nncp-devel

Hi Sergey,

Thanks for making the new release with the security patch.  And this is
also a nice change, especially for Raspberry Pi and constrained
environments.

- John

On Fri, Sep 19 2025, Sergey Matveev wrote:

> Greetings!
>
> In the following release I am going to create a single executable binary
> for the whole NNCP suite. All nncp-* commands should be symlinks to the
> "nncp" executable, that will run corresponding command based on the name.
> That will greatly decrease the whole NNCP's suite installation size.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Single combined executable
  2025-09-19 18:14 ` John Goerzen
@ 2025-09-19 18:47   ` Sergey Matveev
  0 siblings, 0 replies; 5+ messages in thread
From: Sergey Matveev @ 2025-09-19 18:47 UTC (permalink / raw)
  To: nncp-devel

[-- Attachment #1: Type: text/plain, Size: 302 bytes --]

*** John Goerzen [2025-09-19 13:14]:
>also a nice change, especially for Raspberry Pi and constrained
>environments.

And I do not know why I was so late and slow with that change :-)

-- 
Sergey Matveev (http://www.stargrave.org/)
LibrePGP: 12AD 3268 9C66 0D42 6967  FD75 CB82 0563 2107 AD8A

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 265 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2025-09-19 18:47 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-09-19 13:31 Single combined executable Sergey Matveev
2025-09-19 13:47 ` Eugene Medvedev
2025-09-19 14:02   ` Sergey Matveev
2025-09-19 18:14 ` John Goerzen
2025-09-19 18:47   ` Sergey Matveev