Fernand

Fernand

An approach in leveraging OpenTracing with your Elixir applications.

OpenTracing Elixir? Yes Please!

2
Post #225
amnu3387

amnu3387

The spans now show that we’ve eliminated the stair case and gone for the superior elevator scheme.

Lol!

2
Post #226
petecorey

petecorey

Yo!

I’ve got an especially nerdy article this time around.

I’ve been re-reading The Little Schemer again (which is amazing - check out the link in the post if you haven’t read it), and I managed to finally wrap my head around the Y combinator. I wrote an article that uses anonymous functions in Elixir to show what the Y combinator is, why it’s interesting, and how it can be derived.

Check it out: Grokking the Y Combinator with Elixir

Hopefully some of you are as into this kind of thing as I am, and hopefully the article makes this very mind-bending topic (for me, at least) somewhat clear.

5
Post #227
OvermindDL1

OvermindDL1

Hehe, I love the Y combinator, there are even legit uses for it in Elixir (like building anonymous functions that are required to close around their scope to make recursive closures) and there are people that have made the Y Combinator in libraries (like expede’s libraries). This is a very good article, approaching it from a different way than the usual way that I see it introduced. :slight_smile:

2
Post #228
rvirding

rvirding

Creator of Erlang

Has Elixir got named funs yet, or are they planned? One major use of the Y combinator disappeared in Erlang when we got named funs, doing recursive funs. Though they could be done other ways as well.

But the Y-combinator definitely is cool.

3
Post #229
petecorey

petecorey

As in named (not just bound to a variable) lambdas? Interesting… Is the main use case of that recursion in (not-so-)anonymous functions?

I agree that the Y combinator is cool. I guess I was more so trying to show what an interesting construction it was, rather than give some practical advice. Some things just deserve to be marveled at.

1
Post #230
rvirding

rvirding

Creator of Erlang

The Y-combinator really is cool but it is not how I would normally do recursive funs, at not before named funs. I would just add an extra argument which is a reference to the fun itself and use that for the recursive call.

1
Post #231
OvermindDL1

OvermindDL1

Not that I’ve seen at least?

1
Post #232
whatyouhide

whatyouhide

Elixir Core Team

I wrote about using GenStage to maximize HTTP/2 performance: http://tech.footballaddicts.com/blog/maximizing-http2-performance-with-genstage

7
Post #235