Skip to content

Instantly share code, notes, and snippets.

Working from home

Vinnie Falco vinniefalco

Working from home
View GitHub Profile
View gist:afc72a7ba600538a6e4fb44f143df3fb
July 10, 2020
Dear Members of the Ransom Everglades Community,
In the weeks since the killing of George Floyd, our nation as a whole,
including members of our own community, has been engaged in
conversation and reflection about racism and racial injustice. On
Juneteenth-June 19th, the RE Black alumni community sent an
unambiguous letter to us, outlining their concerns and suggestions for
change. During two subsequent virtual town halls, these members of our
View gist:11daef6d9d0c0ae64308560edfb1fcd2
notice: found boost-build.jam at C:/Users/vinnie/src/boost/boost-build.jam
notice: loading B2 from C:/Users/vinnie/src/boost/tools/build/src/bootstrap.jam
notice: Searching 'C:\Users\vinnie' 'C:\Users\vinnie' 'C:\Users\vinnie' 'C:/Users/vinnie/src/boost/tools/build/src' 'C:/Users/vinnie/src/boost/tools/build/src/kernel' 'C:/Users/vinnie/src/boost/tools/build/src/util' 'C:/Users/vinnie/src/boost/tools/build/src/build' 'C:/Users/vinnie/src/boost/tools/build/src/tools' 'C:/Users/vinnie/src/boost/tools/build/src/contrib' 'C:/Users/vinnie/src/boost/tools/build/src/.' for site-config configuration file 'site-config.jam'.
notice: Configuration file 'site-config.jam' not found in 'C:\Users\vinnie' 'C:\Users\vinnie' 'C:\Users\vinnie' 'C:/Users/vinnie/src/boost/tools/build/src' 'C:/Users/vinnie/src/boost/tools/build/src/kernel' 'C:/Users/vinnie/src/boost/tools/build/src/util' 'C:/Users/vinnie/src/boost/tools/build/src/build' 'C:/Users/vinnie/src/boost/tools/build/src/tools' 'C:/Users/vinnie/src/boost/tools/build/src/co
View gist:fe9cf6dcc2a59d7894a9483914cb37e5
msvc.compile.asm C:\Users\vinnie\src\boost\bin.v2\libs\context\build\msvc-14.2\dbg\adrs-mdl-64\lnk-sttc\thrd-mlt\asm\jump_x86_64_ms_pe_masm.obj
'ml64' is not recognized as an internal or external command,
operable program or batch file.
call "C:\Users\vinnie\src\boost\bin.v2\standalone\msvc\msvc-14.2\msvc-setup.bat" >nul
ml64 -c -Zp4 -Cp -Cx -nologo -DBOOST_ALL_NO_LIB=1 -DBOOST_CONTEXT_EXPORT= -DBOOST_CONTEXT_SOURCE -D_WIN32_WINNT=0x0601 /Zi /Zd /W3 -Fo "C:\Users\vinnie\src\boost\bin.v2\libs\context\build\msvc-14.2\dbg\adrs-mdl-64\lnk-sttc\thrd-mlt\asm\jump_x86_64_ms_pe_masm.obj" "C:\Users\vinnie\src\boost\libs\context\src\asm\jump_x86_64_ms_pe_masm.asm"
...failed msvc.compile.asm C:\Users\vinnie\src\boost\bin.v2\libs\context\build\msvc-14.2\dbg\adrs-mdl-64\lnk-sttc\thrd-mlt\asm\jump_x86_64_ms_pe_masm.obj...
compile-c-c++ C:\Users\vinnie\src\boost\bin.v2\libs\fiber\build\msvc-14.2\dbg\adrs-mdl-64\lnk-sttc\thrd-mlt\context.obj
View gist:c05e72b35914306876f9c1c2292ef690
string& s,
serializer& sr)
// serialize to a small buffer
// to avoid most reallocations
char buf[16384];
string_view sv;
View gist:c4635c98ad51dee7eec935a9661356c0
/** Return an @ref array pointer if this is an array, else return `nullptr`
If `this->kind() == kind::array`, then a pointer
to the underlying array is returned. Otherwise,
`nullptr` is returned.
@par Example
The semantics of the function allow the return
value to be used in a conditional expression as
View gist:56e3709db3fde2951a71859cd2a623ea
std::size_t n,
std::size_t align)
std::size_t const extra = (
align * ((i_ + align - 1) / align)) - i_;
if( extra > n_ ||
n > n_ ||
View gist:b1b5a344c8382491590f58d203c58007
std::size_t n,
std::size_t align)
auto const i = reinterpret_cast<
std::uintptr_t>(buffer_ + used_);
std::size_t const extra = (
align * ((i + align - 1) / align)) - i;
View gist:c999a693e46e2dec072c68ed60068f73
/** Constructor
This constructs a non-owning pointer that
points to the specified memory resource `r`.
The caller is responsible for maintaining the
lifetime of the pointed-to @ref memory_resource.
@par Constraints
std::is_convertible< T*, memory_resource* >::value == true
View gist:96a14e591992e839e99770acc0b54750
A polymorphic allocator constructs with a pointer to a memory resource:
// A type of memory resource
std::pmr::monotonic_buffer_resource mr;
// Construct a vector using the monotonic buffer resource
std::pmr::vector< T > v1( std::pmr::polymorphic_allocator< T >(&mr) );
// Or this way, since construction from memory_resource* is implicit:
std::pmr::vector< T > v2( &mr );
View gist:67ee55deda16b9fe5fddb37256266cd2
/** Push an object formed by popping `n` key/value pairs from the stack.
This function pushes an @ref object value
onto the stack. The object is formed by first
popping the top `n` key/value pairs from the
stack. If the stack contains fewer than `n`
key/value pairs, or if any of the top `n` key/value
pairs on the stack does not consist of exactly one
key followed by one value, the behavior is undefined.