Hacker News

New stories

Live mirror
30 storiesupdated just nowView source snapshot
  1. Ancient DNA reveals pervasive directional selection across West Eurasia(nature.com)
    discuss
  2. Code similarity detection using Tree-sitter(github.com/dsummersl)
    1comments
  3. ES Archive – a new memory system for AI, running natively on Mac(github.com/apocryphx)
    discuss
  4. Claude Opus 5.5: Intelligence, Performance and Price Analysis(artificialanalysis.ai)
    discuss
  5. Barbara Mazzolai Wants to Build a New Field of Robotics(ieee.org)
    discuss
  6. Siri AI Settlement Website Now Live(macrumors.com)
    discuss
  7. Xeno-Interpretability: Investigating the Alien Minds of LLMs(arxiv.org)
    discuss
  8. Aging may be a program, not a breakdown(quantamagazine.org)
    discuss
  9. We Rebuilt Jev's API on an Open Model and Used It to Play Doom(blocks.ai)
    1comments
  10. How do you best protect against copycats?
    discuss
  11. Tables and Strings in COBOL - Big Data like it's 1985(datagubbe.se)
    discuss
  12. Show HN: graf (1000x faster graphify in Rust)(github.com/ctxrs)
    discuss
  13. GameStop shares up 30% since earnings; CEO, other board members disclose buys(yahoo.com)
    discuss
  14. Armenia on track to become one of leading hubs for US AI infrastructure(armenpress.am)
    1comments
  15. Apple Developing New Fitness Tracker Aimed at Rivaling Whoop(bloomberg.com)
    discuss
  16. A framework for frontier AI and the dawning of a new age(deepmind.com)
    discuss
  17. Ask HN: Did your side projects ever become something big enough to sustain you?
    1comments
  18. 18-year-old thought she'd take a gap year. Instead, she joined the S.F. Symphony(sfchronicle.com)
    discuss
  19. OpenRouter Batch API: half-price inference by bundling requests(openrouter.ai)
    discuss
  20. 'Coding Kids' by Natasha Singer: An Education for the Future That Hasn't Worked(wsj.com)
    discuss
  21. The most difficult daily word game(un-scrabbled.com)
    discuss
  22. ProudSend – cold outreach drafts that cite the line they came from(proudsend.com)
    discuss
  23. Show HN: I gave Jev my forum database so he could find the most relevant(forumbacklinks.org)
    discuss
  24. Go-System-One: Jev-Like Results in Pure Go and SIMD/PTX(github.com/rcarmo)
    1comments
  25. Benchmarks are more broken than we could have imagined(horizonanalyticslabs.com)
    1comments
  26. AI Is Not the End of the World(everythingisbullshit.blog)
    discuss
  27. Automated optimization of a molecular simulation program(shishir-iyer.medium.com)
    discuss
  28. RetentionVolt MCP – Giving AI agents video editing references(retentionvolt.com)
    discuss
  29. Curaçao's secretive gambling industry exposed(ftm.eu)
    discuss
  30. Firecrawl Raises $75M Series-B(firecrawl.dev)
    discuss

The C^4 programming language

1 pointsby 55m agogithub.com
2 comments
55m agoHN ↗

C^4 is a statically typed, systems programming language fixated on clean code and giving power to the user. It compiles to LLVM IR, and will eventually have a to-x86-64 compiler. If you think you should be able to do it, you can. It still has crashes in certain error cases, but to my knowledge no correct code compiles with errors. I would like to get some people to try it out and get some opinions on the docs, README, and syntax. (docs are linked in the README). It has C interop and inline asm. Here's an example code snippet: ``` namespace Exported { #include<Vector, std> // std is a builtin- alias for ~/.qc/lib/stdlib.qc } int main(int argc, char *argv) { Vector::Vec<string> args = Vector::Vec<string>(); for (int i = 0; i < argc; i++) { args.push(argv[i]); } foreach (string arg in args) { if (arg == "asm") `inline(R"( mov rax, 1 mov rdi, 1 mov rsi, 14 mov rdx, $0r syscall )", "Hello, World!", "~{rax,rdi,rsi,rdx,rcx,r11,memory}");

    }
    return 0;
}
53m agoHN ↗

It also has full OOP, unions, structs, inheritance, polymorphism, concepts (As in C++ concepts, different syntax), a standard library (small till compiler is feature complete, but not tiny), and a lot more.