New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

inline functions in pipes for perf win #138

Closed
goatslacker opened this Issue Aug 5, 2012 · 3 comments

Comments

Projects
None yet
5 participants
@goatslacker
Contributor

goatslacker commented Aug 5, 2012

 1 |> (+ 1)

should compile to 1 + 1

instead of

(function(it){
  return it + 1;
})(
1);

Why don't we inline all sorts of things in pipes?

@vendethiel

This comment has been minimized.

Show comment
Hide comment
@vendethiel

vendethiel Aug 5, 2012

Contributor

There's no inlining. (+ 1) is (-> it + 1), so there's no way it'd be inlined.

Contributor

vendethiel commented Aug 5, 2012

There's no inlining. (+ 1) is (-> it + 1), so there's no way it'd be inlined.

@paulmillr

This comment has been minimized.

Show comment
Hide comment
@paulmillr

paulmillr Aug 13, 2012

Contributor

well there is a way, but it requires extremely complex compiler, something like ½ of haskell’s maybe

Contributor

paulmillr commented Aug 13, 2012

well there is a way, but it requires extremely complex compiler, something like ½ of haskell’s maybe

@michaelficarra

This comment has been minimized.

Show comment
Hide comment
@michaelficarra

michaelficarra Aug 13, 2012

Contributor

It's just unification. Pretty simple, actually. And it can be done in linear time. Read up on it: http://en.wikipedia.org/wiki/Unification_(computer_science)

Contributor

michaelficarra commented Aug 13, 2012

It's just unification. Pretty simple, actually. And it can be done in linear time. Read up on it: http://en.wikipedia.org/wiki/Unification_(computer_science)

@gkz gkz closed this Feb 3, 2014

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment