brenhinkeller / StaticTools.jl

Enabling StaticCompiler.jl-based compilation of (some) Julia code to standalone native binaries by avoiding GC allocations and llvmcall-ing all the things!
MIT License
167 stars 11 forks source link

Feat add view support #38

Closed Klafyvel closed 1 year ago

Klafyvel commented 1 year ago

Add support for Base.view, so that you can do:

a = c"foobar"
v = view(a, 1:3)
v isa StringView
v == "foo"

Note: #37 must be merged first, I started my branch from the wrong branch, sorry!

brenhinkeller commented 1 year ago

Awesome, thanks for the PRs!

Klafyvel commented 1 year ago

Thanks! I may bother you again, depending on how my project moves forward.

brenhinkeller commented 1 year ago

Any time!