| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
| |
* tuple unpacking is now supported for consts
* Move nkConstTuple to the end of TNodeKind
* Add nnkConstTuple in macros.nim
* Fix Formatting
|
|\
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
variants (#9957)
* Fix semRecordCase
* Fix ftpclient.nim
* Check for ordinal type
* Check tyRange for exhaustiveness
|
| |\ |
|
| | | |
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
(#9948)
* Give better error message when profiler and memProfiler used at same time
* Move to profiler.nim
|
| | | |
|
| | | |
|
| | |
| | |
| | |
| | |
| | | |
* [os] fix #10017 regression
* [os] fix #10025 regression
|
|\ \ \
| | | |
| | | |
| | | |
| | | |
| | | | |
* see what breaks with a global config.nims
* make tests green with a global config.nims file
|
| | | | |
|
| | | |
| | | |
| | | |
| | | | |
add tests for vmops (#9925)
|
|/ / /
| | |
| | | |
Just minor addition to the documentation with the use of operators
|
| | | |
|
| | | |
|
| | | |
|
| | | |
|
| | |
| | |
| | | |
also remove references to non-existant parameters
|
| | | |
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
* Allow an escape hatch for platform specific flags (of which there are many,
for example MAP_POPULATE itself is a Linux-only thing, not other Unix).
Continue with same defaults as before in this commit, but that really
should be changed to *not* include MAP_POPULATE. While pre-faulting
all the pages can be useful sometimes *if* you know you're going to
access all the data, it is highly unlikely to be what users expect the
default to be. For some things all that up front work is 1000s of
times slower than being lazy/on-demand/only ever faulting parts of the
file. Even the MAP_POPULATE fan who originally in 2014 committed to
this file defaulted it to off (but turned it always-on as a "temporary"
work around for some long since gone/mutated compiler issue).
Anyway, at least something like this `mapFlags` gives users the ability
to override the poor default choice or activate any other idiosyncratic
platform-specific features.
* Use simple, efficient default flags, but also accept whatever the open/mapMem
caller specifies. Save flags in MemFile so they can be used in `resize`.
This field should not need exporting like the others -- callers can always
save whatever values they pass -- but we include a cautionary comment in
case anyone ever asks for a `*` there, as well as for documentation.
Also make documentation for ``mapFlags`` in open more likely to inspire care.
|
| | | |
|
| | | |
|
| | | |
|
| | | |
|
| |/
|/|
| |
| | |
compiler/pathutils.nim; added os.relativePath
|
|/
|
|
|
|
|
|
|
| |
covered (#9930)
* Give error when case has an else branch even though all cases are already covered.
* Don't check for invalid else for type tyFloat..tyFloat128, tyString, tyError
* Remove unnecessary else in unittest.nim
* Fix sockets.nim
|
|\
| |
| | |
Added basic AF_UNIX support to asyncnet.
|
| |
| |
| |
| |
| |
| |
| |
| | |
Unfortunately this required some code duplication because the
doConnect() from asynccommon.nim only works with addrInfo which does not
make sense for AF_UNIX.
makeUnixAddr() was moved to nativesocket.nim and exported
|
|\ \ |
|
| |\ \
| | | |
| | | | |
Add runnableExamples for strmisc procs and a better doc for expandTabs
|
| | | | |
|
| |\ \ \ |
|
| | | | | |
|
| |/ / /
|/| | | |
|
| | | | |
|
|\ \ \ \ |
|
| | | | | |
|
| | | | | |
|
| | | | | |
|
|\ \ \ \ \
| | | | | |
| | | | | | |
Let handles be seen outside of `memfiles` module so that "updating"
|
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
discussion (with special mremap usage on Linux, but ordinary munmap, mmap on
other POSIX). Someone needs to do the when windows branch.
|
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
Updating accessors are also provided since the idea of this change is to
allow "updating" operations external to the module which are by their very
nature closely tied to module internals (as well as to OS interface details).
|
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
operations (like eg., resizing a file and re-mapping) do not need
to worry about race conditions of re-opened paths, renamed parent
directories and that sort of thing. Operating directly on already
open handles is both safer and more efficient than relying upon the
stability of filesystem paths.
|
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
Fixes #9243
|
| | | | | | |
|
| | | | | | |
|