Galène videoconferencing server discussion list archives
 help / color / mirror / Atom feed
From: Juliusz Chroboczek <jch@irif.fr>
To: Dave Taht <dave.taht@gmail.com>
Cc: galene@lists.galene.org
Subject: [Galene] Re: OT: generics [was: Heads up: Galene now requires Go 1.16]
Date: Wed, 13 Jul 2022 11:40:32 +0200	[thread overview]
Message-ID: <87sfn54agf.wl-jch@irif.fr> (raw)
In-Reply-To: <CAA93jw748iMCJnNSd1ZgF489Z4Szbd3vQdyL3-xW962f60zpJQ@mail.gmail.com>

> 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


      parent reply	other threads:[~2022-07-13  9:40 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-07-12 15:48 [Galene] Heads up: Galene now requires Go 1.16 Juliusz Chroboczek
2022-07-12 15:52 ` [Galene] " Dave Taht
2022-07-12 16:18   ` [Galene] OT: generics [was: Heads up: Galene now requires Go 1.16] Juliusz Chroboczek
2022-07-12 16:45     ` [Galene] " Dave Taht
2022-07-13  1:00       ` Dave Taht
2022-07-13  9:40       ` Juliusz Chroboczek [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://lists.galene.org/postorius/lists/galene.lists.galene.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87sfn54agf.wl-jch@irif.fr \
    --to=jch@irif.fr \
    --cc=dave.taht@gmail.com \
    --cc=galene@lists.galene.org \
    --subject='[Galene] Re: OT: generics [was: Heads up: Galene now requires Go 1.16]' \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox