From: "hsbt (Hiroshi SHIBATA) via ruby-core" Date: 2024-02-09T06:30:59+00:00 Subject: [ruby-core:116639] [Ruby master Misc#20238] Use prism for mk_builtin_loader.rb Issue #20238 has been updated by hsbt (Hiroshi SHIBATA). Ex. System ruby didn't contain `Bundler` in `ruby` package in FreeBSD 13. `rubygem-bundler` is separated package from ruby. ``` [hsbt@freebsd13 /usr/home/hsbt]$ ruby -v -rrubygems -rbundler -e "puts Bundler::VERSION" ruby 3.1.4p223 (2023-03-30 revision 957bb7cb81) [amd64-freebsd13] :85:in `require': cannot load such file -- bundler (LoadError) from :85:in `require' ``` ERB is working fine. ``` [hsbt@freebsd13 /usr/home/hsbt]$ ruby -v -rerb -e "puts ERB" ruby 3.1.4p223 (2023-03-30 revision 957bb7cb81) [amd64-freebsd13] ERB ``` It means hard to use `bundler/inline` with `BASERUBY` for build toolchain in supported platform. ---------------------------------------- Misc #20238: Use prism for mk_builtin_loader.rb https://bugs.ruby-lang.org/issues/20238#change-106648 * Author: kddnewton (Kevin Newton) * Status: Open * Priority: Normal ---------------------------------------- I would like to propose that we use prism for mk_builtin_loader.rb. Right now the Ruby syntax that you can use in builtin classes is restricted to the base Ruby version (2.7). This means you can't use a lot of the nicer syntax that Ruby has shipped in the last couple of years. If we switch to using prism to parse the builtin files instead of using ripper, then we can always use the latest version of Ruby syntax. A pull request for this is here: https://github.com/kddnewton/ruby/pull/65. The approach for the PR is taken from how RJIT bindgen works. -- https://bugs.ruby-lang.org/ ______________________________________________ ruby-core mailing list -- ruby-core@ml.ruby-lang.org To unsubscribe send an email to ruby-core-leave@ml.ruby-lang.org ruby-core info -- https://ml.ruby-lang.org/mailman3/postorius/lists/ruby-core.ml.ruby-lang.org/