Better HN
topnewbestaskshowjobs
Log inSign up

p6steve

6 karma · joined Apr 21, 2020 (6y ago) · 13 submissions

Submissions

comment 3y ago · link · parent

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/

comment 4y ago · link · parent

in Raku, this is:

class A {

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

    method !foo {}     #private
    method  foz {}     #public
}

3.

Raku and Rust: A Romance?(p6steve.wordpress.com ↗)

3 points · by p6steve · 4y ago · discuss

comment 4y ago · link · parent

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? ~p6steve@furnival.net

comment 5y ago · link · parent

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...

comment 5y ago · link · parent

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.

comment 5y ago · link · parent

typing, roles/inheritance and multi dispatch together offer a very clean coding model that cuts through the usual if-then-else wool

comment 5y ago · link · parent

great question @msvan - raku has many ... for me the unique genius of raku is to have stolen all of the best parts of type system, OO, grammars & regex, functional and procedural coding and jammed them into one smoothly integrated syntax

comment 5y ago · link · parent

'use Inline::XXX;' gives raku coders access to Perl5 (CPAN) and python modules

comment 6y ago · link · parent

This is the natural result of building a publicly funded empire of literally hundreds of ex-perl hackers in a room and telling them (i) justify your job and (ii) you are not allowed to do anything different because the BBC must not compete with private sector websites. Looking forward to the next iteration in raku using My::Cro.

11.

Raku Objects: Confusing or What?(p6steve.com ↗)

3 points · by p6steve · 6y ago · discuss

comment 6y ago · link · parent

this works now x for input and output ... the challenge for this kind of thing in bare code is that you need a LOT of namespace ... .oO maybe override the dot?

comment 6y ago · link · parent

this is also important - but imo, and in practice from perl5, the Units library experience is a lot richer if you can do both - especially for entry level programmers such as high school students - more on this to come in v2