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

There is often some margin, and it doesn’t take much. Many early failed falcon 9 landings were very explodey


I remember a couple of years ago a root exploit in Sudo that was the result of failing to check for a sentinel value, thinking “that is a bug that wouldn’t happen in Rust, even though it isn’t related to memory safety!”

Rust enums are sum types, and imho are one of the few unambiguously good language feature ideas. I miss them any time I use a language where they are not built in. F# is another nice language where they are first class and where I first got familiar with them


> Rust enums are sum types,

I wouldn't mind so much if they just called them "sum types" or "tagged unions", or even some other new name. Reusing the existing name "enum" from other languages, but differently from the way all those other languages have used it for 45 gorram years, is freaking maddening.


Swift and Scala also uses the enum keyword to define sum types, and their history goes earlier than Rust, so now you have multiple languages to yell at!


Are you sure about Scala? I'm not familiar with it, but looking at the documentation it seems that an enum is a set of values, not a set of types?

https://docs.scala-lang.org/scala3/reference/enums/enums.htm...


That's inherited from OCaml I think.

https://www.ocamlwiki.com/wiki/Enum


I don't think so, OCaml consistently calls them "variant types". I don't know who wrote that page, but that wiki didn't even exist before September and it isn't endorsed by ocaml.org, so I suggest you don't consider it authoritative.


Nobody in the OCaml community commonly refers to them as Enum's today or any time recently (maybe they were at the time Rust was created though? IDK).

They're usually called 'variants'.


he doesn’t think women should vote and donated millions to trump, does that help with the ethics?


I have to thank some of the comments above for causing me to look into Thiel more closely. As such, it seems you've cast what he thinks of the women's vote quite wrong. These are the two relevant quotes from an essay he wrote[1]:

> Since 1920, the vast increase in welfare beneficiaries and the extension of the franchise to women — two constituencies that are notoriously tough for libertarians — have rendered the notion of “capitalist democracy” into an oxymoron.

> It would be absurd to suggest that women’s votes will be taken away or that this would solve the political problems that vex us. While I don’t think any class of people should be disenfranchised, I have little hope that voting will make things better.

He's not saying that women shouldn't vote, but that they tend vote against his libertarian politics and thus he sees little hope for democratic solutions. Are we not allowed to think that certain politics are wrong or against our own wishes, and that groups tend to vote for certain types of politics? It seems to me to be very normal to feel a lack of hope or even apathy when looking at voting patterns.

[1] https://www.cato-unbound.org/2009/04/13/peter-thiel/educatio...


If he really thought that libertarianism was a good system, would he be okay with me expressing my freedom to use the resources he considers his? Or would he want government enforcement to maintain "his" resources?


If that freedom of expression is speech and associated freedoms, then yes, why not?

Perhaps there are anarchist libertarians who say there is no need for property rights enforced by government. However, I suspect those same people would also support a right to bear arms (without a government who except themselves could enforce such a right?) and, without a government to enforce the even deeper property right of assault laws, I can see calamity there, probably for you.


Pretty much all libertarians favor some mechanism for the enforcement of property rights. They may differ as to how, but they agree that you shouldn’t be allowed to steal other people’s stuff.

(Please, I beg you, argue with the opinions that people actually have instead of something you just made up.)


Really misplaced negativity, her youtube channel is a treasure, almost nobody in the world manages to produce a breakthrough in physics research, that doesn’t make them garbage.


Imagine a huge vat of water, you add some blue food coloring. it swirls around in there, predicting how blue any spot in the vat will be is very hard. predicting the total amount of blue is very easy.

the confidence on global temperature increase is quite high, you can arrive at the same trend that the serious efforts do with a random selection of a couple of hundred stations and without any corrections. I have done this in the past using raw noaa data.

That was sort of my “aha” moment


Are you saying the points matter the inbetweens don't? It doesn't matter what's happening in rural America or the middle of Africa, or Siberia, you have an average of various distributed points across the globe?


If you record your thermometer readings over decades and average with other rural points across the globe you’ll see the same trend. This is not hypothetical either, we have this from looking at rural airports data for example - all publicly available and you can run the numbers yourself. Unless you think all people who set up thermometers at these airports are incompetent in exactly the same direction all over the world somehow.


yeah its a problem that comes up regularly, fails and can’t be rolled away. probably need legislation because so many ev fanboys pretend this isnt a problem. (i am an ev fanboy)


ok, how?


how does minify affect the times to decompress and load the css I wonder?


Unless client combines decompress and CSS parsing, they would at least allocate memory for the whitespace before parsing and then skipping them.

It might be better to have slightly bigger payload on the wire to save time after decompress.


My money is on much less than the time it would take to send the extra bytes over the wire. But I suppose measurement is key :D


They excelled at building an ev supercar and components for porsche, ferrari and others


Sudo had a root exploit recently that wasn’t memory safety related, but the rust sun types would have prevented that too. They remove any urge to use sigils (ie negative 1 or 0 mean something special) which you can forget to check. Its easier and nicer to use rust sun types and they don’t let you forget.


What's a "sun" type? Do you mean "sum" type?

And sigils are symbols, not special values: https://en.m.wikipedia.org/wiki/Sigil_(computer_programming)


Probably typos for sum and sentinel.


But do the sun types implement the Star trait?


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

Search: