-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
copy byte arrays upon string construction #102
Comments
This is extremely nasty. How can we avoid allocating two byte arrays for every string constructed? |
I'd be ok with that. It basically just need to be stated in BIG RED LETTERS that if you pass a byte array to In general, I feel like the private vs. public contract in Julia is this: an object's state is private — if you access it directly and change it, you had better know what you're doing; if you just manipulate an object with functions that are provided to manipulate it, then that's safe because those are its public interface. So the fact that |
Fine. Close it! |
We could also make copying and non-copying versions with the default being copying. |
Remove unused exercise README insert
…uliaLang#39833) $ git log --pretty=oneline --abbrev=commit 2b4bed9..6bb8306 6bb83068bd796c4890baaeb39628ff79a4979374 Stop the grace timer iff adding first handle (fix JuliaLang#99) (JuliaLang#102) af6864d8872247faf2a402d6b2baca5cb74ab96e fix ssh_key_pass bug (fix JuliaLang#91) (JuliaLang#100)
…uliaLang#39833) $ git log --pretty=oneline --abbrev=commit 2b4bed9..6bb8306 6bb83068bd796c4890baaeb39628ff79a4979374 Stop the grace timer iff adding first handle (fix JuliaLang#99) (JuliaLang#102) af6864d8872247faf2a402d6b2baca5cb74ab96e fix ssh_key_pass bug (fix JuliaLang#91) (JuliaLang#100)
* An export-worthy API for break_on_error Some day we hope to have more possibilities for triggering automatic breakpoints (issue #102). For now, let's at least establish an extensible user-level API.
This needed updating for 1.10 (#102). * port pool stats to 1.10 * increment/decrement current_pg_count --------- Co-authored-by: K Pamnany <[email protected]>
Stdlib: Distributed URL: https://github.com/JuliaLang/Distributed.jl Stdlib branch: master Julia branch: master Old commit: 6a07d98 New commit: 6c7cdb5 Julia version: 1.12.0-DEV Distributed version: 1.11.0(Does not match) Bump invoked by: @Keno Powered by: [BumpStdlibs.jl](https://github.com/JuliaLang/BumpStdlibs.jl) Diff: JuliaLang/Distributed.jl@6a07d98...6c7cdb5 ``` $ git log --oneline 6a07d98..6c7cdb5 6c7cdb5 Don't rely on implicit binding creation by setglobal (#102) 3b889ee Create dependabot.yml (#82) ``` Co-authored-by: Dilum Aluthge <[email protected]> Co-authored-by: Keno Fischer <[email protected]>
Stdlib: Distributed URL: https://github.com/JuliaLang/Distributed.jl Stdlib branch: master Julia branch: master Old commit: 6a07d98 New commit: 6c7cdb5 Julia version: 1.12.0-DEV Distributed version: 1.11.0(Does not match) Bump invoked by: @Keno Powered by: [BumpStdlibs.jl](https://github.com/JuliaLang/BumpStdlibs.jl) Diff: JuliaLang/Distributed.jl@6a07d98...6c7cdb5 ``` $ git log --oneline 6a07d98..6c7cdb5 6c7cdb5 Don't rely on implicit binding creation by setglobal (#102) 3b889ee Create dependabot.yml (#82) ``` Co-authored-by: Dilum Aluthge <[email protected]> Co-authored-by: Keno Fischer <[email protected]> (cherry picked from commit 06a90c5)
Stdlib: Distributed URL: https://github.com/JuliaLang/Distributed.jl Stdlib branch: master Julia branch: master Old commit: 6a07d98 New commit: 6c7cdb5 Julia version: 1.12.0-DEV Distributed version: 1.11.0(Does not match) Bump invoked by: @Keno Powered by: [BumpStdlibs.jl](https://github.com/JuliaLang/BumpStdlibs.jl) Diff: JuliaLang/Distributed.jl@6a07d98...6c7cdb5 ``` $ git log --oneline 6a07d98..6c7cdb5 6c7cdb5 Don't rely on implicit binding creation by setglobal (#102) 3b889ee Create dependabot.yml (#82) ``` Co-authored-by: Dilum Aluthge <[email protected]> Co-authored-by: Keno Fischer <[email protected]> (cherry picked from commit 06a90c5)
Strings are immutable by interface even though manipulation of their underlying data is not prevented. This violates that abstraction:
Here, changing a mutable object affects the state of a string object whose interface is immutable.
The text was updated successfully, but these errors were encountered: