whitequark
032f28863f
compiler: reject reachable implicit return if not returning TNone.
...
Fixes #718 .
2017-04-22 15:31:22 +08:00
whitequark
c33f9637c1
compiler: in codegen for delay(), round fp instead of truncating.
...
Consider delay(8*us). It results in the following computation...
>>> 8*1e-06/1e-09
7999.999999999999
with the result promptly getting truncated to 7999.
Fixes #706 .
2017-04-22 15:31:13 +08:00
whitequark
be2683e097
compiler: fix monomorphization of coerced integer literals.
...
Fixes #703 .
2017-04-12 13:18:24 +08:00
whitequark
31dd99e8bd
compiler: the len builtin is not polymorphic, coerce the result.
...
Fixes #659 .
2017-02-01 08:23:30 +08:00
whitequark
2dc8d417ca
compiler: support methods defined on singleton instances.
...
Fixes #638 .
2017-02-01 08:23:16 +08:00
whitequark
ebae6d248f
compiler: unbreak casts to int32/int64.
2016-11-21 14:22:35 +00:00
whitequark
fd1d77767e
inferencer: significantly improve the op-assignment diagnostic.
...
Before this commit, it displayed incorrect output if an error
appeared on 2nd run and beyond, and displayed messages for trying
to do "num32 -= num64" that made very little sense.
2016-11-21 14:22:32 +00:00
whitequark
372e8f9b2b
llvm_ir_generator: handle no-op coercions.
2016-11-21 10:58:42 +08:00
David Nadlinger
4c2e921270
compiler: Fix break/continue targets in loop else blocks
...
Previously, they would still target the respective labels in the
just-exited loop.
Signed-off-by: David Nadlinger <code@klickverbot.at>
2016-11-05 17:27:36 +08:00
whitequark
ecb01d055f
compiler: warn about unused kernel_invariant entries.
...
Fixes #543 .
2016-09-14 21:49:43 -04:00
whitequark
1a518ea7eb
compiler.embedding: implement string concatenation.
...
Fixes #526 .
2016-08-08 04:05:52 +00:00
whitequark
5a2306ae5a
compiler.embedding: implement type annotations for function arguments.
...
Fixes #318 .
2016-08-08 03:28:25 +00:00
whitequark
b6c12f2f56
test: relax RPCTiming rpc_time_stddev from 1ms to 2ms.
...
Even when given exclusive access to our buildserver it still gives
false positives with 1ms.
2016-07-14 10:47:51 +00:00
Sebastien Bourdeauducq
e0ed99cd7b
Revert "test/ctlmgr: keep trying to ping on OSError"
...
This reverts commit 375e821bd8
.
2016-07-09 08:59:47 +08:00
Sebastien Bourdeauducq
375e821bd8
test/ctlmgr: keep trying to ping on OSError
...
Since Python 3.5.2, this exception can be raised on Windows when the
connection fails.
2016-07-08 12:40:04 +08:00
whitequark
653eeb476f
runtime: fix serialization of object lists.
...
Fixes #500 .
2016-07-07 12:40:50 +00:00
whitequark
5a79fcf9ba
embedding: reimplement 373578bc
properly.
...
The core of the problem that 373578bc
was attempting to solve is
that diagnostics sometimes should be chained; one way of chaining
is the loc.expanded_from feature, which handles macro-like expansion,
but another is providing context.
Before this commit, context was provided using an ad-hoc override
of a diagnostic engine, which did not work in cases where diagnostic
engine was not threaded through the call stack. This commit uses
the newly added pythonparser context feature to elegantly handle
the problem.
2016-07-07 11:49:21 +00:00
whitequark
d90fd7dc00
compiler: implement numpy.full ( #424 ).
2016-07-07 06:33:38 +00:00
whitequark
7a671fb2fd
embedding: treat numpy.{int32,int64,array} specially ( #424 ).
...
Also, remove them from prelude to not pollute the namespace.
2016-07-07 06:33:38 +00:00
whitequark
933ea53c77
compiler: add basic numpy array support ( #424 ).
2016-07-06 09:51:57 +00:00
whitequark
906db876a6
language: replace coredevice int with numpy.{int32,int64}.
...
Fixes #453 .
2016-07-06 04:44:21 +00:00
whitequark
fa71b40c80
compiler: print the builtin type int(width=...) as np.int...
2016-07-06 04:22:51 +00:00
Sebastien Bourdeauducq
a1cc964c6c
test/scheduler: test check_pause
2016-06-29 11:44:42 +08:00
Sebastien Bourdeauducq
43681b37ec
test/rtio: relax constraints
2016-06-29 11:38:36 +08:00
Sebastien Bourdeauducq
e51928ee97
test/rtio: adapt to new handover behavior
2016-06-29 10:38:37 +08:00
Sebastien Bourdeauducq
c8dc6ca07c
inter-experiment smooth handover
2016-06-29 02:37:50 +08:00
whitequark
6155f65366
compiler: remove now()/at().
...
Fixes #490 .
2016-06-28 04:39:14 +00:00
whitequark
33e8e59cc7
compiler: implement min()/max() as builtins.
...
Fixes #239 .
2016-06-22 01:09:41 +00:00
whitequark
77d47c2fdd
transforms.artiq_ir_generator: split out finally→reraise control flow.
...
This makes it accessible to introspect by local access validator,
making some previously rejected code valid.
Fixes #331 .
2016-06-22 00:57:32 +00:00
whitequark
f2ae24da39
compiler: add support for Python modules.
...
Fixes #408 .
2016-06-21 23:35:07 +00:00
Sebastien Bourdeauducq
917cc056f4
test: add test for seamless handover on exception termination
2016-06-19 19:15:10 +08:00
whitequark
c0e42bbfc8
compiler.embedding: always do one final inference pass.
...
Fixes #477 .
2016-06-16 14:18:43 +00:00
Sebastien Bourdeauducq
033aa33c9e
pyon: support slices
2016-06-15 19:18:46 +08:00
whitequark
e47538ca33
analyzer: explicitly delimit messages (with \x1D).
...
Fixes #461 .
2016-06-07 11:26:49 +00:00
whitequark
355af3e569
embedding: specialize inherited functions.
...
Fixes #414 .
2016-05-16 15:59:26 +00:00
whitequark
0826ceb8ba
Commit missing parts of a5bb4a24
.
2016-05-10 02:12:57 +00:00
whitequark
a5bb4a24af
compiler: support short form of raise.
...
Fixes #240 .
2016-05-10 01:41:40 +00:00
whitequark
4e5d752951
compiler: fix quoting of methods ( fixes #423 ).
2016-05-09 12:25:57 +00:00
Sebastien Bourdeauducq
136dc7039e
language/environment: update kernel_invariants in setattr_argument and setattr_device
2016-05-03 16:27:42 +08:00
Sebastien Bourdeauducq
5efa5f5265
style
2016-05-03 16:24:01 +08:00
whitequark
f7d83e9bdf
compiler: make kernel_invariant an instance, not class, property.
...
Fixes #409 .
2016-04-29 13:06:11 +00:00
whitequark
a88425b66b
compiler: allow RPCing builtin functions.
...
Fixes #366 .
2016-04-26 01:31:17 +00:00
whitequark
1464bae6b7
compiler: don't typecheck RPCs except for return type.
...
Fixes #260 .
2016-04-26 01:12:36 +00:00
Robert Jördens
a0d2dab594
test/pyon: arrays and complex types
2016-04-24 14:27:24 +02:00
Sebastien Bourdeauducq
caf774579a
environment: refactor
2016-04-16 19:31:07 +08:00
Sebastien Bourdeauducq
e1a229028d
test/analyzer: clear analyzer buffer after IO init
2016-04-15 01:18:36 +08:00
Robert Jördens
511913230f
test_analyzer: loop_out.off()
2016-04-14 22:57:16 +08:00
Robert Jördens
d42ef46471
test: set inputs to input(), should close #383
2016-04-12 18:17:53 +08:00
Robert Jördens
13b4929dd8
wavesynth: silence is a channel property ( closes #348 )
2016-04-07 21:51:29 +08:00
Robert Jördens
6a783ead24
test_wavesynth: use matplotlib
2016-04-07 21:36:30 +08:00