PASM and PIR
examples/pasm/cat.pasm
cat-like utility.
examples/pasm/fact.pasm
Mmmm, beer good.
examples/pasm/hello.pasm
Hello World.
examples/pasm/nanoforth2.pasm
examples/pasm/trace.pasm
Tracing.
examples/pasm/xml_parser.pasm
Simple XML Parser.
PIR
examples/pir/circle.pir
Draw a circle on any VT100-compatible screen.
examples/pir/euclid.pir
Euclid's algorithm.
examples/pir/hanoi.pir
Towers of hanoi.
examples/pir/io.pir
IO Example.
examples/pir/life.pir
Conway's Life.
examples/pir/local_label.pir
Local labels.
examples/pir/mandel.pir
Print the Mandelbrot set.
examples/pir/quine_ord.pir
a quine that store the code in a ResizableIntegerArray.
examples/pir/readline.pir
Read,concatenate and print.
examples/pir/substr.pir
playing with substr.
examples/pir/sudoku.pir
A sudoku solver.
examples/pir/thr-primes.pir
Threads.
examples/pir/uniq.pir
Remove duplicate lines from a sorted file.
Subroutines
examples/subs/bsr_ret.pasm
Branch to location.
examples/subs/coroutine.pasm
Sample co-routines in Parrot.
examples/subs/jsr_ret.pasm
Jumping to subroutine.
examples/subs/multi_retvals.pir
Subroutine example.
examples/subs/no_retval.pir
Subroutine example.
examples/subs/pasm_sub1.pasm
Parrot calling conventions.
examples/subs/single_retval.pir
Subroutine example.
IO
examples/io/async_select.pir
Asynchronous Select Example.
examples/io/echo_client.pir
Echo client.
examples/io/http.pir
HTTP client.
examples/io/httpd.pir
HTTP server.
examples/io/httpd2.pir
A Simple Driver for ['HTTPD'; 'Daemon'].
examples/io/net_smtp.pasm
SMTP Example.
Streams
examples/streams/Bytes.pir
examples/streams/Combiner.pir
examples/streams/Coroutine.pir
examples/streams/FileLines.pir
examples/streams/Filter.pir
examples/streams/Include.pir
examples/streams/Lines.pir
examples/streams/ParrotIO.pir
examples/streams/SubCounter.pir
examples/streams/SubHello.pir
examples/streams/Writer.pir
Benchmarking
examples/benchmarks/addit.pasm
Variable Argument Subroutines.
examples/benchmarks/addit.pir
Variable Argument Subroutines.
examples/benchmarks/addit.pl
Variable Argument Subroutines.
examples/benchmarks/addit2.pir
Variable Argument Subroutines.
examples/benchmarks/array_access.pir
benchmark reading from an array.
examples/benchmarks/arriter.pir
Iterator Benchmark.
examples/benchmarks/arriter.pl
Iterator Benchmark.
examples/benchmarks/arriter_o1.pir
Optimized Iterator Benchmark.
examples/benchmarks/bench_newp.pasm
PMC Creation.
examples/benchmarks/fib.pir
Fibonacci Benchmark.
examples/benchmarks/fib.pl
Fibonacci Benchmark.
examples/benchmarks/float4.pir
Benchmark different ways of filling a float4 struct.
examples/benchmarks/freeze.pasm
Freeze/Thaw Benchmarks.
examples/benchmarks/freeze.pl
Freeze/Thaw Benchmarks.
examples/benchmarks/gc_alloc_new.pasm
GC Benchmark.
examples/benchmarks/gc_alloc_reuse.pasm
GC Benchmark.
examples/benchmarks/gc_generations.pasm
GC Benchmark.
examples/benchmarks/gc_header_new.pasm
GC Benchmark.
examples/benchmarks/gc_header_reuse.pasm
GC Benchmark.
examples/benchmarks/gc_waves_headers.pasm
GC Benchmark.
examples/benchmarks/gc_waves_sizeable_data.pasm
GC Benchmark.
examples/benchmarks/gc_waves_sizeable_headers.pasm
GC Benchmark.
examples/benchmarks/mops.pasm
Calculate a benchmark for Integer PMCs.
examples/benchmarks/mops.pl
Calculate M ops/s.
examples/benchmarks/mops_intval.pasm
Calculate a benchmark.
examples/benchmarks/primes.c
Calculate prime numbers < 50000.
examples/benchmarks/primes.pasm
Calculate prime numbers < 50000.
examples/benchmarks/primes.pl
Calculate prime numbers < 10000.
examples/benchmarks/primes2.c
Calculate prime numbers < 10000.
examples/benchmarks/primes2.pir
Calculate prime numbers < 5000.
examples/benchmarks/primes2.py
Calculate prime numbers < 5000.
examples/benchmarks/primes2_i.pir
Calculate prime numbers < 10000.
examples/benchmarks/primes_i.pasm
Calculate prime numbers < 50000.
examples/benchmarks/shared_ref.pasm
Shared reference between threads.
examples/benchmarks/shared_ref.pl
Shared reference between threads.
examples/benchmarks/stress.pasm
GC stress-testing.
examples/benchmarks/stress.pl
GC stress-testing.
examples/benchmarks/stress1.pasm
GC stress-testing.
examples/benchmarks/stress1.pl
GC stress-testing.
examples/benchmarks/stress2.pasm
Brief.
examples/benchmarks/stress2.pl
GC stress-testing.
examples/benchmarks/stress3.pasm
GC stress-testing.
Speed Comparison
examples/mops/READMEexamples/mops/mops.c
Calculate M ops/s.
examples/mops/mops.cs
Calculate M ops/s.
examples/mops/mops.p6
Calculate M ops/s.
examples/mops/mops.pl
Calculate M ops/s.
examples/mops/mops.py
Calculate M ops/s.
examples/mops/mops.rb
Calculate M ops/s.
Native Call Interface
examples/nci/Mysql.pir
Test NCI with mysqlclient.
examples/nci/PQt.C
Qt/Parrot Library.
examples/nci/QtHelloWorld.pasm
Qt Example.
examples/nci/Xlib.pir
Test NCI with libX11.
examples/nci/Xlibconstants.pir
Test NCI with libX11.
examples/nci/ls.pir
a directory lister.
examples/nci/mysqltest.p6
Test NCI with mysqlclient.
examples/nci/mysqltest.pir
Test NCI with mysqlclient.
examples/nci/win32api.pir
Win32 Example.
examples/nci/xlibtest.nqp
A test of Xlib.pir usage from nqp.
examples/nci/xlibtest.p6
A test of Xlib.pir usage from rakudo.
examples/nci/xlibtest.pir
Test NCI with libX11.