Will writing module in NQP (Not Quite Perl) speed up perl6 program?
Asked Answered
C

1

6

NQP was mainly designed to bootstrap the perl6 language, but I'm thinking whether it is possible to use it as optimization. I know that rakudo is not perfectly optimized yet, but I'm looking for a long term approach. Perl6 has some low level data types and some compiler and backend level ideas that could make this idea pointless.

Does writing NQP instead of perl6 make sense?

Congruent answered 8/10, 2015 at 18:42 Comment(0)
K
8

Long term there's no benefit to implementing your code in NQP.

Short term, you might get a speed boost, but the code is harder to implement and won't be as easy to target multiple backends.

Additionally, NQP isn't going to receive the same level of user-facing support that rakudo is. You should consider NQP more like internals; things may change from release to release that you're not expecting.

Kasten answered 9/10, 2015 at 17:26 Comment(1)
I wouldn't choose the term backends here - it should work with any of the several Rakudo backends, but not another Perl6 implementation, which would be more of a frontendDerouen

© 2022 - 2024 — McMap. All rights reserved.