Federico Stra

Results 18 issues of Federico Stra

I noticed that `permutations` is much less efficient than the more general `multiset_permutations` when they are both applied to a collection with unique elements: ```julia julia> collect(permutations(1:8)) == collect(multiset_permutations(1:8, 8))...

Add a function to generate all derangements: ```julia julia> map(join, derangements("abbac")) 4-element Vector{String}: "baacb" "bacba" "bcaba" "caabb" ```

Use in-place operations from `Base.GMP.MPZ` to reduce allocations. With this change I get a *massive speed-up*, for instance I pass from ```text julia> @benchmark factorial(big"1000", big"500") BenchmarkTools.Trial: 10000 samples with...

This PR changes the implementation of `derangement`, hence also `subfactorial`, to use the recursive formula `!n = (n-1) * (!(n-1) + !(n-2))` presented [here](https://en.wikipedia.org/wiki/Derangement#Counting_derangements). For values such as `subfactorial(100)` I...

```julia julia> using RedefStructs julia> @redef_print struct S{T} x::T end ERROR: ArgumentError: method definition for show_datatype at /home/fstra/.julia/dev/RedefStructs/src/RedefStructs.jl:88 has free type variables Stacktrace: [1] top-level scope @ ~/.julia/dev/RedefStructs/src/RedefStructs.jl:91 ```

- [ ] Features - [ ] Add checksum verification - [ ] Improve support for loading TLE set files as a `pandas.DataFrame` by adding more options - [ ]...

enhancement

Hey, I was browsing your really interesting dotfiles and noticed that there are several instances of incorrect word splitting in the `.bashrc` file. For instance https://github.com/nojhan/dotfiles/blob/7044573f7e82c8cec9171f4a3f463bb80197c94a/.bashrc#L64-L70 should be written as...

I think we need a way to reset [`show` rules](https://typst.app/docs/reference/styling/#show-rules) to their default. ```typst // introduce a custom style for all text objects #show text: box.with(stroke: .4pt + red, outset:...

feature request
styling