Hacker News

Top stories

Live mirror
30 storiesupdated just nowView source snapshot
  1. Human brain is two separate organs, Stanford Medicine-led research finds(stanford.edu ↗)
    83comments
  2. If math is more than proof, we need to better celebrate the rest of it(terrytao.wordpress.com ↗)
    41comments
  3. GPT-6 Astra Solves a WWI German Radio Cipher(prinzai.com ↗)
    42comments
  4. San Francisco Onion Futures Company(onionfutures.com ↗)
    64comments
  5. Android 17 is the first since 3.x to add new APIs without releasing to the AOSP(grapheneos.social ↗)
    406comments
  6. Apple M6 Pro Achieves the Highest Single-Core CPU Score in Geekbench 7(geekbench.com ↗)
    22comments
  7. Typesafe-computer-use drives a Mac toward a goal for 1/50th of a cent per step(github.com/awlevin ↗)
    44comments
  8. Cloudflare Quick Tunnels(cloudflare.com ↗)
    278comments
  9. Science Is Open Software(jepedersen.dk ↗)
    36comments
  10. SDCC – Small Device C Compiler(sourceforge.net ↗)
    17comments
  11. You can run Git on object storage if you re-make packfiles(tigrisdata.com ↗)
    12comments
  12. How to Write with an LLM(sockpuppet.org ↗)
    325comments
  13. Why building a Rust LSP is hard(rust-glancer.github.io ↗)
    31comments
  14. Saving another 100TB of RAM(cloudflare.com ↗)
    71comments
  15. How OpenAI Used Its Own LLMs to Design Its Jalapeño Chip(ieee.org ↗)
    85comments
  16. Ctenophores: Wonders of Biology(quantamagazine.org ↗)
    5comments
  17. "The Secret Life of Circuits" is here(coredump.cx ↗)
    2comments
  18. NASA-IBM Lunar Foundation open-Source Geospatial AI Model(usra.edu ↗)
    2comments
  19. The first new cat species discovered in 100 years(nationalgeographic.com ↗)
    104comments
  20. OpenJev(openjev.com ↗)
    264comments
  21. Goroutine Leak Profiles(go.dev ↗)
    2comments
  22. Show HN: Cactus Needle 3: 8-29MB automation models can match DeepSeek V4 Flash(cactuscompute.com ↗)
    88comments
  23. Photon-Emission-Guided Laser Fault Injection Enables RP2350 Secure Debug(ledger.com ↗)
    69comments
  24. Veronese's Dogs(publicdomainreview.org ↗)
    discuss
  25. Minimal Phone 2(minimalcompany.com ↗)
    221comments
  26. Cache-to-Cache: Direct Semantic Communication Between LLMs (2025)(arxiv.org ↗)
    12comments
  27. Warez: The Infrastructure and Aesthetics of Piracy (2021)(archive.org ↗)
    63comments
  28. Inside ZCode: Silently uploading your Git history to the cloud(ferstar.org ↗)
    98comments
  29. Suppress vulnerabilities applying Kubernetes context to scans(github.com/alegrey91 ↗)
    1comments
  30. Cyclomatic Complexity in C#(ndepend.com ↗)
    19comments

Deno – A secure TypeScript runtime on V8

25 pointsby 8y agogithub.com
18 comments
8y agoHN ↗

This is an excellent hindsight-2020 project, and the concept is overall an improvement on Node, but I'm afraid the ship has sailed and Node's momentum is too high to stop. Not that mainstream usage was ever its goal, it was basically a proof of concept for Ryan Dahl to demonstrate how he would do things differently if he could start over, and that yes, it would be demonstrably better than Node. On one hand I wish TypeScript got more love, but on the other hand its inherent unsoundness kind of makes me want something like ReasonML[1] to win out in the long term instead.

[1] https://reasonml.github.io/

8y agoHN ↗

What’s unsound about TypeScript? I’m just learning it as we use it a lot at work

8y agoHN ↗

TypeScript is a structural typing model vs nominal one, such as Java, which we are more used to. Not that one is more sound than the other, just different approaches.

I actually like the structural system a lot, and found that combined typescript expressiveness, typing a code base with TS is much more intent driven and requires much less contortionism that a class-for-everything nominal system such as Java. In fact, we ported one of our java backend to node/TS, 40% less code, and as typed if not more. Also, there are simple ways to bring some of the nominal characteristics when needed, but in a language like JS where object literal is a intrasic part of the language, a structural typing system is great fit.

So, yes, their are different approach, but not sure soundness is a good description of those differences.

Now, if TypeScript is used to code JavaScript ”a la” Java, then yes, it could be seen as a loss of functionality.

8y agoHN ↗

Why not a secure runtime on Golang instead? just curious since I saw in another article here today that the author of Deno(also the creator of nodejs) prefers Go for server stuff.

Leveraging JS popularity is one reason I can think of.

8y agoHN ↗

It seems like they've chosen Rust for the backend. This is a great fit in terms of preventing data races and having a no-GC performance profile.

8y agoHN ↗

JavaScript is garbage-collected. They are using Rust to avoid having two garbage collectors.

8y agoHN ↗

    import { test } from "https://unpkg.com/deno_testing@0.0.5/testing.ts"

Won't this get old really quickly? Most of my Javascript files start with 3-4 imports of the form `import React from "react"`, `import { sortBy } from "lodash"`. Having to type out the full path/version for those imports feels like a step backwards in usability, and makes it more likely that I'll end up with mismatched versions of dependencies.

8y agoHN ↗

Not a problem if the version part is excluded. Golang uses similar imports(think all the github.com/user/package) and seems fine.

But this could lead to a mess, as different files may end up using different version of same package.

8y agoHN ↗

Aims to support top-level await.

As a node developer: yum.

8y agoHN ↗

top level await is not important.

The easiest solution to this is just put one single line of code at the top of your application, then you can have as many awaits as you like under that.

8y agoHN ↗

It's more complex than just adding an IIFE, which is why Ryan mentioned it. You can't await an import, for example.