WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Netsurf  (Read 8284 times)

Offline nick65go

  • Hero Member
  • *****
  • Posts: 799
Re: Netsurf
« Reply #15 on: May 05, 2021, 01:31:01 PM »
incited by netsurf small size (because statically linked), i found https://github.com/oasislinux/oasis
"All software in the base system is linked statically, including the display server (velox) and web browser (netsurf). Any POSIX system with git, lua, curl, a sha256 utility, standard compression utilities, and an x86_64-linux-musl cross compiler can be used to bootstrap oasis".
Oh, stop dreaming, back to tinycore...

Offline jazzbiker

  • Hero Member
  • *****
  • Posts: 933
Re: Netsurf
« Reply #16 on: May 05, 2021, 10:28:23 PM »
Hi, nick65go!

If netsurf-gtk is statically linked, then what the use is of netsurf.tcz.dep? ;)
And size of the binary file is very close to the size of the extension...
We live in the cruel world - netsurf-gtk is compressed self-extracting binary.

Sorry for destroying the sweet dreams....

Offline nick65go

  • Hero Member
  • *****
  • Posts: 799
Re: Netsurf
« Reply #17 on: May 06, 2021, 12:48:56 AM »
We live in the cruel world - netsurf-gtk is compressed self-extracting binary.
nice catch jazzbiker, you are rigth! from win10, I uncompressed netsurf.tcz with 7zip, then using notepad++ I saw in the file header the "UPX" string at offset 153.
BTW: still focused on FLTK as GUI all-over :) ; if not, then toybox + muslc + statically compiled for small appliances.
« Last Edit: May 06, 2021, 12:55:34 AM by nick65go »

Offline nick65go

  • Hero Member
  • *****
  • Posts: 799
Re: Netsurf
« Reply #18 on: May 06, 2021, 12:54:52 PM »
From TC12_x64, I run qemu 3.1.0 with kvm-amd kernel module. The virtual machine is "oasis", a qcow file from https://github.com/oasislinux/oasis
The kernel is 5.9.11 x64 (in hex-editor I saw string Alpine 3.9 in it), the server is velox (something Wayland based, but ask for DRM acceleration) of 1.9 MB, and netsurf 3.10 is 3.5 MB statically linked. (No musl library! in this system, is basic for now). All devices are virtual (vga, network card, file system etc).
The amazing thing is the speed of this variant of netsurf x64 is the same (0.6 - 0.8 seconds for bbc.co.uk), even in qemu, versus the real TC12-x64 5.10.3 kernel with netsurf-gtk 3.9.

The main point (to take home) is that a common linux user can have a web-browser (with java script), as small as 3.6 MB.
EDIT: Sorry! Javascript is not enabled; or I do not know how to enable it in this new X environment (I see not menu/buttons).
« Last Edit: May 06, 2021, 01:27:13 PM by nick65go »

Offline jazzbiker

  • Hero Member
  • *****
  • Posts: 933
Re: Netsurf
« Reply #19 on: May 06, 2021, 01:43:51 PM »
Hi, nick65go!

When I was building netsurf I tried netsurf-fbdev too. It has somewhat reduced interface - not tabs, fonts linked statically. Was not those netsurf, which You run in the VM, such a version? I expected, that fbdev version will run without X over native fbdev, but I didn't succeed, I was able to run it only under X.

Offline nick65go

  • Hero Member
  • *****
  • Posts: 799
Re: Netsurf
« Reply #20 on: May 06, 2021, 03:15:36 PM »
understanding "lua" programming is over my pay grade ;)
but from https://github.com/oasislinux/oasis/blob/master/pkg/netsurf/gen.lua
it seams to have true type fonts, wayland (so is not frame-buffer), but without JavaScript, because the only string "javascript" is
Code: [Select]
exe('netsurf', [[
  content/(
    handlers/(
      javascript/(fetcher.c none/none.c)


Offline jazzbiker

  • Hero Member
  • *****
  • Posts: 933
Re: Netsurf
« Reply #21 on: May 06, 2021, 04:10:19 PM »
Hi, nick65go!

It appears, that I saved netsurf for fb as tcz, and now write this post with its help. It isn't fully static, at least it needs curl. Font is dejavu only ttf. Screen size is fixed!!! Extension is 1.2M in size. How can I determine,  that js is on? Integration with the mouse is poor: I can use it for positioning cursor only. So strange enough, but small.




 

Offline nick65go

  • Hero Member
  • *****
  • Posts: 799
Re: Netsurf
« Reply #22 on: May 07, 2021, 03:25:44 AM »
Some clarification (these are notes to myself here):
Code: [Select]
https://en.wikipedia.org/wiki/NetSurf
but as of December 2012 there are some NetSurf preview-builds available which contain early-stage JavaScript support (later much improved).[14]
"NetSurf's JavaScript engine (Duktape)"
and
Code: [Select]
http://mirrors.dotsrc.org/tinycorelinux/4.x/x86/tcz/netsurf-fb.tcz.info
Title:        netsurf-fb.tcz
Size:        568K; Total size = 8.52 MB
Tags:        NetSurf fb framebuffer lightweight fast web browser
Current:    2012/03/09 First release. Version 2.8
and
Code: [Select]
http://mirrors.dotsrc.org/tinycorelinux/4.x/x86/tcz/netsurf-gtk.tcz.info
Title:        netsurf-gtk.tcz
Size:        1008K; Total size = 18.23 MB
Tags:        NetSurf Gtk2 lightweight fast web browser
Current:    2012/03/06 First release. Version 2.8
So, these mean that netsurf 2.8 (2012/03/09) did not have javascript (wikipedia shows it was after 2012/12/01)
And the netsurf-gtk 2.8 size + dependencies were 18+ MB already, in compressed tcz.
So uncompressed will double size and then staically liked maybe will shrink to half, and final result maybe still have around 18 MB, with GTK2 and X.org.
Then
Code: [Select]
https://en.wikipedia.org/wiki/NetSurf
In July 2019 NetSurf 3.9 was released, with support for CSS Media Queries (level 4) and improvements to JavaScript handling.
For PC, the RAM is important, because it can hardly be upgraded; but storage size matters less, because USB sticks are cheap and have big storage size.
Summary: maybe (not yet released in the internet) netsurf 3.10 (May 2020) with FLTK can reduce the total RAM size. The JavaScript engine (incomplet but maybe sufficient) is "Duktape", as wikipedia says it.
 
« Last Edit: May 07, 2021, 03:37:10 AM by nick65go »

Online Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14516
Re: Netsurf
« Reply #23 on: May 09, 2021, 07:34:19 AM »
TC has netsurf 3.9 with gtk2, and netsurf 3.10 with gtk3, but recently I found that netsurf could have other interfaces:
https://git.netsurf-browser.org/netsurf.git/log/?h=vince/fltk

I built netsurf-fltk, but it was unusable - perhaps I built it wrongly (it's a mess to build from git).

Offline cast-fish

  • Hero Member
  • *****
  • Posts: 1000
  • hi there
Re: Netsurf
« Reply #24 on: May 09, 2021, 07:37:19 AM »
Hello,

Netsurf, is a Lovely browser   (somehow) .

Free of course.

........yes.

Thx

C