Message from discussion
Help with Scala parsing classes and JSON
Received: by 10.204.129.9 with SMTP id m9mr491974bks.1.1352066730535;
Sun, 04 Nov 2012 14:05:30 -0800 (PST)
X-BeenThere: scala-base@googlegroups.com
Received: by 10.204.0.70 with SMTP id 6ls5798195bka.2.gmail; Sun, 04 Nov 2012
14:05:28 -0800 (PST)
Received: by 10.204.148.22 with SMTP id n22mr490473bkv.0.1352066728426;
Sun, 04 Nov 2012 14:05:28 -0800 (PST)
Received: by 10.204.148.22 with SMTP id n22mr490472bkv.0.1352066728401;
Sun, 04 Nov 2012 14:05:28 -0800 (PST)
Return-Path: <sean.c.r...@gmail.com>
Received: from mail-lb0-f172.google.com (mail-lb0-f172.google.com [209.85.217.172])
by gmr-mx.google.com with ESMTPS id l1si1428916bka.2.2012.11.04.14.05.28
(version=TLSv1/SSLv3 cipher=OTHER);
Sun, 04 Nov 2012 14:05:28 -0800 (PST)
Received-SPF: pass (google.com: domain of sean.c.r...@gmail.com designates 209.85.217.172 as permitted sender) client-ip=209.85.217.172;
Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of sean.c.r...@gmail.com designates 209.85.217.172 as permitted sender) smtp.mail=sean.c.r...@gmail.com; dkim=pass header...@gmail.com
Received: by mail-lb0-f172.google.com with SMTP id k13so3982809lbo.31
for <scala-base@googlegroups.com>; Sun, 04 Nov 2012 14:05:28 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=gmail.com; s=20120113;
h=mime-version:date:message-id:subject:from:to:content-type;
bh=N9YU/NHbSK7yPUnPJy7TOEM7yGVezLwiYwxBleyHo58=;
b=i6H8AWD+WKHnlkLUNNhX0DH1VUa8OtoZe+a7JcDTtWgn8V59QeYp97L2hk0YBDJxDr
T30cGHb+wqwSgfmOzcpJ2oL2dQMovFew95yPT9b0oFB2TKGQPvzr/jc8m19U6zw0D8Bh
7KUfvTZ3Q4UDg33oKvbSV2pOp7zs1d9lLJqwCafBHN1CdX0RoNlLl1jtKUXdLsoIduWc
mARz3NEnqyhr36TTB9njkB82hk6Cggu1OtWT37ykFc9igFmtNk2z5MRzt1D5bPM3ThoK
kaINfkSafa3FZNp+oLbx2jKKNW6UR+Qm6zdTGRPdesBHhBHan82yI2MnuDEcSzgm2Edo
qLfA==
MIME-Version: 1.0
Received: by 10.152.47.112 with SMTP id c16mr7519240lan.50.1352066728000; Sun,
04 Nov 2012 14:05:28 -0800 (PST)
Received: by 10.112.146.202 with HTTP; Sun, 4 Nov 2012 14:05:27 -0800 (PST)
Date: Sun, 4 Nov 2012 14:05:27 -0800
Message-ID: <CACZYdDgsCLYJdr0WEcrycuEZQOmgU9SZfaCumdGXyexPLG7...@mail.gmail.com>
Subject: Help with Scala parsing classes and JSON
From: Sean Rhea <sean.c.r...@gmail.com>
To: "scala-base@googlegroups.com" <scala-base@googlegroups.com>
Content-Type: multipart/alternative; boundary=bcaec554082608fd3d04cdb291ba
--bcaec554082608fd3d04cdb291ba
Content-Type: text/plain; charset=ISO-8859-1
scala.util.parsing.json.JSON isn't thread safe, according to the following
link:
https://issues.scala-lang.org/browse/SI-4929
In a comment in that same thread, Jason Zaugg suggests instead creating a
separate scala.util.parsing.json.Parser for each thread and using that. Can
anyone reply with a code example that implements that suggestion? I can't
figure out how to knit all of the required pieces together. (Perhaps I'm
missing some subtle difference between StdTokenParsers and
StandardTokenParsers?)
Thanks,
Sean
--
I lived for a time in New York City. Just a little bit north of that urban
prison, I knew of a beautiful flat spot among the trees, just big enough
for me to lie down. It was easy to get to from the confines of my
apartment, and I slept there often, alone under the stars. It can be done.
--Mike Clelland
--bcaec554082608fd3d04cdb291ba
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
<div><div>scala.util.parsing.json.JSON isn't thread safe, according to =
the following link:</div><div><br></div><div><a href=3D"https://issues.scal=
a-lang.org/browse/SI-4929">https://issues.scala-lang.org/browse/SI-4929</a>=
</div>
<div><br></div><div>In a comment in that same thread, Jason Zaugg suggests =
instead creating a separate scala.util.parsing.json.Parser for each thread =
and using that. Can anyone reply with a code example that implements that s=
uggestion? I can't figure out how to knit all of the required pieces to=
gether. (Perhaps I'm missing some subtle difference between StdTokenPar=
sers and StandardTokenParsers?)</div>
</div><div><br></div><div>Thanks,</div><div>Sean</div><div>--=A0</div>I liv=
ed for a time in New York City. Just a little bit north of that urban priso=
n, I knew of a beautiful flat spot among the trees, just big enough for me =
to lie down. It was easy to get to from the confines of my apartment, and I=
slept there often, alone under the stars. It can be done. --Mike Clelland<=
br>
--bcaec554082608fd3d04cdb291ba--