1. XorTroll

    OP XorTroll Tired of classic HOME menu
    Developer

    Joined:
    Dec 28, 2017
    Messages:
    633
    Country:
    Spain
    Hi everybody!

    First of all, this is just a planned project, it's not sure that it'll be released, and if so it would be ready in a long time, because it's a long project.

    In case I wanted to create my own renderer:
    - As I did with Brew.js, we already have a way to process and evaluate JavaScript, using duktape embeddable engine.
    - We have Gumbo parser, which is a HTML parser, so we can read DOM elements and their attributes.
    - I haven't searched for any CSS parser, but I'm sure there are plenty of them for C or C++.
    - There are some HTML renderers, but they may be difficult to port, but using SDL2 plus all the interpreters and parsers above, we have the possibility to build a good HTML renderer.
    - Using libcurl or any other web libs we can access web files...

    Anyway, I may try porting another web browser or renderer, such as librocket or WebKit.

    As I said before, this is not a almost-ready project. I've started the development of this idea, but this thread's objective is to speak a bit about this idea.
     
    Last edited by XorTroll, Jul 8, 2018
  2. huma_dawii

    huma_dawii GBAtemp Psycho!
    Member

    Joined:
    Apr 3, 2014
    Messages:
    3,706
    Country:
    United States
    Proof or NEVER happened, we are tired of attention whores.
     
  3. ShonenJump

    ShonenJump part of vongola family
    Member

    Joined:
    Mar 14, 2009
    Messages:
    495
    Country:
    Netherlands
  4. Deleted User

    Deleted User Newbie

    http://www.netsurf-browser.org/ seems easier to port (although no JS yet)

    or even better, figure out the API the OS uses for the webapplet and just add a little gui to it...
     
  5. Deleted User

    Deleted User Newbie

    It's a good idea to wait until you have something to show when you announce it, but I'll definitely be following this
     
  6. mansonss

    mansonss Member
    Newcomer

    Joined:
    Nov 14, 2013
    Messages:
    30
    Country:
    United States
    Wouldn't using the built in API still require some way to circumvent Nintendo's whitelist though?
     
  7. Deleted User

    Deleted User Newbie

    No, because that seems specific to each html viewer (like the social login can play videos, etc)
     
  8. ahmio

    ahmio Newbie
    Newcomer

    Joined:
    Jan 8, 2017
    Messages:
    7
    Country:
    Canada
    Wouldn't porting chromium be easier? Ideally you'd only have to rewrite the renderer, right?
     
  9. Zyvyn

    Zyvyn GBAtemp Advanced Maniac
    Member

    Joined:
    Aug 9, 2017
    Messages:
    1,952
    Country:
    United States
    dont think its that simple
     
    Centergaming and Insighted like this.
  10. uyjulian

    uyjulian Homebrewer
    Member

    Joined:
    Nov 26, 2012
    Messages:
    2,537
    Country:
    United States
    Horizon OS doesn't use POSIX API so porting chromium would be a pain.

    Chromium already works great on Switch Linux.
     
  11. ANTONIOPS

    ANTONIOPS GBAtemp Regular
    Member

    Joined:
    Jan 15, 2016
    Messages:
    126
    Country:
    Spain
  12. stewacide

    stewacide GBAtemp Regular
    Member

    Joined:
    Jun 22, 2018
    Messages:
    240
    Country:
    Canada
    There's already a renderer in the Switch firmware, used when you sign into social media and public wifi. Seems fully-featured:

    Someone just needs to make a more convenient front-end. No need to re-invent the wheel.
     
    Deleted User likes this.
  13. filfat

    filfat Musician, Developer & Entrepreneur
    Member

    Joined:
    Nov 24, 2012
    Messages:
    1,260
    Country:
    Sweden
    Don't try to make your own webbrowser.
    Gumbo, litehtml etc are perfectly well-suited for simple UIs.
    I don't think you really understand how large of a task you would be taking on and what a total nightmare it would be.

    Afaik there are ways to dynamically link the built-in webkit browser,
    I personally haven't had time to look into it yet; so if you do make sure to share what you learn.

    TL;DR: Don't try to make your own browser, please.
     
    ShonenJump and GizmoTheGreen like this.
  14. sirAnger

    sirAnger GBAtemp Fan
    Member

    Joined:
    Dec 4, 2002
    Messages:
    479
    Country:
    United States
    Where would we be if not for people trying things? @XorTroll, go for it. If it sucks, nobody loses anything. If it's awesome then we all win.
     
    Insighted likes this.
  15. XorTroll

    OP XorTroll Tired of classic HOME menu
    Developer

    Joined:
    Dec 28, 2017
    Messages:
    633
    Country:
    Spain
    As I said I'm just trying to do it, it's not a project which I plan definitely to release, I'll do what I can. As @sirAnger said, we won't lose anything if I'm not able to carry on with such a big project.
    Btw I'm not asking if I should start this project on this thread, I made it to inform people about the project I plan to develop, because I think many people would enjoy this kind of projects.
     
    Last edited by XorTroll, Jul 6, 2018
  16. Red1Reaper

    Red1Reaper Asperger Dude
    Member

    Joined:
    Feb 5, 2017
    Messages:
    339
    Country:
    Spain
    Whit this would be posible to load html5 js games? like the ones made on rpg maker mv?
     
    Shrike likes this.
  17. XorTroll

    OP XorTroll Tired of classic HOME menu
    Developer

    Joined:
    Dec 28, 2017
    Messages:
    633
    Country:
    Spain
    As I said I don't even know how I will manage to do this, so I have no idea about what I'll be able to parse or handle.
    Now I'm thinking about porting librocket (https://github.com/libRocket/libRocket), as it looks good.
     
  18. filfat

    filfat Musician, Developer & Entrepreneur
    Member

    Joined:
    Nov 24, 2012
    Messages:
    1,260
    Country:
    Sweden
    @XorTroll

    I have taken a quick look at doing something similar https://github.com/filfat/SimpleWebNX/
    but I still think that you should just use the web applet as soon as that's possible.

    (This would mostly be a hobby project to better understand how a browser handles the DOM)

    [​IMG]
     
    Last edited by filfat, Jan 9, 2019
    lordelan likes this.
  19. Mr. Wizard

    Mr. Wizard Ending the spread of bullshit one thread at a time
    Member

    Joined:
    Mar 20, 2015
    Messages:
    1,814
    Country:
    Canada
  20. Shrike

    Shrike GBAtemp Regular
    Member

    Joined:
    Mar 10, 2018
    Messages:
    120
    Country:
    Germany
    THIS would be sooooo great! <3

    BTW: There is a official RPGMaker MV planed for Nintendo Switch (&PS4, &XBOXone), which will come out in 2019.
    You can already preorder it for $59.99 ^___^

    Trailer:

    But I guess this version will not be able to play the games made on the PC version (or be able to run all those great JS Plugins written by the community..)
    But well .. we will see .. :P
     
    Last edited by Shrike, Aug 13, 2018
Draft saved Draft deleted
Loading...

Hide similar threads Similar threads with keywords - Nintendo, browser, project