News for hackers. Stuff that matters.

Okx

Taxing companies on revenue would completely wipe out low-margin businesses like supermarkets, and create massive distortions in the economy where one company being vertically integrated and owning everything being practically the only option, as otherwise goods passed between businesses means tax is paid on the revenue twice.

It would kill the economy overnight.

Unfortunately if your employer pays for private health insurance, HMRC says that is a taxable benefit and you still pay tax. The more insidious part is how the government makes employers pay a hidden 15% national insurance tax that needs to be paid on top of the tax on your salary.
Re:Java is fast, code might not be on Friday March 20, 2026 @12:32PM (#47456967)
maybe it would be a little better to use ints rather than longs, as Java lists can't be bigger than the int max value anyways. Saves you a cache line or two.
Re:Java is fast, code might not be on Friday March 20, 2026 @12:29PM (#47456922)
The code:

  public int parseOrDefault(String value, int defaultValue) {
      if (value == null || value.isBlank()) return defaultValue;
      for (int i = 0; i < value.length(); i++) {
          char c = value.charAt(i);
          if (i == 0 && c == '-') continue;
          if (!Character.isDigit(c)) return defaultValue;
      }
      return Integer.parseInt(value);
  }
Is probably worse than Integer.parseInt alone, since it can still throw NumberFormatExceptions for values that overflow (which is no longer handled!). Would maybe fix that. Unfortunately this is a major flaw in the Java standard library; parsing numbers shouldn't throw expensive exceptions.
Re:The recurring dream of replacing developers on Saturday January 17, 2026 @06:15PM (#46663101)
this comment is pretty obviously written by AI
Unfortunately, Wikipedia doesn't seem interested in this. Their revenue is more than enough be able to invest and sustain the site forever, but they just increase expenses on non-core outgoings https://en.wikipedia.org/wiki/WP:CANCER
Yes, last time I checked, Zig's comptime was 20x slower than interpreted Python. Parsing a non-trivial JSON file at comptime is excrutiatingly slow and can take minutes.

    You’ve got a monopoly on lemonade because you pay all the grocery stores to be the default lemonade.

    So we’re going to force you sell your car.
I don't think this is an accurate anaology. It's more like, you own the vast majority of grocery stores, and you make lemonade, and you force all the other grocery stores to only sell your lemonade.

To put it another way, the problem is not so much that Google shouldn't be paying to be the default search engine, but that it shouldn't own both the browser and the search engine.

I think this harkens back to the anti-trust court case, United States v. Paramount Pictures, where the court ruled that the film studios cannot hold monopolies over the movie theatres, and that theatres must remain independent.

Similarly, browsers and search engines being independent is good for competition because the internet is too important to let a single company dictate how it is used.

Re:Every Line Is a Potential Bug on Thursday February 27, 2025 @04:44PM (#43198844)
> The above code is simple and correct

Unfortunately not:

Using notifyAll and wait in Java is tricky to do correctly, you'd have a much easier chance using concurrency primitives that wrap these functions, like CountDownLatch[1] for one offs, or Condition[2].

System.currentTimeMillis is also not guaranteed to be monotonic, and System.nanoTime should be used instead. This would of course be obviated if a better concurrency primitive were to be used.

[1] https://docs.oracle.com/en/java/javase/21/docs/api/java.base...

[2] https://docs.oracle.com/en/java/javase/21/docs/api/java.base...

Re:Blocklist for AI Music on YouTube on Sunday February 16, 2025 @11:30AM (#43069260)
soma fm has some good online radio stations: https://somafm.com/ (and shows you the track and artist)
Re:GnuCash 5.9 Released on Monday September 30, 2024 @03:15PM (#41700898)
GnuCash and KDE Money always seemed very similar to me. Why should I use GnuCash over KDE money?
> You can use GraalPy with GraalVM JDK, Oracle JDK, or OpenJDK

https://www.graalvm.org/latest/reference-manual/python/

Re:The All-American Delusion of the Polygraph on Tuesday July 16, 2024 @05:21AM (#40974833)
No wonder he heard from his brother that the Border Patrol were always hiring; they seemingly make it impossible to get hired.
Re:Hidden GitHub Commits and How to Reveal Them on Friday February 23, 2024 @05:18PM (#39486872)
Can you DMCA yourself for someone else's copyrighted material? That's what I'm talking about here.
Re:Hidden GitHub Commits and How to Reveal Them on Friday February 23, 2024 @01:27PM (#39484304)
If you've inadvertently committed, say, copyrighted material to GitHub, and want to fully erase it, is there a way? Other than contacting GitHub as this article mentions.

Even if you contact them, GitHub says[1] that they will not remove "non-sensitive data", but makes no reference to copyrighted material.

[1] https://docs.github.com/en/authentication/keeping-your-accou...

Re:LÖVE: a framework to make 2D games in Lua on Wednesday September 13, 2023 @10:05AM (#37496937)
Not only that, but it makes the pronunciation difficult. Should this be pronounced like the English word "love", or interpreted more like a German word (which actually has this letter in the alphabet, and guess what, it isn't the same as o) and more like "loeve"? The umlaut isn't just a graphical stylisation, it's a real thing.
Here is the AMD64 reference manual https://www.amd.com/system/files/TechDocs/40332.pdf

The stuff you will need most is in Volume 3.

My question is, how was there enough liquidity in Beanstalk to be able to buy half of it in an instant? The article doesn't explain this.
Re:Google Search Is Dying on Tuesday February 15, 2022 @07:41PM (#30354982)
Wikipedia's expenses go up year after year seemingly needlessly. It is making revenues far and above what it needs to maintain the project, but its expenses seem to go up each year anyway. https://en.wikipedia.org/wiki/WP:CANCER
I don't think you should be risking anything when there's $5bn at stake and a single failure can cause you to lose all of it
The article also argues that severity of autism doesn't really make sense.
Re:Twitter starts to require login to view tweets on Tuesday August 24, 2021 @02:44PM (#28293126)
It already does on mobile. It is impossible to view subreddits unless you sign in, you only get a "preview"
It's only a disincentive to ask for a raise if you don't know what it means. You only pay back student loans based on the percentage of money you earn above a certain amount.

If you earn £21,000 and the threshold is £20,000, you only pay back a portion of £1,000, not all of the £21,000.

Re:We made our SaaS home page cookie-free on Tuesday November 03, 2020 @04:47PM (#24984386)
A software firewall is useless against a DDoS attack. It will only serve to help your IP not get discovered in the first place.
Re:0.999...= 1 on Tuesday April 28, 2020 @10:55AM (#23007580)
I usually say "If and only if two numbers are different, then you can find a number between them". People often accept this axiom. Then, I offer them to find a number between 0.999... and 1.