Skip to content
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

fjbg should be rewritten in Scala #611

Closed
scabug opened this issue Mar 7, 2008 · 10 comments
Closed

fjbg should be rewritten in Scala #611

scabug opened this issue Mar 7, 2008 · 10 comments

Comments

@scabug
Copy link

scabug commented Mar 7, 2008

(No description for SI-611.)

@scabug
Copy link
Author

scabug commented Mar 7, 2008

Imported From: https://issues.scala-lang.org/browse/SI-611?orig=1
Reporter: Geoffrey Alan Washburn (washburn)

@scabug
Copy link
Author

scabug commented Mar 14, 2008

@dragos said:
Why? It's working pretty well, and I don't think there are any features we plan to add.

@scabug
Copy link
Author

scabug commented Mar 14, 2008

Geoffrey Alan Washburn (washburn) said:
It might get cleaner/simpler. It also means that if we ever bootstrap from MSIL, we will no longer be able to generate Java bytecode.

@scabug
Copy link
Author

scabug commented Mar 14, 2008

@dragos said:
Then the 2.7.1 milestone might be a bit optimistic? :)

@scabug
Copy link
Author

scabug commented Mar 17, 2008

@ingoem said:
Set it to low priority, looks like there are more important things to do.

@scabug
Copy link
Author

scabug commented Jan 14, 2009

@odersky said:
Milestone postponed deleted

@scabug
Copy link
Author

scabug commented Jan 30, 2009

@paulp said:
For the sake of any future interested parties, I should note here that I did this a couple months ago, and the code is here:

http://github.com/paulp/ssbg/tree/master

I got it working fine, but I spent too long trying to make it as fast as fjbg and never quite managed, although I did get within a few percentage points, at least on the scalac build without the test suite. My motivating interest was definitely not writing scala-that-looks-exactly-like-java and it was clear to me that writing it the way I wanted to was going to be way slower than fjbg, so I shelved it.

Aspiring scala optimizers might want to use the project as illustrative of the inherent difficulties in writing fast, idiomatic scala code.

@scabug
Copy link
Author

scabug commented Jan 30, 2009

@stepancheg said:
objectweb-asm should be used instead of fjbg.

@scabug
Copy link
Author

scabug commented Jan 30, 2009

@dragos said:
Paul, I had a look at your code, and I think it would make a great benchmark for the optimizer. I agree with you it's not worth making the code fast at the expense of writing Java-code in Scala.

Stepan, we should have a pretty good reason to move away from fjbg. Lots of people are using ASM, so they can't all be wrong. But the Scala compiler is already slow compared to javac, so I wouldn't make such bold statements unless I knew for sure ASM is at least as fast as fjbg. If someone is motivated to give it a try, and measurements show it's fast enough, we'll definitely do the switch. But here at Lamp we don't have the necessary resources do to that.

@scabug
Copy link
Author

scabug commented May 18, 2012

@retronym said:
Let's close this one, seeing as Miguel's ASM backend appears to be a winner.

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

No branches or pull requests

1 participant