Path: ...!news.mixmin.net!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Chris Ahlstrom Newsgroups: comp.os.linux.advocacy Subject: Re: Why Python When There Is Perl? Date: Wed, 27 Mar 2024 12:40:32 -0400 Organization: None Lines: 32 Message-ID: References: <17be420c4f90bfc7$63225$1585792$802601b3@news.usenetexpress.com> <17be75acfaf8f0f4$2017$3384359$802601b3@news.usenetexpress.com> <17bebbae334656b9$74345$2906873$802601b3@news.usenetexpress.com> <17bf321f9c15028e$2$2218499$802601b3@news.usenetexpress.com> <17bf5ce92e8c43b4$672$1351842$802601b3@news.usenetexpress.com> <17bf8777050f5c1e$7$2218499$802601b3@news.usenetexpress.com> Reply-To: OFeem1987@teleworm.us Injection-Date: Wed, 27 Mar 2024 16:40:32 +0100 (CET) Injection-Info: dont-email.me; posting-host="3b0cdc3b83f89ccb72c187c7b1690fb9"; logging-data="3108104"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+TJIatXKFgeeCCzRJsHiDp" User-Agent: slrn/1.0.3 (Linux) Cancel-Lock: sha1:jLCoY9PqOV70avjJAdRN2FSaZ30= X-Mutt: The most widely-used MUA X-User-Agent: Microsoft Outl00k, Usenet K00k Editions X-Slrn: Why use anything else? Bytes: 2886 rbowman wrote this copyrighted missive and expects royalties: > On Tue, 26 Mar 2024 17:16:40 -0500, Physfitfreak wrote: > >> Well it says the same thing about AND and OR too, and the two of course >> are used every day in high level programming. So there could be a use >> for IMP in high level programming also. > > &, ~, |, << and >> are frequently used in C. ^ is used less frequently. > All map directly to i86 instructions. SAL is the same as SHL where SAR > differs from SHR and depends on signed/unsigned. ~ is NOT, 1's complement. As an aside, C++20 introduces the "spaceship" operator, operator <=>. It does a three way comparison, a bit like strcmp(): lhs <=> rhs returns an object that compares <0 if lhs < rhs compares >0 if lhs > rhs and compares ==0 if lhs and rhs are equal/equivalent. Carry on. > I'm not saying there never has been a use but it hasn't had the masses > clamoring for it either in HLL or machine instructions. > > That's your new mission. Find a non-trivial use. No long story, no > complicated setup. -- An honest tale speeds best being plainly told. -- William Shakespeare, "Henry VI"