Skip to content
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

Open
icncsx opened this issue Jun 1, 2020 · 14 comments
Open

Suggestion: mention string interning #1940

icncsx opened this issue Jun 1, 2020 · 14 comments

Comments

@icncsx
Copy link

icncsx commented Jun 1, 2020

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.

@iliakan
Copy link
Member

iliakan commented Jun 2, 2020

That topic - string internals - may become an article in the "Optimization" section.

@Akash2002
Copy link

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!

@iliakan
Copy link
Member

iliakan commented Mar 14, 2021

Go ahead, guys! =)

@Akash2002
Copy link

@icncsx If you are available to work with me on this, please let me know. Thanks!

@Akash2002
Copy link

@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.

@icncsx
Copy link
Author

icncsx commented Mar 14, 2021

@Akash2002 Feel free to solo this!

@Akash2002
Copy link

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?
Thank you so much for your time! I can't wait to get started with collaborating on open source projects!

@iliakan
Copy link
Member

iliakan commented Mar 16, 2021

Please just write an article anywhere, even on google docs. It is't worthy, I'll help with that =)

@Akash2002
Copy link

Awesome. I'll keep you posted. Thanks again!

@icncsx
Copy link
Author

icncsx commented Mar 26, 2021

@Akash2002 How's it coming along? :)

@Akash2002
Copy link

@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!

@Akash2002
Copy link

Hey I have started writing the article in Markdown, I'll provide a link soon! Thanks!

@icncsx
Copy link
Author

icncsx commented Oct 23, 2021

@Akash2002 Any progress?

@sumit1125
Copy link

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants