News for hackers. Stuff that matters.
Re:JankyBrowser: The only cross-platform browser that fits i... by peterkelly on Friday November 14, 2014 @03:27PM (#8609295)
And here's a two-line web browser written in bash:

    #!/bin/bash
    firefox
To clarify: If you're using a third-party rendering engine, your effort doesn't count as a "web browser". HTML parsing, CSS rendering, javascript support etc is the hard stuff - back/forward buttons and tabs aren't.
Re:JankyBrowser: The only cross-platform browser that fits i... by morganrallen on Friday November 14, 2014 @03:52PM (#8609426)
But those are the parts that make it a web browser. Good luck actually using the web by rendering out pngs.
Re:JankyBrowser: The only cross-platform browser that fits i... by spolu on Friday November 14, 2014 @01:34PM (#8608685)
This the most extreme Gist I have ever seen. So fun to see a functional browser implemented with only a few lines of code.

Disclaimer, I'm on of the dev being Thrust. That's exactly why we built Thrust, but @morganrallen pushed the envelope by distributing that through a Gist. So cool.

Re:JankyBrowser: The only cross-platform browser that fits i... by talles on Friday November 14, 2014 @01:38PM (#8608709)
I'm about to try it.

Anyway, why the author didn't published the package on npmjs.org?

Re:JankyBrowser: The only cross-platform browser that fits i... by morganrallen on Friday November 14, 2014 @01:39PM (#8608716)
I chose not to because it's not really a serious project. It is more of a demonstration. But, I will be undertaking a more serious browser in the near future.
Re:JankyBrowser: The only cross-platform browser that fits i... by talles on Friday November 14, 2014 @01:47PM (#8608771)
I understand. But I would have published.

There is a lot of crap on npmjs.org and your little toy, despite being just a toy, is organized and have a purpose; it makes sense to people other than you. Plus got on HN front page.

I see npmjs.org as something more handy than formal. It's just me?

Re:JankyBrowser: The only cross-platform browser that fits i... by morganrallen on Friday November 14, 2014 @01:50PM (#8608792)
I suppose, but with there being a lot of crap, why publish something I'm unlikely to support? I'll give it a re-think.
Re:JankyBrowser: The only cross-platform browser that fits i... by mhernandez1988 on Friday November 14, 2014 @01:48PM (#8608777)
True, i say publish it, this package is a hell of alot better than most of the crap on npm.
Re:JankyBrowser: The only cross-platform browser that fits i... by zongitsrinzler on Friday November 14, 2014 @01:53PM (#8608805)
What is this exactly?
Re:JankyBrowser: The only cross-platform browser that fits i... by forgottenpass on Friday November 14, 2014 @02:16PM (#8608924)
It's a proof of concept that cross platform toolkits that include browser engines can be used to write cross platform browsers in an arbitrarily small amount of code.

It sorta like the qt browser I wrote in ~100 lines to debug a QWebView issue, but much more pleased with itself.

Re:JankyBrowser: The only cross-platform browser that fits i... by morganrallen on Friday November 14, 2014 @01:55PM (#8608819)
It's a web browser.