From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=0.7 required=5.0 tests=BAYES_00,DATE_IN_PAST_12_24, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: a07f3367d7,d5b211b0c1ffcf3e X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,UTF8 Received: by 10.204.154.133 with SMTP id o5mr539540bkw.0.1339713369626; Thu, 14 Jun 2012 15:36:09 -0700 (PDT) Path: e27ni48916bkw.0!nntp.google.com!news1.google.com!news3.google.com!feeder3.cambriumusenet.nl!feed.tweaknews.nl!212.27.60.9.MISMATCH!feeder2-2.proxad.net!proxad.net!feeder1-2.proxad.net!usenet-fr.net!gegeweb.org!aioe.org!.POSTED!not-for-mail From: "Dmitry A. Kazakov" Newsgroups: comp.lang.ada Subject: Re: Practicalities of Ada for app development Date: Thu, 14 Jun 2012 11:26:43 +0200 Organization: cbb software GmbH Message-ID: References: <79c5c9f7-4b72-4990-8961-b3e2db4db79b@qz1g2000pbc.googlegroups.com> <98ef69fe-f5af-485b-89b2-9358059f4582@googlegroups.com> <1q346u53zhu10.p16uyzeau73b.dlg@40tude.net> <173ko1fncizl$.1eznzqb6vly3k.dlg@40tude.net> <06f156f9-7314-458b-b27e-145e32d456be@e7g2000pbg.googlegroups.com> <17xghqo8sm3hr.6uwt5x0h4wem$.dlg@40tude.net> Reply-To: mailbox@dmitry-kazakov.de NNTP-Posting-Host: FbOMkhMtVLVmu7IwBnt1tw.user.speranza.aioe.org Mime-Version: 1.0 X-Complaints-To: abuse@aioe.org User-Agent: 40tude_Dialog/2.0.15.1 X-Notice: Filtered by postfilter v. 0.8.2 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Date: 2012-06-14T11:26:43+02:00 List-Id: On Thu, 14 Jun 2012 10:39:49 +0200, Yannick Duchêne (Hibou57) wrote: > Le Thu, 14 Jun 2012 09:58:10 +0200, Dmitry A. Kazakov > a écrit: > >> On Wed, 13 Jun 2012 20:21:26 -0700 (PDT), quiet_lad wrote: >> >>> On Jun 13, 6:09 am, "Dmitry A. Kazakov" >>> wrote: >>>> On Wed, 13 Jun 2012 03:35:05 -0700 (PDT), quiet_lad wrote: >>>>> What does one do then with say 1000 websites on 1 web appserver? If >>>>> not use patterns? >>>> >>>> Especially in such cases. Pattern matching (even RE) is a very >>>> expensive >>>> thing, eats lot of resources. >> >>> so what does one do? how do you match say name based virtual hosts on >>> aws? >> >> What is the problem? I cannot decipher "match say name based virtual >> hosts >> on aws." >> > > Web addresses have a domain name and a TLD, like in adalog.fr. The server > is reached via DNS request returning the IP addresse for the domain. Web > addresses may also have subdomains. An example could be archive.adaic.com. > “archive”, is a subdomain of adaic.com. To reach the subdomain, you have > to contact the server at the IP address associated to the domain > adaic.com. That means archive.adaic.com has the same IP address as > adaic.com. The same goes for any other subdomain like news.mysite.net, > forum.mysite.net, wiki.mysite.net and so on, all reached via mysite.net's > IP. I still see no problem stated. Maybe maps or suffix tree (I am guessing). Certainly not patterns. The rule of thumb for patterns: they are used exclusively as the user input, when he is asked to specify some set of string. Patterns should never be used internally, because there always exist a better method of handling a set of strings, since almost always the set of strings from the problem domain is different from the formal language of the patterns. Either it is stronger and patterns simply do not work, or it weaker and thus patterns become too inefficient compared to specific methods. -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de