From owner-freebsd-java@freebsd.org Fri Jul 17 20:03:11 2020 Return-Path: Delivered-To: freebsd-java@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 9EF8536D565 for ; Fri, 17 Jul 2020 20:03:11 +0000 (UTC) (envelope-from aryeh.friedman@gmail.com) Received: from mail-il1-x131.google.com (mail-il1-x131.google.com [IPv6:2607:f8b0:4864:20::131]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4B7hrG47Qnz4T46 for ; Fri, 17 Jul 2020 20:03:10 +0000 (UTC) (envelope-from aryeh.friedman@gmail.com) Received: by mail-il1-x131.google.com with SMTP id t4so8388810iln.1 for ; Fri, 17 Jul 2020 13:03:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=P8ikzEBYkPCe6ybAvhA474gFGW/wEQMu7SgqB93u0Xo=; b=MEgmZ/BKVwbzDPr4i/oTUqrgoZ1qKqf8+A07knApm0HbswvPV8TVDZugPiBdVI7Ek1 8lS5ozcsi1JGQvhbYcgLovjgCfAjndzOxjPQy4lcagq57qhy4ImRThP4rs2yh+y48pLn rLEUyo03OJClWBaBvjJeUb3GEPTZ1Mc8Xa6ZLqKMYqJI3gnjjMCkyzJghzsLfloY9QTs JdZHzICCWyPCNkc7PipxTeFBQDLOM3SoJmKjZ0rWieX4ZQotEPQnvQdUsSg852QEKsjT mttJoasmQrOgRIsn8sdd7oxq6tsSB1VMZHkoEzxY5+zHI+Kqjs32SD1KCcBHi5CxuJRR 0gpg== 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=P8ikzEBYkPCe6ybAvhA474gFGW/wEQMu7SgqB93u0Xo=; b=m5Ul26Qf04ak0wyaxxnVFSlsCJcx8aTSWj7QbMRFDGNpDf3ScYqjtbes4OH2KEZiNa IbMTkyLQTzTtLNbSNzsRLGibmXdQ45Lfo8xcEqHRzxxbUUYGzRqWE3JG9SzcP/XC5xLL SL81HBpnqhHSG+1Zct/imsjbkah0GY5ZxNXHAqRvuW0bSWxDZc3QmeAt9YHh9UE7B2+c 2UDM/NcyelDeWWb80abivfhPOxgGbEZWCBBQ7uP2JMnZA3t7MeRspLSnFTYENR1IJ5j9 5VaCze2e9pUENwG/Jt5ugvxl5ht9wcOSzsmslr/uY5/Kv59aMRCorvQZnkT3qLufRMdF VRZw== X-Gm-Message-State: AOAM531VBTeURayTjgwZqqJpjcdbCkPbR2mKFvBhVdomtCQ9I7X+uuBR ijDGDxwA615J8QTAWWezDCoZxwVohdTag9KrATM= X-Google-Smtp-Source: ABdhPJx9C1z5J1y4YQplgwDwMGc2EYe2YeJnC34vhcBs5O2cfWfLrm2LXeAJMWyGdu2rGhoUMmi9+9EnQjAEgrhtBUE= X-Received: by 2002:a92:d807:: with SMTP id y7mr11120869ilm.187.1595016189170; Fri, 17 Jul 2020 13:03:09 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Aryeh Friedman Date: Fri, 17 Jul 2020 16:02:57 -0400 Message-ID: Subject: Re: OT: support for multicore javac? To: Bridger Dyson-Smith Cc: freebsd-java@freebsd.org X-Rspamd-Queue-Id: 4B7hrG47Qnz4T46 X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=MEgmZ/BK; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of aryehfriedman@gmail.com designates 2607:f8b0:4864:20::131 as permitted sender) smtp.mailfrom=aryehfriedman@gmail.com X-Spamd-Result: default: False [-2.99 / 15.00]; TO_DN_SOME(0.00)[]; FREEMAIL_FROM(0.00)[gmail.com]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36]; DKIM_TRACE(0.00)[gmail.com:+]; RCPT_COUNT_TWO(0.00)[2]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; NEURAL_HAM_SHORT(-0.99)[-0.991]; FREEMAIL_TO(0.00)[gmail.com]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; SUBJECT_ENDS_QUESTION(1.00)[]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; TAGGED_FROM(0.00)[]; FREEMAIL_ENVFROM(0.00)[gmail.com]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.04)[-1.042]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; FROM_HAS_DN(0.00)[]; NEURAL_HAM_LONG(-0.95)[-0.955]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-java@freebsd.org]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[2607:f8b0:4864:20::131:from]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[] Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.33 X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 17 Jul 2020 20:03:11 -0000 On Fri, Jul 17, 2020 at 3:04 PM Bridger Dyson-Smith wrote: > Hi Aryeh - > > On Thu, Jul 16, 2020 at 11:35 PM Aryeh Friedman > wrote: > >> I have a rather large code base that takes several minutes to compile even >> when doing javac `find src -name '*.java'`. SInce I do not use ant or any >> other Java based build system (I use devel/cook for many reasons most of >> which fit the project much better then ant or the Java only build >> systems). I was reading about a program called sjavac (smart-javac) as a >> possible way to make javac splatter the compile across multiple cores. >> It >> does not seem to be anywhere in the ports collection (independent or in >> connection to another port). Any suggestions on how to get/install it >> and/or other ways of making javac use multiple cores? >> >> I can't pretend to be anything other than an amateurish dabbler in the > JVM, but is there any reason you can't simply clone the repository at > https://github.com/weetmuts/sjavac and run it? > Thanks I was just not able to find that easily on the web for some reason... Since I am a port maintainer of two ports already that relate to my DIY build system (devel/aegis and devel/fhist to advertise them ;-)) I will likely be making this a third if it works as advertised to help the community. I hope this is helpful, and apologize if it isn't. > I have never understood why people feel they have to apologize for giving requested help (even if it turns out to be wrong in the long run). -- Aryeh M. Friedman, Lead Developer, http://www.PetiteCloud.org