Commit Graph

5256 Commits

Author SHA1 Message Date
yglukhov
9495a3caba Correct dom objects inheritance. 2015-04-01 13:50:59 +03:00
Jakob Oesterling
ff75cf5c2c fixes https://github.com/Araq/Nim/issues/2116 2015-04-01 00:12:55 +02:00
fowlmouth
7b80a0568f Merge branch 'devel' of github.com:Araq/Nim into patch2 2015-03-30 18:24:46 -05:00
def
63f9385327 Rename mget to []
- In sets, tables, strtabs, critbits, xmltree
- This uses the new var parameter overloading
- mget variants still exist, but are deprecated in favor of `[]`
- Includes tests and fixed tests and usages of mget
- The non-var `[]` now throws an exception instead of returning binary 0
  or an empty string
2015-03-31 00:32:39 +02:00
yglukhov
9e2d6d072c Implemented epochTime function for JS target. 2015-03-31 00:23:43 +03:00
Dominik Picheta
3751019823 Fix infinite recursion when await is in except body. 2015-03-30 00:42:21 +01:00
fowlmouth
f8917e8ad3 add ntys up to ntyNot 2015-03-28 03:19:48 -05:00
def
64903e7050 Use ^ instead of - in slices 2015-03-28 00:38:15 +01:00
Araq
2b80d75aa2 fixes #2420; negative indexing for slicing is obsolete (breaking change!) 2015-03-28 00:15:04 +01:00
Araq
e80840c40a preparations for dealing with the 'echo $foo' gotcha 2015-03-27 02:14:27 +01:00
Araq
7023fdddff todo update 2015-03-27 01:30:07 +01:00
Araq
ed0d9e271d disallow negative indexing 2015-03-27 01:30:06 +01:00
Andreas Rumpf
95ccb3c035 Merge pull request #2413 from def-/fix-gcusebitvectors
Fix proc call in gc_ms
2015-03-26 02:19:33 +01:00
Araq
5d63ecb3a4 implemented a[^1] notation 2015-03-26 02:12:38 +01:00
def
450c2c5287 Fix proc call in gc_ms
This fixes compilation with --gc:markandsweep -d:gcUseBitvectors
2015-03-26 01:12:45 +01:00
Simon Hafner
6dfb13b2b8 doc comments for merge 2015-03-26 03:40:39 +05:00
Simon Hafner
73655e3dd6 merge for CountTable, see #1680 2015-03-26 03:38:30 +05:00
Araq
5d132b75ef fixes #2395 2015-03-24 23:07:18 +01:00
def
1fce2ccf9f Clean up returns in xmldom a bit 2015-03-24 03:47:12 +01:00
def
4f8e435592 Fix fenv.fpRadix 2015-03-24 03:36:34 +01:00
Araq
f6ff01572e breaking change: 'concept' is now a keyword and used instead of 'generic' 2015-03-23 13:10:18 +01:00
def
b0c64bf848 Use <time.h> instead of <sys/time.h> for tzset and time_t
This fixes compilation on Linux.
2015-03-23 11:03:44 +01:00
Dominik Picheta
9c2da4cb62 Merge pull request #2385 from jschweinsberg/asyncSmtp
Fixed typo which prevented to send mails via AsyncSmtp
2015-03-23 09:09:16 +00:00
Simon Hafner
179a190f67 fixes match on empty peg match, #2354 2015-03-22 21:39:26 +05:00
jschweinsberg
634e50b4b1 Fixed typo which prevented to send mails via AsyncSmtp 2015-03-22 17:23:21 +01:00
Araq
a541be8935 prepare for upcoming parsing change of unary operators 2015-03-22 09:31:15 +01:00
Andreas Rumpf
d7c39dd801 Merge pull request #2357 from reactormonk/zero-length-match
re.match returns true on zero-length match #2354
2015-03-22 08:58:06 +01:00
Reimer Behrends
f5f89f388d Fixed Tdirent definition for OS X and BSD.
Entries d_type etc. were disabled on architectures other than Linux,
but also used for OS X and BSD in os.nim.
2015-03-22 03:54:19 +01:00
Araq
1681800d3c fixes #2116 2015-03-22 01:38:13 +01:00
def
ddeefe85d2 Add cpuRelax assembler for other platforms 2015-03-21 21:02:09 +01:00
Araq
08c0ba379a fixes #1805 2015-03-21 20:38:28 +01:00
Araq
5641be51c1 codegen doesn't produce line tracing commands anymore; fixes #1344 2015-03-21 20:38:27 +01:00
Dominik Picheta
880e39d123 Merge pull request #2358 from gradha/pr_expands_paths_in_find_exe
Expands tildes for entries in $PATH when looking for a binary.
2015-03-20 19:15:46 +00:00
Araq
a827050718 fixed cuint definition 2015-03-18 11:42:37 +01:00
def
6523d80211 Rename clearStringTable to clear 2015-03-17 22:48:34 +01:00
def
ee9499ac89 Some style cleanup 2015-03-17 22:24:12 +01:00
def
2410e667bc Make respond a template again 2015-03-17 22:05:10 +01:00
Grzegorz Adam Hankiewicz
1320efcf90 Excludes windows platfrom from $PATH tilde expansion. Refs #2358. 2015-03-17 20:07:20 +01:00
def
134eb6e582 Move recvInto to asyncnet and don't export it 2015-03-17 19:41:05 +01:00
def
836819d6b6 Don't export readInto* templates 2015-03-17 19:40:22 +01:00
def
e127ed77b1 Make recvLineInto a proc instead of template 2015-03-17 19:40:22 +01:00
def
43ed83384c Rename resetStringTable to clearStringTable 2015-03-17 19:40:22 +01:00
def
58c29c29ae Remove unused newRequest proc 2015-03-17 19:40:22 +01:00
def
6830c65560 Document asynchttpserver's respond template 2015-03-17 19:40:22 +01:00
def
7b4724ea27 PNimrodNode -> NimNode in asyncdispatch 2015-03-17 19:40:22 +01:00
def
477b3594eb Speed up asynchttpserver significantly using all the previous changes
- 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
2015-03-17 19:39:02 +01:00
def
07a50caf64 Make asyncnet usable when avoiding allocations.
- 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.
2015-03-17 19:39:02 +01:00
def
5aab532c92 Make asyncdispatch usable when preventing allocations
- 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
2015-03-17 19:39:02 +01:00
def
524b68d0ed Make strtabs module usable when avoiding allocations
- resetStringTable proc
2015-03-17 19:39:02 +01:00
def
650a75beea Make uri module usable for faster URI parsing:
- 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
2015-03-17 19:39:02 +01:00