Received: from mail-ua1-f44.google.com (mail-ua1-f44.google.com [209.85.222.44]) by nld3-dev1.alpinelinux.org (Postfix) with ESMTPS id 89291782BBD for <~alpine/devel@lists.alpinelinux.org>; Wed, 11 Dec 2019 13:58:57 +0000 (UTC) Received: by mail-ua1-f44.google.com with SMTP id 59so8818337uap.12 for <~alpine/devel@lists.alpinelinux.org>; Wed, 11 Dec 2019 05:58:57 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=cPNjv0trNjDSkBt9Kux/K1JLSshx9MbL7jKlR76ownc=; b=UHpXY3tG+vD+d/d25p6OCqHybb8kAtt/VS0t2DLPHdvUDYrKGjpH3b3nexRVt7IRXP aJTIYjiwx42sOzuFIoOTvbJnaYTjuh0o6zPvlzyop5aEwe2OJ5DXNJRpQwo7dpGbWBIG ogOqKBDIHr5bKY6hKCAuUZnrV98B/zMNHPdOcvPkzTuowXzUa9DiTO3+NoWJ9Uee6esT gg5Pr8J1+qhLDNPEkguv9wWH7JS8nYgAJ/1Ac/YPhDMgs/GsQ3AN/i1bxkHLYpYmh552 KdkdJ+FoPWgBl7aw75zSbkB+nkcd0zcfHFh06eOPsXCj30fswCP2e+xJZs8Rdd/GY1bt Z3tA== X-Gm-Message-State: APjAAAXmFL6DAZiOWeSfKxvOHnORiin9fnZGDzjL1sfQj3O4nAlvqqEw ErQqbesra68gY43ex6pzU3B1Fhim3VTXEUtetvU= X-Google-Smtp-Source: APXvYqwHF07BIjfRxlciOlH+M/D2qgZxGGDI1RMPlF+RTCMKpvlFNedzyie88l0M1qZ8i4uhme/fkQF0ofQMmnOZ1JM= X-Received: by 2002:ab0:488b:: with SMTP id x11mr3074389uac.86.1576072735560; Wed, 11 Dec 2019 05:58:55 -0800 (PST) MIME-Version: 1.0 References: <20191211094116.4908c616@ncopa-desktop.copa.dup.pw> In-Reply-To: <20191211094116.4908c616@ncopa-desktop.copa.dup.pw> From: Kiyoshi Aman Date: Wed, 11 Dec 2019 08:58:44 -0500 Message-ID: Subject: Re: Proposal: replace ninja with samurai To: Natanael Copa Cc: Drew DeVault , ~alpine/devel@lists.alpinelinux.org Content-Type: text/plain; charset="UTF-8" On Wed, Dec 11, 2019 at 3:41 AM Natanael Copa wrote: > > On Sat, 07 Dec 2019 12:37:56 -0500 > "Drew DeVault" wrote: > > > Ninja is a build tool which fills the same niche as Make, and samurai is > > a third-party implementation on of Ninja. > > > > https://github.com/ninja-build/ninja > > https://github.com/michaelforney/samurai > > > > samu is much simpler than ninja, clocking in at around ~3,000 lines of > > C, compared to Ninja's ~20,000 lines of C++. samu also supports a > > SAMUFLAGS environment variable which we can use to tune the -j flag in > > abuild, similar to Make. Samurai is a drop-in replacement, but is not > > bug-for-bug compatible with Ninja. > > What I think is nice with ninja compared to make, is that we don't need > set -j to make it use all cores. Will samurai not use all detected > cores without setting -j? The primary reason to include -j$JOBS is not because samurai won't use all cores by default, but rather because, in some circumstances, using all cores may not be desirable (e.g. if one lacks the RAM to utilize all available cores at once on large projects).