HNHacker News
TopNewBestAskShowJobs

frivoal

404 karma · joined August 17, 2010

http://florian.rivoal.net/
submissionscomments
frivoal··on CSS Containment Specification
> If it doesn't have any absolutely positioned or floating child elements, wouldn't that imply contain: content?

Not just children, but descendants at arbitrary depth. Also no relative positioning, negative margins making anything stick out, no transforms, no shadow with a radius large enough to poke out of its parents...

> And if you add overflow: auto or hidden, wouldn't that infer to contain: strict?

No, you also need to make sure that the size of the parent element is not influenced (horizontally or vertically) by the size of any descendant.

Well, some of these are allowable if the effects don't poke out of the particular element you're interested in.

Effectively, this is all stuff the browser could check before turning on an optimization that depends on these conditions being verified, but due to the number of things you need to check on a tree of arbitrary depth, the verification would cost more than the saving you'd get by applying the optimization. So browsers don't do it.

css-contain gives you a mode where there's nothing to check, because the basic rules of layout/painting/sizing are changed so that things can never leak up if you've turned on the relevant type of containment.

frivoal··on W3C and the WHATWG sign agreement to collaborate on single version of HTML, DOM
W3C didn't loose Mozilla over EME. 1) Mozilla is still an active participant in W3C (there are many more things than HTML there) 2) Mozilla supported EME. Maybe reluctantly, but supported it nonetheless.
frivoal··on W3C and the WHATWG sign agreement to collaborate on single version of HTML, DOM
For HTML and DOM, this is true. There are many more things at the W3C, the most obvious of which is probably CSS. Browsers totally pay attention to what these spec says, and are the dominant participants in producing these specs.
frivoal··on W3C and the WHATWG sign agreement to collaborate on single version of HTML, DOM
> The W3C is not open to input from all. If you open a GitHub issue contributing an idea, but do not pay member fees, they cannot incorporate your idea into the spec, because of Intellectual Property Rights concerns. There is no way in the W3C to say "I sign over my IPR rights" without also paying thousands of dollars per year.

This is not true: https://www.w3.org/2019/Process-20190301/#contributor-licens...

frivoal··on W3C and the WHATWG sign agreement to collaborate on single version of HTML, DOM
There were serious issues with the way HTML was done at W3C, and this agreement between W3C and the WHATWG is a good thing.

However, all W3C specs are developed in the open, nowadays on github, and feedback from anyone anywhere is taken seriously. Don't like something about css? go here: https://github.com/w3c/csswg-drafts/issues. Something wrong with SVG? https://github.com/w3c/svgwg/issues. An issue with the Payment Handler API? https://w3c.github.io/payment-handler/. Dislike the way W3C itself works? That's here: https://github.com/w3c/w3process

Yes, the W3C is a membership based organization, and if you want to vote for instance on who gets to be on its Advisory Board, or have a say in the Charter of Working Groups, you need to be a member, and pay.

For the WHATWG, you don't get to vote on who's on the Steering Group, and you don't get a say on what new Workstreams are started / changed / stopped, even if you did want to pay. That's up to Google, Apple, Microsoft and Mozilla. Sure anybody can suggest stuff (but that's true at the W3C too), but they decide, and there's no way into that club.

Not to claim that W3C is perfect. Plenty of improvements are needed. But claiming that small business or individuals cannot participate just isn't true.

frivoal··on I tried creating a web browser, and Google blocked me
I think you were probably trying to find this article:

https://web.archive.org/web/20190119000840/https://plus.goog...

frivoal··on Chrome is Not the Standard
CSS Working group person here.

We're trying. Grid (also Flexbox, but mainly grid) should be a large part of the solution, as it significantly reduces the need for divs that are just there for layout purposes. display:content should also help disconnecting your markup needs from your styling needs somewhat (go shout at browsers if it's not coming fast enough). We've also recently decided to add multiple borders, so that you don't need to add a bunch of nested divs just to have nested borders.

The last piece of the puzzle would probably be to be able create boxes (or trees of boxes) without markup, and inject content from the DOM into these boxes. That would be fantastically useful, and has been explored before, but it turns out it is a really hard problem. The first attempt at this is css-regions, which ended up being rejected, in part by Google (because they thought the complexity needed for the implementation was excessive), in part by Mozilla (because they thought the design didn't fit well with how everything else works and would break in too many cases. Also, complexity).

A more modest attempt has been outlined here https://drafts.csswg.org/css-overflow-4/#fragmentation but it is still only an early draft, and solving that isn't trivial either.

frivoal··on “It is never a compiler error”
Having to use a specific point release of the compiler to work does not necessarily means later version have a bug. It could also mean that the program is (accidentally) depending on implementation details that are not guaranteed by the language, and that the compiler is supposed to be free to change behavior about. For languages like C with a significant amount of undefined behavior, that's actually quite likely.
frivoal··on Switching from Common Lisp to Julia
For yourself, maybe. If you intend to share the code you write (or use code written by others), then implementation differences start to matter.
frivoal··on W3C abandons consensus, standardizes DRM, EFF resigns
W3C decided to publish a final version of the EME specification. W3C is the place where member companies come to write and negotiate the specification for how many web technologies should work. EME is an API for talking to a audio/video DRM module. EME (and the corresponding DRM modules) have been shipping in all browsers for years.

A large minority of W3C members, led by EFF, were trying to tie the publication of this specification with a legal contract (called a covenant) between members preventing them to sue people (under laws like the DMCA) if they did nothing more than break the DRM. This would leave copyright infringers liable to law suits, but not security researchers, developers of accessibility add-ons, and so on.

This proposal gather a large minority, but a minority nonetheless.

The W3C process doesn't let the majority win automatically. Normally, it goes by consensus, and keeps negotiations going until all find something they can agree on. If that fails to happen, and someone objects to the decision being proposed, the director of the W3C (who is incidentally the person who invented the web), gets to call the shot.

If a majority of members thinks he called the shot wrong, he can be overturned in appeal.

This decision to publish the final version of the EME specification without a covenant was appealed, and the appeal failed.

frivoal··on W3C abandons consensus, standardizes DRM, EFF resigns
1) EME doesn't work like that 2) EME has been shipping in all browsers for a while. This hasn't happened.
frivoal··on W3C abandons consensus, standardizes DRM, EFF resigns
They are not a W3C member, and do not contribute to standards. So no.
frivoal··on W3C abandons consensus, standardizes DRM, EFF resigns
That's the wrong question. W3C itself is relatively tiny, and has fairly ordinary (albeit well tuned) software/server infrastructure. Reproducing the legal framework would be more of a pain, but even that could probably be done. But W3C is mostly its member companies, and the're not switching, since the majority of them, including all browsers, were in favor of this. So if all existing specifications continue to reside on W3C's web site, and all new specifications continue to be produced (by member companies) in the same place, there's not meaningful forking possible.

If members are disgruntled, you can fork. That's happened before when there was disagreement about what to do with HTML, and it led to the creation of the WHATWG.

By and large, members this time are supportive. Not all, mind you, but all the large players.

frivoal··on Japan Pictures Likely Show Melted Fukushima Fuel for First Time
Alternatively, the animals aren't radiation hardened and do die of cancer, but not fast enough to get in the way of breeding and multiplying. Or, in other words, while radioactive waste is unhealthy, it fatality rate is lower than having humans around.
frivoal··on Tim Berners-Lee approves Web DRM, but W3C members have two weeks to appeal
I believe they want to, but the appeals process is an untested one, and will be evaluated by the same people who made the original decision. Don't get your hopes too high.
frivoal··on Tim Berners-Lee approves Web DRM, but W3C members have two weeks to appeal
How so?

The effect of DRM is to prevent the user from doing things that would otherwise be technically possible, such as copying. Once the software has decrypted the media, it can do whatever it wants with it. It is just so designed that what it wants to do with it is not the same as whatever the user wants to do with it.

Free or open-source software give the right and the ability to the user to modify what the software does. So if a feature is missing (save a backup copy), the user can add it (or pay someone to).

I piece of software cannot at the same time: * be able to decrypt a video * be able to be changed at the users' will * be prevented from doing certain things the user wants.

If you merely write a piece of open-source software that lacks the ability to save a copy, you merely have a missing feature that can be added by anyone who wants to fork it, you are not preventing copying.

If the decryption is done in hardware, the problem is the same, just shifted. If people have the ability to change the hardware, then we're back to square one, and if they don't, then it's not a free/open-source system.

frivoal··on Tim Berners-Lee approves Web DRM, but W3C members have two weeks to appeal
The best answer I know to this was written by Hixie (main editor of the HTML spec) a few years back:

https://plus.google.com/+IanHickson/posts/iPmatxBYuj2

frivoal··on Cheating on a string theory exam
Unless I am misunderstanding something, all the answers here seem to assume that the friend is either able finish instantly, or to leave before he is done. That isn't stated in the question, so I don't think it's valid to assume you can use all of 90 minutes * 60 seconds to transmit information.

"a fraction of the time" isn't a very clear problem statement, as 9999999/1000000 is a fraction, but that's certainly not what is meant by the common sense understanding of this phrase.

I am wondering what we can do without clarifying the statement further.

We can still encode 90*60 23-bit vectors and have the friend pick the one, in the remaining time after he finishes, that minimizes the distance to the true answer, but without knowing how early he finishes. That is probably still the way you can get the best score on average, but I don't think it does better for the guaranteed number of correct answers than just transmitting 1 bit of information (which guarantees at least 12 correct answers).

Would it help to use odd vs even seconds to indicate whether the fiend finished early enough to use the clock to indicate an arbitrary time vs the time at which he should have left was already gone when he finished his exam? I can't think of how to use this (or a similar) signaling to improve the worse case odds.

On the other hand, while I cannot think of a way to improve your worse case situation, you should be able to improve average score by sorting your 5400 23-bit vectors so that the distances between the last ones are as large as possible.

frivoal··on GitHub for Lawyers (2013)
I have a Jekyll install set up to do just that. It's quite primitive, but better than nothing.
frivoal··on Opera 12.15 source code
It's not being used in the desktop browser anymore, but some consumer electronics project still under maintenance are, and so is Opera mini.
frivoal··on Zhou Youguang, creator of the Pinyin writing system, has died
A litlle. Intonation and non verbal cues help a bit with disambiguation. Also, while pinyin can have tone markers, they are a pain to type and are often omitted.

It is not rare to see people who are having an oral conversation disambiguate words by drawing them with the index finger in the palm of their hand.

frivoal··on Does Google execute JavaScript?
I was maintaining a port of the Opera browser for Japanese feature phones in 2007. We supported flash in 11Mb of RAM: 6 for the browser, 5 for flash. That included the screen buffer IIRC. We ran regular desktop web sites under these conditions just fine (with 2007 expectations regarding interop). The experience may not have been great, but that was much more an issue of tiny screens without touch support than anything else. Had Apple wanted to, they would absolutely have been able to support flash on the iPhone. We could on much worse hardware. Not doing so was about controlling the platform, not about technical limitations.

http://www.operasoftware.com/press/releases/mobile/opera-del...

frivoal··on Reasons I Won’t Fund You
There's a huge difference between being able to speak nicely despite being a dick, and not being a dick.

I don't care if someone curses or is blunt about how they think something sucks, but one joke about how a certain person from sales who keeps bringing customers to hostess bars has a "nice but unfortunately expensive hobby", or to refer to engineers as "the autists", or to be glad that "the monkey is gone" when a black person leaves the room (all things I have heard from execs)... That does not show how bold and disruptive someone is, it just shows they are a terrible person. Maybe still a successful terrible person, but I still want nothing to do with people like that.

frivoal··on Web fonts, boy, I don't know
I blame the browsers. There's no deep reason you have to introduce a piece of javascript to hide stuff from the browser so that it can load the page normally, and then add back the fonts. If browsers cared about making the web usable for everybody more than they cared about making web page look like slick native apps, they'd do it for you.

The way browser internals work is already designed for that. if the network is slow and you get only half the html, half the css, miss some images, or whatever, the browser will render as best as it can with what it got so far, and re-render when it gets the rest. The fact that it doesn't do that with fonts sucks.

frivoal··on Twitter Shareholder Sues CEO and Board Members Over Inflated Share Price
It bought NeXT.
frivoal··on Uber's Failure in Japan
Everyone has a smartphone, except a handful of old people who have an app-capable high-end feature-phone.

Taxis are pretty much everywhere, never had to call for one except when it rains and I want to be picked up at my door.

frivoal··on Emperor Akihito of Japan Raises Possibility of Leaving Throne
> Are you operating from the premise that a non-monarchy is strictly and uniformly superior?

I do, from a moral point of view, before even going into the than a practical one (even though there are practical reasons as well). I believe that all people should be equal before the law, and that this is the point of the law: replace the arbitrary with the fair and predictable. All people. Not "all except this one family". Both the duties and the rights that royal families have make them unequal, mostly in ways that are favorable to them, but not only.

To take an example from the news item we are talking about, it is absurd that a person may denied from the right to quit his job, even if that job is being the Emperor. It certainly is a fancy job, but a job to which you are compelled by birth and may not leave does not match my conception of a free society, no matter how good the job is. And it certainly goes the other way as well, as royalty comes with its fair share of privileges that are not accessible to others.

frivoal··on Emperor Akihito of Japan Raises Possibility of Leaving Throne
> Strangely (to me) people sing the praises of democracy and disparage their existing democratically elected government with the same breath.

There's nothing strange about that. The point of democracy is not to make governments great, it's to be able to throw them out when they suck. There's not contradiction in thinking that your government sucks and in being happy about your ability to throw them out.

> And most citizens of countries led by monarchs have far less to complain about governance (and not, as many keyboard pundits may guess, because of something crass like they'd get executed for voicing dissent).

There are plenty of terrible monarchs. And some good ones as well. Monarchy's problem isn't that it makes the ruler bad. It is that if the ruler is bad, there's not much you can do about it.

frivoal··on Browsers' bid for relevance is turning them into time-bombs
The answer you're looking for is here: https://plus.google.com/+IanHickson/posts/iPmatxBYuj2 (no, seriously)
frivoal··on Browsers' bid for relevance is turning them into time-bombs
Also, a must read about DRM, by hixie (main author of the HTML5 spec): https://plus.google.com/+IanHickson/posts/iPmatxBYuj2

If you've ever thought DRM made no sense at av the tech or crypto level, read that to see that you are right but focusing on the wrong aspect, and that strategically it makes perfect sense (and is even nastier).

← PreviousPage 2 of 4Next →