jagrosh / jagrosh/JagTag

Async Parsing

Open
#2 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
Java
Stars
47
Forks
8
PR merge metrics
No merged PRs in 30d

Description

Right now, a single Parser can only parse in a synchronized format, and the Parser only has one Environment that is used during parsing. On the other hand, all Methods are immutable and would work perfectly fine in an asynchronous environment.

In most cases, JagTag is used just for text processing, and thus async processing is not needed (and would mean more overhead to create additional Environments). However, JagTag is perfectly viable for actions beyond text processing that may take more time (web requests, image manipulation), and forcing creation of a new Parser for each parse is unnecessary.

Allowing asynchronous parsing would mean re-using the Parser but doing one of the following:
* Supplying an Environment to be used during parsing
* Allowing an empty Environment to be created when parsing begins
* Utilizing some sort of 'Action' template that allows 'building' the Environment and then parsing using it

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by inspecting the Parser, Environment, and Method APIs to understand how parsing state is created and shared. Clarify which asynchronous lifecycle is required and define completion criteria around safely reusing one Parser for concurrent parses without sharing mutable Environment state.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
compilers
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.