Article View: alt.free.newsservers
Article #118356--
From: _
Date: Sun, 23 Aug 2009 23:11
Date: Sun, 23 Aug 2009 23:11
57 lines
3472 bytes
3472 bytes
By the way, in what I call “Base351” the current time is:
“ cპ϶ე ” (seconds since 1970 in an unsigned __int64).
Base351 has these “digits” (by Unicode index):
const wchar_t ·0¬350·to·Ch[] =
L"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz"
// International phonic guides:
L"ȴȵȶȷȸȹȺȻȼȽȾȿɀɁɄɅɌɍɐɑɒɓɔɕɖɗɘəɚɛɜɝɞɟɠɡɢɣɤɥɦɧɨɩɪɫɬɭɮɯɰɱɲɳɴɵɶɷɸɹɺɻɼɽɾɿʀʁʂ"
L"ʃʄʅʆʇʈʉʊʋʌʍʎʏʐʑʒʓʔʕʖʗʘʙʚʛʜʝʞʟʠʡʢʣʤʥʦʧʨʩʪʫʬʭʮʯ"
L"ΑΒΓΔΕΖΗΘΙΚΛΜΝΞΟΠΡΣΤΥΦΧΨΩαβγδεζηθικλμνξοπρςστυφχψω"
// Coptic:
L"ϐϑϒϓϕϖϗϘϙϚϛϜϝϞϟϠϡϰϱϲϳϴϵ϶ϷϸϹϺϻϼϽϾϿ"
L"АБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯабвгдежзийклмнопрстуфхцчшщъыьэюя"
// Some Georgian (USSR) letters (DejaVu Sans Mono in Visual Studio):
L"აბგდევზთიკლმნოპჟრსტუფქღყშჩცძწჭხჯჰჱჲჳჴჵ";
// const Sz·351 = sizeof ·0¬350·to·Ch / szChr ;
To convert “ პ ” to the digit it represents, I do this binary search:
www.JeffRelf.F-M.FM/X.CPP
Time = 0 ; // unsigned __int64
While( Ch ) { // Advance “ Ch = *++P ” though “ cპ϶ე ”.
Time *= 351 ;
// B always point to the start of the string of interest.
// E always points past the end of the string of interest.
LnP B = LnP( ·0¬350·to·Ch ), B· = B, P·, E = B + 351 ;
Again:
// The Binary·Search loop, jump to the middle.
P· = B + ( E - B ) / 2 ;
if ( Ch == *P· ) {
// “ P· - B· ” is an index from 0 to 350.
Time += P· - B· ;
// Go To the next Base351 digit.
continue ; }
if ( Ch > *P· ) {
// *P· is too small, increment P· and make it B.
if ( B = ++P·, B >= E )
goto InValid·Time ;
goto Again ; }
// *P· is too big, set E to P·.
if ( E = P·, E <= B )
goto InValid·Time ;
goto Again ; }
Technical Details
Message-ID:
<_@Jeff_Relf.Seattle.2009_Aug23.4.11pm.yo>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-alt.free.newsservers.20150605.mbox.gz!border1.nntp.ams.giganews.com!nntp.giganews.com!xlned.com!feeder3.xlned.com!newsfeed.kpn.net!pfeed09.wxs.nl!feeder3.cambriumusenet.nl!feed.tweaknews.nl!postnews.google.com!news1.google.com!npeer03.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!nx02.iad01.newshosting.com!newshosting.com!post01.iad!news.shared-secrets.com!not-for-mailReferences:
<_@Jeff_Relf.Seattle.2009_Aug21.4.00pm.S4> <32jvnl.92c.19.1@news.alt.net> <_@Jeff_Relf.Seattle.2009_Aug21.5.53pm.EP> <h6pvvf$o93$2@pcls6.std.com> <h6r4e3$ksl$1@tioat.net> <_@Jeff_Relf.Seattle.2009_Aug23.3.33pm.YG>Show Full Headers
Complete Article Headers
Message-ID: <_@Jeff_Relf.Seattle.2009_Aug23.4.11pm.yo> Subject: -- Date: Sun, 23 Aug 2009 23:11:23 +0000 From: _@Jeff_Relf.Seattle.inValid References: <_@Jeff_Relf.Seattle.2009_Aug21.4.00pm.S4> <32jvnl.92c.19.1@news.alt.net> <_@Jeff_Relf.Seattle.2009_Aug21.5.53pm.EP> <h6pvvf$o93$2@pcls6.std.com> <h6r4e3$ksl$1@tioat.net> <_@Jeff_Relf.Seattle.2009_Aug23.3.33pm.YG> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-alt.free.newsservers.20150605.mbox.gz!border1.nntp.ams.giganews.com!nntp.giganews.com!xlned.com!feeder3.xlned.com!newsfeed.kpn.net!pfeed09.wxs.nl!feeder3.cambriumusenet.nl!feed.tweaknews.nl!postnews.google.com!news1.google.com!npeer03.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!nx02.iad01.newshosting.com!newshosting.com!post01.iad!news.shared-secrets.com!not-for-mail MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=UTF-8 Newsgroups: alt.free.newsservers,sci.physics User-Agent: JeffRelf.F-M.FM/X.ZIP Lines: 57 Organization: Unknown X-Complaints-To: abuse@shared-secrets.com