soraros

Results 93 issues of soraros

### Bug description As title. ### Steps to reproduce ```mojo fn g[T: AnyType, f: fn(x: T) -> None](): ... fn f(x: Int): ... fn main(): g[Int, f]() ``` Above produces...

bug
mojo-repo

### Bug description There are two overloads: ```mojo fn __setitem__(self: Self, key: PythonObject, value: PythonObject): ... # and fn __setitem__(self: Self, key: PythonObject, value: Self): ... ``` and the compiler...

bug
mojo-python-interop
mojo-repo

### Bug description As title. ### Steps to reproduce ```mojo fn main(): f(1, 1) # error: invalid call to 'f': fn f[inferred T: CollectionElement, U: CollectionElement](x: T, y: U): ......

bug
mojo-repo

### Bug description As title. Otherwise, it will lead to surprising behaviour that's difficult to debug. ### Steps to reproduce ```mojo fn main(): print(Int64(0) < 0.5) # prints False ```...

bug
mojo-stdlib
mojo
mojo-repo

### Review Mojo's priorities - [X] I have read the [roadmap and priorities](https://docs.modular.com/mojo/roadmap.html#overall-priorities) and I believe this request falls within the priorities. ### What is your request? Similar to the...

enhancement
mojo-repo

### Bug description As title. ### Steps to reproduce ```mojo fn main(): alias n: IntLiteral = 2**2 ``` ### System information ```shell Mojo 2024.7.1305 (a4455bc9) on Docker, Intel Mac ```

bug
mojo-repo

### Bug description As title. It's odd since most other types work. ### Steps to reproduce ```mojo fn main(): alias le = Int.__le__ # error: cannot form a reference to...

bug
mojo-repo

- Small simplification to the function `_horner_evaluate`. - Improve its docstring to match the argument names. - ~~Finish off removing `unroll` by cleaning up the imports.~~

imported-internally

- Simplify the signature of `reduce` since it's doesn't have to be generic over `type` - Introduced a `reduce` overload for non-capturing functions - Simplify `SIMD.reduce_op` functions using `SIMD.op` methods...

imported-internally

### Bug description As title. ### Steps to reproduce Consider the following invalid code: ```mojo @value struct S: var data: Float64 fn __moveinit__(inout self, other: S): self.data = other.data ```...

bug
mojo-repo