-
Notifications
You must be signed in to change notification settings - Fork 42
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
src/Perl6/Compiler.nqp: Show "Star" in the version output #198
base: master
Are you sure you want to change the base?
Conversation
What do you think? Can I merge those quick&dirty additions to make clear it's a "Star" release, people use? |
I'm not sure this will help avoid confusion, but instead drive more rakudo tickets to r* - І think if we can transfer tickets between repos that helps more. Also: there's a star channel? |
#raku-star on Libera.chat |
“Transferring issues” works for someone, who has proper permissions on both involved GitHub repos… as long as we have our repos and CI’s on this platform 😊
Nevertheless, from some last posted issues, I want to add more clarification what Star is today… and what not. Actually, making clear it’s just Raku + some modules right now.
|
@lizmat - do you plan to "review" and / or comment on this pull? |
I don't like this. The rakudo itself is not different between star and plain. This change will add to the confusion if the raku(do) executable reports itself as star. Star is a bundle of modules, nothing more nothing less. You would have essentially the same result with a rakudo installed via other means and |
I would not be against modifying the raku version output. But I would be against modifying I was more thinking about a text file somewhere that would be read for the information to be added to the "Rakudo(tm)" string, so that e.g. rakubrew could also use that. Something that would be added around line 165. And that Rakudo Star would add that file then, with the content "Star". Hope that made sense? |
Thanks. Both do make sense for me :)
Thanks & regards |
So, "Star" is unneeded and can be discontinued? |
Some answers: As file name, I would suggest "SYNDICATION". Please suggest a file location: I think you have a better idea for that than I can have atm. The file content would be inserted verbatim.
Yes, with a space inbetween.
I don't know yet. But this would put the burden of maintaining compatibility with the Raku Core team, rather than with each syndication. |
No! That's not what I wanted to say! I believe there is a place for the Star bundle. That's also evident from the stable user base.
Just the rakudo executable itself in the Star bundle is not different to any other rakudo executable. And when it's not different it shouldn't say it's different.
…On January 7, 2024 4:15:36 PM GMT+01:00, Anton Oks ***@***.***> wrote:
> I don't like this. The rakudo itself is not different between star and plain. This change will add to the confusion if the raku(do) executable reports itself as star. Star is a bundle of modules, nothing more nothing less. You would have essentially the same result with a rakudo installed via other means and `zef install`-ing the respective set of modules.
So, "Star" is unneeded and can be discontinued?
--
Reply to this email directly or view it on GitHub:
#198 (comment)
You are receiving this because you commented.
Message ID: ***@***.***>
|
They may be the same, but the originated from a different "source". I think there's value in being able to tell that if you run |
Ok, thanks. And sorry, I misunderstood it then...
Well, the "[official Star] rakudo executable" is (currently) build (on GitHub via "Actions") from the same source code, see "NQP, MoarVM and Raku release git tags", as "Raku core", that's true, but...
Anyhow, all this may be too much of unneeded details for this pull request anyhow... |
Thanks for your suggestion.
Need to think about this. Too many choices and "building Raku ways" to consider...
If this has to be done in "Compiler.nqp", do I need to use "nqp", or can it be done in Perl5 and/or Raku code there?
|
On 13 Jan 2024, at 16:50, Anton Oks ***@***.***> wrote:
If this has to be done in "Compiler.nqp", do I need to use "nqp", or can it be done in Perl5 and/or Raku code there?
It can just be added to the code in Compiler.nqp. As NQP code, which would mean an nqp::open, nqp::read and an nqp::close. Since the reading would be done at runtime, and only when someone does -v, the file location would need to be connected to *that* installation of Rakudo.
|
Can NQP also deal with system / shell variables, so (at least) reading them? |
Ok, think I found an example. So, this does work: |
I'd write |
Before I start something, which will dead-end again... would it be "ok" for you if I go for an environment / shell variable instead of a ("SYNDICATION") file for this change? So, checking if an (to be defined) environment var is set and if so, using its value? For an environment variable, how about "RAKUDO_FLAVOR" or "RAKUDO_EDITION"? Would one of those make sense for you? |
Is this statement outdated / wrong then... or is it all about "personal gusto"? |
I'm somehow confused due to your explanation above... and rakudo/rakudo#5516. What you say, is, So Due to doc's or "courses" this sounds different to me!? Understanding, the referred documents are old and maybe outdated... it there something recent | actual, which describes the rakudo "compile time" and "run time" stuff? |
Right
Hope that helps! |
As I wrote before, I would go with
I did squeeze my head and also looked around in current Windows and UBUNTU (Star) installations... and found only one file, which may have something similar in mind: So, if you don't have a better file location on your mind by now, I would go with Hope, you are ok with those suggestions? |
+1 |
references: #5516 rakudo/star#198
Add "Star" in the various raku version outputs...
So, instead now:
Welcome to Rakudo v2023.12
something like:
Welcome to Rakudo Star v2023.12
will be shown in
raku -v
(and similar commands)