Commit Graph

7456 Commits

Author SHA1 Message Date
Araq
1fc590b6ea don't generate memset calls for C++ objects 2015-03-18 11:42:36 +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
Andreas Rumpf
ca22dfcdc2 Merge pull request #2364 from def-/nimnode
Rename PNimrodNode to NimNode
2015-03-17 18:32:35 +01:00
def
fd4e629905 Rename PNimrodNode to NimNode 2015-03-17 17:50:32 +01:00
Andreas Rumpf
8e651fa0d4 Merge pull request #2326 from oderwat/fix-totable
Making tuples anonymous (so far... not finished).
2015-03-17 10:29:32 +01:00
Andreas Rumpf
3125873b4a Merge pull request #2337 from kemege/db_charset
Add character set options when opening DB connection, default to UTF-8
2015-03-17 01:32:26 +01:00
Andreas Rumpf
edc45726b7 Merge pull request #2360 from def-/test-fixes-3
Fix tests some more
2015-03-17 00:17:59 +01:00
Hans Raaf
a41778725a Added Test for zip() with anonymous tuples. 2015-03-17 00:15:23 +01:00
Hans Raaf
b42c729da4 Making tuples anonymous (so far... not finished). 2015-03-17 00:15:23 +01:00
def
cb3c99fe1f Fix tests some more 2015-03-17 00:02:47 +01:00
Araq
1f02a7ace3 fixes #2336 2015-03-16 23:35:08 +01:00
Araq
ee99771afa fixes #2359 2015-03-16 23:24:33 +01:00
Araq
cc26308044 fixes #2352 2015-03-16 23:16:56 +01:00
Araq
bf90b9c833 fixes #2346 2015-03-16 23:02:20 +01:00
Araq
bc264618f5 fixes #2257 2015-03-16 23:02:20 +01:00
Araq
f9a3de984d macros.getType() works properly for distinct types 2015-03-16 23:02:19 +01:00
Araq
13cdad8819 fixes #2304 2015-03-16 23:02:18 +01:00
Araq
ea5217c9fc disjoint checker is somewhat smarter 2015-03-16 23:02:18 +01:00
Grzegorz Adam Hankiewicz
79934b9d68 Expands tildes for entries in $PATH when looking for a binary. 2015-03-16 22:01:56 +01:00
Andreas Rumpf
1838ea2db4 Merge pull request #2342 from philip-wernersbach/more-improved-objc
Fix linking errors with basic Objective-C FFI.
2015-03-16 21:30:08 +01:00
Simon Hafner
26749de828 re.match returns true on zero-length match #2354 2015-03-16 15:05:02 -05:00
Andreas Rumpf
169e89173c Merge pull request #2332 from def-/sections-toc-ref
rstgen: Unique reference names in TOC
2015-03-16 10:37:28 +01:00
Andreas Rumpf
b12ce48c78 Merge pull request #2339 from gradha/pr_fixes_osx_environ_use
Enables use of NSGetEnviron for osx binary compatibility. Refs #965.
2015-03-16 10:36:45 +01:00
Andreas Rumpf
327b56d5e1 Merge pull request #2343 from philip-wernersbach/fix-pthreads-under-cpp
Fix issues with pthread_create when compiling under C++ mode.
2015-03-16 10:27:55 +01:00
KeMeGe
171d51a08c move database encoding options to setEncoding(), leave open() as it is 2015-03-16 13:53:38 +08:00
Philip Wernersbach
5be4e7b9f0 Add linker flags for the Objective-C compilation mode.
Fixes Araq/Nim#2153.
2015-03-15 19:09:28 -04:00
Philip Wernersbach
747653911c Add compiler-specific configuration options for all compilers. 2015-03-15 19:07:42 -04:00
Dominik Picheta
1e9ab3bb0a Fixes #2323. Fixes #2148. 2015-03-15 22:06:26 +00:00
Philip Wernersbach
dcf4cee37c Add test for fix in f8d6d74368. 2015-03-15 17:54:57 -04:00
Philip Wernersbach
f8d6d74368 Fix pthread_create binding when compiling in C++ mode.
C++ has different rules for void pointers, which causes the binding
to be invalid when compiling in C++ mode.
2015-03-15 17:33:46 -04:00
Andreas Rumpf
faad6ed67f Merge pull request #2333 from def-/recursive-type
Fix infinite recursion in semtypes with recursive types
2015-03-15 00:46:33 +01:00
Andreas Rumpf
b7cba7fa29 Merge pull request #2327 from def-/installation
Installation
2015-03-15 00:41:53 +01:00
def
669db4216e Add test case for infinite recursion in semtypes 2015-03-14 22:46:17 +01:00
Araq
d4bca58b7d fixes #1809; implements overloading based on 'var T' 2015-03-14 22:21:43 +01:00
Grzegorz Adam Hankiewicz
ff94ce9d0b Enables use of NSGetEnviron for osx binary compatibility. Refs #965. 2015-03-14 21:35:33 +01:00