Commit Graph

18917 Commits

Author SHA1 Message Date
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
Araq
1592067566 improved the documentation; overloading resolution finally documented 2015-03-14 19:49:32 +01:00
KeMeGe
ca8102b96d Add character set options when opening DB connection 2015-03-14 15:21:38 +08:00
Araq
2f4472963f disjoint checker works with the new countup iterators 2015-03-14 01:26:32 +01:00
Dominik Picheta
eadf648767 Merge branch 'devel' of github.com:Araq/Nimrod into devel 2015-03-14 00:16:59 +00:00
Dominik Picheta
44e095dd3d Expanded release notes in news.txt. 2015-03-14 00:16:23 +00:00
Dominik Picheta
658600a9b9 Merge pull request #2296 from SSPkrolik/redis-scan-implementation
Added implementation for Redis SCAN command
2015-03-13 20:42:18 +00:00
def
d77c883911 globalError instead of localError when failing infinite recursion
globalError throws an exception, so this works for `nim check` as well.
2015-03-13 17:17:42 +01:00
def
06b986dbd5 Rename compiler/nim.ini back to compiler/installer.ini
- Niminst has a new -m/--main option to set the main file, by default
  ini-file with .nim extension (old behaviour)
- Koch uses this to pass --main:compiler/nim.nim
- Fix includes/links of website.ini
2015-03-13 17:03:57 +01:00
Andreas Rumpf
5f347fad66 Merge pull request #2268 from ziotom78/devel
New templates for getting the limits of FP types added.
2015-03-13 15:37:15 +01:00