kcar RubyGem user+dev discussion/patches/pulls/bugs/help
 help / color / mirror / code / Atom feed
From: Eric Wong <normalperson@yhbt.net>
To: kcar@librelist.org
Subject: Re: [PATCH] use rb_fstring from Ruby 2.1.0dev if available
Date: Sat, 12 Oct 2013 06:59:40 +0000	[thread overview]
Message-ID: <20131012065940.GA13867@dcvr.yhbt.net> (raw)
In-Reply-To: 1381547916-7599-1-git-send-email-normalperson@yhbt.net

Eric Wong <normalperson@yhbt.net> wrote:
> This should be safe after r43210 from ruby trunk

Ugh, that was a horrible commit message.

This uses the frozen string cache in Ruby 2.1.0 if available.  The
frozen string cache implements the:

	"literal string"f

syntax found in Ruby 2.1.0 (this Ruby syntax is not set-in-stone, but
the idea of the frozen string cache seems to be popular in ruby-core
right now and unlikely to go away).

Strings in the frozen string cache benefit from best-effort
deduplication, but can still be GC-ed (unlike Symbols).  Obviously they
are strings, too, so they're usable for Rack headers.


      reply	other threads:[~2013-10-12  6:59 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-10-12  3:18 [PATCH] use rb_fstring from Ruby 2.1.0dev if available Eric Wong
2013-10-12  6:59 ` Eric Wong [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://yhbt.net/kcar/

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

  git send-email \
    --in-reply-to=20131012065940.GA13867@dcvr.yhbt.net \
    --to=normalperson@yhbt.net \
    --cc=kcar@librelist.org \
    /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
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://yhbt.net/kcar.git/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).