HNHacker News
TopNewBestAskShowJobs

mping

975 karma · joined March 20, 2009

submissionscomments
mping··on JDK 19 Release Notes
As I understand it, structured concurrency is part of the same deliverable, tracked in this JEP: https://openjdk.org/jeps/428

Here's the example from the JEP:

    Response handle() throws ExecutionException, InterruptedException {
        try (var scope = new StructuredTaskScope.ShutdownOnFailure()) {
            Future<String>  user  = scope.fork(() -> findUser());
            Future<Integer> order = scope.fork(() -> fetchOrder());
    
            scope.join();           // Join both forks
            scope.throwIfFailed();  // ... and propagate errors
    
            // Here, both forks have succeeded, so compose their results
            return new Response(user.resultNow(), order.resultNow());
        }
    }
mping··on In 2019 RX470 were $70, RX580 $100
Most of the time, 1 gamer = 1 card; for crypto, it's like a dozen guys run hundreds if not thousands of GPUs. It's basically hoarding a finite resource.
mping··on Magnus Carlsen resigns against Hans Niemann in the second move
Absolutely no, other GMs such as Daniel Naroditsky said that at that level they only need to get assistance at a couple of critical moments.
mping··on Java is very fast, if you don’t create many objects
Mostly due to profiling, the JIT gets informed on actual program execution.

I wouldn't word it as vastly superior, because if you have a JIT you're probably doing some kind of tradeoff (most of the times, memory usage?), but the JIT can optimize based on the runtime profile, where an AOT't program cannot.

mping··on Sorry, your wife is Indian, landlord won’t rent to you
I'm glad for you, but that quote is a huge simplification of a nuanced theme. Maybe it's hard for a completely different ethnicity to become parisienne, but I'm sure France is a big country. Maybe it applies to Japan, but not to Spain. Etc.

I have been to America and it feels lots of different countries living in the same place, not necessarily a good thing. Again it's a subject full of nuances, but I have seen different people being completely integrated after just a single generation. What I think is relevant is how much a culture is exposed and capable of absorb different people from different cultures.

mping··on Vector search just got up to 10x faster and vertically scalable
I guess it's about downtime:

> With vertical scaling, pod capacities can be doubled for a live index with zero downtime. Pods are now available in different sizes — x1, x2, x4, and x8 — so you can start with the exact capacity you need and easily scale your index.

mping··on Clojure Scripting on Node.js
Clojure is a lisp like language hosted on top of the JVM. By running on top of node you get a faster startup which is desirable for short lived apps.
mping··on Show HN: Distributed SQLite on FoundationDB
FDB is a nice piece of technology if you know how to go around its constraints. Congrats on the project.
mping··on Software Transactional Memory (1997)
Isn't there a SharedArrayBuffer thingy in workers now?
mping··on Netflix Homes
False equivalence, companies want to increase profits sometimes at any cost, ethical or monetary. Workers want fair compensation.
mping··on Bosch eBike Systems presents its new eBike ABS
Nitpick: that's a maximum of 25 km/h for assisted mode, if you're going a steep downhill you will obviously go higher than that.
mping··on The Literary Games of Fernando Pessoa
I was amazed the first time I discovered that translators somehow keep the rhymes when they translate. Not an easy job.
mping··on We Halved Go Monorepo CI Build Time
It's not just NIH, after a certain size every external lib is a liability. You don't want to wait for some OSS maintainer to unblock your multi billion dollar business' issue.
mping··on Uber loses appeal as top Swiss court rules company is an employer
If that is the price to pay for drivers to get treated fairly, so be it.
mping··on You say “cave dweller debugging”, I say debug logging
I used intellij to debug 3 processes over ssh, it worked seamlessly. The problem with logging is that you have to know where to log. Debuggers are excellent for exploration, where logging implies you already put the code. If you forget some log you need to do the whole build/deploy dance, with a debugger I just restart. There are even time travel debuggers that allow replays.
mping··on The Joel test for remote work
If I move from California to Romania will I get a lower salary? I call this BS.
mping··on I hope distributed is not the new default
My company has employees all around Europe, and in north America too. Funny enough, even without the shared background, we kinda draw from the same principles and have a common understanding on how to behave an operate.

A world where I have to work with what the local market offers sounds like russian roulette. I don't want to be constrained by where my parents decided to live.

mping··on I hope distributed is not the new default
If you have the budget it's great to live in a nice big city, you don't even need a car. Just Uber everywhere, get some groceries delivered, put your kids in fancy but expensive kindergarten, and buy a nice large house right near that park the kids love. Bonus points if the city is walkable or has decent public transportation.

If you are starting as an average,non FAANG engineer in an expensive city it probably sucks a bit more.

mping··on Ask HN: How to make server side code atomic?

  begin transaction;

  write to db;

  post /api

  commit;
Assuming rollback is implicit when an exception occurs, failure at any point results in the whole operation not executing.
mping··on Managers with MBAs are the best at taking money from workers and not much else [pdf]
Your comment suggests that you think people are entirely rational in their decisions and do not have emotional contamination. Think of it as having a girlfriend or boyfriend, and then one small cheating incident and it's the end of the relationship.
mping··on FDA Approves First CRISPR Cows for Beef
Good question. There is no way to bound the possible harm, but I'd there are solid alternatives then it becomes less desirable. A good example of this is the covid vaccine: this time, the risk of unknown vaccine complications is worth it.

As an aside, I admire the HN crowd reasoning capacity, but it always amazes me that almost no one is upfront and say we as a society love the taste of beef and are willing to risk environmental and possibly health issues for it. It would be a much more productive discussion if we were honest about it instead of discussing whether we need bigger cows.

mping··on FDA Approves First CRISPR Cows for Beef
Unknown unknowns
mping··on Russians are trying to flee – data from Google Trends
I'm sure I cannot possibly understand how you feel right now, but there is no right answer between staying and fleeing.

Personally, if I had a family to support I would get the hell out asap for sure. What I empathize with are the people, not the territory that they call home.

mping··on Use of Google Analytics declared illegal by French data protection authority
This completely misses the point, the laws shouldn't be written to accommodate businesses, its the other way around. If fragmenting is a consequence of better privacy laws, so be it.
mping··on I changed my mind about advertising
Advertising: I agree with the interface, the implementation sucks.
mping··on Zero-copy network transmission with io_uring (2021)
Yes, I think io_uring is slowly making its way onto Java ecosystem. Example: https://github.com/netty/netty-incubator-transport-io_uring

I guess it will go into the JVM too.

mping··on Thich Nhat Hanh has died
There is a Buddhist meditation temple in LA that organizes 2 retreats per year. I go every year from Europe, it's that good. The monastics are super helpful and the abbot is very down to earth and accessible, they also do fasting besides meditation. You don't need experience, just drop by and stay if you like.

Check it out: https://chanpureland.org

I'm sure that there are dozens of other temples that do retreats, but this one I know from experience.

mping··on Thich Nhat Hanh has died
You need a supporting environment. Theoretically you can do it, just as you can learn without going to college.
mping··on The argument against clearing the database between tests (2020)
Nobody mentioned the biggest disadvantage, which is losing determinism. Good luck debugging CI tests that run locally because some other PR added some quirky row to the db.

Rollbacks are not perfect because sometimes you need data to be visible outside of the tx.

Tests must be simple and as close to the real thing as possible. The main reason we have unit tests instead of integration is because they are simpler to exercise and maintain, thus giving a quicker feedback in the long run.

mping··on List of games that Buddha would not play
To me, it's just a spiritual leader advising his followers (I would venture mostly monks) that if they want to reach enlightenment, they should not be fooling around with games. The Buddha knew ordinary people minds, so his compass was better guided - assuming that you buy into the Buddhist premise, he knew how to put an end to our suffering.

Besides, Buddhism has many many facets, the teachings vary and may seem to contradict to the untrained eye, so don't read too much into it.

← PreviousPage 2 of 19Next →