Hacker News new | ask | show | jobs
by electricduck 1041 days ago
You know, I've been reading Hacker News for god-knows-how-long, and it never occurred to me to look up what Y Combinator even was.
6 comments

You mean this isn't a website for lambda calculus enthusiasts?
Wait... This is not lambda-the-ultimate?

Where am I?

not so loud, you're gonna hug it to death
Why combinator, Y?
Why the lucky combinator

    y = ->(f) {
      ->(x) { x.(x) }.(
      ->(x) { f.(->(v) { x.(x).(v) }) } )
    }
This is very beautiful. TIL about Y combinators. Thanks for sharing. I looked it up with ChatGPT to learn more about what it is and then compared it with versions from different languages.

JavaScript:

    const Y = f => (x => f(v => x(x)(v)))
                   (x => f(v => x(x)(v)));
Lisp:

    (define (Y f)
     ((lambda (x) (f (lambda (y) ((x x) y))))
       (lambda (x) (f (lambda (y) ((x x) y))))))
Haskell:

    y :: (a -> a) -> a
    y f = f (y f)
OCaml:

    let z f = 
      let fn = ref (fun x -> x) in
      fn := (fun x -> f (!fn x));
      !fn;;
I think I still like the Ruby the most since it's easier to grok due to the Lisp having so many parens towards the end. The Haskell is beautiful to look at too.
What in the world is happening here?
Maybe this has something to do with the local opinion on Haskell?
Funnily enough you can't actually implement the proper y-combinator in Haskell because the type system won't allow it. Which is a real shame because in most Lisps you can only implement the applicative order y-combinator due to a lack of lazy evaluation.
What is "improper" about this implementation in Haskel?

  fix :: (a -> a) -> a
  fix f = let x = f x in x
The y combinator is used to implement recursion in a language without recursion no?

That definition is dependent on recursion already being present.

I feel like I used to see a lot more Launch HN, Y Combinator batches, etc. Or maybe I started tuning them out
I've been on here for a decade. Back in the day, HN really gave off a sense that most users were aspiring entrepreneurs, with a lot more discussion about YC, et al.
They moved launches here: https://www.ycombinator.com/launches
imho it should be a video page like ted talk
No... I'm pretty sure he isn't near as interested in yc anymore.
thats what i love about hn.

i sometimes think yc is just a front to secure payment for hn servers for many many years.

Isn’t it just like… a couple of servers? As in, entirely fundable by one person who could afford the time to moderate.
many, many, many years
It's a rounding error in some of the budgets that startups deal with. It becomes closer to the situation with the Long Now, which is a clock to last 10,000 years. With LLMs, even the moderation becomes an fixture in the project that can endure. With Solar and a GPU and some Internet.
Did someone invent working LLM-based moderation? Serious question; it'd be interesting.
I’ve found this API useful. It’s a classifier: https://platform.openai.com/docs/guides/moderation
It sounds like a trivial problem to solve with LLMs. To test it, feed a few comments to ChatGPT together with a T&C summary, and ask if the comment violates the terms.

It actually does a better job than the stock "this comment does not go against our community standards" response you get from the human moderators of any social network.

Yeah, there was finally a proven and actionable model developed at the end of 2024. [1]

[1] - https://www.youtube.com/watch?v=BrQyMrmRBsk

Define "working"

Yes there are LLMs useful for such things and you could use them to make moderation decisions. YMMV with how "good" you want your moderation to be.

llm moderation, what could go wrong
I landed first on some random PG essay, then I found out about HN and kept reading it for a while and then found out what YC was. This was some years ago, but still quite out of order!
What's a PG essay?
Paul Graham wrote a series of essays that are considered classics for startup thinking

http://www.paulgraham.com/articles.html

This discussion from earlier this year gives some interesting context: https://news.ycombinator.com/item?id=34750727

That's my post lol
Our Eternal September has arrived.
It’s been here for a while now. (but I’m old, so what do I know?…)
Same!