Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

file 262 lines (216 sloc) 3.667 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262
TODO
====

tora --config
# => dump json config vars

builtin functions
-----------------

stat()
alarm()
printf()
sprintf()
pack()
unpack()
warn()

builtin objects
---------------

$STDERR.print()

Class::Load

String#index

Array#grep
Array#sort!()
Array#any()
Array#shuffle()
Array#reverse!()

Enumerable#reduce()
Enumerable#sort_by()

for (my $e in dir('t')) { ... }

`` operator.

File::Temp

open($fname, $mode, $encoding)
file($fname).open($mode="rb", $encoding="utf-8")
File#write()
File#read(n)

String#replace(regexp|str, code)

my $a=[];
$a[100]; # => undef

Time.strftime() does not work correctly with %a.

generate document

Standard Libraries
------------------

Module::Build

use POSIX::Glob *;
glob('src/object/*.cc')

Test::LongString
Test::Fatal

File::Zglob

File::which

UV or EV?

XML::LibXML
(HTML::Parser)

Digest::SHA1

Text::Mecab

Proc::Wait3

Geo::GeoHash

syntax
------

 * local $FOO[$var];
 * "\u3042"
 * given-when
 * $array.sort({ $_[0] <=> $_[1] }).reverse();
 * <<'...'
 * "hogehoge $foo"
 * "hogehoge #{ 3+2 }"
 * last with label
 * next with label
 * next
 * continue
 * $PROGRAM_NAME($0)
 * fiber
 * overload(+) {
      $a + $b;
   }
 * localize STDOUT
 * local Foo::method = sub { };
 * /xxx/x
 * super()
 * exceptions should display file name
 * signal handler
   * perl5's safe signals.

lambda
------


Pending
-------

 * $x or $y
 * $x and $y

feature
-------

  * switch to picostring
  * use Test::More qw(is);
  * <DATA>
  * -n option
  * -p option
  * -i option
  * eval() with upper stack introspeciton like 'my $x=4649; eval("say($x)")'
  * [1,2,3].sort(-> $a, $b { $a <=> $b })
  * === operator?
  * ~~
  * bignum support using ttmath?
  * for (my $i=0; $i<100; $i++) { } say($i); should be fail.
  * local $n
  * check deep recursion
  * traits
  * scope_guard { ... }
    * BOOST_SCOPE_EXIT
    * http://www.kmonos.net/alang/d/2.0/statement.html#ScopeGuardStatement
    * https://metacpan.org/module/Guard

benchmarking
------------

 * http://cpanidx.org/perlbench/
 * http://shootout.alioth.debian.org/

Library
-------

 * Socket
 * readline
 * ANSIColor
 * HTTP client
 * B::Deparse
 * Test::More
 * Text::MicroTemplate
 * implement Path::Class detial.

Finished
--------
  * say(($a==$b ? "ok " : "not ok ") + $counter);
  * "abc" == "def"
  * Dir.close
  * do not create scope if thre is no var definition.
  * $ENV['Foo'] = 'Bar';
  * -s
  * return if $_;
  * x if foo;
 * q{}
 * qq{}
 * last
 * $x && $y
 * $x || $y
 * __FILE__
  * __FILE__
  * statement scope
  * require
  * import
  * ENV
 * to_double()
 * caller()
 * $x ** 2
 * $x | $y
 * $x & $y
 * $x ^ $y
 * $x << $y
 * $x >> $y
 * $x % $y
  * sub f() { { say('hoge') } } f()
  * sub f() { { 1 => 2 } } f()
  * for (1..10) { say($_) }
Array#push()
Array#pop()
Array#shift()
Array#unshift()
Array#reverse()
 * *=
 * -=
 * &=
 * |=
 * ^=
 * %=
 * +=
 * say $_ for $array;
 * unless () { }
 * x unless foo;
getcwd()
 * x while y;
 * callee()
Code#file
Code#line

getpid()
getppid()
Array#join()
 * [1,2,2].map(sub { say($_) });
Array#map()
 * destructor in pure tora function
  * -x
  * DynaLoader
hex()
sqrt()
 * $foo.bar; # ignore parens.
dir('t').file($fname)
 * inheritance
String#match(regexp|str, code)
XSLoader()
Regexp.quotemeta
 * /xxx/i
 * /xxx/g
String#replace(regexp|str, str)
ErrnoException?
String#substr(n)
String#substr(n, m)
  * Bytes class.
system()

 * /xxx/s
 * /xxx/m
File#tell()
File#seek()
File#rewind()
Dir.mkdir
Dir.rmdir
File#sync()
Fcntl.flock()

String.lc()
String.uc()
 * 'a' x 3 or 'a' * 3
Bytes#decode() / with icu?

String#encode()
open()
 * dir()
 * file()
 * flock
 * HTTP server
  * use ICU for converting encoding.
Something went wrong with that request. Please try again.