Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
Thiez
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
71 ms
·
781.
▲
by
Thiez
9y ago
That's crazy, copyright also counts as intellectual property, so technically you'd have to promptly communicate to the company almost everything that you write (I'm pretty sure all of your HN posts would qualify), every sti
782.
▲
by
Thiez
9y ago
I don't think your definition of inequality, which basically equals popularity, is a useful one. The article is about income inequality. While it is true that people always making the unpopular choice would reduce winner-takes-all effe
783.
▲
by
Thiez
9y ago
> The new term, wT is the amount of one’s paycheck. w represents the importance of the paycheck. The higher it is, the more pay you get. w is multiplied by the talent parameter T to implement a meritocratic idea: the more talented you ar
784.
▲
by
Thiez
9y ago
How so? Organizations such as the FDA do the exact same thing.
785.
▲
by
Thiez
9y ago
I find it a bit silly that `ptr.offset` is unsafe, but casting an arbitrary integer to a pointer isn't. E.g.: fn main() { // Look, an invalid pointer, no `unsafe` required. let ptr = 1000 as *const u8;
786.
▲
by
Thiez
9y ago
I'm not sure I understand your second paragraph, many (most?) JVM languages (Kotlin, Scala, Clojure) have Java interop, you can leave Java "the language" while keeping Java "the library ecosystem".
787.
▲
by
Thiez
9y ago
The default Java compiler doesn't do much optimizing. This is intentional, so there would be incentive to make the JVM really smart (a great decision, I think). But it's possible that the JVM doesn't optimize streams that wel
788.
▲
by
Thiez
9y ago
If the suggested `var` is anything like that of c#, there is no performance hit. When you type `Type t = some.expression()`, the compiler has to perform type inference on `some.expression()` anyway , otherwise it wouldn't be able to
789.
▲
by
Thiez
9y ago
There literally isn't enough energy in the solar system to run a counter from 0 to 2^256. Computers may still get faster for some time, but in the absence of new cryptographic weaknesses, 256 bit symmetric encryption can be considered
790.
▲
by
Thiez
9y ago
Rust has the `PartialOrd` trait, which allows you to compare two things, and it returns an `Option<Ordering>`. When two things don't have an ordering, you can return `Option::None`. There is also `Ord`, which extends `PartialOrd`
791.
▲
by
Thiez
9y ago
You can still use XPath/Xslt in that scenario, it's just more annoying. Of course it wouldn't be hard to write an Xslt to rewrite the XML so that the keys and values are better connected, so you can query it more easily using
792.
▲
by
Thiez
9y ago
XPath can be used in Xslt, but not the other way round. In Xslt you can create new elements, while in XPath you can't. Seems like a pretty big difference to me. XPath isn't Turing complete either, while Xslt is.
793.
▲
by
Thiez
9y ago
That hits like a pliers on a pig. Now you are playing to the Dutch people the zwartepiet. We share selflessly with you the best parts of our amazing language and you look the given horse in the mouth! This is why we not the effort taken to
794.
▲
by
Thiez
9y ago
In general people expect the laws of a country to apply to them only while are actually inside that country. In the UK you have to drive on the left side of the road, would you expect to be arrested on arrival for having driven on the right
795.
▲
by
Thiez
9y ago
Only in the general case. In many/most loops that humans would find useful in practice you can prove termination.
796.
▲
by
Thiez
9y ago
I imagine your suggestions would cause more deaths than they would prevent by sucking all the joy out of cycling, causing more people to just use a car instead, leading to more dangerous accidents and more obesity.
797.
▲
by
Thiez
9y ago
So if you were to practice cannibalism, it really would be healthier to eat vegetarians?
798.
▲
by
Thiez
9y ago
You can't just mitm when the JavaScript is served over https, unless you also can install your own certificates on the machine you're trying to hack. But when you have permissions to install new certificates you probably don'
799.
▲
by
Thiez
9y ago
What does accountability have to do with anything? Do you think GitHub verifies who you are when you sign up? They don't. Even if they did, a person introducing backdoors may not even live in a jurisdiction where this is illegal, or wh
800.
▲
by
Thiez
9y ago
Everybody always thinks their stuff is important, so (almost) nobody would actually choose to use your (ii) option.
801.
▲
by
Thiez
9y ago
And at which point in history would you say such goodness did exist?
802.
▲
by
Thiez
9y ago
They should have just used `flat_map`, which does everything that `filter_map` does and more. In this case the call to `Result::ok` could have been omitted in favour of the identity function (which strangely isn't in the standard libra
803.
▲
by
Thiez
9y ago
> Now I get that this is hard to see in the middle of the US, but 7.1 billion people don't have freedom of speech (roughly) and 300 million do. The thing is, those 7.1 billion mostly don't want it. Yes, as one of those poor 7.1
804.
▲
by
Thiez
9y ago
That is the case for a handful of countries, the US among them. In the vast majority of countries you don't have to pay income taxes when you live and work abroad. Of course you still pay such taxes in the country where you live and wo
805.
▲
by
Thiez
9y ago
> There are plenty of poor who would eagerly spend half their day's wages to make it home on time. How does that not drive a person insane? Let's assume an 8 hour workday (so this would be a $10/hour job). How would you fe
806.
▲
by
Thiez
9y ago
If the seller is in violation of one or more licenses, they might get sued and be forced to discontinue or significantly alter their product. If the big customer depends heavily on the product and cannot easily replace it, they are also scr
807.
▲
by
Thiez
9y ago
> I mean, if filming is not allowed, how did she get a camera in there in the first place? You're not allowed to stab people in the supermarket I frequent, and yet there's nobody standing at the door frisking all the customers.
808.
▲
by
Thiez
9y ago
A `String` in Java has a `.length()`, not a `.size()`.
809.
▲
by
Thiez
9y ago
There are plenty of ways to write fizzbuzz without the modulus operator, although it is the most obvious way. But you can also combine infinite streams, or keep track of the index of the next "fizz" and "buzz" with simpl
810.
▲
by
Thiez
9y ago
And yet a human with a parachute falls more slowly than a human with a parachute. I remain unconvinced of this thought experiment...
More ›