Hacker News

Top stories

Live mirror
30 storiesupdated just nowView source snapshot
  1. I built non-autoregressive decision models with RL a year ago(convaiinnovations.com ↗)
    179comments
  2. AI-generated posters don’t have to be horrible(john.hartnup.uk ↗)
    572comments
  3. Btrfs/ZFS/bcachefs under workloads classic benchmarks skip(bartosz.fenski.pl ↗)
    10comments
  4. Human brain is two separate organs, Stanford Medicine-led research finds(stanford.edu ↗)
    201comments
  5. A graphical desktop for the ZX Spectrum(github.com/mindbox77 ↗)
    87comments
  6. Tin: full-text search for Postgres(planetscale.com ↗)
    57comments
  7. The Secret Life of Circuits(coredump.cx ↗)
    60comments
  8. Android 17 is the first since 3.x to add new APIs without releasing to the AOSP(grapheneos.social ↗)
    603comments
  9. Black Holes or Black Hole Stars? Astronomers Spar over 'Little Red Dots'(quantamagazine.org ↗)
    26comments
  10. Supabase (YC S20) Is Hiring for OrioleDB(supabase.link ↗)
    discuss
  11. New evidence for hidden chambers beyond Tutankhamun's tomb(nature.com ↗)
    14comments
  12. Show HN: CUA-S1 – A System One Model for Computer Use(github.com/trycua ↗)
    discuss
  13. Suzanne Ciani's Buchla Cookbook(echo.orpheusinstituut.be ↗)
    1comments
  14. GPT-6 Astra Solves a WWI German Radio Cipher(prinzai.com ↗)
    149comments
  15. San Francisco Onion Futures Company(onionfutures.com ↗)
    134comments
  16. Almost Never Use AI to Write Anything Substantive(erichgrunewald.substack.com ↗)
    44comments
  17. Cloudflare Quick Tunnels(cloudflare.com ↗)
    303comments
  18. How to Write with an LLM(sockpuppet.org ↗)
    366comments
  19. If math is more than proof, we need to better celebrate the rest of it(terrytao.wordpress.com ↗)
    214comments
  20. What Zig felt like, coming from Rust(besok.github.io ↗)
    150comments
  21. You can run Git on object storage if you re-make packfiles(tigrisdata.com ↗)
    29comments
  22. Saving another 100TB of RAM(cloudflare.com ↗)
    97comments
  23. How OpenAI Used Its Own LLMs to Design Its Jalapeño Chip(ieee.org ↗)
    124comments
  24. Communication by means of modulated Johnson noise(pnas.org ↗)
    23comments
  25. SDCC – Small Device C Compiler(sourceforge.net ↗)
    26comments
  26. Asking Authors About Their Own Papers(medium.com/tmlrorg ↗)
    51comments
  27. Ray Ozzie and the Optimism of Being Early(reproof.app ↗)
    22comments
  28. Science Is Open Software(jepedersen.dk ↗)
    59comments
  29. The first new cat species discovered in 100 years(nationalgeographic.com ↗)
    130comments
  30. Why building a Rust LSP is hard(rust-glancer.github.io ↗)
    55comments

Turning vaguely reassuring finite-state machines into regular expressions

68 pointsby 5y agoqntm.org
6 comments
5y agoHN ↗

I’m just doing a module in formal languages & automata now but hadn’t yet made the connection that they were related to regular expressions. Neat!

Great read, very clearly explained & what a nice programming project too, writing a solver like that - would be great to stick a diagram-parsing front-end on it and then I could solve all my homework problems in double quick time.

5y agoHN ↗

Automata theory aficionado here. Regular languages are really neat! They have an air of being an "important" mathematical object, given how many different "natural" characterizations of them exist.

In a standard CS course you'll start out learning that regular expressions and finite state automata define the same class of languages. But they're also equivalent to:

- Languages generated by regular grammars (only rules of the form A -> a, A -> Ba, or A -> epsilon)

- Languages definable in monadic second-order (MSO) logic

- Languages "recognized" by a finite monoid (this algebraic appraoch to formal languages is super interesting and rich!)

- Language's whose Myhill-Nerode relation has finitely many equivalence classes

5y agoHN ↗

I recall doing a few of these conversions on paper in one of the written tests in my theoretical compsci exam.

5y agoHN ↗

Automata and languages are really neat. I find it beautiful that:

* { a^n | n in N } is regular;

* { a^n b^n | n in N } is not regular (exercise: use the pumping lemma to prove this) but is context-free, i.e. it can be recognised by a pushdown automaton (a finite state machine which can also use a single stack);

* { a^n b^n c^n | n in N } is not context-free (by a pumping lemma again), but it is context-sensitive, so can be recognised by a linear bounded automaton.

Oh, and "finite state machine with two stacks" is Turing-complete so any computable language has a recogniser of that form.

It's mad that you get such fundamentally interesting classes of machine just by generalising so simply in such natural ways!

5y agoHN ↗

I follow Vaguely Reassuring Finite-State Machines on Twitter and had not realized it had such depths. What a delightful article