Revision e7734ea0889c940c7dc57ba4e4401c93747fb428 authored by Abel Soares Siqueira on 03 March 2024, 01:23:18 UTC, committed by GitHub on 03 March 2024, 01:23:18 UTC
Hello! We noticed that your `CITATION.cff` had a small issue and fixed it. In addition to the fix, this Pull Request automates validation of that file using the [cffconvert GitHub Action](https://github.com/marketplace/actions/cffconvert). That way, it's a little bit easier to be robust against future changes to the `CITATION.cff` file. BTW it's perfectly fine if you don't feel like accepting this Pull Request for whatever reason -- we just thought it might be helpful is all. We found your repository using a partially automated workflow; if you have any questions about that, feel free to create an issue over at https://github.com/cffbots/filtering/issues/ On behalf of the cffbots team, @abelsiqueira / @fdiblen / @jspaaks --------- Co-authored-by: Max Horn <max@quendi.de>
1 parent a586d3c
gen_sysimg_symtab.jl
# This file is a part of Julia. License is MIT: https://julialang.org/license
# script to generate tables of common symbols
# steps to rerun this:
# 1. empty the contents of common_symbols*.inc
# 2. build
# 3. cd src && ../julia --depwarn=no gen_sysimg_symtab.jl
import Base.Iterators: take, drop
function _eachmethod(f, m::Module, visited, vmt)
push!(visited, m)
for nm in names(m, all=true)
if isdefined(m, nm)
x = getfield(m, nm)
if isa(x, Module) && !in(x, visited)
_eachmethod(f, x, visited, vmt)
elseif isa(x, Type)
x = Base.unwrap_unionall(x)
if isa(x, DataType) && isdefined(x.name, :mt)
mt = x.name.mt
if !in(mt, vmt)
push!(vmt, mt)
Base.visit(f, mt)
end
end
end
end
end
end
function eachmethod(f, mods = Base.loaded_modules_array())
visited = Set{Module}()
vmt = Set{Any}()
for mod in mods
_eachmethod(f, mod, visited, vmt)
end
end
function symcounts()
rts = IdDict{Any,Int}()
eachmethod() do m
if isdefined(m, :roots)
foreach(m.roots) do r
isa(r, Symbol) && (rts[r] = get(rts, r, 0) + 1)
end
end
end
sort!(Any[x.first for x in rts], by = x->rts[x], rev=true)
end
syms = symcounts()
filter!(s -> let str = string(s)
!isabspath(str) &&
!startswith(str, "#") &&
!in('\\', str)
end,
syms)
function outputline(io, name)
println(io, "jl_symbol(\"", name, "\"),")
end
open(f->foreach(l->outputline(f,l), take(syms, 94)), "common_symbols1.inc", "w")
open(f->foreach(l->outputline(f,l), take(drop(syms, 94), 254)), "common_symbols2.inc", "w")
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...