🚨THE THEME IS MUSIC🚨: WIN $5,000! We're having another competition!
katyadee (1172)

Friends, foes, loyal Replers,

Boy do I have some news for y'all! On July 1st, we're kicking off another competition and the stakes are higher than ever.

Types of programs accepted: Any.
Theme: MUSIC!
Rules: As always, must be original content & MUST be created and hosted on Repl.it
Prizes: $5,000, $2,500, and $1,000
Dates: July 1 @ 00:00 PST to July 21 @ 00:00 PST
Judge: Tom Lehman, the CEO of Genius

To submit, all you have to do is share your repl on Challenge!

Check out our FAQ if anything is unclear or you have any questions. And feel free to ask anything you need there, too!

You are viewing a single comment. View All
ArpanDhatt (152)

I have been dabbling in Webassembly lately as a use case for the programming language Rust(I love it by the way) and I might want to use it in the competition. Can I code and compile locally and upload the wasm(I will upload the Rust code files in my project REPL) for use or do I have to have code in Rust on Repl.it. The autocomplete and code linting for Rust in Repl.it is abysmal right now(I hope it gets better!)

defecaterainbows (0)

@ArpanDhatt Yes! This is the exact same situation I'm in.
I want to do this jam, but I want to use Rust.
Rust is awesome!
But repl.it has no support for Rust crates like it has support for Python, Ruby, and Node packages.
Optimally I wouldn't even have to use WASM for the client and could just write it natively, and then have them download a native executable, but given that Repl.it is a web based app and they're the ones shelling out the prize money, I'm willing to make concessions and use WASM.
Still, I want to write the server-side of my app in Rust, and that would require access to crates, naturally. I think it should still be possible by using a polygott repo to build my code. Are you in the Discord? Maybe we can work through getting our projects access to the awesome crates of Rust's ecosystem together.
I'm Cedric#1650 over there.

defecaterainbows (0)

https://repl.it/@defecaterainbows/rustcrates
Great, I have Rust crates compiling through repl.it!
I did it via abusing polygott :D

EDIT: The problem is, you have to cargo clean each time because it's unable to load crates that are downloaded onto the machine. This mean that it takes 42s just to change a simple program that prints a random number using the random crate... because the CPUs are slow and you have to recompile from scratch each time.

ArpanDhatt (152)

@defecaterainbows That's really cool, but I would hate working with it. I think the only option is to just upload the rs file in a RustFiles folder in the project so they don't disqualify us somehow. I really hope they make Rust on Repl.it significantly better. If we both make an amazing project, it will really showcase how amazing Rust+WASM is!

defecaterainbows (0)

@ArpanDhatt
https://repl.it/talk/learn/Using-Custom-Compiler-Switches/14487
using this to get access to real cargo run works wonders, now I can compile in 1.5 seconds like you would expect.