This is thetalk page for discussing improvements to theString (computer science) article. This isnot a forum for general discussion of the article's subject. |
Article policies |
Find sources: Google (books ·news ·scholar ·free images ·WP refs) ·FENS ·JSTOR ·TWL |
![]() | This article is ratedStart-class on Wikipedia'scontent assessment scale. It is of interest to the followingWikiProjects: | |||||||||||||||||
|
![]() | String Buffer was nominated fordeletion.The discussion was closed on04 June 2013 with a consensus tomerge. Its contents weremerged intoString (computer science). The original page is now a redirect to this page. For the contribution history and old versions of the redirected article, please seeits history; for its talk page, seehere. |
Anyone want to tackle - string (small version of rope), string (general chain of various things), string (music), etc. - not just the computer version.
Also,string theory of cosmology/physics.
The first paragraph seems too "busy" to me. What about replacing it with something like this?
This is a lot better. Also, I think the usage in computing theory could be expanded in its own paragraph: one starts with a finite alphabet, then considers all finite sequences consisting of letters from that alphabet (including the empty string) and defines concatentation of strings. The set of string with concatentation is then amonoid.
I think I wrote most the current paragraph and I agree your rewrite is better. Just do it! --drj
Ok, I'll move my text to the main article. I won't try to expand the second paragraph; I'm inclined to leave that to thecomputation article, or to whoever can concisely expand it without detracting from the rest of the page. --loh
I won't try to expand the second paragraph; I'm inclined to leave that to thecomputation article, or to whoever can concisely expand it without detracting from the rest of the page. --Hornlo
I think something definitely needs to be added about the other meanings of string.Ukulele is already linked to this page, which is somewhat confusing. Although, I'm not sure how much content can actually be provided for the other meanings. Maybe this article should be moved toString (computer science) or something, and this page be turned into a disambiguation page.B4hand
I oppose. A string doesn't need to be literal string in general. --Taku 18:44, Sep 25, 2004 (UTC)
Thelexicographical order on Σ* isnot awell-ordering (for example, what is the least element ina*b?), but only a total order.fudo13:53, 2 August 2005 (UTC)[reply]
There are lots of references to this page throughout wikipedia for a "string" that is not a set of characters; a string of bits or bytes, for example. I think it is important that the article be cleaned-up to make it clear that "character strings" are the most common uses of the type, but the term might apply to vectors of data not representable by a string in a particular language. I've made a couple of edits in this direction, but I think some more effort needs to go into the issue. --Mikeblas22:39, 29 January 2006 (UTC)[reply]
We should decide on just one spelling and capitalization of null. I vote for two L's.24.186.138.18802:03, 2 May 2006 (UTC)[reply]
Anyone know the history behind using the term "string" to mean a sequence of characters? I mean its not like a series of characters looks much like a ball of string... I assume it's origins are as a mathematical term, but it would be interesting to know how it came to such common use in computing.
The edits I keep trying are to stop a whole army of uninformed but well-meaning programmers who think strlen() should parse and count the Unicode code points in a string. This is a totally useless definition and causing no end of grief when systems do this. For some reason otherwise intelligent programmers turn into these complete morons when presented with UTF-8 and this is actually seriously damaging any ability to do internationalization. If anybody can think of a wording that says these answers are different and that the fixed-size one is "better" it would help a lot. The reverted-to wording implies that the number of characters is the more important attribute, which is wrong.Spitzak (talk)04:10, 29 May 2009 (UTC)[reply]
As well as the standard String type, .Net has a StringBuilder type. I think this is implemented as a linked list, but I'm not too sure. This would be worth adding to the Implementation section.N4m3 (talk)09:35, 28 May 2011 (UTC)[reply]
I noticed this statement:
I would like a citation on that, what about languages with lazy evaluation like Clojure and Haskell?
cycle"Is this finite? "⇒"Is this finite? Is this finite? Is this finite? Is this finite? ..."letshouting='a':shoutinginputStrshouting⇒"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa..."
—BiT (talk)03:00, 8 December 2011 (UTC)[reply]
In the "Formal theory" section, it might be useful to mention that:
The problem is, I don't know for certain whether the terms "reverse string" or "string reversal" are correct or not. FWIW, practically all programming languages/libraries that provide this operation call it "reverse". Does anyone know what the proper term should be? (Inverse?Inversion?Opposite?Transpose?) —Loadmaster (talk)17:05, 9 November 2012 (UTC)[reply]
Thereverse of a string is obtained by writing the symbols in reverse order; ifw is a string as shown above, then its reversewR is
wR =an...a2a1.
Hello fellow Wikipedians,
I have just modified one external link onString (computer science). Please take a moment to reviewmy edit. If you have any questions, or need the bot to ignore the links, or the page altogether, please visitthis simple FaQ for additional information. I made the following changes:
When you have finished reviewing my changes, please set thechecked parameter below totrue orfailed to let others know (documentation at{{Sourcecheck}}
).
This message was posted before February 2018.After February 2018, "External links modified" talk page sections are no longer generated or monitored byInternetArchiveBot. No special action is required regarding these talk page notices, other thanregular verification using the archive tool instructions below. Editorshave permission to delete these "External links modified" talk page sections if they want to de-clutter talk pages, but see theRfC before doing mass systematic removals. This message is updated dynamically through the template{{source check}}
(last update: 5 June 2024).
Cheers.—cyberbot IITalk to my owner:Online08:39, 4 April 2016 (UTC)[reply]
In order to make way for movingDraft:String to article space to take the place as the primary topic, I've posted a proposal atTalk:String#Requested move 16 January 2017 to move the disambiguation page currently at "String" to "String (disambiguation)". Your input would be helpful to establish a common consensus on whether or not this move, or something else, should be done. I look forward to your thoughts on the matter.The Transhumanist22:50, 16 January 2017 (UTC)[reply]
In sectionString datatypes/Representations/Null-terminated the IBM 1401 word-mark terminated string is discussed.
That seventh bit idea could not have been implemented. The wordmark bit is hardware implemented. The MCW (MoveCharactersWordmark) instruction for instance moved variable length fields terminating on the word mark. Numeric or alpha were treated no different. The Honeywell H200 H1200 H3200 and H4200 all had MCW instructions. Arithmetic operations also used wordmark field demarcation. The Honeywell computers had 8 bit memory having 6 data, a word mark and item mark bits.Steamerandy (talk)17:26, 24 April 2017 (UTC)[reply]
Siemens PLCs use a form of length prefixed string representation with 2 length information bytes (seeSiemens Docs "Working with Strings in S7-SCL"). Maximum reserved memory is 256 bytes with maximum 254 bytes of actual text, where one byte denotes the allocated/reserved range for the string (the maximum count of characters allowed to be represented) and the other byte denotes the actual, currently valid length of the string. Maybe this could be added as length prefixed representation variant? --Ckonnerth (talk)17:18, 15 December 2017 (UTC)[reply]
Wondering why there's a bio-related image on this article's page, I don't see how it depicts what strings actually are in computer science.— Precedingunsigned comment added by67.165.80.152 (talk)05:19, 30 March 2020 (UTC)[reply]
As far as I know, it is also required that each string can be uniquely decomposed into its symbols. For example, if the alphabet itself consists of strings (as inFree_monoid#Free_generators_and_rank, or in the lead ofAlphabet (formal languages), with Σ = {"0", "00"}), its symbols are distinct and unambiguous (as are the members of each mathematical set), but nevertheless, a string may be composed in different ways. I guess "unambiguous" is supposed to express the requirement of unique decomposition, but I'm not sure it is precise enough. The decomposition must be unambiguous, rather than just the symbols. -Jochen Burghardt (talk)18:03, 13 May 2024 (UTC)[reply]
WRT "In computer programming, a string is traditionally a sequence of characters..." What does 'traditionally' imply? What does string mean in a non-traditional sense? How is traditionality relevant? IMO it is a sequence of chars (period).Stevebroshar (talk)14:03, 20 December 2024 (UTC)[reply]
WRT "A string is generally considered as a data type"
Can't argue that string is a type of data, but string is not adata type. Maybe that's a subtle difference to some, but there's an important difference. String is a higher level concept than data type as it pertains to programming. Many programming contexts (i.e. languages) have a string data type (or multiple). But there's significant difference between string data and a type for string data.
To illustrate the difference between string data and data type, consider C. It has no string type. The most commonly used data type for string data is char*; pointer to char. That is not a string type, yet it is used for string data. Note that char* can be used for non-string data; a pointer to a single char storage, for example. FWIW, thedata structure is callednull-terminated string or c-string.
What is this article about? Is it about the concept of string in general (string data)? Or about particular data types in particular languages and contexts? I assume the intention is both. But, the two should not be conflated. It should say that a string is sequence of characters and that many languages define a type for string data. It should not say that stringis a data type.
TBO this article provides little value and should be deleted, but I'm sure folks don't like that idea. But, if it's going to exist, it shouldn't misrepresent the world.Stevebroshar (talk)13:19, 10 May 2025 (UTC)[reply]