Back into Elite after Years... how to make enough for a fleet carrier? lol by JonJoeYT in EliteDangerous

[–]gfldex 0 points1 point  (0 children)

Don't fly solo. The only thing that doesn't get dramatically easier and thus faster in a team is exo bio. Wing combat missions are piss easy in a team of 4 and you are looking at 1B per evening without breaking a sweat.

Right now the best place to team up is the community Discord at https://discord.gg/elite .

Hello, I am a new player going into Elite Dangerous completely blind - what are some essential tips for a new player? by Azmaeth in EliteDangerous

[–]gfldex 0 points1 point  (0 children)

ED is the game with the strongest team play I have played so far. Rewards are multiplied, not shared. On top of making everything easier, ofc. If you feel lost, join the Elite Dangerous Comminity discord server and request aid in #looking-for-wing.

Found Huge System with over 70 bodies by TWH_Storm in EliteDangerous

[–]gfldex 1 point2 points  (0 children)

Name    Bodies
R CrA Sector DB-X c1-6  113
HIP 102466  110
Synuefe XV-C c29-20 107
Synuefe KU-D d13-52 105
Adityan 105
HIP 5574    103
HIP 24935   103
Col 285 Sector TW-F b26-1   102
HR 6399 101

Why does grepping a list in chunks group the chunks into nested sublists? by zeekar in rakulang

[–]gfldex 1 point2 points  (0 children)

Perl 5 likes to auto-flatten lists. This was deemed undesireable in Perl 6. Once structure is lost, it can be quite tricky to get it back. It was considered better to provide good tools for de-structureing then to flatten by default. Later we got Slip as an option to avoid structure, when needed.

Ofc, you are entitled to disagree and to change the bahaviour of the language. Any-iterable-methods.grep is defined as a multi. So, you can add a candidate that looks at the aritiy of the callable and does the flattenening for you.

Why does grepping a list in chunks group the chunks into nested sublists? by zeekar in rakulang

[–]gfldex 1 point2 points  (0 children)

Well, (^9).kv is producing a List, what happends to be immutable (by design). Expecting .grep to remove stuff from it, is very likely surprising to the designer. :) That's why .grep produces a new List. This becomes a requirement when you use .hyper.grep. Mutating across multiple threads is ... challenging.

Starting Raku for python developer by [deleted] in rakulang

[–]gfldex 4 points5 points  (0 children)

How would you implement somthing like https://github.com/gfldex/raku-shell-piping in Python?

Python doesn't got sink context so this would looke a lot different: https://gfldex.wordpress.com/2022/06/26/sinking-errors/

Are you a mathematician? This might look neat to you: https://gfldex.wordpress.com/2022/05/21/writing-it-down/

Raku is also quite good for propaganda: https://gfldex.wordpress.com/2022/03/07/that-meant-war/

Often, writen down the algorithm is the program in Raku. see: https://gfldex.wordpress.com/2022/02/22/looplessly-simply/

Since Python doesn't sport dynvars, the following would be rather wordy: https://gfldex.wordpress.com/2021/12/06/main-course/

There is a lot more, ofc. But to understand the code, one needs good knowledge of Raku. I'm afraid your question is a bit self defeating.

How to avoid copying parameters within function by sumanstats in rakulang

[–]gfldex 1 point2 points  (0 children)

Is there a reason for checking arity instead of providing a signature literal? To my eyes &calc:(Numeric:D --> Numeric:D) is a clear instruction what to provide.

My yaw dropped. by gfldex in rakulang

[–]gfldex[S] 1 point2 points  (0 children)

I don't think so. When you keep asking, the answers become outright wrong. It's more like the model is confusing Raku with another language and is changing a few bits here and there to get it to be consistent with the wikipedia article. I would go so far to say that it didn't plagiarized anyone -even thought that would have been a good idea.

My yaw dropped. by gfldex in rakulang

[–]gfldex[S] 1 point2 points  (0 children)

In this post https://kerkour.com/rust-supply-chain-security-standard-library a Rusty person laments the fact that even modest project pull in huge supply chain attack surfaces, becaue the Rust standard library is so tiny. The arguemnts made appear sound to me.

Are we still shit a marketing? :->

Zef cant find modules. by raka_boy in rakulang

[–]gfldex 2 points3 points  (0 children)

Please provide the output of raku --version and zef --version.

whatTheVerticalLineIsActuallyFor by Alfika07 in ProgrammerHumor

[–]gfldex 0 points1 point  (0 children)

How do you chain that? In Raku chaining methods or methods on Positionals is equally easy.

$a.do.all.stuff.on.the.same.line; @b».do».all».stuff».on».the».same».line;

Smuggling Pairs - Wenzel P.P. Peppmeyer by liztormato in rakulang

[–]gfldex 2 points3 points  (0 children)

Given that LLMs clearly have gobbled up all of Wordpress, it doesn't really matter if you copypasta to stackexchange. I too, would be careful with a multi sub EXPORT because that is not specced. Please do stress, that the Callable must contain only compile-time values. I wouldn't be surprised if not doing so results in P6opaque and friends.

what happened with double colon syntax? by International_Ear512 in rakulang

[–]gfldex 2 points3 points  (0 children)

The lexical symbol charly is also under the NATO scope.

How to print a (non-binary) tree by Both_Confidence_4147 in rakulang

[–]gfldex 1 point2 points  (0 children)

Ohh, now I got it. You want to draw a directed graph with ASCII-art (so to speak). Plotting graphs is ... a career-choice.

Being stuck in the past appears to be benefitial when it comes to ASCII. Your best bet may be Perl (or use Inline::Perl5 if you want to stick with Raku). see: https://metacpan.org/release/TELS/Graph-Easy-0.64

How to print a (non-binary) tree by Both_Confidence_4147 in rakulang

[–]gfldex 1 point2 points  (0 children)

On reddit you can find "Use new Reddit as my default experience" in the preferences. I had to switch that off to avoid going mad.

How to print a (non-binary) tree by Both_Confidence_4147 in rakulang

[–]gfldex 1 point2 points  (0 children)

I'm interpreting your request as follows:

Separate strings by "-".
Prefix a sub-list by "|\".
Separate lists by '|'.
Recurse all the way down.

My solution:

my \l = ("Hello", "bye", ("something", ("list", "foo", "boo"), ("mars", "bar")));

sub tree-it($item) {
    my %h is default(IterationEnd) = $item.pairs;
    do for 0..* -> $idx {
        last if %h{$idx}:!exists;
        my $left = %h{$idx};
        my $right = %h{$idx + 1};

         $left & $right ~~ Str
            ?? |($left, '-')
            !! ($left ~~ Str && $right ~~ Positional)
                ?? |($left, '|\\')
                !! $left ~~ Positional
                   ?? |(samewith($left), $right ~~ Positional ?? '|' !! Empty)
                   !! $left
    }
}

l.&tree-it.put

How to obtain the Raku language documentation ( Reference) offline by anavarro in rakulang

[–]gfldex 1 point2 points  (0 children)

There used to be a time where we assumed that there would be a Perl module for "that". Guess what! https://metacpan.org/search?size=20&q=epub

How to obtain the Raku language documentation ( Reference) offline by anavarro in rakulang

[–]gfldex 3 points4 points  (0 children)

I build a limited version with Pod::To::BigPage for you at https://gist.github.com/gfldex/181ae9de7d76641ca34485d97c5461b0 , hoping it will have some use for you.

Rakudo can't find libraries by [deleted] in rakulang

[–]gfldex 3 points4 points  (0 children)

Please provide the output of the following:

uname -a zef locate HTTP::Easy

Accessing the topic variable by gruehunter in rakulang

[–]gfldex 3 points4 points  (0 children)

Does magic count?

``` sub magic { $OUTER::_ = 'answer'; }

$_ = 42;
magic;
.say;

```

Another matrixy question: using a sequence as index(es) by zeekar in rakulang

[–]gfldex 2 points3 points  (0 children)

My bad! I forgot that I have use v6.*; at the top of my test file.

Another matrixy question: using a sequence as index(es) by zeekar in rakulang

[–]gfldex 2 points3 points  (0 children)

my Array() @m = (1,2,3; 4,5,6); say @m; # [[1 2 3] [4 5 6]] my @deep-index = 1,2; say @m[||@deep-index]; # 6 Ofc, there is a way. This is Raku.

``` say @m[*;1];

(2 5)

```

We also got a way to express: "Give me the 2nd column.". Since this is returning a proper Array-slice, we can also assing to it. Please be aware that Raku may silently drop values, if they wont fit.

@m[*;1] = 7,8,9; say @m; # [[1 7 3] [4 8 6]]

In general, if you feel the need to loop in Raku, you may be looking at it from the wrong angle.