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

Core Plan #1

Open
jcpwfloi opened this issue Jan 29, 2014 · 2 comments
Open

Core Plan #1

jcpwfloi opened this issue Jan 29, 2014 · 2 comments

Comments

@jcpwfloi
Copy link
Contributor

  1. Code Highlighting.
    The Interface should be highlight [code_name] and should output code_name.php
  2. Code Automatic Highlighting
    This part should be written in javascript.
  3. Code Compiling
    We should write a safety-check program to make sure the program does no harm to our server, and running in the sandbox is optional.
    The interface should be:
    fake_compile xxx.cpp
    fake_compile xxx.pas
    fake_compile xxx.java
    fake_compile xxx.cc
    fake_compile xxx.c
    etc.
  4. Code History Version
    The SAM algorithm should be used to check the change of the code, and we must design an algorithm to choose a optimized solution among a range of codediffs.
    There'll be two programs that provide interfaces.
    1. Merge [code_historical] [xxx.patch]
    2. Generate [code_historical_version] [code_current_version]
      and it should generate a readable patch list.

some other declarations and interfaces will be given next time.
this is the initial developing plan.

@ghost ghost assigned zhijian-liu Jan 29, 2014
@hczhcz
Copy link
Member

hczhcz commented Jan 29, 2014

On code safety checking:
It is dangerous if someone run literal data (static array/string) as code (via function pointer). Checking is necessary.
Or.. full sandbox-like virtualization backend? Can be a long-term plan XD.

@jcpwfloi
Copy link
Contributor Author

so the string check is of course crucial, continuous unicode char or hexadecimal should be prohibited. the feature will be added in safety-check.

@ghost ghost assigned hczhcz and zhijian-liu Jan 29, 2014
@zhijian-liu zhijian-liu removed their assignment Feb 18, 2018
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

3 participants