8 ms·
Why browse the Web in Emacs? (2008)
- deleted 12y ago[deleted]
- pakled_engineer 12y agoNo eww.el mention? It comes w/24.4
- Sir_Cmpwn 12y agoThis article was written in 2008.`
- stevebmark 12y agoIs terrible, this idea.
- solistice 12y agoCan you elaborate please?
- joaorj 12y agoQuick answer: because you are a masochist
- dschiptsov 12y agoM-x eww http://www.lispworks.com/documentation/HyperSpec/Front/index_tx.htm
- phaer 12y agoThe example is well chosen because the Common Lisp Hyperspec is actually nicer to view in a text browser than in a graphical one ;)
- jarcane 12y agoIt is a dream of mine to do exactly this, but even eww.el just wasn't any good to actually use. I can do everything else in Emacs, except that, but that's a pretty big something.
- seccess 12y agoThis covers many of the reasons I prefer web browsing without JS enabled: speed, less mem usage, safer. Before I started doing so, I thought that disabling JS would make the internet unusable, but a vast majority of pages display their content just fine without it. In addition, it is really easy to add domains to the JS whitelist in Chrome without the need to go into the options menu every time (less so in FF). AND, Chrome uses separate whitelists for normal and private browsing, and will clear the private browsing whitelist when you close the window! There are some periodic annoyances, but I wouldn't think of going back to default-enabled. Browsing the web in Emacs is a bit too hardcore for me though :P
- insertnickname 12y agoMore and more websites now reimplement loading the page in JavaScript. Just thinking about it makes me angry.
- gnuvince 12y agoI really dislike how a lot of multi-page navigation (i.e. getting results 51-100) is now commonly done with AJAX. It's not really faster than loading a new page, but it breaks the back button. "Oh you clicked on the 287th link and hit back? Here are results 1-50." So annoying.
- clarry 12y agoWhat's interesting is that in the past, all the Real web devs knew that frames suck because they break navigation. Anyone who showed their framed site in a community of cool web devs would be laughed at. Now it's cool to break the back button (and links and everything) and make me watch spinners. It's as if the text and thumbnails they're serving today somehow take two orders of magnitude more bandwidth to load...
- mattdw 12y agoDevs and designers are now (more so than ever) different sets of people, and designers are now calling the shots in most places. I'm a web dev, I know that ajax loading sucks, that without enough budget to do it right (and we never have enough budget) UX ends up broken, messing with scrolling sucks, page-based is best, don't make an app if it should actually be a site, etc. Do I get any say? Not really. What do I end up building? Magic-scrolling ajax-loading apps, and if I have any budget left at the end of the job it goes on tweaking typography (i.e. designer-visible stuff) rather than fixing back buttons. Which is to say, devs still know that this stuff sucks, but we're no longer in charge of the relevant decisions.
- bdg 12y agoDoes anyone remember Gopher:// ? My experience was that content was a first-class-citizen of the gopher-net, because we didn't have "hyper media".
- jayvanguard 12y agoDamn kids and their "hyper" media. Why couldn't they all just be satisfied with good old fashioned calm media.
- davidw 12y agoIn the text-based browser I used back then, Gopher appeared nice and neat, with easy to read lists, whereas whatever web browser presented stuff in a sort of jumbled way. Gopher seemed like the better system and I wasn't really impressed with the www stuff I'd load.
- kissickas 12y agoWow, I had never heard of it, but that looks pretty cool. Gopherpedia is a complete interface to Wikipedia which I'll probably make use of. Anyone else running Lynx? I don't use it for normal browsing (FF+NoScript like many others here) but I do fire it up for some of the purposes listed in the original article - works well with my workflow, no distractions, and of course it's really safe. Incidentally, it still fully supports Gopher. On Mac OS, I highly recommend Lynxlet http://habilis.net/lynxlet/ http://habilis.net/lynxlet/
- aruggirello 12y agoI used Lynx back in my glorious startup days (12-15 years ago :) it was a great tool to see what the various crawlers (which were Altavista, Lycos, Yahoo and Hotbot at the time) were actually "seeing" on the pages of my site. It helped solving issues with spacing, alt texts...
- brownbat 12y agoI'm a big fan of Lynx. (Haven't changed my profile in a while.) Though it is sad that it breaks on most of the modern web. I've often wished someone would by the .text TLD and have strict bans on images and restrictions on scripts. It'd probably just quickly and abysmally fail, but hey, 140 character limits caught on, who knows.
- hacknat 12y agoAll she had to talk about was scripting. It is super convenient to be coding in your language, have another window that is open beside your code that automatically does your searches on a certain website based on what you have open in the other window.
- sachac 12y agoThis is true! I've used keyboard macros with webpages and textareas to save myself lots of time. =)
- jfb 12y agoI think what would be interesting is not in bringing the web to Emacs but rather Emacs to the web; a web browser that exposed everything right down to the rendering primitives in a decent (well, better than elisp or Javascript) language, allowing users to customize how they interact with the web in the way that Emacs users customize how they interact with text.
- swombat 12y agoFirefox is already pretty heavily customisable through XUL and, of course, is open source so you can modify every aspect of it...
- jfb 12y agoI guess XUL is the stumbling block for me there. And of course, the browser itself can be modified, for which yay! but really I'm looking for a small set of primitives exposed in a high-level language that can be combined to create web browsers specific to certain tasks; perhaps something like this could be retrofitted onto Firefox, in the way that Emacs was an macro-extension of an existing editor.
- JetSpiegel 12y agoVimperator for Firefox, then.
- sedachv 12y agohttp://common-lisp.net/project/closure/ http://common-lisp.net/project/closure/
- 3rd3 12y agoJust yesterday, I tried it the other way around with a terminal emulator in the browser using FireSSH [1]. However, I’m not sure whether it is particularily safe to have a SSH connection to localhost in Firefox. It also needs some key-rebinding to be of any use which I haven’t done yet. [1]: http://firessh.net/ http://firessh.net/
- 3rd3 12y agoYeah right, I have no idea why I deserve a downvote.
- 3rd3 12y agoLOL, are you fucking kidding me… One of the points of the blog post is that web browsing in Emacs allows you to integrate browser work and Emacs work, which for me is the most compelling one. But you can possibly achieve something similar by integrating Emacs into Firefox via SSH and using for example .js [1] for automatization work. That way you wouldn’t have the disadvantage that you basically lose most formatting and layout which are actually quite helpful if you stay away from the loud and annoying websites. That’s why I thought it was worth mentioning. I also use Tree Style Tabs and it could be helpful to keep work related websites and Emacs buffers organized in that way. [1]: https://github.com/defunkt/dotjs https://github.com/defunkt/dotjs
- boyaka 12y agohttps://chrome.google.com/webstore/detail/secure-shell/pnhechapfaindjhompbnflcldabbghjo?hl=en https://chrome.google.com/webstore/detail/secure-shell/pnhec... Also crosh on my chromebook, which uses the same url just replaces nassh with crosh.
- krylon 12y agoI use w3m from Emacs all the time. It is not my primary browser, but I do like it for reading documentation while hacking. It is ridiculously fast and uses very little memory when compared to Firefox. It is very convenient for copying snippets of code and pasting them in whatever file you are editing (or a REPL), too. The same, to a lesser degree, goes for Dillo. It is amazing how Dillo can have dozens of tabs open and never use more thant 50-100 MB of RAM... :)
- omaranto 12y agoHave you tried eww in Emacs 24.4? I already like it better than w3m.
- username223 12y agoIt's better once you keep it from messing with your text background color. I think this does it: (defadvice shr-color-check (before unfuck compile activate) "Don't let stupid shr change background colors." (setq bg (face-background 'default)))
- chriswarbo 12y agoI agree. Not had chance to try eww yet. One step up from Dillo is Netsurf, which seems to handle more CSS than Dillo but is still pretty snappy.
- ams6110 12y agoI use emacs to read my email and use w3m to format HTML emails (which sadly, most are these days, and more and more don't include a plain text alternant). In particular it does a good job with tables. I have not tried eww yet.
- platz 12y agoelinks is quite useful on a raspberry pi
- PaulHoule 12y agoI don't know if Emacs is so secure. Years ago I wrote a virus that would propagate between files in Emacs lisp.
- baddox 12y agoCould it propagate from computer A with an infected Emacs to computer B with a clean Emacs, simply by opening a file saved by A on B? If so, I would be pretty surprised and impressed. If not, I don't think I would consider it a virus.
- hug 12y agoIf it can propagate from machine to machine it would be considered a worm. If it only infects files locally, it's a virus.
- baddox 12y agoFair enough. I always considered computer viruses to be self-replicating, which I thought meant among computers, but Wikipedia supports your definition. Still, is this really self-replicating at all? It sounds more like an Emacs extension that simply "colors" files in some unique way.
- technomancy 12y agoYears ago, huh? Was it before Emacs added support for whitelisting file-local variables? These days you can't just place elisp in arbitrary files and have it get executed. (Of course, propagating to other elisp files is both easy and completely orthogonal to Emacs, since you could do it in basically any language.)
- PaulHoule 12y agoThe same problem happened with Microsoft Word, which, in my mind, is a product a lot like Emacs. Emacs is written in a special dialect of LISP, Word is written in a special dialect of Visual Basic. Both have a mind-boggling array of features, etc. The difference was the Word viruses got a lot more fame because more people used Word.
- oconnor663 12y ago> You’re safe from browser exploits. I'm skeptical of that. Of course no one is actually targetting whatever vulnerabilities there are, and getting rid of JS helps a lot. But is all the code sandboxed or anything?
- hrjet 12y agoDid you mean the browser code itself? We are actually trying to do that in gngr[1]. (1) https://gngr.info https://gngr.info
- technomancy 12y agoGiven that eww (the latest Emacs web browser) is written in elisp, it's safe from buffer overflows and such, which are the most common form of vulnerability in software written in C. The actual parsing code uses libxml, which isn't elisp, but is one of the most widely-deployed parsers around. Obviously there's no such thing as perfect security, but I would guess it's way more difficult to exploit than your conventional browsers.
- Tehnix 12y agoFrom the other comments, I feel more alone in this camp than I thought. I've taken the stance to not even consider a user, browsing sites I develop, with javascript off. It's such an integral part of the web by now, and without it, interactivity doesn't really exist. Is it really so prevalent to browse without JS (I doubt the casual user would do that, since they're probably not even aware that JS exists)? The only reason I'd care about displaying content without JS, is specifically for crawlers.
- njr123 12y agoIts not prevalent at all. The HN echo chamber makes it seem like there are many people who do this, but the number of people in the real world is basically zero.
- patronagezero 12y agoMy parents live out in the country and have to use wireless internet (limited to verizon in this case). They and everyone in the area use noscript now. It spread like wildfire after I made the point a few times to my dad that his bandwidth was being chewed up by javascript ad-polling when leaving tabs open with javascript enabled. HN might indeed have a vacuum effect, but that cannot compare to the city-folk effect. I also browse without javascript enabled. Javascript has become a plague on the internet in my opinion due to ad networks overrunning simple content that is document-based (news and article sites). Now you have JS MVC and single-page sites that spiral out of control in regards to both RAM and CPU usage due to bad developers (generally) looking for a shortcut to web development.
- deleted 12y ago[deleted]
- 3rd3 12y agoOff-topic: What does the [noobtor] mark on the dead comment below mean?
- alxndr 12y agoGuess: a new ("noob") account registered/used via Tor?
- diziet 12y agoA great reason not to do this, if you are building anything that will ever be touched by end users (or are building anything that is an application on the web browser) is this isolates you from how real users consume internet content.
- netcan 12y agoCustomizing something and making it yours is a powerful thing. I think that ultimately that's the reason. One reason is that you make things uniquely fit you. But, I think in more cases than we are aware or want to admit, the emotional reasons are the real reasons. Sometimes its nice to have something you made, not something that was mass produced for everyone. "Resource hogging" always seems like such a crazy reasoning. It's more aesthetic than practicalities. Is your memory really so scarce?
- to3m 12y agoThere's a line between "use" and "hogging"... My computer is noticeably slower when Firefox is running. Quite often, Firefox will grab the audio device and not give it back, silencing all other programs. Sometimes the fan will just spin up and the computer will sound like a hoover until I quit it. Over time it just uses up more and more memory, rarely giving it back. It's not unusual to look at the task list and see Firefox taking up 400+MBytes, even though you're doing very little. (Right now, it's taking up 420MBytes. All I have open is the HN page with this text box I'm typing in.) I also think it does something rude with the GPU, too - when I'm not running Firefox, the auto-hide dock pops up perfectly smoothly. When Firefox is running, though, it stutters as it pops up. The X11 version is terrible to use over a network too. (I had a whole different set of complaints about Safari.)
- clarry 12y agoFirefox is the only application that regularly crashes (due to running out of memory) on my system. I could increase memory limits and it'll end up causing so much swapping I wish it had just crashed.