Hi dear reader,
Today’s post is about Rextester. An online tools for anyone who finds them useful, Initially was started as online .net regular expression tester.
Regex tester – .net regex tester.
Regex replace – .net regex replacement.
Regex reference – short regex reference.
Diff checker – find difference between two text fragments.
Run code – online compiling and execution for some languages.
Rextester provides online code compilation for C# or also named C sharp, using .NET framework 4. The executing code will be given max 5 seconds of CPU time and limited memory (~100 mb). Also executing code will run in an appdomain with basic execution rights, reflection and thread control privileges only.
The entry point for you code is given Main method in type Program in namespace Rextester. This entry point can’t be changed.
C sharp types from the following assemblies are available:
- Microsoft.CSharp.dll – when C# is used
- Microsoft.VisualBasic.dll – when Visual Basic is used
SQL Server 2008 R2 server is also supported. There is only one database that queries executed. Queries executed on behalf dbowner so all sort of actions are allowed including DDL queries. However, all actions run in transaction which is rolled back immediately after execution is over. This way any desired objects may be built, populated with data and worked on within the scope of one request. There is 10 seconds limit for work to be completed. Execution of queries is achieved using ADO.NET mechanisms, in particular SqlDataReader type. This reader is also monitored for memory and CPU consumption.
‘GO’ statement just like in T-SQL has special meaning: ‘GO’ will be removed from your code, but statements separated by ‘GO’ will be executed separately, in different batches. So, for example, if you want to create a function and later use it in select statement you have to separate create statement and select statement by ‘GO’, otherwise you’ll receive an error from parser since in select statement you would be referring to a function which doesn’t yet exist.
For convenience there is simple pre-built schema, shown here.
There are some other languages which run on linux. Here are compiler versions:
- Assembly – nasm 2.09.04
- C++ – g++ 4.5.2 (g++ -Wall)
- C – gcc 4.5.2 (gcc -Wall)
- Haskell – ghc 6.12.3
- Java – Sun’s implementation of java, compiler version 1.6.0_26 (javac -Xlint -encoding UTF-8 | java -Dfile.encoding=UTF-8)
- Lua – lua 5.0.3
- Objective-C – gcc 4.5.2 (gcc -Wall -lobjc)
- Pascal – fpc 2.4.0
- Perl – perl 5.10.1 (perl -w)
- Php – php 5.3.5
- Python – python 2.7.1
- Ruby – ruby 1.8.7 (ruby -w -W1)
I do not intent to promote something here but I liked something and sharing is good.
For more details follow the www.rextester.com