Poster | Thread |
samo79
|  |
V8 javascript engine ported to PowerPC Posted on 9-Aug-2013 16:15:28
| | [ #1 ] |
|
|
 |
Elite Member  |
Joined: 13-Feb-2003 Posts: 3505
From: Italy, Perugia | | |
|
| |
Status: Offline |
|
|
lionstorm
|  |
Re: V8 javascript engine ported to PowerPC Posted on 10-Aug-2013 20:34:09
| | [ #2 ] |
|
|
 |
Super Member  |
Joined: 31-Jul-2003 Posts: 1591
From: the french side | | |
|
| |
Status: Offline |
|
|
QuBe
|  |
Re: V8 javascript engine ported to PowerPC Posted on 11-Aug-2013 13:58:15
| | [ #3 ] |
|
|
 |
Super Member  |
Joined: 3-Dec-2006 Posts: 1075
From: Dunes of Uridia | | |
|
| @samo79
What does this mean exactly?
Q!
"i am home" |
|
Status: Offline |
|
|
samo79
|  |
Re: V8 javascript engine ported to PowerPC Posted on 11-Aug-2013 15:21:46
| | [ #4 ] |
|
|
 |
Elite Member  |
Joined: 13-Feb-2003 Posts: 3505
From: Italy, Perugia | | |
|
| @QuBe
More or less it means now we might be able to get JIT support in Javascript also in our current WebKit browser that runs on PowerPC _________________ BACK FOR THE FUTURE
http://www.betatesting.it/backforthefuture
Sam440ep Flex 800 Mhz 1 GB Ram + AmigaOS 4.1 Update 6 AmigaOne XE G3 800 Mhz - 640 MB Ram - Radeon 9200 SE + AmigaOS 4.1 Update 6 |
|
Status: Offline |
|
|
virgolamobile
|  |
Re: V8 javascript engine ported to PowerPC Posted on 22-Jul-2015 13:35:17
| | [ #5 ] |
|
|
 |
Regular Member  |
Joined: 23-Feb-2004 Posts: 192
From: Somewhere in Northern Italy | | |
|
| |
Status: Offline |
|
|
PhantomInterrogative
|  |
Re: V8 javascript engine ported to PowerPC Posted on 22-Jul-2015 13:54:27
| | [ #6 ] |
|
|
 |
Cult Member  |
Joined: 10-Sep-2004 Posts: 810
From: The Interrogative Lair | | |
|
| @virgolamobile
Ask Fab or Kas1e. MorphOS and AmigaOS4.1 would both greatly benefit from a JIT javascript engine.
Quote:
_________________ I sold my SAM460ex lite... waiting for money to buy a Raspberry Pi... or a Classic A1000 with Buffee... or an A1222... and OS4.3 FE update 11 |
|
Status: Offline |
|
|
Hypex
 |  |
Re: V8 javascript engine ported to PowerPC Posted on 22-Jul-2015 14:38:53
| | [ #7 ] |
|
|
 |
Elite Member  |
Joined: 6-May-2007 Posts: 11351
From: Greensborough, Australia | | |
|
| @PhantomInterrogative
So would Safari! 
But Amiga JIT is more likely. |
|
Status: Offline |
|
|
Leo
|  |
Re: V8 javascript engine ported to PowerPC Posted on 22-Jul-2015 14:49:30
| | [ #8 ] |
|
|
 |
Super Member  |
Joined: 21-Aug-2003 Posts: 1597
From: Unknown | | |
|
| If I remember correctly, bigfoot was already working on a JIT for Odissey. No news since several months though. Last edited by Leo on 22-Jul-2015 at 02:56 PM.
_________________ http://www.warpdesign.fr/ |
|
Status: Offline |
|
|
hotrod
|  |
Re: V8 javascript engine ported to PowerPC Posted on 22-Jul-2015 14:57:21
| | [ #9 ] |
|
|
 |
Elite Member  |
Joined: 11-Mar-2003 Posts: 3005
From: Stockholm, Sweden | | |
|
| I really wish for this. Anyone tried Odyssey under AROS with and without JIT javascript? Big difference.
I'm really curious of how big the difference would be on the A1 XE since Odyssey is horribly slow on heavy websites. It would be great no matter what hardware though. |
|
Status: Offline |
|
|
lionstorm
|  |
Re: V8 javascript engine ported to PowerPC Posted on 22-Jul-2015 19:08:36
| | [ #10 ] |
|
|
 |
Super Member  |
Joined: 31-Jul-2003 Posts: 1591
From: the french side | | |
|
| @hotrod
Quote:
hotrod wrote: I really wish for this. Anyone tried Odyssey under AROS with and without JIT javascript? Big difference.
I'm really curious of how big the difference would be on the A1 XE since Odyssey is horribly slow on heavy websites. It would be great no matter what hardware though. |
+1 |
|
Status: Offline |
|
|
toRus
|  |
Re: V8 javascript engine ported to PowerPC Posted on 22-Jul-2015 20:27:50
| | [ #11 ] |
|
|
 |
Regular Member  |
Joined: 10-Mar-2003 Posts: 210
From: Unknown | | |
|
| Cool. Now our web habbits can be tracked even more efficiently.
|
|
Status: Offline |
|
|
klx300r
|  |
Re: V8 javascript engine ported to PowerPC Posted on 23-Jul-2015 6:59:44
| | [ #12 ] |
|
|
 |
Elite Member  |
Joined: 4-Mar-2008 Posts: 3857
From: Toronto, Canada | | |
|
| Quote:
by toRus on 22-Jul-2015 16:27:50 Cool. Now our web habbits can be tracked even more efficiently. |
_________________ ____________________________ c64-2sids, A1000, A1200T-060@50(finally working!),A4000-CSMKIII ! My Master Miggies- Amiga 1000 & AmigaOne X1000 ! mancave-ramblings X1000 I BELIEVE  |
|
Status: Offline |
|
|
virgolamobile
|  |
Re: V8 javascript engine ported to PowerPC Posted on 12-Sep-2016 11:22:08
| | [ #13 ] |
|
|
 |
Regular Member  |
Joined: 23-Feb-2004 Posts: 192
From: Somewhere in Northern Italy | | |
|
| |
Status: Offline |
|
|
Hypex
 |  |
Re: V8 javascript engine ported to PowerPC Posted on 12-Sep-2016 15:03:17
| | [ #14 ] |
|
|
 |
Elite Member  |
Joined: 6-May-2007 Posts: 11351
From: Greensborough, Australia | | |
|
| @All
While this is taking a while to reach us. Or indeed any browser on PPC. I had my own idea for a JS JIT. It would use a little overhead and some resources of what is already there. My idea is to convert JS to C or indeed C++ and then compile the code into a native executable and run it! 
See, JS is very similar to C, using the same annoying semi-colons and such. So in essence it would be similar to PortablE. It would translate text from one language to another. Then compile it. And would have support for includes with support libs which would be native and likely need to hook into browser internals through an API.
Of course being able to compile JS directly to an executable would be better if such a compiler exists. Compiling to RAM and executing from there would be a logical choice. You of course would notice my idea requires a compiler to be installed which usually implies an SDK. A customised compiler optimised for use by the browser and included in its files would be best here.  Last edited by Hypex on 12-Sep-2016 at 03:05 PM.
|
|
Status: Offline |
|
|
Jose
|  |
Re: V8 javascript engine ported to PowerPC Posted on 13-Sep-2016 11:48:17
| | [ #15 ] |
|
|
 |
Super Member  |
Joined: 10-Mar-2003 Posts: 1001
From: Unknown | | |
|
| @Hypex
What about security ? Wouldn't compiling it to C/C++ open up a whole can of worms (or snakes...:)) security wise ? I'm not into browser coding or anything like that but that's the first thought that came to mind... _________________
 José |
|
Status: Offline |
|
|
Samurai_Crow
|  |
Re: V8 javascript engine ported to PowerPC Posted on 13-Sep-2016 15:03:04
| | [ #16 ] |
|
|
 |
Elite Member  |
Joined: 18-Jan-2003 Posts: 2320
From: Minnesota, USA | | |
|
| @Jose
Quote:
Jose wrote: @Hypex
What about security ? Wouldn't compiling it to C/C++ open up a whole can of worms (or snakes...:)) security wise ? I'm not into browser coding or anything like that but that's the first thought that came to mind... |
Only some of the standard libraries and buggy code will generate buffer overrun-style security problems.
In the future there is a statically compiling supplement to JavaScript called WebAssembly. You can compile C/C++ code to WebAssembly more efficiently than to JavaScript because JS is a dynamically-typed scripting language while WebAssembly is a statically-typed bytecode.
If you're not familiar with the issues associated with dynamic typing, I can describe them in more detail in another thread. |
|
Status: Offline |
|
|
Hypex
 |  |
Re: V8 javascript engine ported to PowerPC Posted on 13-Sep-2016 15:18:25
| | [ #17 ] |
|
|
 |
Elite Member  |
Joined: 6-May-2007 Posts: 11351
From: Greensborough, Australia | | |
|
| @Jose
Well the code would have to be restricted. Libs would also need to be limited. And sandboxed as much as possible in a native application. Especially on AmigaOS where most apps can share the memory. But compiling any code, even in a JIT to native code, and running it on the host machine directly provides a risk. |
|
Status: Offline |
|
|
Tellurium
|  |
Re: V8 javascript engine ported to PowerPC Posted on 13-Sep-2016 20:55:38
| | [ #18 ] |
|
|
 |
Member  |
Joined: 19-Oct-2009 Posts: 15
From: London | | |
|
| @Hypex
And translating a dynamic language to a static one would achieve the correct behaviour? you cannot map prototypal chains to c structs, nor add/remove properties at runtime. Also, Javascript internals follow well defined standards. It's not IE 5 time where anyone could bolt a custom js-like implementation and call it a day.
Sorry for being direct. I imagine you are doing an amazing job anyway |
|
Status: Offline |
|
|
Nibunnoichi
|  |
Re: V8 javascript engine ported to PowerPC Posted on 14-Sep-2016 6:15:37
| | [ #19 ] |
|
|
 |
Cult Member  |
Joined: 18-Nov-2004 Posts: 972
From: Roma + Milano, Italia | | |
|
| @Samurai_Crow
Quote:
Samurai_Crow wrote: because JS is a dynamically-typed scripting language while WebAssembly is a statically-typed bytecode.
|
Meanwhile you can have a look at TypeScript
_________________ Proud Amigan since 1987 Owner of various Commodore and a SAM440ep\OS4.1FE See them on http://retro.furinkan.org/ |
|
Status: Offline |
|
|
Hypex
 |  |
Re: V8 javascript engine ported to PowerPC Posted on 16-Sep-2016 16:32:40
| | [ #20 ] |
|
|
 |
Elite Member  |
Joined: 6-May-2007 Posts: 11351
From: Greensborough, Australia | | |
|
| @Tellurium
Quote:
And translating a dynamic language to a static one would achieve the correct behaviour? |
It is if you want an easy way to translate from script to native code. You just implement it in such a way that the dynamics can be retained. After all code is rather static as native JIT code so if that works so should another translation.
Quote:
Sorry for being direct. I imagine you are doing an amazing job anyway |
Of making up ideas? At the end of the day we are talking about a script being translated into host native code. Which works by design on modern devices. So these JS standards can be followed and executed. I'm just suggesting an alternative way of going about it. Which doesn't involve any assembly language or machine code. But portable high level language.Last edited by Hypex on 16-Sep-2016 at 04:34 PM.
|
|
Status: Offline |
|
|