Joshua James Venter

Results 17 issues of Joshua James Venter

This pull request modularises previously inline code, assisting in addressing issue #2639 to allow `stol` function to reuse some of the functionality. These changes, initially part of PR #3178, have...

This addresses #3182 to correctly parse prefixed string literals. Changes include: - Bug-fix - Added appropriate test cases to verify the new behaviour When the base 2, 8, 16 are...

Add `assert_equal` and `assert_not_equal` overload for `List` comparisons, a nice-to-have in a few places. Most probably a temporary solution under the current trait system.

Introduces `stol` (string to long) function for _more_ flexible string-to-integer parsing (issue #2639). Implementation and logic closely follows that of [`atol`](https://docs.modular.com/mojo/stdlib/builtin/string/atol). The function parses integer literals with base handling (2-36),...

### Bug description The interaction between implicit conversions and constructor overloading can lead to unintuitive constructor selection, particularly when multiple constructors are viable through different sets of implicit conversions. For...

bug
mojo-repo

Introduce `random.shuffle` for `List`. Implementation follows the Fisher-Yates shuffle.

Partially addresses Issue #2867. This PR implements modular exponentiation, as suggested, > Python's pow accepts a third mod argument to pow. We should do the same, and modify the Powable...

Following the trend of: - #3549 - #3583 Again, noticing ~1.4x speedup on basic benchmarks: ```mojo for _ in range(iterations): var idx_a = random_si64(0, 999) var idx_b = random_si64(0, 9999)...

imported-internally
merged-internally

CC @JoeLoser, @soraros

imported-internally

- Prevent warnings in docstring (related to #3572) - Add comment headers

imported-internally