Skip to content

Instantly share code, notes, and snippets.

View dnadlinger's full-sized avatar

David Nadlinger dnadlinger

View GitHub Profile
module thrift_vibe;
import std.range;
import thrift.codegen.base : isService;
import thrift.protocol.base;
import thrift.protocol.processor;
import thrift.transport.base;
import thrift.util.cancellation;
import vibe.core.log;
import vibe.core.net;
diff --git a/misoc/software/include/base/stdbool.h b/misoc/software/include/base/stdbool.h
index d58bb58f..30b41651 100644
--- a/misoc/software/include/base/stdbool.h
+++ b/misoc/software/include/base/stdbool.h
@@ -1,8 +1,12 @@
#ifndef __STDBOOL_H
#define __STDBOOL_H
+#ifndef __cplusplus
+
# If this is a variable, we might need to contract the live range.
for name in self._names_of(target):
region = self._region_of(name)
if not region.present():
for env in self.env_stack:
if name.id in env:
env[name.id] = value_region
File "/home/ion/scratch/artiq/artiq/compiler/module.py", line 73, in __init__
escape_validator.visit(src.typedtree)
File "/home/ion/miniconda3/envs/artiq/lib/python3.5/site-packages/pythonparser/algorithm.py", line 41, in visit
return self._visit_one(obj)
File "/home/ion/miniconda3/envs/artiq/lib/python3.5/site-packages/pythonparser/algorithm.py", line 32, in _visit_one
return getattr(self, visit_attr)(node)
File "/home/ion/scratch/artiq/artiq/compiler/validators/escape.py", line 276, in visit_ModuleT
self.visit_in_region(node, None, node.typing_env)
File "/home/ion/scratch/artiq/artiq/compiler/validators/escape.py", line 269, in visit_in_region
self.generic_visit(node)
from artiq.experiment import *
from artiq.coredevice.urukul import urukul_sta_smp_err, urukul_cfg
from artiq.coredevice.ad9910 import (_AD9910_REG_SYNC, _AD9910_REG_CFR1,
_AD9910_REG_CFR2)
import numpy as np
_MULTICHIP_SYNC_RECV = (1 << 27) + (1 << 26) # + (4<<28)
@portable
[ 35635.553372s] ERROR(runtime::moninj::remote_moninj): aux packet error (timeout)
[ 35635.574874s] WARN(runtime::rtio_mgt::drtio): [LINK#0] unsolicited aux packet: InjectionStatusReply { value: 0 }
[ 35677.346414s] ERROR(runtime::moninj::remote_moninj): aux packet error (timeout)
[ 35677.390290s] WARN(runtime::rtio_mgt::drtio): [LINK#0] unsolicited aux packet: MonitorReply { value: 1 }
[ 35696.678843s] ERROR(runtime::moninj::remote_moninj): aux packet error (timeout)
[ 35696.685051s] ERROR(runtime::rtio_mgt::drtio): [DEST#1] received unexpected aux packet: InjectionStatusReply { value: 0 }
[ 35696.768729s] ERROR(runtime::moninj::remote_moninj): received unexpected aux packet: DestinationOkReply
[ 35696.826899s] ERROR(runtime::moninj::remote_moninj): aux packet error (aux packet error)
[ 35696.884522s] ERROR(runtime::moninj::remote_moninj): aux packet error (aux packet error)
[ 35696.941836s] ERROR(runtime::moninj::remote_moninj): aux packet error (aux packet error)
from artiq.experiment import *
class DMAInputGateTest(EnvExperiment):
def build(self):
self.setattr_device("core")
self.setattr_device("core_dma")
self.setattr_device("loop_out")
self.setattr_device("loop_in")
self.setattr_device("scheduler")
/**
* Checks if the peer is authorized after the SSL handshake has been
* completed on the given connection and throws an TSSLException if not.
*
* Params:
* ssl = The SSL connection to check.
* accessManager = The access manager to check the peer against.
* peerAddress = The (IP) address of the peer.
* hostName = The host name of the peer.
*/
aule@gustav:/Build/Work/ldc2-llvm3.4-release[130]$ ctest -j1 --output-on-failure
Test project /Build/Work/ldc2-llvm3.4-release
Start 1: druntime_src_core_math_debug_build
1/1124 Test #1: druntime_src_core_math_debug_build ....................... Passed 0.97 sec
Start 2: druntime_src_core_math_debug_run
2/1124 Test #2: druntime_src_core_math_debug_run ......................... Passed 0.01 sec
Start 3: druntime_src_core_math_release_build
3/1124 Test #3: druntime_src_core_math_release_build ..................... Passed 0.67 sec
Start 4: druntime_src_core_math_release_run
4/1124 Test #4: druntime_src_core_math_release_run ....................... Passed 0.01 sec
struct Node(T) {
T val;
Node!T[] children;
}
import std.range;
ForwardRange!T flatten(T)(Node!T root) {
import std.algorithm;
return only(root.val).chain(map!flatten(root.children).joiner).inputRangeObject;
}