Author Topic: WebPerl | Run Perl in the browser  (Read 1293 times)

rcjordan

  • I'm consulting the authorities on the subject
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 16345
  • Debbie says...
    • View Profile
WebPerl | Run Perl in the browser
« on: October 21, 2018, 11:50:17 PM »

Brad

  • Inner Core
  • Hero Member
  • *
  • Posts: 4154
  • What, me worry?
    • View Profile
Re: WebPerl | Run Perl in the browser
« Reply #1 on: October 22, 2018, 10:00:47 AM »
The Perl Guys are baaack.

BoL

  • Inner Core
  • Hero Member
  • *
  • Posts: 1209
    • View Profile
Re: WebPerl | Run Perl in the browser
« Reply #2 on: October 22, 2018, 12:33:38 PM »
That'll make a lot of old schoolers happy

Played around a little bit of emscripten, it has the potential to be very powerful. They're tentative about enabling specific GPU stuff. Performance is meant to be great, plus AFAIK you get the benefit of obfuscating your client side code.

rcjordan

  • I'm consulting the authorities on the subject
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 16345
  • Debbie says...
    • View Profile
Re: WebPerl | Run Perl in the browser
« Reply #3 on: October 22, 2018, 04:37:04 PM »
>baaack

I'd be surprised if LM ever left. He used to dream in perl.

littleman

  • Administrator
  • Hero Member
  • *****
  • Posts: 6552
    • View Profile
Re: WebPerl | Run Perl in the browser
« Reply #4 on: October 22, 2018, 07:04:12 PM »
>I'd be surprised if LM ever left.

I've been flirting with PHP, Java & Python, but if I need to get something done fast I still go back to Perl.

...

If this was around 10 years ago I would have rewrote a lot of my tools to be strictly client side.  It sure would have been useful for all the data crunching I've done over the years.

ergophobe

  • Inner Core
  • Hero Member
  • *
  • Posts: 9293
    • View Profile
Re: WebPerl | Run Perl in the browser
« Reply #5 on: October 23, 2018, 01:11:49 AM »
I had no idea. I've never used PERL, so only vaguely interesting...

But a bit of looking, though and...

- PHP version - https://github.com/oraoto/pib
- PYthon scientific stack - https://github.com/iodide-project/pyodide
- Scheme (which was the language of instruction for a CS course I took... you gotta love parentheses) - https://github.com/google/schism

Full list - https://github.com/appcypher/awesome-wasm-langs

RE Python, there's this though from 2017 (which I assume is still correct):

Quote
To run python on WebAssembly you would have to compile the entire CPython executable, and every single dependency it has, into WebAssembly, then ship that giant executable with every page so you could then run Python code with it. You would then also most likely need a special library, which at some point someone will have to write or you'll have to write it yourself, to give Python a clean interface to the DOM. All of this together would be at absolute minimum 4.5 megabytes, which is absolutely unacceptably large for a frontend bundle.
WebAssembly is very cool techonology, but it's not going to deprecate Javascript because Javascript will be, at least for a very long time, the only scripting language that runs efficiently on the web, and also will always be the most well supported.
https://news.ycombinator.com/item?id=14107553

He used to dream in perl.

I remember dreams in Pascal way back when. I remember one in particular where I was trying to have a conversation and I would spin out a long, complex thought and then the person I was looking at would look back at me with an utter lack of comprehension because I had left out a semi-colon.