Perl 6 - the future is here, just unevenly distributed

IRC log for #marpa, 2017-01-09

| Channels | #marpa index | Today | | Search | Google Search | Plain-Text | summary

All times shown according to UTC.

Time Nick Message
00:22 idiosyncrat_ joined #marpa
01:12 Cheery joined #marpa
01:23 ernimril joined #marpa
01:30 beaugunderson_ joined #marpa
02:30 aredridel joined #marpa
02:51 ilbot3 joined #marpa
02:51 Topic for #marpa is now Start here: http://savage.net.au/Marpa.html - Pastebin: http://scsys.co.uk:8002/marpa - Jeffrey's Marpa site: http://jeffreykegler.github.io/Marpa-web-site/ - IRC log: http://irclog.perlgeek.de/marpa/today
03:13 jdurand joined #marpa
04:43 jdurand Jeffrey, nevermind my question, I think I bypassed its need with an algorithmic trick
07:10 idiosyncrat_ judrand: Glad the problem is solved.  I apologize, but I missed the question in backlogging.
07:12 idiosyncrat_ re "Is it possible to ask what would be the expected terminals /if/ an alternative would be pushed ?"
07:14 idiosyncrat_ Short answer is no.  Depending, I'd consider pre-analysis of the grammar.  In the general case, that's prohibitively expensive, but it might not be so with yours.
12:04 sirdancealot joined #marpa
12:56 VsyachePuz joined #marpa
19:08 jdurand joined #marpa
19:09 jdurand Jeffrey - no pb - I have another question:
19:09 jdurand Suppose that two threads are creating a recognizer based on a common grammar
19:10 jdurand Now they both want to have grammar events - since grammar events are marpa_g_event() result, i.e. the argument is a Marpa_Grammar structure - this mean that the two reocgnizers cannot run in parallel if we want to have distinct events (?)
19:19 sirdancealot joined #marpa
19:37 idiosyncrat_ jdurand: it is not thread-safe to share a common grammar.
19:39 idiosyncrat_ Recognizers sharing a common grammar share several structures, in particular error handling.
19:40 idiosyncrat_ What you *can* do, is create two grammars which are exactly the same.
19:40 idiosyncrat_ That is, which have the same symbols, rules, etc., etc.
19:40 idiosyncrat_ For the purpose of threads, these will be two distinct grammars.
19:42 idiosyncrat_ I've toyed with the idea of allowing cloning of grammars, but grammar creation from scratch is fast, so it's not clear there is in fact any advantage to cloning.
19:42 idiosyncrat_ Hope this helps!
20:46 sirdancealot joined #marpa
23:52 choroba joined #marpa

| Channels | #marpa index | Today | | Search | Google Search | Plain-Text | summary