Skip to content

Add staged Scala variant #461

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

Merged
merged 1 commit into from
Oct 17, 2023
Merged

Add staged Scala variant #461

merged 1 commit into from
Oct 17, 2023

Conversation

philnguyen
Copy link
Contributor

This one starts from the main Scala variant, adops Scala 3's preferred quiet syntax, then uses Scala's multi-stage programming to apply the same technique in the Racket (Syntax Objects) variant. And the JVM is wicked fast!!

Unfortunately I couldn't figure out the more lightweight way to get it to work with just the compiler directly (i.e. scalac -with-compiler -d out Main.scala as they suggest in their docs), so I have to use sbt.

The commands I use to build and run are currently as follow:

$ cd scala-staged
$ sbt "run ../bench.b"

@nuald nuald merged commit dbb27b3 into kostya:master Oct 17, 2023
@nuald
Copy link
Collaborator

nuald commented Oct 17, 2023

The test has been embedded into the suite in #472 . Required minor modifications to make it compatible with the test suite, but it's only about main object, logic hasn't been changed.

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

Successfully merging this pull request may close these issues.

2 participants