Hacker Newsnew | past | comments | ask | show | jobs | submit | jp3141's commentslogin

TypeScript: Every minor version has breaking changes and the next version after `n.9` is `(n+1).0`


They never go higher than .9? Why?!



Wow. Also pretty funny that he says "if we followed semver rules exactly, literally every single release would be a major version bump".

Seems like quite a blase approach to the development of such a large project.


I always ask teams that say that: "OK, so every release will be major, what's the problem?"

I don't think anyone is losing sleep that we're on Chrome 86.0.4240.75 and that communicates exactly the amount of information I need to know if that's older or newer than another version.

I agree it's not semantic versioning, per se, and maybe not nice to developers but it's at least communicating clearly IMO.


I'm on version 83.0.4103.116 which is 3 major versions behind. I am averse to upgrading because it's working for me and I'm concerned about 3 rounds of incompatible/breaking changes. I have no idea about the relative maturity of the two versions, how big the breaking changes are or if they're likely to affect me, or how much time has transpired between the two versions. With every "major release" of Chromium my wariness increases, until the only way you'll get me to upgrade is when I'm forced to upgrade my system.

How is this communicating clearly or being helpful to me? Does anyone know offhand what major version of Chromium/Firefox they're using? If it's just an incremental counter, then why do we need .0.4103.116?


4240 - 4103 = 137 days between versions.


Javas implementation of HashMap uses a tree on hash collision.

[0] https://hg.openjdk.java.net/jdk8/jdk8/jdk/file/687fd7c7986d/...


If the bin is big enough to warrant it, according to your link.

Thanks for the link!

I imagine they do this as the user space can define hash algorithms and someone is gonna just return zero every now and then out of laziness :-)


You also need a comparable() key presumably - which you often have, but not always (a comparable() key is not strictly required by a hashtable).





One of the points has since been removed from reality: jemalloc was removed and the default allocator switched to system in 1.32 (January 2019)[0].

[0] https://github.com/rust-lang/rust/blob/master/RELEASES.md#co...


How do you redirect to the phishing site, if you are currently browsing an SSL encrypted website without making it to obvious? Since you get an error message in the browser...


That is correct. However it's trivial for a MiTM attacker to perform an SSL stripping attacks when the victim is communicating with sites that support plain HTTP.


even with HSTS?


If a website employs the use of HSTS all traffic will be redirected to HTTPS, rendering the support for HTTP redundant.


Hmm, if you can control the plaintext network isn't there an NTP attack to reverse time and use old compromisable certificates or move it forward past hsts max age?



> Disclaimer: Dataloop helps build DalmatinerDB so there is a massive conflict of interest.



Math is a tool. It's orthogonal and used by all, not hierarchical above (or below) all of them..

http://euclid.trentu.ca/math/sb/misc/mathsci.html

    > The natural sciences investigate the physical universe but mathematics does not,
    > so mathematics is not really a natural science. This leaves open the subtler
    > question of whether mathematics is essentially similar in method to the natural
    > sciences in spite of the difference in subject matter. I do not think it is.
I'm not even including that famous Einstein quote about math.

Example: When you are doing math in economics you are not doing something that is even more foundational than physics.


Alternatively: mathematics can be seen as the science of structure.

http://web.maths.unsw.edu.au/~jim/structmath.html


what if the nature of the physical universe has no other reason to be as it is other than mathematical consequences of harmonies, resonances, balances, etc? In other words: if all that exists follows mathematical law, doesnt that make math part of the existential?


    > if all that exists follows mathematical law
As a thought experiment, try the opposite direction: Math mirrors reality, not reality mirrors math. I don't see electrons solving quantum equations - equations describe an electron. The cannonball follows a trajectory that we can describe using math - but it doesn't do math. Sure, you can say that it does, implicitly, but IMHO that's stretching it a bit, I don't see the value in such a metaphor.

From a certain level such questions become completely arbitrary and useless: Remember, it's your brain that interprets everything and you can just say whatever you want when there are no consequences.


> As a thought experiment, try the opposite direction: Math mirrors reality, not reality mirrors math.

If this was true, it would severely limit the usefulness of math. We'd see our predictability break down much sooner than we do actually. Read up on it here:

http://plato.stanford.edu/entries/mathphil-indis/


Why do you interpret my post as an absolute?

http://dilbert.com/strip/2015-06-07

I said - and I have no idea why I have to paraphrase my one sentence - to try a thought experiment, to see what happens when you reverse the direction.

Not to mention that you didn't really say anything? I have no idea what your point even is.


We don't have to make this thought experiment since we already know that it isn't the case - reality is a subset of what's mathematically possible. Finding that subset is what physics is concerned with.


Were you replying to me? I actually upvoted you, if it's meant to be a contradiction than I don't see it. I only just realized you may have been answering me since you used my words, but other than that I have no idea if that's true.

In any case, I should have read more carefully, because

    > reality is a subset of what's mathematically possible
does not mean anything. It's a grammatically correct sentence, sure, and that's all. The number of (grammatically) correct sentences is definitely larger than the number of useful ones though :)


let's just say it was a bit late in my timezone ;-).

I probably replied to the wrong post, but I wanted to say that math is in fact a tool for science - instead of being the most fundamental science itself. I've met some people, including mathematicians, who think that because everything can be described with math, it means that math is all that's needed to find the truth about reality. My point is that the process of appying math to find the model that best fits our own world is something that's outside of math itself.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: