Rockbox.org home
Downloads
Release release
Dev builds dev builds
Extras extras
themes themes
Documentation
Manual manual
Wiki wiki
Device Status device status
Support
Forums forums
Mailing lists mailing lists
IRC IRC
Development
Bugs bugs
Patches patches
Dev Guide dev guide
Search



Donate

Rockbox Technical Forums


Login with username, password and session length
Home Help Search Staff List Login Register
News:

Thank You for your continued support and contributions!

+  Rockbox Technical Forums
|-+  Rockbox Development
| |-+  Feature Ideas
| | |-+  Javascript
« previous next »
  • Print
Pages: [1]

Author Topic: Javascript  (Read 2164 times)

Offline chrisjj

  • Member
  • *
  • Posts: 276
Javascript
« on: December 16, 2016, 08:24:50 AM »
How about it? :-)

E.g. based on https://github.com/espruino/Espruino .
Logged

Offline __builtin

  • Developer
  • Member
  • *
  • Posts: 398
  • iPod 6G, c200v1 (RIP), e200v1 (RIP)
    • FWEI.TK
Re: Javascript
« Reply #1 on: December 16, 2016, 04:42:47 PM »
There's nothing that prevents anyone from starting a port, apart from maybe licensing, at least on the technical side of things. However some practical questions remain, such as the utility of such a port. I fail to see any practical uses of a JS interpreter. Also, the question of finding someone willing to do it remains. You would either have to find and convince a developer to do it for you, or do it yourself.
Logged
No support questions by PM, please.

Offline chrisjj

  • Member
  • *
  • Posts: 276
Re: Javascript
« Reply #2 on: December 16, 2016, 05:11:54 PM »
Quote from: __builtin on December 16, 2016, 04:42:47 PM
I fail to see any practical uses of a JS interpreter.

Allowing Rockbox programs to be written in a well-known language more powerful than those currently available.

Quote from: __builtin on December 16, 2016, 04:42:47 PM
Also, the question of finding someone willing to do it remains. You would either have to find and convince a developer to do it for you, or do it yourself.

Yeah, I figured that :-)
Logged

Offline __builtin

  • Developer
  • Member
  • *
  • Posts: 398
  • iPod 6G, c200v1 (RIP), e200v1 (RIP)
    • FWEI.TK
Re: Javascript
« Reply #3 on: December 16, 2016, 11:08:49 PM »
There is already a perfectly good lua port. If you want to write a plugin, it'd be much easier to just do it in C or lua than to port a whole JS interpreter. Also, most plugins are already written in C, which I'd classify as a well-known and powerful language.
« Last Edit: December 16, 2016, 11:10:59 PM by __builtin »
Logged
No support questions by PM, please.

Offline chrisjj

  • Member
  • *
  • Posts: 276
Re: Javascript
« Reply #4 on: December 16, 2016, 11:16:11 PM »
Quote from: __builtin on December 16, 2016, 11:08:49 PM
There is already a perfectly good lua port. If you want to write a plugin, it'd be much easier to just do it in C or lua than to port a whole JS interpreter.

Oh, yes I know that. But if RB had JS, then I wouldn't need to port the JS interpreter! I'd just dive right in and program in JS.

Quote from: __builtin on December 16, 2016, 11:08:49 PM
Also, most plugins are already written in C, which I'd classify as a well-known and powerful language.

I said "more powerful than those currently available". C is one of the most primitive languages still in general use. JS's additional power includes object orientation, dynamic memory allocation, local functions, closures, pattern matching etc.
Logged

Offline Bilgus

  • Developer
  • Member
  • *
  • Posts: 728
Re: Javascript
« Reply #5 on: December 17, 2016, 11:58:51 AM »
and lots of overhead for those features
Logged

Offline chrisjj

  • Member
  • *
  • Posts: 276
Re: Javascript
« Reply #6 on: December 17, 2016, 12:09:25 PM »
Quote from: Bilgus on December 17, 2016, 11:58:51 AM
and lots of overhead for those features

Indeed. Lots to keep CPU and memory employed :)
Logged

  • Print
Pages: [1]
« previous next »
+  Rockbox Technical Forums
|-+  Rockbox Development
| |-+  Feature Ideas
| | |-+  Javascript
 

  • SMF 2.0.18 | SMF © 2021, Simple Machines
  • Rockbox Privacy Policy
  • XHTML
  • RSS
  • WAP2

Page created in 0.026 seconds with 17 queries.