- Bitwise Atomic And/Or were missing from
sync/atomic - Users fallback to CAS, runtime used it too
- Required to reduce contention in hot code paths
// Before: racing to set a bit atomically
for {
old := atomic.LoadUint32(&flags)| #!/opt/homebrew/bin/bash | |
| export QT_QPA_FONTDIR=/System/Library/Fonts | |
| COMPONENTS=$(jq -r 'select (.message == "Non-zero metrics in the last 30s") | .component.id' *.ndjson | sort -u) | |
| SAFE_COMPONENTS=() | |
| for COMPONENT in $COMPONENTS | |
| do | |
| SAFE_COMPONENT=$(echo "$COMPONENT" | tr '/' '_') | |
| SAFE_COMPONENTS+=($SAFE_COMPONENT) |
The types string and []byte share the same memory layout, it is a pointer to memory followed by the length (with a capacity, in the case of slices) and the actual contents. When we do a == comparison with slices (or strings, if that matter) the runtime issues a call to
runtime.memequal(a, b unsafe.Pointer, size uintptr) bool
This function is akin to libc’s memcmp(3).
Most compilers, such as gcc, will generate very optimized assembly for an operation like this, but it mostly boils down to:
Hi,
this gist summarizes how to share UNIX files/folders with a Plan9 instance using u9fs.
First of all, grab the latest u9fs release from source or install it with the package manager of your preference, then build and install.
Please be sure to find the correct path to your u9fs binary because it may differ based on the installation, normally it is
/usr/local/bin/u9fsor/usr/bin/u9fs.
On older unix/linux systems you may use inetd, which is already covered by the u9fs man page.
| import tensorflow as tf | |
| # FIXME: audio_ops.decode_wav is deprecated, use tensorflow_io.IOTensor.from_audio | |
| from tensorflow.contrib.framework.python.ops import audio_ops | |
| # Enable eager execution for a more interactive frontend. | |
| # If using the default graph mode, you'll probably need to run in a session. | |
| tf.enable_eager_execution() | |
| @tf.function | |
| def audio_to_mfccs( |
| diff --git a/main/backtrace.c b/main/backtrace.c | |
| index 2623d7ff87..9b80622b04 100644 | |
| --- a/main/backtrace.c | |
| +++ b/main/backtrace.c | |
| @@ -124,12 +124,12 @@ static void process_section(bfd *bfdobj, asection *section, void *obj) | |
| offset = data->pc - (data->dynamic ? (bfd_vma)(uintptr_t) data->dli.dli_fbase : 0); | |
| - if (!(bfd_get_section_flags(bfdobj, section) & SEC_ALLOC)) { | |
| + if (!(bfd_section_flags(section) & SEC_ALLOC)) { |
| #!/bin/sh | |
| set -e | |
| asterisk -rx "queue show ${1}" | |
| grep '(paused) (Not in use)' | | |
| awk '{$1=$1};1' | | |
| cut -d' ' -f1 | | |
| while read -r member | |
| do |
| 0 26 0 | |
| 0 27 '[ | |
| 0 39 'ç | |
| 0 40 0 | |
| 0 41 '' | |
| 0 43 '] | |
| 0 53 '; | |
| 0 115 '/ | |
| 1 26 0 | |
| 1 27 '{ |
| // Tensorflow Serving Go client for the inception model | |
| // go get github.com/golang/protobuf/ptypes/wrappers google.golang.org/grpc | |
| // | |
| // Compile the proto files: | |
| // | |
| // git clone https://github.com/tensorflow/serving.git | |
| // git clone https://github.com/tensorflow/tensorflow.git | |
| // | |
| // mkdir -p vendor |
| #!/bin/bash | |
| ls *.{tex,bib} | entr sh -c "bibtex main && pdflatex -synctex=1 -interaction=nonstopmode main.tex" |