HackerTrans
TopNewTrendsCommentsPastAskShowJobs

p6steve

no profile record

Submissions

Raku and Rust: A Romance?

p6steve.wordpress.com
3 points·by p6steve·4 jaar geleden·0 comments

comments

p6steve
·3 jaar geleden·discuss
I really like sigils for several reasons and I do miss them when in non sigil languages - imo raku made two big improvements over perl that is to avoid changing the sigil on accessing an item and to have an unsigilled option for people who don't like them https://rakujourney.wordpress.com/2022/12/24/on-sigils/
p6steve
·4 jaar geleden·discuss
in Raku, this is:

class A {

    has $!bar;    #private
    has $.baz;    #public (with autogenerated accessors)

    method !foo {}     #private
    method  foz {}     #public
}
p6steve
·4 jaar geleden·discuss
Hi @ritchie46 - I have just written [raku Dan](https://github.com/p6steve/raku-Dan) as a way to scratch the "data analytics" itch in a new way -- my next step is to write Dan::Polars as a polars binding via (eg.) raku NativeCall. Can you point me to a good recipe for success? [email protected]
p6steve
·5 jaar geleden·discuss
A single binary dependency may be a better fit for one project as you outline, but I would make the wider case for a common core language that provides a DSL toolkit with a recursive descent style Grammar capability. This helps to build critical mass across multiple DSLs to maintain and improve a secure code base. In turn, DSL authors get a more productive development environment. Raku embeds Grammar support for DSLs and will soon have AST introspection for "Slang" authors to reach in and build elements directly...
p6steve
·5 jaar geleden·discuss
Yes, that’s precisely what I am trying to say. With FatRat (aka BigInt) by default then the casual programmer has to know to step explicitly into Num (eg by 1e-1 + 2e-1 which needs a bit of a scientist mindset) or will never benefit from all those lovely FPU transistors.
p6steve
·5 jaar geleden·discuss
'use Inline::XXX;' gives raku coders access to Perl5 (CPAN) and python modules