-
The following code:
```python
from lpython import i32, f64
import random
def test_seed():
i: i32
a: f64 = random.random()
for i in range(10):
b: f64 = random.random()
…
-
**Extremely impressive.** `@awfutils.typecheck` is the first practical attempt I've seen at performing static type-checking at runtime. Take all my thunderous clapping! :clap: :clap:
The current a…
-
### Code
Minimized from core (https://github.com/rust-lang/rust/blob/e1884a8e3c3e813aada8254edfa120e85bf5ffca/library/core/src/str/iter.rs#L707). This also ICEs without a doc comment being used, in…
-
The following should be legal
```python
@dataclass
class StringIO:
_buf : str
_0cursor : i32 = i32(0)
_len : i32 = i32(0)
def read() -> str:
result : str = …
-
I have read https://docs.lfortran.org/en/installation/, here is what I have done
```
$ git clone https://github.com/lfortran/lfortran.git
$ cd lfortran
$ ./build0.sh
+ ci/version.sh
++ git descr…
-
Currently this diff:
```diff
diff --git a/integration_tests/bindc4.f90 b/integration_tests/bindc4.f90
index 4da43f045..77bb9c246 100644
--- a/integration_tests/bindc4.f90
+++ b/integration_tests/…
-
VeLa implements higher order functions (HOFs). When "stress testing" function handling by implementing the [`Y combinator`](https://en.wikipedia.org/wiki/Fixed-point_combinator#Fixed-point_combinators…
-
如下代码为我测试用的代码,sql语句中的分号为中文格式,运行代码不报错,为何不能检测出;是错误的,谢谢!
```
import com.alibaba.druid.sql.ast.SQLStatement;
import com.alibaba.druid.sql.dialect.oracle.parser.OracleStatementParser;
import com.aliba…
-
Broken out from oxc-project/backlog#128:
We've hit a case where the following APIs in `Traverse` visitors would be useful:
* Read siblings in a `Vec`.
* Get which index current node is in a `Ve…
-
canal :1.1.4/1.1.5
mysql :8.0.26
首先使用canal 1.1.4监控mysql: 8.0然后sink到kafka,发现无消息,查看canal日志,报空指针异常。尝试连接更低版本的mysql: 5.6.50,一切正常。尝试升级 canal:1.1.5。依旧出现同样的异常。
连接mysql 8.0 canal日志如下:
```txt2022-04-30…