-
Notifications
You must be signed in to change notification settings - Fork 26
Add a PPC for "-j" perlrun option #70
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
This proposes a new perlrun option flag that handles JSON input.
99% sure this could be implemented as a CPAN module. You could then alias something like
and use that instead. |
@leonerd Would |
I doubt it because source filters are extremely fragile and prone to breakage, and not a robust way to implement language-level things. |
I feel like that is missing the original intention of having JSON aware handling in the actual Perl runtime so we do not have to work with getting external modules into hard to get to systems where Perl is already prevalent. |
Sorry for jumping in with a suggestion out of the blue. Would you consider taking a look at the following module? https://metacpan.org/pod/ARGV::JSON
|
The source filter in this case just added a prefix and suffix to the supplied code, no different to what The only other way I see to do this on CPAN would be to hack on the |
I don't think https://metacpan.org/pod/ARGV::JSON is using a source filter, is it? It seems to work well. Does it do what @catouc wants? |
The source filter was referenced by the link in the comment I quoted, but got unlinked |
I see a different problem with what this PPC does, its not about the cmd line arg flag this PPC creates, but something else the PPC createds. This PPC "standardized" or "best-practices" or basically is writing a .pdf issued by IEEE Working Group 0x5065726C35 saying disk file So I believe, if CPAN's version.xs/version.tar.gz is already shipped by P5P in-core inside libperl.so.dll in a neutered way that miniperl.exe can use without a functioning EU::PXS.pm and without a functioning EU::MM.pm. I see little reason why a |
I don't see any reason why this PPC would permanently require JSON::PP if a faster parser became available in core in the future. |
@haarg you mean to say that software can be changed after somebody merges it? my word! |
He means the PPC shouldn't mention an implementation detail like that, it should describe only the behavior. |
If that is something we deeply care about we can remove the mention an replace it with "JSON parser in Perl". Using Just to reiterate the rejected ideas section of this proposal, the point is not to have to find a module on CPAN or a source filter. The point is to have this built-in so it is available in environments where installing stuff from the outside is tedious but Perl being ever present would alleviate this problem by offering nicer log parsing capabilities. If there's actual thoughts about the usability or feedback on how this feature itself could be improved that would be much appreciated :) |
This proposes a new perlrun option flag that handles JSON input.