599 points · by rodarima · 2y ago · 174 comments
[0]: https://news.ycombinator.com/item?id=32448104
I felt sad as I didn't want it to die, so I got a copy of the repo from my hard disk, uploaded it to GitHub and decided to do some maintenance on the code to at least keep the build working. After some time, the folks at Atari Forum decided to use my repo to port it to the Atari platform and they managed to do it [1].
[1]: https://github.com/dillo-browser/dillo/issues/34
That gave me some motivation to work a bit more on the project to prevent it from dying. So I created an organization under the name of "dillo-browser" and made a new webpage [2] with a backup of the old one.
[2]: https://dillo-browser.github.io/
With the help of Andreas Kemnade which had access to the original server, we managed to backup most of the stuff from the original website (including non-reachable pages) which I uploaded to the Archive.
In the meanwhile, I combined the support for both OpenSSL (1.1 and 3) and mbedTLS (2 and 3) as well as proper CI with rendering tests. We now build Dillo for Ubuntu, FreeBSD and macOS!
I also became familiar with the plugin mechanism in Dillo, which allows any program that uses the standard input and output to become a plugin registered to a given protocol (like file://...). I did a simple one (which is just a bash script) to read local manual pages which is handy to follow links to other pages [3], but check also the ones Charles E. Lehner did which are more advanced [4].
[3]: https://github.com/dillo-browser/dillo-plugin-man [4]: https://groups.google.com/g/dillo/c/WGEMg7AXN4o/
As of today, I'm unable to contact the main developer, Jorge Arellano Cid, which has not interacted with the mailing list for some years now. Jorge, if you read this, please contact with me (you can find my email in the git commits).
Regarding the future of Dillo, I'm planning to (finally) do the 3.1 release after some testing, and for that it would be convenient to have the help of some users to get some feedback ;-)
If you want to contribute, feel free to open a PR or send a patch (via GitHub or by email, I don't care). Check also the current issues and pull requests to see what is pending or already being working on. I will probably setup a mailing list at some point too.
Thanks! Rodrigo.
For others on Macs (I'm on an M1 under macOS 12.7), here's what worked for me:
- start by following the mac installation instructions here [0], specifically `brew install` the suggested packages + openssl (I used version 3)
- follow the "from git" installation instructions here [1] BUT, before running `./configure`, run these export commands [2] to make sure that the openssl files are found
- `make`, then `sudo make install` (like in the good old days). then run `dillo`.
- it just... works. and it's blazing fast. it's a 1.6mb binary, it supports ssl... it's brilliant. google search sorta works (with broken css). signing in to google is impossible without javascript..? yeah wow. a whole world to explore. THANKS!
[0] https://github.com/dillo-browser/dillo/blob/master/doc/insta...
[1] https://github.com/dillo-browser/dillo/blob/master/doc/insta...
Thanks!
> follow the "from git" installation instructions here [1] BUT, before running `./configure`, run these export commands [2] to make sure that the openssl files are found
I should add that to the install instructions for macOS, although in the CI it seems to work without the include flags (keep in mind I don't own a Mac, so my testing abilities are limited).
I am resigned to the fact that some of my requirements really do mean I need a Ryzen 7 with 16GB of RAM. Sadly my biggest compute loads are for MS Teams and webmail.
I really do empathize here, after having to use Teams for around 2 years. It's amazingly slow, confusing, buggy (it would crash the tab quite regularly), and just generally a perfect role model for what software shouldn't be[0].
I'm still quite amazed that Microsoft decided this was acceptable. I'm curious how Slack performs; perhaps they're not trying harder because there's no[t much] competition in this space ...?
[0]: (If I remember correctly, they were using AngularJS at the time, but I'm sure they're now using the regular React stack.)
> I really do empathize here, after having to use Teams for around 2 years. It's amazingly slow, confusing, buggy (it would crash the tab quite regularly), and just generally a perfect role model for what software shouldn't be[0].
Teams for Linux [1] also struggles with resources. Teams in general is an absolute mess. I would go further and say that most MS products are resource intensive buggy crap.
- Non of them are close to feature complete. As soon as you have to do more than chat (share files, do meetings, etc) they will let you down.
- In most corporate environments there is some extra layer of authentication involved I highly doubt these clients are able to handle.
The best way I have found to have a lighter teams experience is to simply use the web version as a PWA. This basically offers you all the features without the extended footprint of effectively running a second browser.
I kinda have to ask, what features can you enforce in rate limiting in a first party client that you can't enforce in a third party client?
My colleagues and myself used Slack for years, were forced to use Teams for about 2 years because of our new parent company, and finally went back to Slack after we collectively quit that shitshow to start a new company.
While Slack isn't perfect either, it's miles better.
We switched from HipChat to Google Chat, which in my mind is pretty bad. Customers are often on Teams, which somehow manages to be MUCH MUCH worse. People kept telling me that Slack is much better than either Google Chat or MS Team, but after using it I can't say that I'd agree. Teams is clearly the worst, Slack is awful in its own way and Google Chat manages to be the best of the three, but mostly because the two others are so terrible.
It's clearly not an easy problem to solve, but I do wonder why all of these "enterprise" messaging/meeting/chat platforms are so terrible.
Their customers find it acceptable so it's OK for MS too.
If customers wouldn't find it acceptable they would use something else and we wouldn't be having this conversation. Maybe it helps that it comes with the Office suite and they already paid for it.
By the way, when a customer asks me how I want to do a video chat, almost always with screen sharing, I suggest Meet. If they mandate Teams, OK, I'll do Teams in a browser. Actually the best screen sharing seems to be Skype. It can zoom too. None of them can go full screen with no useless UI around the shared screen, tough luck. None of my customers are using Zoom anymore.
It also highly depends on what you want to browse. HN for example will work just fine without much memory. Expecting YouTube to be as light as 90s websites is asking a bit much.
Having said that, I do agree that we have overshot, and many websites are way too heavy for their use case.
Sticking with YouTube as an example, assuming for a moment that whatever device you are using does have hardware decoding, so video playback isn't dragging down performance. It still is an extremely heavy website due to all the tracking shenanigans, interactive elements and the fact that it is an SPA based design. Alternative front-ends like invidious show it is possible and in the past Google did actually provide light versions of many of their web apps specifically for this sort of use case. Sadly that is no longer the case.
qutebrowser and nyxt would fit the bill better. to be honest I feel like nyxt is really cool, but I'm not sure if choosing a lisp was the right idea.
So one could use it on a machine that did not even have any desktop enviroment installed.
Search on webmail is instantaneous. It was not on MTAs last time I tried. I remember someone always struggling to find old mails with his MTA while gmail would find it quite quickly.
I used to use dillo on my main desktop too, for browsing documentation that wasn't too heavy on CSS - having 20 to 40 tabs open would gobble up a lot of RAM in Firefox, whereas dillo happily stayed around 100MB no matter what I threw at it. My current desktop has enough RAM this not a concern any more, but I have fond memories of using dillo on memory-deficient machines and am a current user still.
Also, the lack of a Javascript engine makes it a very secure browser. Whenever I try to open a link that I am suspicious of, I do so in dillo.
So thanks to everyone who continues to work on this, I really appreciate the work you do! Dillo is a fine piece of software that I have enjoyed using for at least 15 years now, and I hope it will be around for many years to come! <3
I would suggest using a Chromium or Firefox profile with JavaScript and webfonts disabled for this instead of questionably maintained C software that doesn’t have a sandbox for any of the complex and commonly exploited things it does (image decoding, HTML/CSS parsing, network protocols, local file access).
running dillo in a bubblewrap container would probably be fine and not eat all of your available resources.
[i got my 60k loc number from running tokei in the dillo repo, doing the same in the gecko repo took multiple minutes and pegged 8 cores at 100%, might be a bug in tokei or maybe 21 million lines of code is just enormous]
This is precisely the objective Jorge had in mind, so people on other parts of the world with less capable machines where still able to access the web.
While I was in university, I was using an old Pentium 4 at home (which I still use) which couldn't open a single tab unless you wait around 30 seconds for it to load. So I was mostly using Dillo and failing back to Google cache and then Firefox to read something that required Javascript.
I used it for years and it always was super fast. Also, my network connection was not very fast, so loading only the HTML helped a lot.
> So thanks to everyone who continues to work on this, I really appreciate the work you do! Dillo is a fine piece of software that I have enjoyed using for at least 15 years now, and I hope it will be around for many years to come! <3
Thanks :-)
Hah! I used an old Dell laptop that had a 1400x1050 (?) screen for this exact purpose with Dillo.
I was so mad that software stopped using Windows help files...they were so much more efficient!
Are you referring to HTML Help? I believe they rendered those with Internet Explorer; I'm willing to bet they still do for backwards compatibility.
#!/bin/sh
doas /sbin/modprobe zram
doas /sbin/zramctl --find --size 1024M
doas /sbin/mkswap /dev/zram0
doas /sbin/swapon /dev/zram0 --priority -1
Not Firefox, but Luakit might do it fine on single pages where JS is mandatory, such as, sadly, my country's goverment pages to do
personal life related tasks.For a short description of what w3m local CGI scripts can do:
* They can be used for implementing a man page viewer, as in w3mman. It seems Dillo has a similar plugin[1].
* w3m's bookmark system is implemented using local CGI; it seems Dillo's bookmarks are implemented as a dpi plugin too.
* w3m can use urimethodmap + local CGI to implement additional protocols. I guess DPI can do that too? (At least the custom man: scheme in dillo-plugin-man seems to indicate it can.)
I had no idea any browser supported this besides w3m. I mostly imitated w3m's design in my own project (which includes the twist that support for every protocol, including HTTP, is implemented on top of a similar plugin system); I guess I have a second reference point now :)
Yeah, a lot of things [1] are implemented as DPI in Dillo. Some of the plugins implement "websites" like file:, vsource: and ftp: but others implement other features like the handling of cookies, downloads or bookmarks. As they are a different process, if you close the browser, the downloads continue.
[1]: https://github.com/dillo-browser/dillo/tree/master/dpi
> * w3m can use urimethodmap + local CGI to implement additional protocols. I guess DPI can do that too? (At least the custom man: scheme in dillo-plugin-man seems to indicate it can.)
Yes, there is a file (~/.dillo/dpidrc) that associates the protocol to the plugin binary (like this "proto.man=man/man.filter.dpi"). There is also gemini: gopher: and even git: available as external plugins.
> I had no idea any browser supported this besides w3m. I mostly imitated w3m's design in my own project (which includes the twist that support for every protocol, including HTTP, is implemented on top of a similar plugin system); I guess I have a second reference point now :)
In fact, not so long ago, the HTTPS protocol was implemented as a DPI plugin, but it was changed to be part of the browser.
My only complain is that it keeps asking to confirm new keys every time a new server is visited which causes a lot of friction to explore several gemini servers. I understand that is a tradeoff between usability and security, but I wish there was a better solution than that.
For now I uploaded Charles plugin written in shell script[1], which always trusts the certificate.
[1]: https://github.com/dillo-browser/dillo-plugin-gemini/
But I'm considering switching to the Go version if I can find a way to improve the UX.
Also, I kindly ask you to add the tag "dillo-plugin" so you can make Dillo plugins easily discoverable by searching for the tag in GitHub[2].
[2]: https://github.com/topics/dillo-plugin
> I believe that in recent versions of Dillo, even https is implemented as a DPI plugin.
This was done initially[3] (before 2007) but it was moved to the browser itself[4] in 2016.
[3]: https://github.com/dillo-browser/dillo/commits/afd2763caa56d...
[4]: https://github.com/dillo-browser/dillo/commit/bf5a7783f4a192...
Hmm, yeah, it's a trade off. It never annoyed me personally so I haven't given it much thought, but I could add some means to configure this behavior. There should be a commit shortly.
I've been meaning to change how it behaves when the certificate differs from the pinned one as well, because as it is now you manually have to remove the old pinned certificate from the file system when a certificate is replaced, which isn't great but at least should happen much less often.
> Also, I kindly ask you to add the tag "dillo-plugin" so you can make Dillo plugins easily discoverable by searching for the tag in GitHub[2].
Thanks for the heads up! Done.
> This was done initially[3] (before 2007) but it was moved to the browser itself[4] in 2016.
I see, so I had the chronology mixed up :).
https://www.youtube.com/channel/UCuklruLsO-CFoKK_rjNXrXg
https://www.youtube.com/watch?v=A6mb9qt2-3o
At video above Renato comments " ese es mi compañero Jorge " translated "that's my mate Jorge"
I found a Renato Bravo at Linkedin but I don't think is the same person.
I get your point but it’s a bit of an odd complaint when the main reason it went away was that it was self hosted.
Thanks! That should be done more often :-)
> Shame to see a project moving from a self-hosted Mercurial repository to a US-megacorparate-owned Git repository in Microsoft GitHub
Agreed. I decided that it was a good starting point moving to GitHub as a first start, to increase the chances the project gets more visibility and hopefully attract more contributions. I also trust GitHub to be alive for at least 5 to 10 more years, so I can put a redirect notice on the main webpage.
But yeah, I agree it would be better to self host or move to a federated forge. There is an issue to cover other options[1], but our current problem is that other forges like Codeberg don't have a way (as a free account) to run the CI pipelines in other platforms like MacOS. My idea was to eventually get hold on some real hardware so we can setup our own runners and also test in different architectures. Feel free to add other alternatives and I will take a look.
[1]: https://github.com/dillo-browser/dillo/issues/39
Keep in mind also, that because the project was previously self-hosted (including the mail server) that created a gigantic single point of failure (which failed very badly) that I'm trying to avoid.
> But at least the maintainer is committed to accepting email patches so folks aren’t required to create accounts / accept ToS with them.
Yeah, I'm thinking in creating a mailing list for that purpose, but apart from sourcehut (at least on alpha) and googlegroups, I don't know that many places that offer one free of charge.
What's the minimum compiler you target? Any big long term plans? Fuzzing? Moving to 'modern' build system like CMake?
> What's the minimum compiler you target?
I didn't defined any (yet), but shouldn't be too hard to add to the CI.
> Any big long term plans?
First preventing it from dying and getting removed from distros. Then it depends of how much free time I can dedicate to it, but at least maintaining it.
> Fuzzing?
I would say first adding some of the other browser tests suites. That should catch a lot of rendering issues. But yeah, fuzzing would be interesting, specially for the custom HTML and CSS parsers.
> Moving to 'modern' build system like CMake?
Yes, I had to modify the configure.ac and that was very painful, specially targeting a lot of platforms. It is also broken for cross compilation. I have to check also how is the support for cmake in other systems, so we can safely remove Automake and friends. But I didn't want to introduce any big changes before 3.1 is released.
Wouldn't a project such as this one be a perfect candidate for Cosmopolitan?
> Cosmopolitan Libc makes C a build-anywhere run-anywhere language, like Java, except it doesn't need an interpreter or virtual machine. Instead, it reconfigures stock GCC and Clang to output a POSIX-approved polyglot format that runs natively on Linux + Mac + Windows + FreeBSD + OpenBSD + NetBSD + BIOS on AMD64 and ARM64 with the best possible performance.
I tried to login and reply to this thread but for some reason it wouldn't login (no error or anything, after entering my username and password and clicking login, i'd remained logged out).
Thanks for testing! I need to replace that with the new website. Could you open an issue on GitHub with some details of your system and OpenSSL version so I can try to reproduce it?
> I tried to login and reply to this thread but for some reason it wouldn't login (no error or anything, after entering my username and password and clicking login, i'd remained logged out).
This is likely because the cookies are disabled. See the Cookies docs:
https://dillo-browser.github.io/old/dillo3-help.html
https://dillo-browser.github.io/old/Cookies.txt
By default, Dillo has all cookies disabled. You have to either manually enable them per site (recommended) or globally:
$ echo "news.ycombinator.com ACCEPT" >> ~/.dillo/cookies.txt
Then reload the dpi daemon to read the cookies config again: $ dpidc stopI put a breakpoint in ERR_put_error in the version that comes with openSUSE though there isn't much debug info there to be had so i don't know what the error is (perhaps building OpenSSL from source code with debug info and having Dillo link against it would help). I found where the error comes in Dillo's side (check the comment i made in the bug report) but i'm not sure how that'd be fixed (aside from draining the error queue :-P) as i don't know why these calls are made in the first place.
[1]: https://github.com/dillo-browser/dillo/pull/59
Thanks again for the report, these type of issues are hard to reproduce without using different environments.
https://celehner.com/projects.html#dillo-plugins
I already talked with him about keeping a copy of them in GitHub under the dillo-browser organization.
> and if you're interested I can zip them up and send it to you to be forked and worked on the project
Feel free to open an issue and upload it there, so we can keep a copy of the zip. Thanks!
[1]: https://sources.debian.org/src/gzilla/0.1.5-3/bytesink.doc/
PS: Maybe you could give us a hand contacting Jorge :-)
Interesting to see a mix of C and C++ in the same codebase, that always makes me curious if there is some internal/mental "pressure" to convert the C code to C++ since that does seem simpler in many ways if you're already using C++.
Also, does anyone know why the functions have a (to me, incredibly random) "a_" prefix? Like this, from "dicache.h" [1]:
void a_Dicache_init (void);
DICacheEntry *a_Dicache_get_entry(const DilloUrl *Url, int version);
void *a_Dicache_png_image(const char *Type, void *Ptr, CA_Callback_t *Call, void **Data);
void *a_Dicache_gif_image(const char *Type, void *Ptr, CA_Callback_t *Call, void **Data);
It's like a set of perfectly module-prefixed names, but then an additional prefix of "a_" has been added?Edit: moved a comma.
[1]: https://github.com/dillo-browser/dillo/blob/master/src/dicac...
The initial Dillo was fully written in C and it used GTK+. As it moved to FLTK it began rewriting parts in C++.
> Also, does anyone know why the functions have a (to me, incredibly random) "a_" prefix? Like this, from "dicache.h" [1]:
This is something Jorge came up with around 1999[1] for the C part, so the "a_" prefix states functions that are used outside the module (like public in C++), while the others are not. The choice of "a" is explained as:
> Why the "a_" prefix? > > Because it reads better "a_Menu_create" than "d_Menu_create" cause the first one suggests "a Menu create" function!
[1]: https://dillo-browser.github.io/old/NC_design.html
I don't think this alone is a good choice, as one should better use "static" to enforce it.
Yes, that sounds very much like a lack of "static", which makes it even more confusing. It sounds unlikely that someone would start a browser project in C and not know about static.
I would not agree that it reads "better", it just makes it more random. Adding a letter that at least hinted at what was meant would have been better, if we're for some reason are limited to a single letter (like "p_" for public).
https://git.scuttlebot.io/%25n7g%2BJlKZjPV6CRfSQL5YUWk%2BxYg... https://github.com/boomlinde/gemini.filter.dpi https://celehner.com/projects.html#dillo-plugins
https://github.com/crossbowerbt/dillo-plus
https://github.com/crossbowerbt/dillo-plus#gopher-and-gemini...
Edit: Newline formatting. Edit 2: Wording (port not fork).
Dillo is handy to have on lower specced machines. I've used it on m68k. I really should see why it doesn't compile on VAX, though...
Thanks!
There is also an (outdated) Windows port called D+ [1]. I remember it crashing frequently on Windows 10, though.
I would say that the plugin system is one of the things makes Dillo a bit different.
I had some ideas to do performance tests and also check how well the rendering engine works with choppy connections (while content is still slowly downloading), but I didn't do any tests yet.
There were some very old results against firefox comparing memory usage in the old page [1].
:D
edit: For Windows users, Dillo can just be installed in Ubuntu/WSL with "sudo apt install dillo", and just works. Warning: it's fast!
This used to be a problem because Dillo didn't implemented SNI, but should be okay now. If you still have some site that doesn't connect with Dillo from git (there is an updated dillo-git AUR package in Arch Linux), please report it :-)
% ps vp $(pgrep dillo)
PID TTY STAT TIME MAJFL TRS DRS RSS %MEM COMMAND
919059 pts/1 S+ 0:01 0 458 59425 46884 0.2 dillo https://html.spec.whatwg.org/
919584 pts/6 S+ 0:00 0 458 28589 17360 0.1 dillo https://google.comDillo supports XEmbed, so you can run it embedded in another X windows. This is done by Claws Mail to render emails as HTML [1].
If we could agree on some kind of "low-tech web" (a subset of html, a subset of css, a subset of javascript -- or maybe no javascript at all?) then Dillo could be the champion of this.
There is a "movement"[1] called the small web (smolweb?) which basically does what you are describing without being so restrictive as Gemini. AFAIK Dillo should be able to render most of those features properly.
I was hoping it could be useful for having a light tool to read the single unix specification. There is a frame-less version, but frames are very handy for navigating those docs.
Nice, lean & mean! I'm interested.
Anybody knows what happened to Jorge A. Cid?
> Lower the barrier of entry to the web.
> Support old or small machines and slow connections.
Ram is cheap today, unfortunately the industry isn’t very humanitarian so they took advantage of that.
Now as the world expects fluent animation and eye candy, it’s virtually impossible to have a browser support as many sites as chrome and support older machines.
How so? A lot of websites rely upon animations (I'm guessing you're referring to more advanced CSS support here), yet people still use browsers like w3m, elinks, lynx, etc.
If anything, I'd imagine the information density would be much greater with something like Dillo: you'd have much less distracting (as you put it, "eye candy") to draw attention away from the text on the page, which is most certainly welcome IMO.
[1]: https://groups.google.com/g/dillo/search?q=javascript
However, I don't think the machines that Dillo is targeting would benefit from adding support for it and it would increase a lot the surface for security problems. Maybe my advise would be to use another browser if you have the computing power to run JS.
People tend to overestimate the resources required to run JS and have a miscalibrated sense of how slow they can/should expect it to be.
Firefox 1.x and 2.0 worked on machines with substantially worse specs than many of the ones that people are mentioning here (think: sub-GHz PIIIs with 128–256 MB of RAM), and substantial parts of Firefox itself are written in JS.
I haven't checked, but I'd bet that 2024-era QuickJS is also faster than 2004-era SpiderMonkey at executing the same script.
I was using dillo heavily at the time, when we didn't mind differences in rendering. After that I switched to konqueror. As the dhtml/js craze exploded, I caved in to ff when more often than not the websites didn't load or work as expected.
[1]: https://en.wikipedia.org/wiki/Gateway_HandBook#/media/File:H...
[2]:http://damnsmalllinux.org/dmesg-screen-1.jpg
It would be nice to see it running in some remote location :-)
I also had it running at some point in my old Android phone (running Xorg directly on the framebuffer), but I don't know where I saved the picture.
I remember growing up I used the Dillo browser almost daily on my Raspberry Pi(2012). It was faster than Midori, and got me just enough information so that I could learn python from tutorials on the Raspberry Pi website.
It felt a bit strange then, when everyone around me was using Chrome. But looking back, it taught me a big lesson in how to maximize the use of minimal resources.
Thank you for picking up this project and maintaining it. Till date, there has been no true successor to Dillo that manages graphical web browsing with such little resources.
[1]: https://dillo-browser.github.io/old/css_compat/index.html
Here [2] is the original development plan, which was focused on making the floating elements work well, but the main developer of that area, Sebastian, sadly passed away.
[2]: https://dillo-browser.github.io/old/Plans.html
I'm planning to add better support for the most common attributes that break the layout the most (margin: auto) and also keep a proper table of the support status.
But in the SDK space, ultra complex syntax languages should be avoid as f... and then c++ (and similar like rust/java/etc) should be avoided.
I used this years ago and then forgot about it
Tested on arch first to set it up then installed on my raspberry pi zero w.
Tried all text only browsers on the pi zero and it is a pain. Dillo is far better.
You must create the dillorc file or add the default dillorc from the git page. Change the dillorc as you want, ie, start page, search page, colours etc.
well pleased
The former being the central Texas pronunciation and definitely without the “arma”!
https://youtu.be/A6mb9qt2-3o?t=212
Also, the video explains a lot about of the project, but in terrible quality :-D
What’s your approach to browser dev? Do you prefer to go wide or deep, for example the Ladybird project goes “deep” in that they choose an endpoint and try to get everything on the page working and whatnot. Maybe I’m rambling, but very cool!
https://github.com/dillo-browser/dillo-browser.github.io/pul...
http_user_agent="Mozilla/5.0 (PSP (PlayStation Portable); 2.00)"
Then a lot of sites will load a compatible version.