caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* Parallelized parsing
@ 2009-04-20 21:15 Jon Harrop
  2009-04-20 21:35 ` [Caml-list] " Mike Lin
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: Jon Harrop @ 2009-04-20 21:15 UTC (permalink / raw)
  To: caml-list


I'm desperately trying to prepare for the imminent drop of a rock-solid 
multicore-friendly OCaml implementation and was wondering what work has been 
done on parallelized parsers and/or parallel-friendly grammars?

For example, Mathematica syntax for nested lists of integers looks like:

  {{{1, 2}}, {{3, 4}, {4, 5}}, ..}

and there are obvious divide-and-conquer approaches to lexing and parsing that 
grammar. You can recursively subdivide the string (e.g. memory mapped from a 
file) to build a tree of where the tokens { , and } appear by index and then 
recursively convert the tree into an AST.

What other grammars can be lexed and/or parsed efficiently in parallel?

-- 
Dr Jon Harrop, Flying Frog Consultancy Ltd.
http://www.ffconsultancy.com/?e


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2009-04-21 15:57 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-04-20 21:15 Parallelized parsing Jon Harrop
2009-04-20 21:35 ` [Caml-list] " Mike Lin
2009-04-21  0:52   ` Yitzhak Mandelbaum
2009-04-21 15:55     ` Jon Harrop
2009-04-21  1:44 ` Polymorphism problem Eliot Handelman
2009-04-21  8:50   ` [Caml-list] " Mauricio Fernandez
2009-04-21  7:19 ` [Caml-list] Parallelized parsing David MENTRE
2009-04-21 16:04   ` Jon Harrop

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 NNTP newsgroup(s).