Imagine my edge cases are something like an entire operating system or some high-performance parallel code or an attempt at strong AI. There are many kinds of code that would benefit greatly from general-purpose runtime optimization. Yes, I have such code.
Auto-parallelization/auto-threading for cpu bound algorithms, thats a worthy idea and aslong as there are no evals or the lexicals never leave the sub, auto-parallization should be possible automatically. Since Perl optrees can almost always be converted back to their original source code (except for constant folding and dead code elimination from "const" value perl subs), try to convert a Perl sub that that takes 1 @_ SV, copies it to a lexical (loosing magic and tied I believe in the process) SV, does a series of math operations against it using const numbers, and returns the new value in scalar context (thats 1 line of code). The CV is converted from being Perl bytecode to being an XSUB in machine code, and the C function is a call to 1 C function that makes a call to the LLVM VM to run precompiled to LLVM Bytecode LLVM Bytecode, or to the JIT machine code produced by LLVM. In Perl I guess how you try to optimize a sub would be
LLVM::compile(\&somePurePerlSub);
I presume the BioPerl/Biological Science sector folks, might throw you some grants if your successful.
I can supply my own time, as well as the time of my modest Perl team. I can supply coordination efforts and put together funding for qualified coders. I can even code. I'm not sure what patents you think we would need?
I included the patents just as an example. If you are one guy with a dream, and no resources, you have to do it yourself or convince someone to give you $ so you can do your dream as a day job.

I looked at the stuff you linked from David Mertens about the Tiny C compiler, but I'm not sure how it relates to what we're doing?

Thanks,
~ Will

It really doesn't, it just shows that others have had realistic ideas of plugging foreign code from "compilers" at runtime into perl.

In reply to Re^6: Perl 5 Optimizing Compiler, Part 4: LLVM Backend? by bulk88
in thread Perl 5 Optimizing Compiler, Part 4: LLVM Backend? by Will_the_Chill

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.