From owner-freebsd-java@freebsd.org Fri Jul 17 03:34:59 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 12D753758DA for ; Fri, 17 Jul 2020 03:34:59 +0000 (UTC) (envelope-from aryeh.friedman@gmail.com) Received: from mail-io1-xd2c.google.com (mail-io1-xd2c.google.com [IPv6:2607:f8b0:4864:20::d2c]) (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 4B7Gw12syfz4SC7 for ; Fri, 17 Jul 2020 03:34:57 +0000 (UTC) (envelope-from aryeh.friedman@gmail.com) Received: by mail-io1-xd2c.google.com with SMTP id l17so8964491iok.7 for ; Thu, 16 Jul 2020 20:34:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=io++YkrdsuQHqtvzv0xEOgmxpcswdOCR69U4SS14C6k=; b=ZlzPo5omf2gcCjBCU/XQvSIuTmsi1DH8Pmv0cDkZNey8QpIpS6MfO8hlj5J5+zjxKU ZhUWuAfUiz/0UkC/fFgxl+gxdO6Z8pPEho/53hvitX7bUqQOtDNtEIpJSQlc7vTpr+1z Sf5urQNgh01gu/PCy/7L2uKKRRJUNpsatZNlYhmN8GYb/+IWt9MCnqFwvThHGiKNy4JW z8RCvmtdDKKDUqEjeaivhuTUxN4QGog2o771ZJxBRpM33BS7Jkxt+h+8mQNAytueRV22 lKSftXC3mWC+moB77ucBZQgghq6KNv5PkdYZOYFqpRTJ4EFNhdSzYPmc1GqcLpWDvAEa Z7Ag== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=io++YkrdsuQHqtvzv0xEOgmxpcswdOCR69U4SS14C6k=; b=J9s3ofzvkplfQhZjcSf76slOoERcDxbEHf7XOIWnimB6wT/7SCxGdpmTU5NIAN5GCK 5vrjgQfOExwizrN1pGnLOrpIwR+5Bhiw1YgFsVfy+uy4D//VGHuPxjbqJV0WwTZnAyd/ xrWf7rt02vh6KbTSLUwlOBJjgZGHuOpcG/gt5oe4xL2FWFXa1Th0hnUCGe/pwICdiLu3 E3BfOWS+l+yb6e9IE7xcYz4dF/1i5eLkO7TqBRFjwRJd1Y1+cCFI0YnrWb9uLgX9Ge93 Tzgfa4ySPBQYbQJn5ZgIXgcNJPLmXWgGZ2dsCxJ7lA6Fmlk7Yu0fQQLBnQB2WC6rPsFJ hUPw== X-Gm-Message-State: AOAM532eVvMNi6L5ORpgTp34uzKoCdoH28c2K/GoGU2NWgLPu4e69qR1 TLGlrvrn6rotlhozmQ8OZZLEg/hMdHUDHSlnoXS3wo0r X-Google-Smtp-Source: ABdhPJwp3auRXmvwsn6VkgyfVuZ0IHPvC0K1Bt1PcQ9ZJuoSKPbuRpl80Jse0Gqz7g5bKLxp7GCwZG3oWpmbRX+/G3k= X-Received: by 2002:a02:a80c:: with SMTP id f12mr8732072jaj.138.1594956896208; Thu, 16 Jul 2020 20:34:56 -0700 (PDT) MIME-Version: 1.0 From: Aryeh Friedman Date: Thu, 16 Jul 2020 23:34:45 -0400 Message-ID: Subject: OT: support for multicore javac? To: freebsd-java@freebsd.org X-Rspamd-Queue-Id: 4B7Gw12syfz4SC7 X-Spamd-Bar: - Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=ZlzPo5om; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of aryehfriedman@gmail.com designates 2607:f8b0:4864:20::d2c as permitted sender) smtp.mailfrom=aryehfriedman@gmail.com X-Spamd-Result: default: False [-1.83 / 15.00]; RCVD_TLS_ALL(0.00)[]; ARC_NA(0.00)[]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; NEURAL_HAM_MEDIUM(-0.92)[-0.916]; FROM_HAS_DN(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim]; FREEMAIL_FROM(0.00)[gmail.com]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-java@freebsd.org]; TO_DN_NONE(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; NEURAL_HAM_LONG(-1.00)[-1.000]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36]; DKIM_TRACE(0.00)[gmail.com:+]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; RCVD_IN_DNSWL_NONE(0.00)[2607:f8b0:4864:20::d2c:from]; NEURAL_SPAM_SHORT(0.08)[0.082]; 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]; RCVD_COUNT_TWO(0.00)[2] 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 03:34:59 -0000 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? -- Aryeh M. Friedman, Lead Developer, http://www.PetiteCloud.org From owner-freebsd-java@freebsd.org Fri Jul 17 19:04:21 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 4E84636C340 for ; Fri, 17 Jul 2020 19:04:21 +0000 (UTC) (envelope-from bdysonsmith@gmail.com) Received: from mail-io1-xd30.google.com (mail-io1-xd30.google.com [IPv6:2607:f8b0:4864:20::d30]) (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 4B7gXM1j4gz4PJW for ; Fri, 17 Jul 2020 19:04:18 +0000 (UTC) (envelope-from bdysonsmith@gmail.com) Received: by mail-io1-xd30.google.com with SMTP id l1so11501990ioh.5 for ; Fri, 17 Jul 2020 12:04:18 -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=ZavlYmM98xz3hvzSqcnJNCuNPxKoePRLJ6ixPRJ9W+A=; b=fgiOdHn7t5w92BYg7zfo1GFPQ1kR8CUfXJX9ktjwx9cF19Xxp1DdPLlS0cL4NDxsQw QOiBUtW7XTxzt7QDgsAXJQTYxsrLk+K4S/4TZ3giL77ZCBletfu0GnUK5mlgRUAm3al9 GnfyEMFRc/NK/6xrtpnwxeef2RIMf6OHpWpI6uEiCS5CbTxVQrJXHcM7V1SZzp5cPy93 TeqqmWfq2w79l0BLSfzqT3NrKE8qEwAKp4XbwBD9GYHIM6Mmq6SeIvS3FYhSzLzbEhR5 2QYU3cEPVF1LaTD6PIJpEckeIl8ujUvR3DKqsZzjP6/tXWUaORrbv4sLdQ3M6Q6f97uw WV+w== 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=ZavlYmM98xz3hvzSqcnJNCuNPxKoePRLJ6ixPRJ9W+A=; b=o4P+YdWoTAQ3MSI51hZQe9Ndg+O6MRc3W6pdn84bo6iv43NIkyGRHM86OCZOrsZgOt 5Zq0XwHNlShXIyqbxNIZqQAuDYdLaq2feOrnYUR8bsp25tIfaY94Z4UefoRcx3zcVOCS Mx4k1KaKrmb6nde8joY/v/vV4fUxHnKe0yXZEI3WZs5hbquS1T71B1fG9tjFN3nR+SN9 rLetFyDyn6I+v3/TIehkcIXo6kYRS4U9+zj4J3gT15zd5i6xMb/7Nj91USBbgW2Arpm+ 2AAckE2o2H3eHWCE9hCI9xpgxOeQCvXDl8wjBclS/fyIiRYO00LgEKDrydi/r5kxunyC RLjw== X-Gm-Message-State: AOAM533pZVJz/MaxcLJe32dRIK68U1tkShRiIg6p/ZUqDOtEWou/Q71Q jvyeZ9Q6n2/DkLVlN/i3eOGQ+9/4UtxKYut8rns= X-Google-Smtp-Source: ABdhPJzTQhvJ043IJ4WVTIXuHAb5qX7imqOxFLGZlOr/FGVxvIA8WQxo0UxkwDY2Uw1F2apck/tlDKeyGlxpLAhWGME= X-Received: by 2002:a6b:7f42:: with SMTP id m2mr10972689ioq.181.1595012657970; Fri, 17 Jul 2020 12:04:17 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Bridger Dyson-Smith Date: Fri, 17 Jul 2020 15:06:35 -0400 Message-ID: Subject: Re: OT: support for multicore javac? To: Aryeh Friedman Cc: freebsd-java@freebsd.org X-Rspamd-Queue-Id: 4B7gXM1j4gz4PJW X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=fgiOdHn7; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of bdysonsmith@gmail.com designates 2607:f8b0:4864:20::d30 as permitted sender) smtp.mailfrom=bdysonsmith@gmail.com X-Spamd-Result: default: False [-2.61 / 15.00]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36:c]; FREEMAIL_FROM(0.00)[gmail.com]; DKIM_TRACE(0.00)[gmail.com:+]; RCPT_COUNT_TWO(0.00)[2]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; NEURAL_HAM_SHORT(-0.60)[-0.596]; 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]; FREEMAIL_ENVFROM(0.00)[gmail.com]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.04)[-1.044]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; FROM_HAS_DN(0.00)[]; NEURAL_HAM_LONG(-0.97)[-0.966]; TAGGED_RCPT(0.00)[]; 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::d30: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 19:04:21 -0000 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? There would probably be some orchestration required, in terms of PATHs, etc, but the repository seems to be relatively straightforward. I hope this is helpful, and apologize if it isn't. > -- > Aryeh M. Friedman, Lead Developer, http://www.PetiteCloud.org > Best wishes, Bridger > _______________________________________________ > freebsd-java@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-java > To unsubscribe, send any mail to "freebsd-java-unsubscribe@freebsd.org" > 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 From owner-freebsd-java@freebsd.org Fri Jul 17 22:34:33 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 7E6AB370BC4 for ; Fri, 17 Jul 2020 22:34:33 +0000 (UTC) (envelope-from jonc@chen.org.nz) Received: from mail-ot1-x332.google.com (mail-ot1-x332.google.com [IPv6:2607:f8b0:4864:20::332]) (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 4B7mBw4f8Xz4dnX for ; Fri, 17 Jul 2020 22:34:31 +0000 (UTC) (envelope-from jonc@chen.org.nz) Received: by mail-ot1-x332.google.com with SMTP id 95so7983691otw.10 for ; Fri, 17 Jul 2020 15:34:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chen-org-nz.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=Bn3HSzWnSDP5p0o9fPcZ1MUnyLs46D2sQ+UkjU9vieg=; b=AUzpG3lX2eKDTYOIBc+tyoIh+w4/yjVpH6fbHUlfmimyCJqwVcF5d9izerdm8x4WQ9 Yp8pU/XA9clPmyZC9IydX0xott6nZ/GQrNiNzbOospD+LfNcmZENm23cAC7wwztllXiV d1O8lxLad0LpjqYlF0tOm5GvYCGOo4d/md+ALBxkHKLVNCMV2Nt/nZCXB1Y8feKE/afA 1IreRmt6K6u9GmVxokQuHUSodYtB0tm8oRkXDb6skgGLMJZI6EWuTfVC81Pe/vBq5Nvm /gT08PESXWc9hgOudMBXRH+u3AekhpzlaVqMPEweLv+a1p5rZUunlW4/cgM/kZ7yw+Jf DxTw== 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=Bn3HSzWnSDP5p0o9fPcZ1MUnyLs46D2sQ+UkjU9vieg=; b=CalvbIIHjcZNfuVV6Kslb31YK4JMPIBntw8FgC6M2JfYLtxdMRxz1SLZafRn/SqsxC /T7SlEm+tn67meihexGL93zpGBpxgM2XOLKp7KErl7HWgp2jZizSWDWjHct7kvGgfoLg PwWXTo19DwgyvCcgt6S2jpdfcV7j0RhPmgu+uvXR3sKmNTbmvOKcc/HBnaVfPtkFG7Qh +oZJ6OKKp7UNRl9DHZNT+AfiMtbK9QLtEGhQDA2wmvM03ylU9dHWg6uyx+BcK2teQPaS 95UjQgFot7zwH4tyuHJrYhQZ59dXg51CTsaPm5RW25Mj8XLsrSLdWQiSnrZt+RmEM00v EaYA== X-Gm-Message-State: AOAM531CImXcJmyYxOVl+Jacgtxq5bVp0eFf4jx84Mq6BX46a58x67rR MO9n0G0lmZQYG4VkUW/ozwMK3MiQulpJaLPB2KQflbuNp8w= X-Google-Smtp-Source: ABdhPJxQvreM4aS0nSJQyY7wlryq2jfPj+nKdw28AJzFtQbjYSVnmTnAtjhcYZdRXnJYUi44t+cD8hdW7o+ISxzS4UU= X-Received: by 2002:a05:6830:1db5:: with SMTP id z21mr10937206oti.162.1595025265002; Fri, 17 Jul 2020 15:34:25 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Jonathan Chen Date: Sat, 18 Jul 2020 10:34:09 +1200 Message-ID: Subject: Re: OT: support for multicore javac? To: Aryeh Friedman Cc: freebsd-java@freebsd.org Content-Type: text/plain; charset="UTF-8" X-Rspamd-Queue-Id: 4B7mBw4f8Xz4dnX X-Spamd-Bar: - Authentication-Results: mx1.freebsd.org; dkim=pass header.d=chen-org-nz.20150623.gappssmtp.com header.s=20150623 header.b=AUzpG3lX; dmarc=none; spf=softfail (mx1.freebsd.org: 2607:f8b0:4864:20::332 is neither permitted nor denied by domain of jonc@chen.org.nz) smtp.mailfrom=jonc@chen.org.nz X-Spamd-Result: default: False [-1.56 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-0.97)[-0.973]; R_DKIM_ALLOW(-0.20)[chen-org-nz.20150623.gappssmtp.com:s=20150623]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; NEURAL_HAM_LONG(-0.98)[-0.978]; TAGGED_RCPT(0.00)[]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-java@freebsd.org]; R_SPF_SOFTFAIL(0.00)[~all]; DMARC_NA(0.00)[chen.org.nz]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DKIM_TRACE(0.00)[chen-org-nz.20150623.gappssmtp.com:+]; RCPT_COUNT_TWO(0.00)[2]; RCVD_IN_DNSWL_NONE(0.00)[2607:f8b0:4864:20::332:from]; NEURAL_HAM_SHORT(-0.31)[-0.307]; FREEMAIL_TO(0.00)[gmail.com]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; SUBJECT_ENDS_QUESTION(1.00)[]; RCVD_COUNT_TWO(0.00)[2]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; RCVD_TLS_ALL(0.00)[] 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 22:34:33 -0000 On Fri, 17 Jul 2020 at 15:35, 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'm building eclipse, and invocations to javac seem to spread across multiple cores when building with multiple threads using openjdk11; at least that's what "top -H" tells me. I don't see what smart-javac brings to the table. Cheers. -- Jonathan Chen From owner-freebsd-java@freebsd.org Sat Jul 18 00:31:33 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 BA966373860 for ; Sat, 18 Jul 2020 00:31:33 +0000 (UTC) (envelope-from aryeh.friedman@gmail.com) Received: from mail-io1-xd29.google.com (mail-io1-xd29.google.com [IPv6:2607:f8b0:4864:20::d29]) (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 4B7pnw2h3hz4lYg for ; Sat, 18 Jul 2020 00:31:32 +0000 (UTC) (envelope-from aryeh.friedman@gmail.com) Received: by mail-io1-xd29.google.com with SMTP id i4so12165508iov.11 for ; Fri, 17 Jul 2020 17:31:32 -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=JjaXd9JFbXTs7OkmE2AfaKFrwjmvxrMLLTf4W1oa63Y=; b=gyrUERbDdT6MzjuBSDK4YSr0sfIPjThkC7dOgkOVm4wEpwmQ+UpMtXg0BTApgjliev KwSXknidLL+1ISVM+Nety54IhpKqw2BqYCuzYMW89aXtqZa24eXdk7SyVGxfx40urpG5 8i55DXcACMGGIwLl7hWaX5V2+2IykTV/hJK8u3ywMAT6A94JLKtHCYahPAva8HWWGCq+ rSGC5crdxsRwzKzZBClMlw18qm7SSTU3UzrrIx8Y0F2gIcnsfVfAL44AYQ6DNMJkjC70 Iu+GXTi2Z4THzGcRmGAeWshjfUcFGp6ufcTUlPPiWelcs8mMrP1c+nPoc6/V+r5ZW6e0 4Ydg== 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=JjaXd9JFbXTs7OkmE2AfaKFrwjmvxrMLLTf4W1oa63Y=; b=NmxmW9JrCTvenbgf7AmFtQyTaXZjEceZR0gM/te1aTXXnOxeZeOdlOxYn+AXJS5nr4 3bPXrkdOnsW1ES5hZZa+wiUvTm+H6gPmYciCZldVAltayeANsYkHTwdwSRDTOoGEGXeH UxEWC5Jf+IRvaCzYeuM4OcF8jXJHNvV5yRQRsUCZV+jSl4KMddE5BkaHvEJjzktYZtuG A+SklCUand8z3qAw9KmqJGpO7z87lIYoKQJ023Dh+XgYKGm0HgxibkEtz2GBT3ghaTs6 IrvliN0zZu8xQC26xDF17c/gL/zzIzg2P+f95KHS4chGmYCyYGeYg7Q8SIPO243Ys2wp ZWgw== X-Gm-Message-State: AOAM530RgbG3D4CeGdw1ldGojMg0PcQHQqqopPPV24zkpe/UGOqKuGQn 6Iwb80ihYo+F3PAmUSefYksl75p5+chaqc0uH+Uhck90c5c= X-Google-Smtp-Source: ABdhPJz7NDlocKI9/POGHyMXq0Eaufvs6BGqocIWmLHI6g7Ieacmtvx1GM8biOiIiXbEYNylfSSgIu1BzACxSZwdZhA= X-Received: by 2002:a02:a80c:: with SMTP id f12mr13729878jaj.138.1595032291132; Fri, 17 Jul 2020 17:31:31 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Aryeh Friedman Date: Fri, 17 Jul 2020 20:31:18 -0400 Message-ID: Subject: Re: OT: support for multicore javac? To: Jonathan Chen Cc: freebsd-java@freebsd.org X-Rspamd-Queue-Id: 4B7pnw2h3hz4lYg X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=gyrUERbD; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of aryehfriedman@gmail.com designates 2607:f8b0:4864:20::d29 as permitted sender) smtp.mailfrom=aryehfriedman@gmail.com X-Spamd-Result: default: False [-3.16 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.05)[-1.050]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; RCVD_TLS_ALL(0.00)[]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36:c]; FREEMAIL_FROM(0.00)[gmail.com]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-java@freebsd.org]; NEURAL_HAM_LONG(-0.97)[-0.968]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DKIM_TRACE(0.00)[gmail.com:+]; RCPT_COUNT_TWO(0.00)[2]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; RCVD_IN_DNSWL_NONE(0.00)[2607:f8b0:4864:20::d29:from]; NEURAL_HAM_SHORT(-1.14)[-1.142]; 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]; RCVD_COUNT_TWO(0.00)[2] 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: Sat, 18 Jul 2020 00:31:33 -0000 I'm building eclipse, and invocations to javac seem to spread across > multiple cores when building with multiple threads using openjdk11; at > least that's what "top -H" tells me. I don't see what smart-javac > brings to the table. > I don't use eclipse or any IDE and many people other users don't also. All this is done by eclipse not the command line tools and people who work with them need good support for them (see the README in sjavac... https://github.com/weetmuts/sjavac ... as to the reasons for not using an IDE see https://docs.freebsd.org/cgi/getmsg.cgi?fetch=31816+0+current/freebsd-questions -- Aryeh M. Friedman, Lead Developer, http://www.PetiteCloud.org From owner-freebsd-java@freebsd.org Sat Jul 18 00:50:54 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 CDB7237418A for ; Sat, 18 Jul 2020 00:50:54 +0000 (UTC) (envelope-from jonc@chen.org.nz) Received: from mail-oi1-x22f.google.com (mail-oi1-x22f.google.com [IPv6:2607:f8b0:4864:20::22f]) (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 4B7qDF67Yvz4mT6 for ; Sat, 18 Jul 2020 00:50:53 +0000 (UTC) (envelope-from jonc@chen.org.nz) Received: by mail-oi1-x22f.google.com with SMTP id k22so9511924oib.0 for ; Fri, 17 Jul 2020 17:50:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chen-org-nz.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=CwVCqLPWRh+VBL8iOZUah7qEtaJMfJmmUywuO7EMIgs=; b=lr09k66c9p2Z2Bo6Z6Vz6ktoohGe1mwVJ0tpblGt7/tFvMVKeBuNdCu6eFpktf7UXT sv09SBaIhoPKqdZTq/yDTPnpUkVHTEw+c5innaJiBEZGRgmVqZ85Fqr1hln+Q6cLEhRe XaO8zinQfQImZ8kaCjNUwz0s7N1JCzySIo83dzYHt+mHqM7GYT7GE3Z9Yxc4uunZX3KF eNpgYrIygDCgNLJB305YezZCG8sqLI+AI1Ds14iRz3csxBOqGb1p6zrWEmWaNUJE0a4F JUZz2exNJw8FYMyaiOh90T36OFNni/GC3zvY4Sbo3cATtHkonLeAlmzNJLhkOdbEGfy+ ej6Q== 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:content-transfer-encoding; bh=CwVCqLPWRh+VBL8iOZUah7qEtaJMfJmmUywuO7EMIgs=; b=gCw1d2MDbe1tpVX7mGIp1mOdrPv4OuQhLlLH2Yi5n0RXfFhvJnWijzWLr56xt3EPXi SArlJC2eQee5hap3YrDdNJG0bRDYd1TAPZIutEz3KbfBWJ+aTsDH1laU1Gl4tdczIAUw FB6wy8IHZbnsFnJWmxpbX7II+Jl5iZ+VB2aBSghxacjSMd9xWMae5WWSAJYbaNVUvYWX DRs5Jt56mHwYCjb6FyVhNy226zw+8AiZHh8jN6NTTb6+E5QW1r8n6ypuiEHHRPDKMJ7Z YOdufxxW8WCgyF1VKGt6VD9nmsEyVeY6ZP9StfPMo1b2OrUexE2HC2sWi36Zh47UHaXw GXYA== X-Gm-Message-State: AOAM531aT9fHi0q1LpBY8ynnIDKDMyh7g8c9giJlRK4nFa5u0tU4tsih 28qaNmGcW/AxArfT0z7h8EP/eQcSBYCY+NGw2wzKXA== X-Google-Smtp-Source: ABdhPJztnX0ICkM24ZMd4c2VXOpVMbYJZmrYnQe8u+00MjnvRe4zLxB9sJeeRvLcmbjhE7Iam+NLDdwoqwEFX5Y2KAU= X-Received: by 2002:a05:6808:4c8:: with SMTP id a8mr9044775oie.150.1595033452217; Fri, 17 Jul 2020 17:50:52 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Jonathan Chen Date: Sat, 18 Jul 2020 12:50:36 +1200 Message-ID: Subject: Re: OT: support for multicore javac? To: Aryeh Friedman Cc: freebsd-java@freebsd.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Rspamd-Queue-Id: 4B7qDF67Yvz4mT6 X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=chen-org-nz.20150623.gappssmtp.com header.s=20150623 header.b=lr09k66c; dmarc=none; spf=softfail (mx1.freebsd.org: 2607:f8b0:4864:20::22f is neither permitted nor denied by domain of jonc@chen.org.nz) smtp.mailfrom=jonc@chen.org.nz X-Spamd-Result: default: False [-2.09 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-0.97)[-0.974]; R_DKIM_ALLOW(-0.20)[chen-org-nz.20150623.gappssmtp.com:s=20150623]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; NEURAL_HAM_LONG(-0.98)[-0.981]; TAGGED_RCPT(0.00)[]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-java@freebsd.org]; R_SPF_SOFTFAIL(0.00)[~all]; DMARC_NA(0.00)[chen.org.nz]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DKIM_TRACE(0.00)[chen-org-nz.20150623.gappssmtp.com:+]; RCPT_COUNT_TWO(0.00)[2]; RCVD_IN_DNSWL_NONE(0.00)[2607:f8b0:4864:20::22f:from]; NEURAL_HAM_SHORT(-0.83)[-0.833]; FREEMAIL_TO(0.00)[gmail.com]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; SUBJECT_ENDS_QUESTION(1.00)[]; RCVD_COUNT_TWO(0.00)[2]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; RCVD_TLS_ALL(0.00)[] 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: Sat, 18 Jul 2020 00:50:54 -0000 On Sat, 18 Jul 2020 at 12:31, Aryeh Friedman wro= te: >> I'm building eclipse, and invocations to javac seem to spread across >> multiple cores when building with multiple threads using openjdk11; at >> least that's what "top -H" tells me. I don't see what smart-javac >> brings to the table. > > I don't use eclipse or any IDE and many people other users don't also. = All this is done by eclipse not the command line tools and people who work = with them need good support for them (see the README in sjavac... https://= github.com/weetmuts/sjavac ... as to the reasons for not using an IDE see h= ttps://docs.freebsd.org/cgi/getmsg.cgi?fetch=3D31816+0+current/freebsd-ques= tions > My statement should be re-phrased as: When I'm building the eclipse port from the command line, with maven, each javac invocation spreads the work over multiple cores. You can easily view this with "top -H". Cheers. --=20 Jonathan Chen