Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
librasteve
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
30 ms
·
691.
▲
by
librasteve
3y ago
in a strange way I both agree and disagree with this: + I use raku a lot so it is very natural to embed raku code in a Rak CLI - I think that there a several benefits of the Rak tool that vanilla grep (or ripgrep) does not offer (eg. embedd
692.
▲
by
librasteve
3y ago
installing raku via rakubrew.org is quite painless tbh, it comes with zef, the standard raku package manager and then just ```zef install App::Rak```
693.
▲
Raku: Genius
(rakujourney.wordpress.com)
3 points
by
librasteve
3y ago
|
0 comments
694.
▲
Raku Conf 2023 Online Last Chance
(conf.raku.org)
4 points
by
librasteve
3y ago
|
1 comments
695.
▲
by
librasteve
3y ago
The annual raku conference 2023 is online this year. It's free. Sign up here.
696.
▲
by
librasteve
3y ago
ok - but raku has a reinvention of Numeric that is less esoteric, and more practical ... what you mention is that an Int isa Rat isa Real isa Complex isa Numeric ... and thus in Scheme or Lisp, then the Number Tower class model is one of su
697.
▲
by
librasteve
3y ago
and yet, raku is the first serious attempt to unify Int-Rat-Num-Complex types into a cooperative Numeric space --- which I think is a good design given its untyped default approach
698.
▲
by
librasteve
3y ago
Nearly, the docs say "To prevent the numerator and denominator from becoming pathologically large, the denominator is limited to 64 bit storage." ( https://docs.raku.org/type/Rat ) Please bear in mind that in r
699.
▲
by
librasteve
3y ago
I disagree that graceful degradation from Rat to Num (ie double) when Real numbers over- or under-flow is a misfeature. We could (and have) debate whether FatRat should be the default, but imo the right expectation for an untyped language s
700.
▲
by
librasteve
3y ago
I think that this is the crux of the story for raku ... if you want you language to apply a standard discipline, then use Python: if you are happy with your team developing a dialect that balances usability with discipline, then try Raku
701.
▲
by
librasteve
3y ago
I don't know if @hillelwayne is watching ... but the raku docs do explain how to use a Grammar to write a calculator https://docs.raku.org/syntax/Creating%20grammars
702.
▲
by
librasteve
3y ago
This post is focused on the lifecycle of the standard raku scalar variable with the $ sigil since it is the obvious inheritor of the perl $ variable which can also be seen in similar guise in places like Bash, PHP and SASS.
703.
▲
Raku: The Variable Lifecycle
(rakujourney.wordpress.com)
3 points
by
librasteve
3y ago
|
1 comments
704.
▲
by
librasteve
3y ago
I have greatly enjoyed raku for several years. Pros: can whip up a quick one-liner (raku -e instead of bash), then grow it to a CLI command (with no boilerplate to handle args, help), then refactor that to simple OO when it gets bigger (ins