From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: mail.toke.dk; spf=pass (mailfrom) smtp.mailfrom=irif.fr (client-ip=2001:660:3301:8000::1:2; helo=korolev.univ-paris7.fr; envelope-from=jch@irif.fr; receiver=) Authentication-Results: mail.toke.dk; dkim=pass (2048-bit key; unprotected) header.d=irif.fr header.i=@irif.fr header.a=rsa-sha256 header.s=dkim-irif header.b=QhIvKzds Received: from korolev.univ-paris7.fr (korolev.univ-paris7.fr [IPv6:2001:660:3301:8000::1:2]) by mail.toke.dk (Postfix) with ESMTPS id 7BC409898F8 for ; Wed, 13 Jul 2022 11:40:35 +0200 (CEST) Received: from potemkin.univ-paris7.fr (potemkin.univ-paris7.fr [IPv6:2001:660:3301:8000::1:1]) by korolev.univ-paris7.fr (8.14.4/8.14.4/relay1/82085) with ESMTP id 26D9eYiS022838 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Wed, 13 Jul 2022 11:40:34 +0200 Received: from mailhub.math.univ-paris-diderot.fr (mailhub.math.univ-paris-diderot.fr [81.194.30.253]) by potemkin.univ-paris7.fr (8.14.4/8.14.4/relay2/82085) with ESMTP id 26D9eY7m011339; Wed, 13 Jul 2022 11:40:34 +0200 Received: from mailhub.math.univ-paris-diderot.fr (localhost [127.0.0.1]) by mailhub.math.univ-paris-diderot.fr (Postfix) with ESMTP id 88620EC647; Wed, 13 Jul 2022 11:40:34 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=irif.fr; h= content-type:content-type:mime-version:user-agent:references :in-reply-to:subject:subject:from:from:message-id:date:date :received:received; s=dkim-irif; t=1657705233; x=1658569234; bh= TrPu5jNAqlzrABqQm6Ya9C/O90rMmauwovBxEQr3tHQ=; b=QhIvKzdsyDqvOuxM S32lSzZa1z8tmzLBR9BagDchzIow49txe0kHO7WjvWryLAJJP3c6LBPEL60NV/8P NRWHJwAn4lu1ROwVTIqINNAO1xUZ9qJ9RNaWA6YrU9KrpL450EuVIoyY6eVE8Esb wN9dXhaMSAqGCeBSSiL9T50G849LPi8/5kyVUJ+LvkgOvD9EhXfDY6lhQBN5LE4m KXdzw6oLLt9WACWEitN9EbFSiZbzLoCTZs9He/QxauHxMkLPDJ4EMHUkF2/tacEB bGRvnNa+wA/sI4Y4B82avQAvtWSOB1YtEBl+eff0osxO0Q36bjb2qdCFQVLwanib WO/W/g== X-Virus-Scanned: amavisd-new at math.univ-paris-diderot.fr Received: from mailhub.math.univ-paris-diderot.fr ([127.0.0.1]) by mailhub.math.univ-paris-diderot.fr (mailhub.math.univ-paris-diderot.fr [127.0.0.1]) (amavisd-new, port 10023) with ESMTP id fr2JIN0GQu22; Wed, 13 Jul 2022 11:40:33 +0200 (CEST) Received: from pirx.irif.fr (unknown [78.194.40.74]) (Authenticated sender: jch) by mailhub.math.univ-paris-diderot.fr (Postfix) with ESMTPSA id E8581EC645; Wed, 13 Jul 2022 11:40:32 +0200 (CEST) Date: Wed, 13 Jul 2022 11:40:32 +0200 Message-ID: <87sfn54agf.wl-jch@irif.fr> From: Juliusz Chroboczek To: Dave Taht In-Reply-To: References: <87lesy8h7s.wl-jch@irif.fr> <87k08i8fua.wl-jch@irif.fr> User-Agent: Wanderlust/2.15.9 (Almost Unreal) Emacs/27.1 Mule/6.0 MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: text/plain; charset=US-ASCII X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.2.7 (korolev.univ-paris7.fr [IPv6:2001:660:3301:8000::1:2]); Wed, 13 Jul 2022 11:40:34 +0200 (CEST) X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.2.7 (potemkin.univ-paris7.fr [194.254.61.141]); Wed, 13 Jul 2022 11:40:34 +0200 (CEST) X-Miltered: at korolev with ID 62CE9312.002 by Joe's j-chkmail (http : // j-chkmail dot ensmp dot fr)! X-Miltered: at potemkin with ID 62CE9312.000 by Joe's j-chkmail (http : // j-chkmail dot ensmp dot fr)! X-j-chkmail-Enveloppe: 62CE9312.002 from potemkin.univ-paris7.fr/potemkin.univ-paris7.fr/null/potemkin.univ-paris7.fr/ X-j-chkmail-Enveloppe: 62CE9312.000 from mailhub.math.univ-paris-diderot.fr/mailhub.math.univ-paris-diderot.fr/null/mailhub.math.univ-paris-diderot.fr/ X-j-chkmail-Score: MSGID : 62CE9312.002 on korolev.univ-paris7.fr : j-chkmail score : . : R=. U=. O=. B=0.000 -> S=0.000 X-j-chkmail-Score: MSGID : 62CE9312.000 on potemkin.univ-paris7.fr : j-chkmail score : . : R=. U=. O=. B=0.000 -> S=0.000 X-j-chkmail-Status: Ham X-j-chkmail-Status: Ham Message-ID-Hash: LKZHJXWHHPKRMRGMI2QF3JVICFWOJLJF X-Message-ID-Hash: LKZHJXWHHPKRMRGMI2QF3JVICFWOJLJF X-MailFrom: jch@irif.fr X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header CC: galene@lists.galene.org X-Mailman-Version: 3.3.5 Precedence: list Subject: [Galene] Re: OT: generics [was: Heads up: Galene now requires Go 1.16] List-Id: =?utf-8?q?Gal=C3=A8ne_videoconferencing_server_discussion_list?= Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: > I hope they evolve. This was a very disappointing analysis of go generics: No big surprise here. He's saying that Go generics are fast for simple types (where they are essentially implemented as macros) but not necessarily faster than interfaces when used with interfaces. The alternative would be to have the compiler duplicate generic functions at all types, as in C++, which has its own issues. That's exactly as it was in Common Lisp: you'd write generic code as the initial implementation, then do some profiling and manually specialise your inner loops. That's something I can live with. -- Juliusz