Hacker News

Top stories

Live mirror
30 storiesupdated just nowView source snapshot
  1. Cloudflare Quick Tunnels(cloudflare.com ↗)
    103comments
  2. An Empirical Study of Harness Design for Coding Agents(arxiv.org ↗)
    35comments
  3. There's no point at which turning your brain off will work(danluu.com ↗)
    3comments
  4. Show HN: Microsoft Office running with Wine on Linux with no virtualization(github.com/tombert ↗)
    36comments
  5. North Korean nuclear test sets off years of earthquakes(science.org ↗)
    65comments
  6. I vibed a proof of Conway's conjecture(overreacted.io ↗)
    94comments
  7. Show HN: Cactus Needle 3: 8-29MB automation models can match DeepSeek V4 Flash(cactuscompute.com ↗)
    14comments
  8. Photon-Emission-Guided Laser Fault Injection Enables RP2350 Secure Debug(ledger.com ↗)
    discuss
  9. C++26: Trivial infinite loops are no longer undefined behaviour(sandordargo.com ↗)
    90comments
  10. OpenJev(openjev.com ↗)
    202comments
  11. Mathematicians Build Long-Awaited Graph Sandwich(quantamagazine.org ↗)
    3comments
  12. GrassLobster: AI Agentic Generation of Parametric Geometry Workflows(miro.vision ↗)
    3comments
  13. US Treasuries Have Become Unappetizing for Foreign Central Banks and Governments(wolfstreet.com ↗)
    40comments
  14. A heap overflow and SSO misconfiguration to compromise OpenAI internal repos(hacktron.ai ↗)
    178comments
  15. I don't like passkeys(hawksley.dev ↗)
    501comments
  16. The Shadows Lurking in the Equations – Underwater Islands(gods.art ↗)
    9comments
  17. Cekura (YC F24) Is Hiring(ycombinator.com ↗)
    discuss
  18. Jemalloc 5.4.0(github.com/jemalloc ↗)
    72comments
  19. NATS publishes preliminary report on technical incident of 8 September(nats.aero ↗)
    23comments
  20. BeanShell3 in Development(beanshell.github.io ↗)
    10comments
  21. The scourge of x86 emulation(fex-emu.com ↗)
    67comments
  22. Bonsai 2 27B: Near-Lossless Compression in a 9x Smaller Footprint(prismml.com ↗)
    176comments
  23. Warren Buffett Steps Down as Berkshire Chairman, Names Son to Replace Him(nytimes.com ↗)
    150comments
  24. Build Faster Feedback Loops Using Qualitative User Research(nseldeib.com ↗)
    discuss
  25. Qwen 3.8 Omni Flash(qwen.ai ↗)
    116comments
  26. Second Circuit Allows Government to Search Electronic Devices at the Border(knightcolumbia.org ↗)
    33comments
  27. Show HN: Scry, programmable internet search w/ congestion pricing(scry.io ↗)
    2comments
  28. How to Write with an LLM(sockpuppet.org ↗)
    191comments
  29. Pre-Greek: The lost language hidden within Ancient Greek(linguisticdiscovery.com ↗)
    60comments
  30. Microsoft exec called AI scraping 'the largest theft of labor in human history'(techcrunch.com ↗)
    619comments

The earliest version of HN I can find; 166 LOC

104 pointsby 17y agoycombinator.com
19 comments
17y agoHN ↗

We should translate that into as many languages as possible and use it as a benchmark for a real world application to compare the efficiency of the various languages.

17y agoHN ↗

You'd have to translate it into Arc at this point. It would not run in present-day Arc.

17y agoHN ↗

I wish someone would create some benchmarks that were good for comparing code size. That would be a bit harder, because the problems would have to be bigger, and thus more likely to be ambiguous, but it would be a useful thing to have.

17y agoHN ↗

Gzip-ed bytes of code is pretty great, and relatively fair to languages with verbose (but isomorphic) syntaxes. It's aiming to count the information content.

A benchmark counting the unshared working set would be pretty decent, but quite unkind to news.arc -- counting all of Arc and most of MzScheme as part of your program. MRI Ruby programs would be totally fucked, since the mark-happy GC keeps any library code from being shared between fork()ed processes.

17y agoHN ↗

I think those comparisons would be meaningless.

For example, looping over a matrix in matlab is both clunky and extremely inefficient. You can just do matrix operations that are extremely tight.

You might use that to say it is better than C.

But it is C. They've just make language constructs that make is easy to do matrix operations. You could do the exact same thing with a library in C.

So comparing languages might run into the issue of comparing available libraries. I don't think new languages want to compete on availability of libraries.

17y agoHN ↗

By your rationale, Perl and Python are C.

Since Matlab has language constructs for doing matrix operations, it is better for manipulating matrices than C. That Matlab compiles down to C, or calls into C libraries, is an implementation detail.

17y agoHN ↗

You can't get around the interpreted vs compiles difference (among others) that differentiate Python and C. The discussion is one of code size though, not the other differences.

You can make compact and readable C that looks like other language constructs by writing libraries, to a limit.

My point, if I didn't complete it, is one I've mentioned a few times. Libraries matter more than things like LOC count. And it is a really big difference.

I challenge anyone to write an Arc levenberg marquardt minimization in less than 100 LOC. In Matlab (and other languages with good sets of libraries) it is literally just a parameterized function call.

Maybe I'm just too pragmatic for discussions like this.

17y agoHN ↗

Ok, so let me try to spell this out to see if I understand what you mean:

You are basically saying that whatever is primitive to the languages is irrelevant because the language that has the best libraries will win such a contest hands down because what needs to be re-implemented in one language is a primitive in the other.

That's true as far as I can see, but only for 'domain specific' problems. By running a benchmark that contains samples from many domains it should be possible to average out those factors.

Another way to deal with it would be to limit the code to code written in primitives.

Still matlab would handily outperform any other language not endowed with primitives for matrix manipulation, but that's exactly the whole point of such a test. To figure out given a problem for a certain domain what would be the most expressive platform to solve the problem in.

17y agoHN ↗

Across many domains, the effect of libraries is exaggerated. Perhaps minimization isn't enough. Let's add image processing, talking to hardware over a serial port, and parsing an xhtml file. Libraries win:

  image.convolve( filter )
  hardware.write( c_struct )
  beautifulsoup( xhtml )
17y agoHN ↗

I'm not sure how meaningful this would be; arc was basically written for news.arc.

17y agoHN ↗

No, 4 days. The write date of the file is September 6, the comment below says he started writing it on September 2.

17y agoHN ↗

    ; *** remove before flight
          (hspace 30)
          (intag (a href "kapow") (pr "kill server"))

lol..

17y agoHN ↗

Why would there be any confusion over what the earliest version is? It would just be the initial revision in your source control repo.

17y agoHN ↗

I agree completely. Even if I'm just playing around, the cost of creating a source repository is so small (especially with distributed repos) that I pretty much do it when I'm just playing with an idea.

If the idea grows big, it's fun to look at where it was when I started. If it fizzles, well at least you have something for the memories...