-
Notifications
You must be signed in to change notification settings - Fork 44
Meeting: Disambiguation by Syntax Features #263
Comments
It seems that the overlap with 100% attendance for everyone so far will be Tuesday 4-5 PM (ET). Should we lock the doodle on that time? |
I’m a bit confused; the title suggests you want to meet about disambiguating parsing goal based on syntax - which we’ve established is not possible for 100% of cases - but the OP suggests that you want to meet about handling input from places without a filename, which is an orthogonal concern (because even if node tried to guess the parse goal, we’d need an explicit mechanism for the edge cases, at which point the guessing is just a UX enhancement on top of that) |
Either way, locking a doodle after a mere number of hours doesn’t seem to accommodate time zones; I’d suggest waiting at least 24 hours. |
Makes sense... Can you please join to bring context to the insights you outline and make it possible for those interested to ask questions or reframe the concerns. |
I’ll try, if time permits; can you clarify the intention of the meeting? |
I will work on a tentative agenda as soon as I shift back to modules time 👍 |
I closed the doodle for this Tuesday 4-5 pm (ET) and will be posting a link and tentative discussion points soon. Please feel free to reply with your suggestions, and if possible links to relevant forks, examples… etc. |
Zoom meeting id: 932-268-356 Link will be added right before. |
I updated the issue with the links |
This was a great meeting, thanks @SMotaal for organizing this. So the summary seems to be (and others please edit this comment as you see fit):
|
I'd note that using the We need to be careful about what we consider to be denoting ESM as well as whatever we use as a heuristic may change over time (since it is all guesswork). My main concern here is a personal desire to propose |
@devsnek Do you want to post your list of concerns somewhere (maybe a Google doc or something like that, rather than on this thread) of detecting CommonJS when it’s an entry point? I agree detecting it when it’s not an entry point is basically impossible (ditto for ESM, for that matter) but I feel like we should be able to figure out something for entry points. |
if you are 100% certain its the entry, you can try building up a fake lexical environment and tracking |
For the purposes of I think let's worry about Aside from writing an algorithm to parse the AST and definitively detect usage of CommonJS globals (as opposed to user-supplied ones) were there any other concerns? Because I'm sure we could write such a detection function. |
I think we can close this, right? |
This thread is intended to helps us schedule a meeting to address the following:
Over the past week, there has been a number of threads relating to the bottomline scenario of ending up with a source text (string or file) for which there is no explicit parsing goal (mode or type) due to limited out-of-band context from which the execution mode can be inferred.
This topic can be tricky to work through, because how much or how little out-of-band context depends on a lot of moving parts across the design of the module system, and deeply ties to historic and intuitive UX expectations as perceived by the wide range of Node.js users.
I'd like to think that these discussions emerge directly as a result of adding Phase 2-6 to deal with
--eval
andstdin
use cases.It may be useful to try to close the gaps by setting up a time slot for those interested to align our efforts and address any concerns that might lead to avoidable confusion down the road (imho).
When: Tuesday 4-5 pm (ET) — based on feedback
Where: link will be added
Tentative Agenda:
Identify cases related to
--eval
, stdin and current implementationsConsider possible workarounds to avoid parsing-based disambiguation
Narrow down (if any) when parsing will be needed
Compare and contrast parsing methods
Related Drafts:
A collated draft of related grammars
A collated draft of related patterns
My draft work for the parsing for source text disambiguation proposal
Meeting
Minutes
The text was updated successfully, but these errors were encountered: