-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
Suggestion: mention string interning #1940
Comments
That topic - string internals - may become an article in the "Optimization" section. |
This sounds like such a cool idea! String interning seems like a key concept that developers must learn regarding the internal workings of the immutable string pool. I am looking to start contributing and javascript.info has been a great resource in my coding experience as well. So it would be an honor and my pleasure if I got the opportunity to work on this with @icncsx . Please let me know thanks! |
Go ahead, guys! =) |
@icncsx If you are available to work with me on this, please let me know. Thanks! |
@iliakan I will keep you posted on how it goes. Is there an assignment tag, so that this issue is like assigned to me or something so that others don't get confused. |
@Akash2002 Feel free to solo this! |
Hey I am super new to contributing and stuff and I was wondering if you could provide me some guidance on how to get started with this. So, I should be looking to add the string interning guide to the strings lesson right? And is this a statically generated website, given all the markup files that I see? Also, how would I be able to test this on my local machine? |
Please just write an article anywhere, even on google docs. It is't worthy, I'll help with that =) |
Awesome. I'll keep you posted. Thanks again! |
@Akash2002 How's it coming along? :) |
Hey! I will be starting to work on it soon. I have had a lot of work recently, but I'm still super interested in this PR, so I'll keep you posted! Sorry for the wait, thanks! |
Hey I have started writing the article in Markdown, I'll provide a link soon! Thanks! |
@Akash2002 Any progress? |
This sounds like such a cool idea! String interning seems like a key concept that developers must learn regarding the internal workings of the immutable string pool. I am looking to start contributing and javascript.info has been a great resource in my coding experience as well. So it would be an honor and my pleasure if I got the opportunity to work on this with @icncsx . Please let me know thanks! |
If we want to be completely clear in the object copy lesson, we can include a snippet that mentions string interning, where since strings are immutable, only one instance is stored in memory and any future references to that same string can be referred to the singleton in existence. So yes, primitives are "copied as a whole value" in behavior, but it's a little bit more complicated than that if we get into implementation detail.
Is this too much? Thoughts? JavaScript.info seems to be a pretty thorough resource, so I can definitely see it including this kind of detail.
The text was updated successfully, but these errors were encountered: