Sandbox

From Rosetta Code

Jump to: navigation, search

Programming Task
This is a programming task. It lays out a problem which Rosetta Code users are encouraged to solve, using languages they know.

Code examples should be formatted along the lines of one of the existing prototypes.
<reddit programming/>

Programming Task
This is a programming task. It lays out a problem which Rosetta Code users are encouraged to solve, using languages they know.

Code examples should be formatted along the lines of one of the existing prototypes.
<reddit programming/>

Programming Task
This is a programming task. It lays out a problem which Rosetta Code users are encouraged to solve, using languages they know.

Code examples should be formatted along the lines of one of the existing prototypes.
<reddit programming/>

Contents

[edit] Can you use a data URL?

[data:text/html,Hello%20World No.]

[edit] What if you transclude a category?

Follow the articles and subcategories for items requiring maintenance. -- Okay, the member list doesn't show up. No good.

Programming Task
This is a programming task. It lays out a problem which Rosetta Code users are encouraged to solve, using languages they know.

Code examples should be formatted along the lines of one of the existing prototypes.
<reddit programming/>

[edit] TITLE

code

[edit] pre test

Programming Task
This is a programming task. It lays out a problem which Rosetta Code users are encouraged to solve, using languages they know.

Code examples should be formatted along the lines of one of the existing prototypes.
<reddit programming/>
Test
Another line
Yet another line, this time one which clearly is much longer than the width of the browser window, at least assuming normal screen dimensions and font settings, and assuming the browser window is not wider than the screen (which would be impractical anyway).
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21

[edit] Testing new language tags

[edit] Z80

 
; some random instructions
ld a, 80h
ld b, 9Ah
add a, b
adc a, a
rst 0 ; reboot :-)
 

[edit] Whitespace

 
This may not be a meaningful whitespace
program,
but it's
just a highlighting test
anyway.
 

[edit] AviSynth

 
AviSource("D:\clip.avi")
ConvertToYUY2()
PixieDust(5)
 

[edit] POV-Ray

 
#declare factorial = function(C) { prod(i, 1, C, i) }
#declare A = factorial(5);
sphere{0,A} // a sphere
 

[edit] Text

 
Is this actually a programming language, or really just plain text?
 

[edit] What happens if a language doesn't exist?

 
some code
more code;
* a b -> c /// &a1 ->>> 778
(Probably this is an obfuscated language :-))
 

===Do the old language-free <tt>-Tags (for inline code formatting) still work? The variable foo</tt> is of type bar

[edit] Whitespace test with unicode ZERO WIDTH NO-BREAK SPACE character (U+FEFF)

 




 

testing

[edit] Impl needed

Tcl pages: 421

Tcl/Omit pages: 2

Programming tasks: 418

[edit] Property query test

If I understand the ask syntax correctly, this should turn up a list of all programming languages: Apparently I don't understand it correctly.

Or maybe it works this way: Doesn't work either.

Maybe this way: Nor does this.

Maybe this way: -RF-, 100 doors, 10Print, 24 game, 24 game/CSharp, 24 game/Solve, 4tH, 99 Bottles of Beer, A Zebrahead, A+B, ADub, ALGOL 68 Genie, ALGOL 68/prelude, ALGOL 68R, ALGOL 68RS, ALGOL 68S, Aboyers, Abstract type, Accumulator factory, Ackermann function, Active Directory/Connect, Active Directory/Search for a user, Active object, Ada 2005, Ada 83, Ada 95, Add a variable to a class instance at runtime, Address of a variable, Aidalgol, Aks, Alegend, Align columns, Almquist SHell, Amb, Anagrams, Andrew Clarke, Animate a pendulum, Animation, Applesoft BASIC Interpreter by Joshua Bell, Apply a callback to an array, Arbitrary-precision integers (included), Arena storage pool, Aria42, Arithmetic evaluation, Arithmetic/Complex, Arithmetic/Integer, Arithmetic/Rational, Array concatenation, Arrays, Arto Bendiken … further results

This gives a lot of stuff I dont want, but not what I want. Maybe the following works: No.

Maybe this: Again nothing.

This should turn up all languages and libraries which provide Graphics: AWT, FLTK, GTK, MINOS, Qt, Swing, Tk, XUL::Gui

This should turn up anything which does not provide Graphics: C++, Emacs Lisp, Swing, TclX, Unlambda

as I learned now, it instead turns up anything which provides something other than Graphics.

This should turn up anything which provides first class functions: Emacs Lisp, Unlambda

And this should be the intersection of the previous two sets: Emacs Lisp, Unlambda

This should turn up anything that provides or allows Graphics: AWT, C++, FLTK, GTK, MINOS, Qt, Swing, Tk, XUL::Gui

This should turn up anything implemented in a language that provides graphics: Nothing!?

Does "implemented in language" work? Let's see everything implemented in Unlambda: Comments, Empty program, Function composition, Hello world/Text, Loops/Infinite, Program termination

This should turn up anything implemented in a language that allows graphics: 100 doors, 99 Bottles of Beer, A+B, Abstract type, Accumulator factory, Ackermann function, Address of a variable, Align columns, Anagrams, Animate a pendulum, Apply a callback to an array, Arena storage pool, Arithmetic evaluation, Arithmetic/Complex, Arithmetic/Integer, Arithmetic/Rational, Array concatenation, Arrays, Assertions, Associative arrays/Creation, Associative arrays/Iteration, Averages/Arithmetic mean, Averages/Median, Averages/Mode, Averages/Pythagorean means, Averages/Root mean square, Averages/Simple moving average, BNF Grammar, Binary search, Bitmap, Bitwise operations, Boolean values, Bulls and cows, Call a foreign-language function, Character codes, Classes, Collatz conjecture, Collections, Command-line arguments, Comments, Compile-time calculation, Compound data type, Conditional structures, Constrained genericity, Copy a string, Create a file, Create a two-dimensional array at runtime, Create an object at a given address, Date format, Date manipulation … further results

This might turn up anything which has a "provides" property: Or it might not. :-)

What about this: AWT, C++, Emacs Lisp, FLTK, GTK, MINOS, Qt, Swing, TclX, Tk, Unlambda, XUL::Gui

Is Classes implemented in C++? 1 (1 = yes, 0 = no).

Is Classes implemented in Unlambda? 0 (1 = yes, 0 = no).

The following assumes a (currently non-existent) template "ignore" which takes an argument and ignores it. With that template, if the task Mutex is implemented in C++, nothing would be printed, otherwise a nested ask is executed, which just lists all requirements of Mutex (assuming I've got everything right): Template:Ignore

And now the same with Unlambda instead of C++ (there's of course no Unlambda implementation): Requires Capability:Concurrency

The same without the "Requires" text: Capability:Concurrency

Personal tools
Support