nybblet's comments

nybblet | 7 years ago | on: Firefox is back. It's time to give it a try

Sounds like you're using the Google Accounts feature, and using the [separate] browser profiles feature would exactly solve your problem.

In particular: you can log into different profiles in the browser (each window can be associated with up to one profile, and they can be different), by clicking the little "Sign In" tab in the upper right corner. See also https://support.google.com/chrome/answer/2364824?hl=en&co=GE....

You can then open tabs under the different profiles with right-click, "Open link as", and selecting the appropriate profile.

(Personally, once I tried profiles, I never touched multiple-accounts-logged-in again.)

nybblet | 8 years ago | on: How JavaScript works: inside the V8 engine

Not what I said. I said to avoid /hand-optimizing/ code.

Trying to write performant code is good. Some examples of advice on that front: - use an appropriate algorithm, and make sure the logic is free of bugs. For example, accidental out-of-bounds array accesses can really hurt performance. - avoid needless computations. Don't do something (complex) twice if doing it once is enough.

If this sounds like "use common sense/generally good design principles", that's because it is (and hence the agreement with many of parent post's points that are simply and straightforwardly good design principles).

Let's take the example of "remove function calls". It's true that each call costs a few instructions, but unless the function you're calling is tiny, that overhead won't be measurable. If it makes sense for readability/maintainability/testability to split your code into functions, then by all means do it!

Another example is the "trick" to write "for (var i = 0, len = array.length; i < len; i++)" instead of the simpler "for (var i = 0; i < array.length; i++)". As http://mrale.ph/blog/2014/12/24/array-length-caching.html (from the original V8 team) explains in great detail, what seems like a no-brainer can actually do the opposite of what you'd expect --- and at the same time, won't make any difference whatsoever in most real code (i.e. aside from microbenchmarks).

Yet another example is https://www.youtube.com/watch?v=UJPdhx5zTaw. You can spend all day on it, but at the end of the day, the best thing to do is code correctly and sanely, not hand-optimize the bejeezus out of the thing (mostly yourself, in many cases).

nybblet | 8 years ago | on: How JavaScript works: inside the V8 engine

I agree with a lot of these bullets just as general design principles, and emphatic +1 to not hand-optimizing.

Just noticed this comment after posting https://news.ycombinator.com/item?id=15069116, which is specific to V8 but which I'd guess holds for other JS engines too. Relevant excerpt:

""" ...in just about every case, the real answer is "it depends". That's why V8 is ~1,000,000 lines of code, not 1,000.

Please don't try to follow some rule blindly, much less derive. More often than not, when you try to hand-tune for the last bit of performance, you'll actually trigger something that was introduced to streamline the other [95% of] cases/JS devs' code, and then you've spent hours on making your code less readable with no benefit.

There is no "Try This One Crazy Trick To Make Your JavaScript Fast!!!" (or even ten!) """

(And for the specific case of preallocation vs. growing as you go, right now, in most cases, the difference is negligible. In the others, it depends.)

nybblet | 8 years ago | on: How JavaScript works: inside the V8 engine

tl;dr: No, this is outdated, and please don't try to hand-optimize.

This is outdated. It was true in 2013, but changed in 2014 (https://codereview.chromium.org/416403002/ ; specific change in elements.cc).

Two tangential cents/Unpopular Puffin: there's a lot of misinformation or half truths that are propagated about V8 in an effort to boil all their optimizations down to One True Set of Advice, in this post and others.

The thing is, in just about every case, the real answer is "it depends". That's why V8 is ~1,000,000 lines of code, not 1,000.

Please don't try to follow some rule blindly, much less derive. More often than not, when you try to hand-tune for the last bit of performance, you'll actually trigger something that was introduced to streamline the other [95% of] cases/JS devs' code, and then you've spent hours on making your code less readable with no benefit.

There is no "Try This One Crazy Trick To Make Your JavaScript Fast!!!" (or even ten!)

(And in this particular case of pre-allocation vs. growing as you go? Usually the difference is so tiny it doesn't matter, and in the other cases --- it depends.)

Disclaimer: I'm not on the V8 team but I'm on a personal basis with some of them, and these are my own thoughts cobbled from casual conversations.

nybblet | 9 years ago | on: Michael Puett’s book The Path draws on the insights of Chinese philosophers

It's true that Confucian values talk about not self-injuring/damaging what parents gave to children --- their physical bodies etc. --- but pretty sure the abandonment of the long queue of hair on the collapse of the Qing was due to the fact it'd been imposed on the Han Chinese by the Manchus as a form of suppression.

nybblet | 9 years ago | on: Chekhov: “Cultured people must, in my opinion, satisfy the following conditions”

Agreed on all counts!

"The Master said: 'Girls and inferior men are hard to get along with. If you get familiar with them, they lose their humility; if you are distant, they resent it.'" (Chapter 17)

This sounds pretty bad. My reading of it is that he meant that relationships between men and women are particularly tricky (bearing in mind heteronormative standards at the time, etc. etc.), so one has to be careful not to misrepresent them or else everyone suffers. This can be generously reinterpreted to general use ("don't toy around with people and treat them straightforwardly"). Realistically... I'm happy to take it as a mistake on his part and just extract something worthwhile from it even if it's not what he meant.

With regard to enlightened perspective or lack thereof, there's an interesting question. I'm no expert on Confucius himself and how he regarded women, but his filial piety towards his mother is widely lauded (as was Mencius').

Hope that helps!

nybblet | 9 years ago | on: Chekhov: “Cultured people must, in my opinion, satisfy the following conditions”

Agreed with treve, what does culture really mean? If you read ALL the literature, listen to ALL the music, view ALL the art, can recite ALL the history and do ALL the science... and still conclude it's OK to cheat on your wife and taxes, the argument can be made that none of this culture was internalized, and hence you are not cultured.

Of course things are rarely so black-and-white, but that's the gist of it.

nybblet | 9 years ago | on: Chekhov: “Cultured people must, in my opinion, satisfy the following conditions”

"The Master said, 'The prosecution of learning may be compared to what may happen in raising a mound. If there want but one basket of earth to complete the work and I stop, the stopping is my own work. It may be compared to throwing down the earth on the level ground. Though but one basketful is thrown at a time, the advancing with it is my own going forward.'" (The Analects, translated by Legge)

nybblet | 9 years ago | on: Chekhov: “Cultured people must, in my opinion, satisfy the following conditions”

I'm struck by how much this echoes Confucius and the Analects and how they define the so-called gentleman or noble man (not to be confused with nobleman, and translation is hard). Given how unlikely it is that Chekhov had exposure to either, it's incredible to observe the universality of these qualities considered admirable.

If people haven't, do recommend checking out The Analects! Caveat: there are quite a few excerpts that need to be taken in historical perspective, or can be easily misinterpreted (e.g. advice to be slow to embrace new that was in context of centuries of chaos and warring, or statements on women that interpreted naïvely clearly contradict other statements on mothers).

nybblet | 9 years ago | on: Distant languages have similar sounds for common words

The earliest sounds that babies make tend to be "ma/muh" sounds, as they're smacking their lips to signal for food. Seems likely for language then to develop that sound into the word for "mother", the nearest object (food source as the case may be).

nybblet | 11 years ago | on: Love People, Not Pleasure

Clearly!

My points are straightforward, so perhaps you're reading more deeply than you need.

I understand why you would say their language is passive aggressive though.

It's been an interesting discussion at any rate. Best of luck!

nybblet | 11 years ago | on: Love People, Not Pleasure

1) Nope, just stating what I've seen time and time again to be the case/interpretation of your points. This might not be the case for you, but I do want to point out an alternate perspective that is infrequently given coverage in such threads.

2) Also nope! Sorry if I seem a bit amused now. Controlling implies "You have to do such-and-such and be dominated by me, and I don't have to do such-and-such and be dominated by you." My philosophy is that what I expect from my partner, I follow all the way through myself. There is no power issue, because both contribute equally to the relationship.

I will again point out the seeming contradiction between "I don't need to be faithful; my partner[s] do," or if you don't like that, "Men don't need to be faithful; women do." Perhaps that's not what you intend, but it sure sounds that way.

In terms of "controlling," if you expect fidelity from your partners but not yourself, and if you say that expecting fidelity sounds controlling, that would logically imply you are controlling.

Incidentally, I hope you recognize nothing I've said should be taken as ad hominem attacks. Again, I'm just pointing out how many people might take your points.

nybblet | 11 years ago | on: Love People, Not Pleasure

You state yourself exactly the problem with this and many similar situations.

"I may do injury to others, but they may not to me."

From observation, many women are NOT OK with it. They may be not explicitly not OK with it (which of course is wrong too).

A few other thoughts:

Causing injury is fine as long as the recipient, and "most of the world," is unaware? The onus is on the rest of the world not to "cause a problem," and for the recipient to point out that injury is being done, and not on the afflicter not to do injury in the first place? A woman should just be happy to be with you "as long as you give her what she needs," which apparently doesn't include fidelity?

I would be less sure.

nybblet | 11 years ago | on: Love People, Not Pleasure

And you wouldn't mind if your so-called "primary" or "side" (how interesting to apply such terms for significant others) did the same to you?

Because most people would, whether they realize it or not, and that is why they agree to commit to a relationship in the first place---because they expect the same from their partner.

Also, your "primary" will know at some point. Is a configuration really stable if it sets the stage for collapse?

page 1