Editing
Portal:HPC - High Performance Computing
(section)
Jump to navigation
Jump to search
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
=== Inline C, FFI, XS, and hybrid Perl/C HPC === Perl has several ways to connect to compiled code. These include XS, Inline::C, FFI::Platypus, and generated bindings through `Alien::` distributions. This matters for HPC because many high-performance libraries are written in C, C++, or Fortran. Hybrid Perl/C programming is often more realistic than trying to write every performance-sensitive kernel directly in Perl. A common design is: * write the high-level workflow in Perl; * represent large arrays with PDL; * write the hot loop in C, C++, Fortran, or OpenMP; * call the compiled routine from Perl; * use Perl for input, output, validation, plotting, and reporting. This model preserves Perl’s strengths while avoiding its performance weaknesses. It also allows Perl to make use of mature scientific libraries rather than competing with them. A 2024 paper on component-based bioinformatics with Perl argues that Perl can assemble applications from existing components using object orientation, PDL, Alien modules, FFI, Inline, and OpenMP.<ref>Christos Argyropoulos, “Enhancing non-Perl bioinformatic applications with Perl: Building novel, component based applications using Object Orientation, PDL, Alien, FFI, Inline and OpenMP,” arXiv, https://arxiv.org/abs/2406.10271, accessed July 3, 2026.</ref> This is a good description of Perl’s realistic HPC value: composition, wrapping, orchestration, and integration.
Summary:
Please note that all contributions to Perl Guilds - Getting Medieval with Perl may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
Perl Guilds - Getting Medieval with Perl:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Navigation menu
Personal tools
Not logged in
Talk
Contributions
Log in
Namespaces
Page
Discussion
English
Views
Read
Edit
Edit source
View history
More
Search
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Special pages
Tools
What links here
Related changes
Page information