News for hackers. Stuff that matters.
Re:The new Microsoft Edge is out of preview by alwillis on Wednesday January 15, 2020 @11:44PM (#22061738)
Even the guy who literally birthed Firefox (Brendan Eich) picked Chromium for Brave, his new browser.
Re:The new Microsoft Edge is out of preview by BrendanEich on Thursday January 16, 2020 @03:29AM (#22062636)
We started with Gecko in 2015, but it lost on many dimensions in a head to head comparison enumerating gaps vs. Chrome. DRM is just one example. We don't like DRM, but users want Netflix to work, and Google makes WideVine free-as-in-beer; whereas at the time, Mozilla had an Adobe deal that did not extend to non-Firefox Gecko embeddings.

So we switched to chromium/Blink in late 2015. Much later, when I visited Apple in early 2017, a devrel friend asked why we couldn't use WebKit. A WebKit founder in the meeting agreed with me that there was no way for Brave to do so on Windows w/o running out of capital. DRM again was an issue too, without WideVine. Don’t blame startup for not carrying a full engine — that needs deep pockets. While MS does have deep enough pockets, it is starting by using chromium/Blink and slow-forking.

Re:The new Microsoft Edge is out of preview by smnthermes on Saturday January 18, 2020 @09:17PM (#22088913)
Waterfox (a rebuild) and Basilisk (a hard fork) are based on Firefox, but they have Widevine.
Re:The new Microsoft Edge is out of preview by igravious on Thursday January 16, 2020 @03:56AM (#22062765)
Hey, thanks for everything you've done for open source and open platforms.

The reason you gave here for Brave not choosing Gecko (or WebKit) is interesting – but given Microsoft's deep pockets and tech know-how those reasons don't apply to them.

I think this is a strategic blunder on Microsoft's part and I say this as a Linux user. :)

Microsoft has now warmly embraced Linux – and I think they could have chosen this time to warmly embrace Mozilla. Oh well.

Re:The new Microsoft Edge is out of preview by BrendanEich on Thursday January 16, 2020 @11:07AM (#22065803)
Microsoft was slowly losing browser share with their own engine, felt they needed more web compatibility (including de facto via the WebKit lineage) and extensions sooner. They were not going to play a long game, even if they could afford it. Mozilla may have looked wobbly to them, too.
Re:The new Microsoft Edge is out of preview by igravious on Tuesday January 21, 2020 @10:29AM (#22107744)
Didn't see your reply before this, sorry.

I hear what you're saying – but! – a tech giant has to play the long game. The Web is an open (for now) platform and Microsoft, like Apple, like Google, need to have their own web client/server implementation. Makes no sense to be beholden to Google imho.

I'm stunned at how little desktop browser share Edge has (4.6%): https://gs.statcounter.com/browser-market-share/desktop/worl... – however, changing browser engine is not going to change that, is it? I suppose, if Google and Microsoft end up equally and democratically sharing Chromium development then all's well.

Given the recent layoffs at Mozilla it's a pity (in hindsight – for the benefit of the open web) Microsoft didn't back them :(

Anyhow, thanks for the response.

Re:The new Microsoft Edge is out of preview by forgot-my-pw on Friday January 17, 2020 @12:37PM (#22076970)
Surely Microsoft has done their homework: researched everything and weigh the pros & cons. This is a big thing and the next step in their browser strategy. We can only guess their reasons, but clearly in their eyes, Chromium codebase is the better choice.
Re:The new Microsoft Edge is out of preview by igravious on Tuesday January 21, 2020 @10:30AM (#22107752)
True, but big companies can sometimes make big mistakes, no?
Re:The new Microsoft Edge is out of preview by Inityx on Wednesday January 15, 2020 @11:58PM (#22061779)
Yeah, but he also designed JavaScript, so...
Re:The new Microsoft Edge is out of preview by alwillis on Thursday January 16, 2020 @12:37AM (#22061957)
Considering he designed it in about 10 days, it could have been much worse… and now it’s one of the most popular and important programming languages in the world; go figure: https://spectrum.ieee.org/computing/software/the-top-program...

In 2001, Apple could have picked Gecko but forked KHTML instead to create WebKit/Safari because it was smaller and seemed easier to work with.

It doesn’t change the fact that back in the day, high profile companies picked WebKit—Google, Blackberry, Nokia—for their browsers.

In 2013, Google forked WebKit to make Blink and nowadays, Microsoft, Opera, Brave and others have picked Blink/Chromium for their new browsers.

Even as Mozilla is making great strides with updating its engine (was Gecko; now Quantum), nobody else is going on that trip with them.

Re:The new Microsoft Edge is out of preview by bzzzt on Thursday January 16, 2020 @03:30AM (#22062643)
KHTML was always designed and positioned as an embeddable browser engine. Mozilla deprecated the embedding of Gecko, so you have to fork and change the whole browser instead of just lifting the engine...
Re:The new Microsoft Edge is out of preview by jammygit on Thursday January 16, 2020 @12:47AM (#22061992)
I like JavaScript... it’s very flexible and incredibly expressive. Using c# lately, I just feel shackled
Re:The new Microsoft Edge is out of preview by onion2k on Thursday January 16, 2020 @02:55AM (#22062473)
Moving for any modern language you know well to any other modern language will feel like that. You need to spend time learning. It has nothing to do with the what the language is capable of.

"I can code in X so I should be able to jump in to any other language and get to speed instantly." is obviously wrong.

Re:The new Microsoft Edge is out of preview by celticmusic on Thursday January 16, 2020 @10:24AM (#22065335)
I'm the exact opposite. Having a compiler help you avoid an entire class of bugs is superb.
Re:The new Microsoft Edge is out of preview by goto11 on Thursday January 16, 2020 @03:15AM (#22062565)
What can you express in JavaScript which you cant express in C#?
Re:The new Microsoft Edge is out of preview by jammygit on Thursday January 16, 2020 @01:47PM (#22067572)
Serialization for one thing. You can work with JSON extremely freely without creating weird serializable classes for every combination of data you might need to work with - eg, no class named "DoodadList" for when you want to de-serialize a JSON list (maybe that's a Unity3D thing?).

You can nest functions nicely and work with closures when it makes sense, if you like that sort of thing.

The async programming model is also really nice to work with.

You also don't need to create classes for every noun, verb, and adjective in your system either - when all you need is a function, you just write a function, not some weird object to hold it.

You also don't have to write a f after all of your decimal values to tell the silly compiler that you mean for 0.25 to be a float. (this one truly does not matter, but there are a lot of little things like this that add up)

I know you can do a lot of that in C#, but its just so effortless in javascript. You just need to be more disciplined about how you code it

Re:The new Microsoft Edge is out of preview by goto11 on Friday January 17, 2020 @04:41AM (#22073277)
You are right about having to create a class to hold a function, that is annoying. But C# do support nested functions and closures. I don't really understand your other points. A literal 0.25 in C# will be parsed as a double precision. If you want it to be a float (less precision) you use the F postfix. But JavaScript doesn't even have the float/double distinction.
Re:The new Microsoft Edge is out of preview by svecoldr on Saturday January 18, 2020 @04:34AM (#22083429)
What can you express in C# which you cant express in Assembler?
Re:The new Microsoft Edge is out of preview by goto11 on Tuesday January 21, 2020 @01:33AM (#22104740)
Expressions and functions for example. Assembler is really low level, it doesn't even have control structures. But C# seem to have everything JavaScript has and much more, so I just wondered why the parent post found JavaScript more expressive.
Re:The new Microsoft Edge is out of preview by wayneftw on Saturday January 18, 2020 @09:51AM (#22084699)
Looping over properties of an object is painful in C#.
Re:The new Microsoft Edge is out of preview by wavesplash on Thursday January 16, 2020 @12:19AM (#22061876)
Under a 2 week deadline. I challenge you to do better.
Re:The new Microsoft Edge is out of preview by tomc1985 on Thursday January 16, 2020 @01:20AM (#22062115)
Most likely he had been thinking about the project for some time. But the 10-days-execution story sounds much nicer
Re:The new Microsoft Edge is out of preview by BrendanEich on Thursday January 16, 2020 @03:07AM (#22062527)
I joined Netscape on April 3, 1995 but in the server team, due to a temporary requisition shortage. I worked on what would eventually become HTTP 1.1, which we wanted to be more like SPDY or HTTP 2. Therefore I had only spare time to think about what became JS, and I used it to study HyperTalk, Logo, and other languages, not just Scheme or Self.

I finally got transferred to the client team one whole month later, in early May. Then I had ten days to demo-day.

Why do you feel compelled to make up a story? Because it sounds nicer to you to denigrate my work, it seems.

Re:The new Microsoft Edge is out of preview by tomc1985 on Thursday January 16, 2020 @02:29PM (#22067951)
> Why do you feel compelled to make up a story? Because it sounds nicer to you to denigrate my work, it seems.

Because randos on the internet (especially business types) love to make stuff up in the name of puffery and deifying. Legends are rarely true.

Thank you for clarifying.

Re:The new Microsoft Edge is out of preview by BrendanEich on Thursday January 16, 2020 @06:03PM (#22070034)
You are a business type?
Re:The new Microsoft Edge is out of preview by tomc1985 on Friday January 17, 2020 @12:50AM (#22072236)
Yes, sadly. I'm well aware of our capacity for bullshit and cargo-culting
Re:The new Microsoft Edge is out of preview by bananicorn on Thursday January 16, 2020 @05:54AM (#22063389)
Not that you need it or anything, but I'd like to thank you for your work on Javascript - without it I might never have gotten started with programming.

So, thank you very much for laying down the foundation for a whole generation of new programmers!

Re:The new Microsoft Edge is out of preview by Gene_Parmesan on Thursday January 16, 2020 @02:35AM (#22062379)
He was... kind of. My understanding is Eich had been thinking for a while about the idea of bringing a version of Scheme into the browser. He was lured to work for Netscape by the promise that yes, he could do this. Unfortunately the business decision came down that the language's syntax had to approximate Java. So the semantics of the language had probably been settled in his mind for quite some time, but the syntax change still makes the 10 days an impressive feat. (And also explains a lot of the weirdness in JavaScript -- you're writing code and expecting it to behave like a C-like, but you're actually kind of writing quasi-Scheme and you don't know it.)
Re:The new Microsoft Edge is out of preview by BrendanEich on Thursday January 16, 2020 @03:11AM (#22062543)
I've spoken and written about the early days, e.g., here:

https://www.youtube.com/watch?v=aX3ZABCdC38

Friends from SGI recruited me (second attempt) in March 1995, I joined in early April but in the server group. I thought a lot -- but worked too little due to server commitments -- during the month of April, about "the scripting language" which was suggested to be Scheme when I was being recruited, but which by the time I joined could not be Scheme, due to the impending Java deal between Netscape and Sun.

Java meant either no scripting language, or a kid-brother language, which meant C-like syntax, primitive vs. object types as in Java, and other unfortunate consequences.

When I transferred to the client group in early May, I had to produce a demo very quickly. I chose first class functions and (barefly there at first) prototypes as the building blocks. The rest is history.

Re:The new Microsoft Edge is out of preview by collinmanderson on Thursday January 16, 2020 @04:13PM (#22069011)
So it sounds roughly one month of thinking and researching, then 10 days of coding?
Re:The new Microsoft Edge is out of preview by BrendanEich on Thursday January 16, 2020 @05:16PM (#22069606)
That's what I wrote, yeah. With constraints going from "Come do Scheme!" to "make it look like Java" and even "feel like Java" because interop, via what we hoped would come, and did in Netscape 3, as a JS/Java bridge called LiveConnect.

The Belgium Post built a whole web app+service architecture on LiveConnect.

Think of LiveConnect as "Active Scripting" on MS's platform, which enabled Java components to be developed and glued together by JS.

Re:The new Microsoft Edge is out of preview by collinmanderson on Friday January 17, 2020 @09:57PM (#22081916)
Thanks!