Navigation Menu

Skip to content
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

The perl6 compiler chain is so brittle as to be unusable #2595

Closed
p6rt opened this issue Dec 29, 2011 · 4 comments
Closed

The perl6 compiler chain is so brittle as to be unusable #2595

p6rt opened this issue Dec 29, 2011 · 4 comments
Labels

Comments

@p6rt
Copy link

p6rt commented Dec 29, 2011

Migrated from rt.perl.org#107292 (status was 'rejected')

Searchable as RT107292$

@p6rt
Copy link
Author

p6rt commented Dec 29, 2011

From @cognominal

Trying to experiment with the compiler chain from the language (either
nqp or perl6) is impossible for the layman.
All my attempts have been failures and documenting them would be
futile at this point.
Too bad, because I think playing with it would be a good way to get a
feel of the internals which is a prerequisite
to become a contributor.

A simple example.

perl6 -e 'use Perl6​::Compiler;'
Could not find Perl6​::Compiler in any of​: lib,
/Users/stephanepayrard/.perl6/lib,
/Users/stephanepayrard/git/rakudo/install/lib/parrot/3.11.0-devel/languages/perl6/lib,
.
  in load_module at src/Perl6/ModuleLoader.pm​:99
  in load_module at src/Perl6/World.pm​:172
  in <anon> at src/Perl6/Grammar.pm​:712
  in <anon> at src/Perl6/Grammar.pm​:711
  in statement_control​:sym<use> at src/Perl6/Grammar.pm​:709
  in statement_control at src/Perl6/Grammar.pm​:588
  in statement at src/Perl6/Grammar.pm​:503
  in statementlist at src/Perl6/Grammar.pm​:490
  in comp_unit at src/Perl6/Grammar.pm​:458
  in TOP at src/Perl6/Grammar.pm​:36
$ perl6 -e 'BEGIN {  @​*INC.push​: <blib> };  use Perl6​::Compiler;'
get_attr_str() not implemented in class 'Undef'
  in load_module at src/Perl6/World.pm​:186
  in <anon> at src/Perl6/Grammar.pm​:712
  in <anon> at src/Perl6/Grammar.pm​:711
  in statement_control​:sym<use> at src/Perl6/Grammar.pm​:709
  in statement_control at src/Perl6/Grammar.pm​:588
  in statement at src/Perl6/Grammar.pm​:503
  in statementlist at src/Perl6/Grammar.pm​:490
  in comp_unit at src/Perl6/Grammar.pm​:458
  in TOP at src/Perl6/Grammar.pm​:36
$

--
cognominal stef

@p6rt
Copy link
Author

p6rt commented Jan 2, 2012

From @masak

On Thu Dec 29 15​:16​:20 2011, cognominal wrote​:

Trying to experiment with the compiler chain from the language (either
nqp or perl6) is impossible for the layman.
All my attempts have been failures and documenting them would be
futile at this point.
Too bad, because I think playing with it would be a good way to get a
feel of the internals which is a prerequisite
to become a contributor.

A simple example.

perl6 -e 'use Perl6​::Compiler;'
Could not find Perl6​::Compiler in any of​: lib,
/Users/stephanepayrard/.perl6/lib,
/Users/stephanepayrard/git/rakudo/install/lib/parrot/3.11.0-
devel/languages/perl6/lib,
.
� in load_module at src/Perl6/ModuleLoader.pm​:99
� in load_module at src/Perl6/World.pm​:172
� in <anon> at src/Perl6/Grammar.pm​:712
� in <anon> at src/Perl6/Grammar.pm​:711
� in statement_control​:sym<use> at src/Perl6/Grammar.pm​:709
� in statement_control at src/Perl6/Grammar.pm​:588
� in statement at src/Perl6/Grammar.pm​:503
� in statementlist at src/Perl6/Grammar.pm​:490
� in comp_unit at src/Perl6/Grammar.pm​:458
� in TOP at src/Perl6/Grammar.pm​:36
$ perl6 -e 'BEGIN { �@​*INC.push​: <blib> }; �use Perl6​::Compiler;'
get_attr_str() not implemented in class 'Undef'
� in load_module at src/Perl6/World.pm​:186
� in <anon> at src/Perl6/Grammar.pm​:712
� in <anon> at src/Perl6/Grammar.pm​:711
� in statement_control​:sym<use> at src/Perl6/Grammar.pm​:709
� in statement_control at src/Perl6/Grammar.pm​:588
� in statement at src/Perl6/Grammar.pm​:503
� in statementlist at src/Perl6/Grammar.pm​:490
� in comp_unit at src/Perl6/Grammar.pm​:458
� in TOP at src/Perl6/Grammar.pm​:36
$

Perl6​::Compiler is a Rakudo-only class; it isn't in the spec, and it's a
nqp file, so at the very least it would have to be loaded with
:lang<nqp>. Loading the .pbc files from blib/ won't do you much good
either, as the .pm files always are canonical.

Rejecting ticket.

@p6rt
Copy link
Author

p6rt commented Jan 2, 2012

The RT System itself - Status changed from 'new' to 'open'

@p6rt
Copy link
Author

p6rt commented Jan 2, 2012

@masak - Status changed from 'open' to 'rejected'

@p6rt p6rt closed this as completed Jan 2, 2012
@p6rt p6rt added the Bug label Jan 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant