Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
| From | BGB <cr88192@hotmail.com> |
|---|---|
| Newsgroups | comp.arch |
| Subject | Re: Four significant reasons for a 12X word size |
| Date | 2015-08-26 10:29 -0500 |
| Organization | albasani.net |
| Message-ID | <mrkma5$iim$1@news.albasani.net> (permalink) |
| References | (5 earlier) <mrifqk$tto$2@speranza.aioe.org> <mrj5nq$brr$1@news.albasani.net> <2015Aug26.112434@mips.complang.tuwien.ac.at> <mrke3r$3df$1@news.albasani.net> <2015Aug26.163548@mips.complang.tuwien.ac.at> |
On 8/26/2015 9:35 AM, Anton Ertl wrote: > BGB <cr88192@hotmail.com> writes: >> On 8/26/2015 4:24 AM, Anton Ertl wrote: >>> BGB <cr88192@hotmail.com> writes: >>>> for an HLL, it may make sense to have a wider 'char' type (such as an >>>> 'int' with special semantics), which is split off from >>>> 'byte'/'sbyte'/'ubyte' (as 8 bit integer types) and 'char8'/'char16', >>>> however with narrower underlying storage for string types. >>> >>> We have that in Forth-2012; if you use the UTF-8 encoding, strings in >>> memory are encoded as UTF-8, but you can then, e.g., fetch a code >>> point onto the stack (with XC@+), or you can fetch individual bytes >>> with C@, or you can copy whole strings or substrings in memory with >>> MOVE. The number of times I have used XC@+ is approximately 0 (and >>> that's even though I originated this word), because I don't program >>> anagram generators that often and there are few other uses for that >>> kind of stuff; moreover, an anagram generator that assumes that a code >>> point corresponds to a character as the user sees it would not work >>> properly for composite characters, so dealing with individual code >>> points is not even really useful for that. >>> >> >> with the downside that is... using Forth... > > It's an upside, but anyway, my point was that this codepoint type is > not as useful as I once thought. > ok. not everyone is really a fan of Forth though... >> a variant I had started development on mostly for embedded, switches >> over mostly to CP-1252 or UTF-16 (on a per-string basis), mostly for >> sake of making typical string operations more predictable. > > This sounds like the Python way (except Python uses fixed-width 8-bit, > 16-bit, or 32-bit encodings on a per-string basis). What are the > "typical string operations" that this makes more predictable? > mine generally uses 8 or 16, where typically it will follow Java like convention of using explicit surrogate pairs for wider characters in UTF-16 strings. the main things that are faster and more predictable is code based on randomly accessing string characters, ex: "str[idx]". if you are faking UTF-16, with CP-1252 all accesses are still O(1), whereas to do this with UTF-8 requires O(n), since it is necessary to walk the string to the particular character index (unpredictable at best, and terribly slow if dealing with longer strings) walking a string with '*s++' is similarly effected, but not as drastically, because this operation will take a different path and thus a different number of clock-cycles depending on which character is present, so a more predictable cost (internal type checks) is preferable to a less predictable cost (needing to walk different paths to decode the character). though, the VM doesn't require strict / cycle exact timing, but more you want a reasonably sane worse-case (say, this sequence of instructions will finish within 200 clock-cycles). if you have an operation which could either take 5-10 cycles, or potentially several hundred or several thousand cycles, depending on unpredictable external factors, this is not good... for similar/related reasons, this particular VM does not use a GC, but instead a combination of explicit lifetimes (via semantics), lifetime inference, and explicit memory management (good old 'delete'...). unlike C#, the language also makes a defined difference between array declarations: char[256] arr; //array only has a scope-local lifetime char[] arr=new char[256]; //array has dynamic lifetime note that character-width and assignment is not an issue, as strings are implicitly read-only in the language (mutable strings requires using character arrays).
Back to comp.arch | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Four significant reasons for a 12X word size jim.brakefield@ieee.org - 2015-08-21 20:11 -0700
Re: Four significant reasons for a 12X word size MitchAlsup <MitchAlsup@aol.com> - 2015-08-22 10:18 -0700
Re: Four significant reasons for a 12X word size Quadibloc <jsavard@ecn.ab.ca> - 2015-08-22 12:16 -0700
Re: Four significant reasons for a 12X word size Ivan Godard <ivan@millcomputing.com> - 2015-08-22 12:49 -0700
Re: Four significant reasons for a 12X word size jim.brakefield@ieee.org - 2015-09-01 12:34 -0700
Re: Four significant reasons for a 12X word size Ivan Godard <ivan@millcomputing.com> - 2015-09-01 12:59 -0700
Re: Four significant reasons for a 12X word size jim.brakefield@ieee.org - 2015-09-01 13:29 -0700
Re: Four significant reasons for a 12X word size Ivan Godard <ivan@millcomputing.com> - 2015-09-01 15:36 -0700
Re: Four significant reasons for a 12X word size jim.brakefield@ieee.org - 2015-09-01 17:07 -0700
Re: Four significant reasons for a 12X word size Ivan Godard <ivan@millcomputing.com> - 2015-09-01 18:12 -0700
Re: Four significant reasons for a 12X word size Quadibloc <jsavard@ecn.ab.ca> - 2015-09-01 20:39 -0700
Re: Four significant reasons for a 12X word size Ivan Godard <ivan@millcomputing.com> - 2015-09-01 21:30 -0700
Permute registers (was: Four significant reasons for a 12X word size) Stefan Monnier <monnier@iro.umontreal.ca> - 2015-09-04 15:36 -0400
Re: Permute registers (was: Four significant reasons for a 12X word size) jim.brakefield@ieee.org - 2015-09-04 13:18 -0700
Re: Permute registers Ivan Godard <ivan@millcomputing.com> - 2015-09-04 13:41 -0700
Re: Permute registers Ivan Godard <ivan@millcomputing.com> - 2015-09-04 13:27 -0700
Re: Four significant reasons for a 12X word size Ivan Godard <ivan@millcomputing.com> - 2015-09-01 18:15 -0700
A good Mill intro (external) Ivan Godard <ivan@millcomputing.com> - 2015-09-01 18:43 -0700
Re: Four significant reasons for a 12X word size Quadibloc <jsavard@ecn.ab.ca> - 2015-09-01 20:52 -0700
Re: Four significant reasons for a 12X word size Bruce Hoult <bruce.hoult@gmail.com> - 2015-09-02 04:03 -0700
Re: Four significant reasons for a 12X word size Quadibloc <jsavard@ecn.ab.ca> - 2015-09-02 05:59 -0700
Re: Four significant reasons for a 12X word size Quadibloc <jsavard@ecn.ab.ca> - 2015-09-02 06:11 -0700
Re: Four significant reasons for a 12X word size Bruce Hoult <bruce.hoult@gmail.com> - 2015-09-02 07:15 -0700
Re: Four significant reasons for a 12X word size Chris Gray <cg@GraySage.COM> - 2015-09-02 10:42 -0600
Re: Four significant reasons for a 12X word size Anssi Saari <as@sci.fi> - 2015-09-03 11:32 +0300
Re: Four significant reasons for a 12X word size Quadibloc <jsavard@ecn.ab.ca> - 2015-09-02 10:03 -0700
Re: Four significant reasons for a 12X word size Bruce Hoult <bruce.hoult@gmail.com> - 2015-09-02 11:54 -0700
Re: Four significant reasons for a 12X word size Chris Gray <cg@GraySage.COM> - 2015-09-03 11:00 -0600
Re: Four significant reasons for a 12X word size Bruce Hoult <bruce.hoult@gmail.com> - 2015-09-03 10:11 -0700
Re: Four significant reasons for a 12X word size Jan Coombs <Jan-54 <jenfhaomndgfwutc@murmic.plus.com>> - 2015-09-04 09:35 +0100
Re: Four significant reasons for a 12X word size jim.brakefield@ieee.org - 2015-08-22 12:51 -0700
Re: Four significant reasons for a 12X word size Quadibloc <jsavard@ecn.ab.ca> - 2015-08-22 13:11 -0700
Re: Four significant reasons for a 12X word size BGB <cr88192@hotmail.com> - 2015-08-23 11:14 -0500
Re: Four significant reasons for a 12X word size jim.brakefield@ieee.org - 2015-08-23 11:13 -0700
Re: Four significant reasons for a 12X word size BGB <cr88192@hotmail.com> - 2015-08-23 14:33 -0500
Re: Four significant reasons for a 12X word size thomas.entner99@gmail.com - 2015-08-23 16:23 -0700
Re: Four significant reasons for a 12X word size Quadibloc <jsavard@ecn.ab.ca> - 2015-08-23 17:43 -0700
Re: Four significant reasons for a 12X word size thomas.entner99@gmail.com - 2015-08-23 18:00 -0700
Re: Four significant reasons for a 12X word size jim.brakefield@ieee.org - 2015-08-23 19:14 -0700
Re: Four significant reasons for a 12X word size BGB <cr88192@hotmail.com> - 2015-08-23 20:00 -0500
Re: Four significant reasons for a 12X word size Bruce Hoult <bruce.hoult@gmail.com> - 2015-08-24 04:59 -0700
Re: Four significant reasons for a 12X word size Terje Mathisen <terje.mathisen@tmsw.no> - 2015-08-24 18:45 +0200
Re: Four significant reasons for a 12X word size nmm@needham.csi.cam.ac.uk (Nick Maclaren) - 2015-08-24 19:09 +0100
Re: Four significant reasons for a 12X word size jim.brakefield@ieee.org - 2015-08-24 13:31 -0700
Re: Four significant reasons for a 12X word size Quadibloc <jsavard@ecn.ab.ca> - 2015-08-24 14:09 -0700
Re: Four significant reasons for a 12X word size jgd@cix.co.uk (John Dallman) - 2015-08-24 22:26 +0100
Re: Four significant reasons for a 12X word size anton@mips.complang.tuwien.ac.at (Anton Ertl) - 2015-08-25 10:29 +0000
Re: Four significant reasons for a 12X word size Quadibloc <jsavard@ecn.ab.ca> - 2015-08-24 16:22 -0700
Re: Four significant reasons for a 12X word size MitchAlsup <MitchAlsup@aol.com> - 2015-08-24 16:58 -0700
Re: Four significant reasons for a 12X word size Quadibloc <jsavard@ecn.ab.ca> - 2015-08-24 18:48 -0700
Re: Four significant reasons for a 12X word size anton@mips.complang.tuwien.ac.at (Anton Ertl) - 2015-08-25 09:04 +0000
Re: Four significant reasons for a 12X word size BGB <cr88192@hotmail.com> - 2015-08-25 09:32 -0500
Re: Four significant reasons for a 12X word size Bruce Hoult <bruce.hoult@gmail.com> - 2015-08-25 10:30 -0700
Re: Four significant reasons for a 12X word size Terje Mathisen <terje.mathisen@tmsw.no> - 2015-08-25 21:27 +0200
Re: Four significant reasons for a 12X word size Bruce Hoult <bruce.hoult@gmail.com> - 2015-08-25 13:51 -0700
Re: Four significant reasons for a 12X word size Terje Mathisen <terje.mathisen@tmsw.no> - 2015-08-26 08:31 +0200
Re: Four significant reasons for a 12X word size MitchAlsup <MitchAlsup@aol.com> - 2015-08-25 16:56 -0700
Re: Four significant reasons for a 12X word size Ivan Godard <ivan@millcomputing.com> - 2015-08-25 17:36 -0700
Re: Four significant reasons for a 12X word size BGB <cr88192@hotmail.com> - 2015-08-25 20:10 -0500
Re: Four significant reasons for a 12X word size Bruce Hoult <bruce.hoult@gmail.com> - 2015-08-26 02:41 -0700
Re: Four significant reasons for a 12X word size BGB <cr88192@hotmail.com> - 2015-08-26 09:28 -0500
Re: Four significant reasons for a 12X word size Waldek Hebisch <hebisch@antispam.uni.wroc.pl> - 2015-08-27 00:53 +0000
Re: Four significant reasons for a 12X word size jgk@panix.com (Joe keane) - 2015-08-25 18:30 +0000
Re: Four significant reasons for a 12X word size Terje Mathisen <terje.mathisen@tmsw.no> - 2015-08-25 21:31 +0200
Re: Four significant reasons for a 12X word size BGB <cr88192@hotmail.com> - 2015-08-25 20:40 -0500
Re: Four significant reasons for a 12X word size anton@mips.complang.tuwien.ac.at (Anton Ertl) - 2015-08-26 09:24 +0000
Re: Four significant reasons for a 12X word size BGB <cr88192@hotmail.com> - 2015-08-26 08:09 -0500
Re: Four significant reasons for a 12X word size anton@mips.complang.tuwien.ac.at (Anton Ertl) - 2015-08-26 14:35 +0000
Re: Four significant reasons for a 12X word size BGB <cr88192@hotmail.com> - 2015-08-26 10:29 -0500
Re: Four significant reasons for a 12X word size anton@mips.complang.tuwien.ac.at (Anton Ertl) - 2015-08-26 16:17 +0000
Re: Four significant reasons for a 12X word size BGB <cr88192@hotmail.com> - 2015-08-26 17:42 -0500
Re: Four significant reasons for a 12X word size anton@mips.complang.tuwien.ac.at (Anton Ertl) - 2015-08-27 13:51 +0000
Re: Four significant reasons for a 12X word size BGB <cr88192@hotmail.com> - 2015-08-27 10:50 -0500
Re: Four significant reasons for a 12X word size Michael S <already5chosen@yahoo.com> - 2015-08-28 04:44 -0700
Re: Four significant reasons for a 12X word size BGB <cr88192@hotmail.com> - 2015-08-28 08:22 -0500
Re: Four significant reasons for a 12X word size Terje Mathisen <terje.mathisen@tmsw.no> - 2015-08-26 22:32 +0200
Re: Four significant reasons for a 12X word size BGB <cr88192@hotmail.com> - 2015-08-26 18:25 -0500
Re: Four significant reasons for a 12X word size anton@mips.complang.tuwien.ac.at (Anton Ertl) - 2015-08-26 09:15 +0000
Re: Four significant reasons for a 12X word size Quadibloc <jsavard@ecn.ab.ca> - 2015-08-26 06:28 -0700
Re: Four significant reasons for a 12X word size anton@mips.complang.tuwien.ac.at (Anton Ertl) - 2015-08-26 13:54 +0000
Re: Four significant reasons for a 12X word size BGB <cr88192@hotmail.com> - 2015-08-26 09:53 -0500
Re: Four significant reasons for a 12X word size Stefan Monnier <monnier@iro.umontreal.ca> - 2015-08-28 11:22 -0400
Re: Four significant reasons for a 12X word size BGB <cr88192@hotmail.com> - 2015-08-28 16:09 -0500
Re: Four significant reasons for a 12X word size Terje Mathisen <terje.mathisen@tmsw.no> - 2015-08-29 14:54 +0200
character encoding (was: Four significant reasons for a 12X word size) anton@mips.complang.tuwien.ac.at (Anton Ertl) - 2015-08-29 14:05 +0000
Re: character encoding Terje Mathisen <terje.mathisen@tmsw.no> - 2015-08-29 19:10 +0200
Re: character encoding nmm@needham.csi.cam.ac.uk (Nick Maclaren) - 2015-08-29 18:25 +0100
Re: character encoding Terje Mathisen <terje.mathisen@tmsw.no> - 2015-08-29 21:03 +0200
Re: character encoding Ivan Godard <ivan@millcomputing.com> - 2015-08-29 10:32 -0700
Re: character encoding nmm@needham.csi.cam.ac.uk (Nick Maclaren) - 2015-08-29 18:37 +0100
Re: character encoding Ivan Godard <ivan@millcomputing.com> - 2015-08-29 10:53 -0700
Re: character encoding nmm@needham.csi.cam.ac.uk (Nick Maclaren) - 2015-08-29 19:12 +0100
Re: character encoding anton@mips.complang.tuwien.ac.at (Anton Ertl) - 2015-08-29 17:35 +0000
Re: character encoding Ivan Godard <ivan@millcomputing.com> - 2015-08-29 10:44 -0700
Re: character encoding anton@mips.complang.tuwien.ac.at (Anton Ertl) - 2015-08-29 17:55 +0000
Re: character encoding anton@mips.complang.tuwien.ac.at (Anton Ertl) - 2015-08-31 11:23 +0000
Re: character encoding Terje Mathisen <terje.mathisen@tmsw.no> - 2015-08-31 14:18 +0200
Re: character encoding Terje Mathisen <terje.mathisen@tmsw.no> - 2015-08-29 21:20 +0200
Re: character encoding Terje Mathisen <terje.mathisen@tmsw.no> - 2015-08-29 21:11 +0200
Re: Four significant reasons for a 12X word size BGB <cr88192@hotmail.com> - 2015-08-29 12:19 -0500
Re: Four significant reasons for a 12X word size Quadibloc <jsavard@ecn.ab.ca> - 2015-08-29 07:41 -0700
Re: Four significant reasons for a 12X word size Terje Mathisen <terje.mathisen@tmsw.no> - 2015-08-29 19:12 +0200
Re: Four significant reasons for a 12X word size nmm@needham.csi.cam.ac.uk (Nick Maclaren) - 2015-08-29 18:23 +0100
Re: Four significant reasons for a 12X word size BGB <cr88192@hotmail.com> - 2015-08-29 17:17 -0500
Re: Four significant reasons for a 12X word size George Neuner <gneuner2@comcast.net> - 2015-08-29 14:57 -0400
Re: Four significant reasons for a 12X word size jim.brakefield@ieee.org - 2015-08-29 12:40 -0700
Re: Four significant reasons for a 12X word size Terje Mathisen <terje.mathisen@tmsw.no> - 2015-08-30 00:05 +0200
Re: Four significant reasons for a 12X word size EricP <ThatWouldBeTelling@thevillage.com> - 2015-08-24 13:16 -0400
Re: Four significant reasons for a 12X word size EricP <ThatWouldBeTelling@thevillage.com> - 2015-08-24 13:29 -0400
Re: Four significant reasons for a 12X word size mrs@kithrup.com (Mike Stump) - 2015-08-24 21:32 +0000
Re: Four significant reasons for a 12X word size Terje Mathisen <terje.mathisen@tmsw.no> - 2015-08-25 08:49 +0200
Re: Four significant reasons for a 12X word size mrs@kithrup.com (Mike Stump) - 2015-08-25 22:43 +0000
Re: Four significant reasons for a 12X word size EricP <ThatWouldBeTelling@thevillage.com> - 2015-08-25 21:55 -0400
Re: Four significant reasons for a 12X word size paul wallich <pw@panix.com> - 2015-08-25 22:12 -0400
Re: Four significant reasons for a 12X word size EricP <ThatWouldBeTelling@thevillage.com> - 2015-08-26 13:54 -0400
Re: Four significant reasons for a 12X word size Stephen Fuld <SFuld@alumni.cmu.edu.invalid> - 2015-08-26 11:47 -0700
Re: Four significant reasons for a 12X word size mac <acolvin@efunct.com> - 2015-08-27 16:15 +0000
Re: Four significant reasons for a 12X word size Stephen Fuld <SFuld@alumni.cmu.edu.invalid> - 2015-08-27 10:44 -0700
Re: Four significant reasons for a 12X word size rpw3@rpw3.org (Rob Warnock) - 2015-08-28 06:09 +0000
Re: Four significant reasons for a 12X word size EricP <ThatWouldBeTelling@thevillage.com> - 2015-08-28 12:23 -0400
Re: Four significant reasons for a 12X word size Terje Mathisen <terje.mathisen@tmsw.no> - 2015-08-26 08:37 +0200
Re: Four significant reasons for a 12X word size mrs@kithrup.com (Mike Stump) - 2015-08-26 22:54 +0000
Re: Four significant reasons for a 12X word size Terje Mathisen <terje.mathisen@tmsw.no> - 2015-08-27 07:48 +0200
Re: Four significant reasons for a 12X word size mrs@kithrup.com (Mike Stump) - 2015-08-27 16:30 +0000
Re: Four significant reasons for a 12X word size jim.brakefield@ieee.org - 2015-08-23 19:09 -0700
Re: Four significant reasons for a 12X word size Megol <golem960@gmail.com> - 2015-08-24 04:32 -0700
Re: Four significant reasons for a 12X word size R Kym Horsell <kym@kymhorsell.com> - 2015-08-24 11:37 +0000
Re: Four significant reasons for a 12X word size Quadibloc <jsavard@ecn.ab.ca> - 2015-08-22 12:56 -0700
Re: Four significant reasons for a 12X word size Quadibloc <jsavard@ecn.ab.ca> - 2015-08-22 13:10 -0700
Re: Four significant reasons for a 12X word size Quadibloc <jsavard@ecn.ab.ca> - 2015-08-22 17:17 -0700
Re: Four significant reasons for a 12X word size jim.brakefield@ieee.org - 2015-08-22 19:59 -0700
Re: Four significant reasons for a 12X word size jim.brakefield@ieee.org - 2015-09-01 12:47 -0700
Re: Four significant reasons for a 12X word size jim.brakefield@ieee.org - 2015-08-22 20:10 -0700
Re: Four significant reasons for a 12X word size Robert Wessel <robertwessel2@yahoo.com> - 2015-08-23 21:41 -0500
Re: Four significant reasons for a 12X word size BGB <cr88192@hotmail.com> - 2015-08-24 10:53 -0500
Re: Four significant reasons for a 12X word size Robert Miles <robertmilesxyz@gmail.com> - 2015-08-26 17:39 -0700
Re: Four significant reasons for a 12X word size Terje Mathisen <terje.mathisen@tmsw.no> - 2015-08-27 07:52 +0200
Re: Four significant reasons for a 12X word size spamkiller539@gmail.com - 2015-08-27 20:00 -0700
csiph-web