Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

low resource web browser

Name: Anonymous 2011-11-21 0:37

are there any web browsers out there with full support for javascript, and can render html normally? I wouldn't need anything like flash or java applets, but full support for fancy javascript would be nice for getting through fancy web sites and such. If one doesn't exist, I think I might try to make one, and shoot for 5 - 15MB of ram usage.

Name: Anonymous 2011-11-24 17:29

>>47

Yeah, something like this could do:

struct dom_node {
  enum dom_type type;
  struct dom_node* parent;
  struct dom_node* child_array;
  int number_of_children;
  void* type_specific_data;
};

Although inserting elements in certain positions would involve reallocating an array, and could get slow if there are lots of sibling nodes. Alternatively:

struct dom_node {
  enum dom_type;
  struct dom_node* parent;
  struct dom_node* first_child;
  struct dom_node* last_child;
  struct dom_node* left_sibling;
  struct dom_node* right_sibling;
  // Type specific data located at the end of this struct.
};

but then random access to children is slower...

>>48

Of course! Frozenvoid, we need your help!

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List