frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

FAA lifted National Ground Stop at 0119Z

https://www.fly.faa.gov/adv/adv_otherdis?adv_date=11142026&advn=5
135•d3nit•1h ago•129 comments

FAA issues national ground stop

https://www.nbcnews.com/news/us-news/faa-orders-nationwide-ground-stop-departing-flights-reasons-...
1349•zulln•5h ago•833 comments

Terminal borders that don't cost a cell

https://www.joshka.net/cell-borders/
87•vinhnx•3h ago•49 comments

Live airband on all frequencies from KORS. Victoria, CA also ground stopped

https://orcasairband.com/
219•mmaunder•4h ago•50 comments

What Happened to 3Com?

https://dfarq.homeip.net/what-happened-to-3com/
55•gvieri•2h ago•29 comments

Amtrak booking system experiencing major issues amid nationwide FAA ground stop

https://www.fox5dc.com/news/amtrak-outage-ticket-booking-faa-ground-stop-november-13-2026
118•snow_mac•1h ago•37 comments

Anthropic Upgrades Claude Code Projects to Run Parallel AI Workers Hands-Free

https://alphasignal.ai/news/anthropic-upgrades-claude-code-projects-to-run-parallel-ai-workers-ha...
36•toppa33•2h ago•23 comments

Hawaii flights halted due to debris from SpaceX launch amidst FAA's ground stop

https://www.kitv.com/news/hawaii-flights-to-west-coast-halted-due-to-debris-from-spacex-launch-am...
6•cwal37•30m ago•1 comments

Reverse engineering my Coway air purifier to ditch the cloud

https://scottjg.com/posts/2026-11-11-reverse-engineering-my-coway-air-purifier-to-ditch-the-cloud/
684•scottjg•1d ago•200 comments

Ukraine knocks out 36% of Russia's oil refining capacity in under two weeks

https://english.nv.ua/nation/thirteen-day-drone-blitz-paralyzes-36-of-moscow-s-oil-50658616.html
138•kaycebasques•1h ago•32 comments

Found: A protein that drives ageing without unleashing inflammation

https://www.nature.com/articles/d41586-026-03638-3
135•gumby•7h ago•21 comments

FM-1 Workbench

https://open.m-vave.com/fm1-workbench
187•simonebrunozzi•7h ago•118 comments

Elephants Found to Be Increasingly Isolated Leading to Fractured Social Networks

https://today.ucsd.edu/story/elephants-found-to-be-increasingly-isolated-leading-to-fractured-soc...
7•gmays•42m ago•0 comments

Show HN: Live map of U.S. flights during tonight's FAA nationwide ground stop

https://grounds.top/
42•gvsi•3h ago•7 comments

After 600 experiments, here's what I discovered about JEPA world models

https://haddyalchaer.com/jepa
217•halcdev•8h ago•36 comments

Doomsday: Friday, 13 November, A.D. 2026 (1960)

https://www.science.org/doi/10.1126/science.132.3436.1291
459•voxleone•14h ago•314 comments

Autonomous (YC F25) is hiring MTS to build AI agents that manage your wealth

https://atg.science/careers
1•dkobran•5h ago

Unsloth Qwen3.8-27B Quantizations – Dynamic v3.1 Update

https://unsloth.ai/docs/models/qwen3.8
14•Retro_Dev•2h ago•1 comments

Perplexity Decider v1.3: Training, eval, and use cases

https://www.perplexity.ai/hub/blog/perplexity-decider
101•gmays•7h ago•21 comments

How Not to Build a Music Player

https://alichraghi.github.io/blog/how-not-to-build-a-music-player/
34•vinhnx•3h ago•15 comments

Live-migration support in FreeBSD and bhyve coming

https://gyptazy.com/blog/freebsd-bhyve-live-migration-support-rfc/
73•JohnDohnBohn•6h ago•17 comments

Show HN: Isometric SF – A pixel-art map of the SF Bay Area

https://isometricsf.com/
161•juscha1•8h ago•58 comments

Nvidia director sold nearly $1B in stock weeks before the Jensen Huang scandal

https://finance.yahoo.com/markets/stocks/articles/nvidia-director-sold-nearly-1b-160000846.html
11•LopRabbit•23m ago•3 comments

A technical vision for the Haskell ecosystem

https://discourse.haskell.org/t/a-technical-vision-for-the-haskell-ecosystem/15078
181•cosmic_quanta•12h ago•92 comments

Ctrl+C, Ctrl+v, Ctrl+cve: Bypassing Android's Clipboard Read Security Measures

https://toninoble.com/post/ctrlc-ctrlv-ctrlcve
70•dethmasque•8h ago•31 comments

Minnesota guitarist's "palmfrets" invention strikes a new chord

https://www.echopress.com/business/minnesota-guitarists-invention-strikes-a-new-chord
138•bookofjoe•11h ago•89 comments

$11.4M in Nvidia hardware vanishes during shipment from CA to TX

https://www.freightwaves.com/news/11-4-million-in-nvidia-hardware-vanishes-during-shipment-from-c...
299•crescit_eundo•8h ago•168 comments

Lying to Zed to get its remote server running on FreeBSD

https://hayzam.com/blog/03-lying-to-zeds-remote-editor/
17•arch1e•3h ago•3 comments

All US airports are currently ground stopped

https://twitter.com/flightradar24/status/2121347654714077605
169•defly•5h ago•33 comments

Weight Space Misfolding

https://www.alphaxiv.org/abs/2611.weight-space-misfolding
134•mkglees•8h ago•47 comments
Open in hackernews

Understanding Java's Asynchronous Journey

https://amritpandey.io/understanding-javas-asynchronous-journey/
17•hardasspunk•1y ago

Comments

Neywiny•1y ago
I don't get it. The first example in JS vs Java looks very similar. Now all those other code blocks, they certainly have more going on but idk how that compares to JS. And to answer the questions:

A completable future is something that in the future may complete. I think that's self explanatory. A promise seems equally vague.

Boilerplate looks the same. JS is just a function, Java they put a class around it. Java requires exception handling which is annoying but having fought errors in async JS, I'll take all I can get.

API is eh. Sure. But that's not even shown in this example so I have no idea.

So JS saves like 3 lines? Is that really so much better?

cogman10•1y ago
> A completable future is something that in the future may complete. I think that's self explanatory.

But not the reason for the name :).

It's called "completable" because these futures have a method on them `future.complete("value")`. Before their introduction, there was a `Future` API that java had.

nogridbag•1y ago
Yeah that first example is rather poor. And it uses the word boilerpate to seemingly refer to the stuff unrelated to the async code (class declaration, exception handling, main method).

I don't use Java async much, but I guess if you have a utility method named "setTimeout" than the example can simply be:

    public CompletableFuture<String> fetchData() {
        return setTimeout(() -> "Data Fetched", 10000);
    }

    public void loadData() {
        fetchData().thenAccept(System.out::println);
    }
Which is simpler or equivalent to the JS example.
stevoski•1y ago
The Java 1 example uses lambdas, which were introduced in Java 8.

It’s probably intentional, because it allows showing the Java 1 Thread approach succinctly.

But as long-term Java person, I find it jarring.

philipwhiuk•1y ago
Java's had `var` since Java 10 but apparently the author deliberately ignored that to make the example as wordy as possible.

It's a little tiring to read a Java example with an entry-point (the public-static-void bit) and then a JavaScript example without one.

If you strip that out the original Java is:

  var future = CompletableFuture.supplyAsync(() -> {
        try {
                Thread.sleep(10000);
            } catch (InterruptedException e) {
                e.printStackTrace();
            }
            return "Data Fetched";
        });
  future.thenAccept(result -> System.out.println(result));
  System.out.println("Prints first"); // prints before the async result
which is only obtuse due to checked exceptions.

Arguably it's still a different thing you're doing, because it's not scheduling a task on a pool, it's creating a thread which sleeps for 10 seconds.

elric•1y ago
`var` is very unhelpful in situations where the reader might not be entirely familiar with the context, especially when using factory methods.

I don't think the author was trying to make the example "wordy" so much as "clear".

cogman10•1y ago
Also, arguably, the wrong way to do something like this.

The author uses `setTimeout` for javascript. The equivalent for Java is either the `Timer` class or a `ScheduledExecutorService`. Doing a `Thread.sleep` simply isn't how you should approach this.

With that in mind, if you want to use both these things and keep the completable future interface you'd have to do soemthing like this.

    ScheduledExecutorService scheduler = Executors.newScheduledThreadPool(1);
    var future = new CompletableFuture<String>();
    scheduler.schedule(()->future.complete("Data Fetched"), 10, TimeUnit.SECONDS);
    future.thenAccept(result -> System.out.println(result));
    System.out.println("Prints first"); // prints before the async result
    scheduler.shutdown();
AtlasBarfed•1y ago
Does no.js still limit you to a single core/CPU use?

Or as a node successfully been able to start utilizing more cores underneath its JavaScript single thread model. It presents the programmer?

I just remember early node.js from like 15 years ago and the single background task limitation of JavaScript running in a web page.

Cuz you got async code is nice, but what you really wanted to be able to harness in modern CPUs is multi-core

That said, I've been looking for an article like this for a while, although I think there are other associated libraries that also had steps in here. I do think the jvm adopted a lot of those, but I'm not sure if they actually are better than the original extension libraries.

msgilligan•1y ago
I simplified the first example to:

  void main() {
      CompletableFuture<String> future = CompletableFuture.supplyAsync(this::asyncMethod);
      future.thenAccept(result -> IO.println(result));
      IO.println("Prints first");             // prints before the async result
      future.join();                          // Wait for future to complete
  }

  String asyncMethod() {
      try {
          Thread.sleep(10000);
      } catch (InterruptedException e) {
          return "Interrupted";
      }
      return "Data Fetched";
  }
I made the following changes:

1. Move the asynchronous function called in the CompletableFuture to its own method

2. Use Java 25 "instance main method" (see JEP 25: https://openjdk.org/jeps/512)

3. Use Java 25 IO.println() to simplify console output

4. Instead of throwing a fatal exception on interruption, return "Interrupted" immediately.

5. Use future.join() so the main method waits for the future to complete and the "Data fetched" output is printed.

This program can be run directly from source with `java Example.java`. (If you're using Java 24 or a version of Java 25 prior to EA 22, you need to use `java --enable-preview Example.java`)

Here is a modified version of the example that interrupts the thread:

  void main() {
      ExecutorService executor = Executors.newSingleThreadExecutor();
      CompletableFuture<String> future = CompletableFuture.supplyAsync(this::asyncMethod, executor);
      future.thenAccept(result -> IO.println(result));
      IO.println("Prints first");             // prints before the async result
      executor.shutdownNow();
      future.join();                          // Wait for future to complete
  }

  String asyncMethod() {
      try {
          Thread.sleep(10000);
      } catch (InterruptedException e) {
          return "Interrrupted";
      }
      return "Data Fetched";
  }
wpollock•1y ago
In Java 24, new features support educational and demonstration use. You don't need a class to wrap your main method, which also has a simpler signature. To compare JavaScript with Java examples, one should make use of these features.

While the examples may need some work, I enjoyed this post, it nicely shows the evolution of Java concurrency.