summary refs log tree commit diff stats
Commit message (Collapse)AuthorAgeFilesLines
* Merge branch 'clean-speedup-2' of https://github.com/def-/Nim into ↵Dominik Picheta2015-04-234-99/+268
|\ | | | | | | def--clean-speedup-2
| * Rename clearStringTable to cleardef2015-03-172-3/+3
| |
| * Some style cleanupdef2015-03-171-3/+3
| |
| * Make respond a template againdef2015-03-171-11/+11
| |
| * Move recvInto to asyncnet and don't export itdef2015-03-172-120/+120
| |
| * Don't export readInto* templatesdef2015-03-171-2/+2
| |
| * Make recvLineInto a proc instead of templatedef2015-03-172-52/+50
| |
| * Rename resetStringTable to clearStringTabledef2015-03-172-2/+2
| |
| * Remove unused newRequest procdef2015-03-171-3/+0
| |
| * Document asynchttpserver's respond templatedef2015-03-171-1/+1
| |
| * PNimrodNode -> NimNode in asyncdispatchdef2015-03-171-3/+3
| |
| * Speed up asynchttpserver significantly using all the previous changesdef2015-03-172-47/+53
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Export socket field of AsyncHttpServer and addHeaders proc for templates - Make respond a template instead of proc because of how often it's called. This means no more "await" when invoking it. - Optimize respond template with special case for empty headers and Content-Length entry - newRequest doesn't allocate a hostname and body anymore because they're copied in later - Major changes to processClient to prevent allocations and copies
| * Make asyncnet usable when avoiding allocations.def2015-03-171-61/+98
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - readInto, readIntoBuf, are templates instead of procs now - New recvLineInto template that reads directly into a string instead of creating a new one. Used by recvLine proc now - Need fd and bufLen fields of AsyncSocketDesc exported because of the templates - recv returns a shallow string to prevent copying - This gives significant speedups, mostly by using templates instead of creating new Futures and waiting for them all the time.
| * Make asyncdispatch usable when preventing allocationsdef2015-03-171-0/+112
| | | | | | | | | | | | | | | | | | | | - Added a recvInto proc that takes a cstring as argument and reads into it instead of returning a newly allocated string. This is pretty unnice because of code duplication with recv. Calling recvInto from recv is not a good solution because of the additional future that gets created. - Windows version is totally untested
| * Make strtabs module usable when avoiding allocationsdef2015-03-171-0/+6
| | | | | | | | - resetStringTable proc
| * Make uri module usable for faster URI parsing:def2015-03-171-10/+23
| | | | | | | | | | | | - A version of parseUri that takes a uri as parameter and modifies it - Export initUri so you can use the new parseUri better - Avoid creating new strings
* | removed a bit of cruft from kochAraq2015-04-222-29/+21
| |
* | fix #2585 properlyAraq2015-04-221-1/+3
| |
* | fixes #2585Araq2015-04-223-5/+37
| |
* | fixes #2447Araq2015-04-222-2/+3
| |
* | fixed nil.add for JSAraq2015-04-221-1/+1
| |
* | news.txt updates; fixes bootstrappingAraq2015-04-222-2/+8
| |
* | todo.txt updatesAraq2015-04-221-2/+10
| |
* | added '..^' and '..<' operators; 'nil' is allowed for 'len'; added plugin ↵Araq2015-04-2210-18/+85
| | | | | | | | system to the compiler
* | fixes #2581Araq2015-04-222-9/+40
| |
* | cleaned up some magics to make room for new magics; added '..<' and '..^' ↵Araq2015-04-227-21/+23
| | | | | | | | templates
* | fixes #2550Araq2015-04-222-9/+27
| |
* | Merge pull request #2565 from nanoant/parser-consistencyAndreas Rumpf2015-04-221-22/+11
|\ \ | | | | | | Parser consistency
| * | Parser: Make exprList() not comsume endTokenAdam Strzelecki2015-04-201-14/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This makes use single comcol or eat for multiple cases. Also this makes exprList responsible for consuming only list of expressions, nothing else which is more logical. As a side-effect compiler is now more consistent about errors, eg.: try # <- missing something echo "try" finally: echo "finally" Triggers: test.nim(2, 6) Error: ':' expected try: echo "try" finally # <- missing something echo "finally" Previously triggered: test.nim(4, 6) Error: invalid indentation But now we got: Error: ':' expected - same as in 1st case
| * | Parser: Use colcom(...) when possibleAdam Strzelecki2015-04-201-8/+4
| | | | | | | | | | | | This make parsing obligatory colon more consistent across the parser's code.
* | | Merge pull request #2583 from BlaXpirit/test-stdlibAndreas Rumpf2015-04-2148-100/+152
|\ \ \ | | | | | | | | Test stdlib
| * | | Turn some test outputs into actual testsOleh Prypin2015-04-2113-52/+84
| | | |
| * | | Fix romans moduleOleh Prypin2015-04-211-6/+3
| | | |
| * | | Fix a test in xmltreeOleh Prypin2015-04-211-1/+2
| | | |
| * | | Don't run non-test code when defined(testing)Oleh Prypin2015-04-2146-82/+104
| | | |
* | | | Merge pull request #2580 from def-/test-fixes-4Andreas Rumpf2015-04-212-4/+4
|\ \ \ \ | |/ / / |/| | | Fix expected tester messages
| * | | Fix expected tester messagesdef2015-04-212-4/+4
|/ / /
* | | Merge pull request #2411 from reactormonk/merge-counttablesAndreas Rumpf2015-04-211-0/+61
|\ \ \ | | | | | | | | merge for CountTable, see #1680
| * | | doc comments for mergeSimon Hafner2015-03-261-0/+3
| | | |
| * | | merge for CountTable, see #1680Simon Hafner2015-03-261-0/+58
| | | |
* | | | Merge pull request #2572 from maxgrenderjones/fix-2431-against-develAndreas Rumpf2015-04-211-16/+27
|\ \ \ \ | | | | | | | | | | {} returns nested results in json & standardise on 'key' not 'name'
| * | | | Allow {} to return nested results in json & standardise on 'key' not 'name'Max Grender-Jones2015-04-181-16/+27
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Note now returns nil if users try to index into a non-object; old behaviour was to throw a runtime error - Also s/transverse/traverse/
* | | | | Merge pull request #2506 from BlaXpirit/update-pcreAndreas Rumpf2015-04-212-316/+460
|\ \ \ \ \ | | | | | | | | | | | | Update and improve PCRE wrapper
| * | | | | Fix a flag in PCRE: change to 'usePcreHeader'Oleh Prypin2015-04-101-1/+1
| | | | | |
| * | | | | Change datatypes and remove broken editable procs from PCREOleh Prypin2015-04-101-23/+11
| | | | | |
| * | | | | Fix deprecation warnings in reOleh Prypin2015-04-101-7/+7
| | | | | |
| * | | | | Update and improve PCRE wrapperOleh Prypin2015-04-101-307/+463
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Version 8.36 (was 8.31) - Support for editable functions - Name arguments according to docs - Cosmetics
* | | | | | Merge pull request #2449 from def-/slice-itemsAndreas Rumpf2015-04-211-0/+6
|\ \ \ \ \ \ | | | | | | | | | | | | | | Add items iterator for slices
| * | | | | | Add items iterator for slicesdef2015-04-031-0/+6
| | | | | | |
* | | | | | | Merge pull request #2575 from nanoant/test-for-error-location-columnAndreas Rumpf2015-04-212-6/+15
|\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | Tests: Optional error location column spec