HackerTrans
TopNewTrendsCommentsPastAskShowJobs

p6steve

no profile record

Submissions

Raku and Rust: A Romance?

p6steve.wordpress.com
3 points·by p6steve·4 yıl önce·0 comments

comments

p6steve
·3 yıl önce·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 yıl önce·discuss
in Raku, this is:

class A {

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

    method !foo {}     #private
    method  foz {}     #public
}
p6steve
·4 yıl önce·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 yıl önce·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...