Better HN
topnewbestaskshowjobs
Log inSign up

JeromeLon

124 karma · joined Jun 2, 2016 (10y ago) · 30 submissions

Submissions

comment 3mo ago · link · parent

There is no way in C to express that you don't care about the orde. When you express a struct in C, you list what you want in the struct and (sometimes without wanting it) exactly in what order you want it.

Interestingly, there is also no way to write a loop on i for all the values between 0 and 99 without specifying the order. Luckily, in this case, the compiler is allowed to prove that the order has no impact (because it's local), and to decide that it will scan the values in a different order for optimisation purposes.

So the compiler could do it on a structure as well, as soon as it's able to prove that the structure is not exposed in any way to any code that it doesn't control, but that's much more difficult than proving that variable i is not visible outside of a tight loop.

comment 1y ago · link · parent

I am not struggling with it in the sense that I need help on how to write in a better way.

It's just that I don't always ask myself whether the email I am about to send may contain unnecessary anger and would deserve an extra 5 minutes of cool down.

comment 1y ago · link · parent

This email passed unit tests.

I would love gmail (or any mail composing tool) to trigger my defined list of unit tests whenever I click on "send". Something similar to OP. For me it would probably be:

- the email must be direct and concise

- the email must be respectful of the recipient and of anyone else would could read

- the email must use proper English

And the AI would give suggestions to reach the goals if some of them failed.

comment 2y ago · link · parent

Adding some numbers to this thread. 99th percentile yearly income is:

- USA: $819k (2021)

- UK: £187k = $247k (2024)

- FR: €111k = $123k (2023)

comment 3y ago · link · parent

Braille displays are pretty common, but awfully expensive. If your side project ends up costing less than $1000, you're on a good track. Most of them are in the $2000-$7000 range, with the exception of Orbit Reader 20 which is only $800 (although many online shops seem to be permanently out of stock, I don't know if it's really sold at that price).

comment 3y ago · link · parent

ChatGPT already speaks Lojban, or at least enough to fool me.

comment 3y ago · link · parent

Can you get any taste of the supporter features before paying? I opened an account, got 60 activities imported from Strava, I can see them individually from citystrides, but clicking on one of the "Lifemap" buttons just zooms out, and shows nothing on the map.

comment 4y ago · link · parent

I would keep the business open, add a 20% Ukraine war fee to all sales (call it special operation fee if needed), and give it to a Ukraine war relief fund.

comment 4y ago · link · parent

I don't think he is trying to be funny.

Here are a few examples:

- "I believe in free speech, but some opinion are too abhorrent to be protected." -> the person actually does not believe in free speech.

- "I am sorry I reacted like this, but they went too far" -> the person is not sorry.

comment 4y ago · link · parent

Everybody knows that Minecraft Java edition will run on anything that can run Java, like a Raspberry Pi, for example. Well, you need a launcher to run Minecraft Java edition, and the Java launcher (which will run on anything) only supports Mojang accounts (see https://www.minecraft.net/en-us/download/alternative it still says "We got you covered!").

Contrary to what others said in this thread, I think that the communication has been quite poor for this use case, because the official communication insists on saying that the Java version will still be working, which is a lie: the Java launcher already stopped working for new customers (I met several people who bought Minecraft to use it on Raspberry Pi, and their money is lost, because their purchase doesn't allow them to create the necessary Mojang account), and it will also stop working for all existing accounts in a few weeks.

It was not so hard to decide to make is a FAQ and say "Sorry guys, we are dropping support for all the architectures which are not the top 3 ones, your game will stop working", instead of saying "Don’t worry – the only thing that’s changing is how you log in to the game! [...] Minecraft: Java Edition will stay exactly the same, and we’ll continue to update and support it in the future."

comment 5y ago · link · parent

You mentioned it. FATCA is not targeting US citizens abroad, it's targeting financial organisations who have US citizens as clients. So, many banks around the world will have "Are you a US citizen" as one of the first questions to open an account, and if the answer is yes, they will politely decline any further requests.

comment 5y ago · link · parent

To give some timeline perspective, here are the stable launch dates:

- M90 (90.0.4430.66): April 13 2021

- M91 (91.0.4472.77): May 25 2021

- M92 (estimated): July 20, 2021

comment 5y ago · link · parent

Can you elaborate? I can see how Google can scale this automatically. But I don't see how Google can terminate, say, one million apps a day, if each termination entitles the spammer a one hour conversation with a technical representative.

comment 5y ago · link · parent

Encouraging the use of products that don't contain any oil is indeed good for the rainforest.

But be careful, the way you phrased it could encourage people to use products that use another vegetable oil, which requires even more hectares to produce (palm oil yield is 5 times higher than the next highest oil yield), and could lead to even more deforestation.

comment 5y ago · link · parent

Palm oil is not unhealthy. Th reason it's bad is because the cheapest way to produce it is to destroy rainforest to grow palm oil trees in a tropical climate. UK consumers managed through campaigning to force the industry to source 50% of palm oil from non-tropical origins. When the worlwide demand for tropical palm oil drop enough, tropical deforestation will drop.

comment 5y ago · link · parent

The yield per hectare of palm oil is 5 times higher than the next most productive edible oil crop (rapeseed).

Note that there is nothing wrong with palm oil itself, it's just that the cheapest way to produce edible oil on Earth, is to grow palm oil trees in a tropical climate. Replace palm oil with another vegetable oil, and the effect on deforestation will be even worse, as we would need even more land to grow the replacement. Even Greenpeace is not calling for a boycott or palm oil.

comment 6y ago · link · parent

There is almost no intersection between the kind of things that can be done with the C++ macro system and the kind of things that can be done with the Rust macro system. They are not related. You can see them as another feature that is not available from C++.

comment 6y ago · link · parent

> How do you think they’ll react when they don’t get all the sunshine and roses the populist grifters told them they would?

Easy one. They will say that it's because of EU being a bad looser and revengeful to them.

comment 7y ago · link · parent

Let's say that the 20% rate applies to income tax, corporation tax, dividend tax and capital gain tax.

When a company allocates $100 to its employee, the employee receives $100 of salary, pays $20 of income tax, and ends up with $80.

When a company allocates $100 to its shareholder, it's first considered as profit, so the company pays $20 in corporation tax, the shareholder receives $80 of dividends, pays $16 of dividend tax, and ends up with $66.

When a company has $100 profit but does not distribute any dividends, it has to pays $20 in corporation tax, so the shareholder value increases by $80, so if the shareholder sells the share, he receives $80 of capital gain, pays $16 of dividend tax, and ends up with $66.

So, yes, if the all the tax rates are the same, you actually end up taxing capital more than salaried income, which would be a big incentive against creating your own company.

comment 7y ago · link · parent

No mention of the downto (-->) operator?

  int x = 10;
  while (x --> 0) {
    printf("%d ", x);
  }

comment 7y ago · link · parent

Another thing to remember: that amount will not be spent in the Bermuda. It will either be re-invested, or brought to the USA to become profit that will be taxed the same way it would have been taxed in 2017. This is only delaying the decision about what to do with the money (without using a tax heaven, this is only allowed for a very restricted set of cases).

comment 8y ago · link · parent

Google could do it in a much more transparent way than others, for example by stating "Here is what we know about you, and this information may be given away to the government if you proceed with a search that they considered dangerous".

I think it would be better than the current situation, where Chinese people are left with a poor quality search engine, which won't find a good answer to the question, report them to the government, and do it in a very secretive way.

comment 8y ago · link · parent

According to Gartner (https://www.gartner.com/newsroom/id/3884500), the 2017 revenues were:

Amazon: 12.2B

Microsoft: 3.1B

Assuming Amazon continues on the same 25% YoY trend, it would be 15B in 2018. Microsoft could beat that number by reaching a 400% growth rate. That would be pretty amazing. But it's not the case.

comment 9y ago · link · parent

This is predicted by contract theory: in a perfect free market (we are still far, but we keep getting closer), and a perfect contract market (we are still very far, but we keep getting closer), there are no companies at all. Just ad hoc contracts.

comment 9y ago · link · parent

French version: "Une policière engueule une femme dont le garçon de trois ans court dans tous les sens".

So, the policewoman bawled the woman out. No beating involved.

comment 9y ago · link · parent

I agree. I work in the UK, and used to go to SFO twice a year. I am now telling my manager that I am not willing to take the risk to be arbitrarily detained for no reason, even if it's only a 1% chance (which sounds about the current level). Send me to any country, but only where the rule of law applies.

comment 10y ago · link · parent

> creating a paradox in which everyone gets less by choosing more

This is so misleading.

When the company in not giving $10 of dividend, the whole company has $10 more on its bank account, so it's worth $10 more overall, distributed across all shares. Now if one share (worth $10 at current valuation) is created, all the shares are back to their original value, and if that share is given to a shareholder, he is effectively owning $10 worth more of the company than before. He didn't get less. And if everyone does it (or everyone but one shareholder, or any other combination) everything is still valid.