Recent submissions

Comment · 14 days ago
Comment · 18 days ago
Oops, should read better, thanks for the nudge!
Comment · 18 days ago
Comment · 18 days ago
Comment · 3 months ago
Comment · 3 months ago
or

raku -e 'say "etbjxntqrdke".comb.map(*.succ).join'

Comment · 4 months ago
Comment · 4 months ago
Comment · 4 months ago
Comment · 7 months ago
The Rakudo implementation of the Raku Programming Language uses the MoarVM, which is pretty much a generic VM. All you need to do(TM) is write a grammar and associated actions to build the right bytecode out of the given Python source.
Comment · 8 months ago
It also goes from source code to AST:

  $ raku -e 'say Q|say "Hello World!"|.AST'
  RakuAST::StatementList.new(
    RakuAST::Statement::Expression.new(
      expression => RakuAST::Call::Name::WithoutParentheses.new(
        name => RakuAST::Name.from-identifier("say"),
        args => RakuAST::ArgList.new(
          RakuAST::QuotedString.new(
            segments   => (
              RakuAST::StrLiteral.new("Hello World!"),
            )
          )
        )
      )
    )
  )
Comment · 8 months ago
> In the raku example, what if the elements were to be multiplied?

$ raku -e 'say (0, 1, 2, * × * ... )[^10]' # for readability (0 1 2 2 4 8 32 256 8192 2097152)

$ raku -e 'say (0, 1, 2, * * ... *)[^10]' # for typeability (0 1 2 2 4 8 32 256 8192 2097152)

Comment · 9 months ago
Nothing stopping you from creating a L10N::LA module :-)

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton