What is Eon and what does it do?
Eon is a platform to practice your programming skills with simple challenges that give you an input, tell you how to process it, and check for the correct output. You don't need to install anything or use any other websites: Eon will run your code, in a sandbox environment. You will have access to the full standard library of your language.
When you complete a challenge, your code will be run with ten test inputs. If the number of test cases passed is n, the score achieved is n**7 // 10000000. This means that for 10/10 you will receive 1000 points, for 9/10 you will receive 348 points, for 8/10 you will receive 107 points, et cetera. If you use the hint for the challenge, your score will be halved. When you redo a challenge, your score can only rise, not fall; if you achieve a lower score the second time, nothing will change.
All challenge submissions have a maximum of 0.2 seconds to run.
How does it work?
The backend of this website uses the Python library Flask. The in-browser code editor is CodeMirror. The code is run using Repl.it's Crosis API - massive thanks to @Scoder12 for helping me get that to work.
What are the current problems?
At the moment, there are only 3 challenges. I do plan to add more, but I need ideas - comment if you have any!
Only Python is supported for now, but I hope to change this soon. The next language I add support for will probably be Node, but after that I have no idea, so please comment what you want me to add!
Why am I getting 0/10 test cases when my code is correct?
Have you clicked the button that says "Read before submitting code"?
@ZDev1 happening to me too
@ZDev1 so... the data
var is your input
@ZDev1 did you READ the thing that says READ BEFORE SUBMITTING? As NoNameByProgram says, the variable data
already contains the input, as you would know if you had read the help that it says you should read.
@minx28 Woooaaah chill down buddy... lol
but noice project
@minx28 oh
didn't know sorry!
@RayhanADev cactus is awesome
But I'm not his alt
@ZDev1 yeah we know, the alt finder found you as the “alt” for so many people xD.
@ZDev1 hey if you can or want can you get on ReplDash
@HarperframeInc ah you don’t know about repl.it’s numerous subdomains:
https://thanos.repl.it
https://offline.repl.it
^ try those xD
@HarperframeInc
i think it said, "owo bye bye"
It's always done that @HarperframeInc
Can... you... make the program run the code without repl.it?
@maxina no, I cannot. The problem is, how do you run a user's code safely? That is, how can you ensure that there is absolutely no way for the user's code to interact with the server and potentially break things? The only real solution for this was to run the code in a repl, as repls are completely isolated.
Crosis is back up. @minx28
@RayhanADev Oh it's not?
Maybe try Brython?
@programmeruser Brython != Crosis Sandboxing
@programmeruser get that unholy thing off this page xD. Python for the web sounds awful tbh. JS is gud.
python < machine code
rip eon
@minx28 when did they yank crosis support
It's coming back, it's just there is/was an active exploit @HahaYes
@Codemonkey51 ah ahem bell pepper?
syntax error pog
awww man I really wanted to try this :( I hope crosis comes back
@SeamusDonahue I hope so too, and latest rumours say it will
They were confirmed not rumors lol @minx28
awwwww, i didn't get to use it! @minx28
New news on crosis: it is only down bc of a vulnerability, it will prob comeback later
cc: @minx28, @HarperframeInc
@Codemonkey51 POG. Will reinstate Eon as soon as it is back
Lol @minx28 you could of found this out like an hour or 2 ago on discord lmao anyway cool, hope it's back soon. Cya later
@Codemonkey51 bruh I was asleep 2 hours ago and walking to the train station 1 hour ago leave me alone smh my head
Lmao @minx28 Cya later
@Codemonkey51 go to sleep idot
@Codemonkey51 darn I really wanted to use Crosis too :(
It will prob come back soon after they fix the vulnerability @RayhanADev
@Codemonkey51 POG will make something cool later
@PlaySoccer thanks. The original site used that animation in a few placed :)
nooooooooooooooooo
What happened to Crosis?
Sadness
Does not even work for me, first says can not run code, then the whole thing stops working because crosis
@hg0428 well what do you want me to do about it? Here's a hint: rudeness won't help.
It was not supposed to sound rude. Sorry if it did. @minx28
Lol crosis ded this is too :(
@Codemonkey51 How did crosis die? I can't find anywhere saying they closed it down.
Everyone's dev status got taken away (can no longer generate crosis tokens) and in discord allawesome (replit team member) says that crosis prob won't be back for a while, but he isn't 100% sure, so crosis is basically ded rn @HarperframeInc
@Codemonkey51 I can still generate crosis tokens?
I mean, you can't generate a token to access a repl. The dev site caches tokens even if they are revoked @HarperframeInc
@Codemonkey51 I see. Any replacement?
Amazing colors!
@Baconman321 thanks!
This is gonna be fun once some of the bugs are fixed! I will most definitely upvote this!
@BlakeLeee thanks! The only bug I'm aware of at the moment is not a bug with my code, but that the code execution can't work due to a bug with Repl.it. Hopefully that'll be fixed soon
Pretty cool Logo btw! I love it!
@JBYT27 thanks! You may be disappointed to find out that I made it in Microsoft Paint though, lmao
NP! lmao @minx28
code just doesnt work
@DominicHuieWhit can you read the alert that pops up?
I can't even write any code
I can't sign in with a password. It keeps saying that the password is invalid. Can you add hints to show what counts as a valid password?
Oh wait, I have to sign up! ok
When I click "submit", it just starts loading forever. In the browser console I get the following errors:
Failed to load resource: the server responded with a status of 500 (Internal Server Error)
Uncaught (in promise) SyntaxError: Unexpected token < in JSON at position 0
However, the first one is sometimes different (though the meaning seems the same):
POST http://codejam10.minx28.repl.co/challenges/1 500 (Internal Server Error)
This really looks cool but no matter what I can't seem to get it to run.
@fuzzyastrocat it loaded the challenge html,
but it thought it was a JSON lol
@fuzzyastrocat I have just discovered this issue myself too - it seems that my account no longer has the developer role, which means I can't execute code using Repl.it's API anymore. Hopefully this will be fixed soon
It doesn't allow me to run, it gives an error message. I get an alert message. Is that because of this? @minx28
@Whippingdot yes. I added that message precisely so people wouldn't comment saying it doesn't work.
@minx28 waiawaiwat you were a developer. How?? also I know a small way you can get roles but I can’t get it to work smh
@RayhanADev if you need to use the Crosis API, speak to turbio.
@minx28 ohhhhhh that’s what it’s about. Thanks for confirming!Also what exactly is the benefit of using the Crosis API?
@RayhanADev many things. What Eon used it for was to execute code in a repl.
You will have access to the full standard library of your language.
So... how do I choose my language?
@xxpertHacker currently only python
not working for me
@SyedMuneebMunee
@SyedMuneebMunee why are you trying to run the repl yourself...
big sad ;(
but yay I like the colors! :)
:( :) @Bookie0
@Bookie0 @minx28 :( big sad
lol @CoolGuy27
@Bookie0 I'm big sad too. Hopefully it'll be fixed soon
@minx28 yaaay :)
@Bookie0 big sad
:(