From jondrews at fastmail.com Tue Oct 12 18:24:38 2021 From: jondrews at fastmail.com (Jonathan Drews) Date: Tue, 12 Oct 2021 16:24:38 -0600 Subject: [Semibug] Hamilton BUG on Jitsi right now Message-ID: The Hamilto BUG monthly Jitsi meeting is on right now: https://meet.jit.si/hambug -------------- next part -------------- An HTML attachment was scrubbed... URL: From jondrews at fastmail.com Wed Oct 13 00:09:26 2021 From: jondrews at fastmail.com (Jonathan Drews) Date: Tue, 12 Oct 2021 22:09:26 -0600 Subject: [Semibug] Saint Louis UNIX Users Group Meets Tomorrow Message-ID: Folks: Sluug is holding an online meeting tomorrow, if you care to attend. St. Louis Unix Users Group (SLUUG) https://www.sluug.org/ 6:30 ~ 9:00 PM (Central Time, USA) **We will open the remote session at about 6:00 PM** BASE: SNAP Your Apps by Lee Lammert MAIN: gitso is to support others by Stan Reichardt This session can use the following link: > https://us06web.zoom.us/j/92104265810?pwd=VlJOdjNxMllFcWlrZXBrZTk4eTRvUT09 We are a not-for-profit professional association dedicated to education and communication among computer users. Networking experts, System experts, hobbyists, students, plus many who are interested in Unix, Unix-like Operating Systems, Linux, BSD and other Free Open Source Software (FOSS) applications, products, projects, and services. From jondrews at fastmail.com Sun Oct 17 11:43:40 2021 From: jondrews at fastmail.com (Jonathan Drews) Date: Sun, 17 Oct 2021 09:43:40 -0600 Subject: [Semibug] Need Help with C language Message-ID: <577f7b9f-34a4-446a-909b-ba6fda99c9c1@www.fastmail.com> Hi Folks: I am trying to understand the C code in "Numerical Recipes for C". I came across this puzzling fragment: for ( it=1, j=1; j <= n-1; j++ ) it <<= 1; ..... ..... I know that it << 1 is a bitwise shift operation. What does it <<= 1 mean? -- Kind regards, Jonathan -------------- next part -------------- An HTML attachment was scrubbed... URL: From acascianelli at icloud.com Sun Oct 17 11:54:20 2021 From: acascianelli at icloud.com (Anthony Cascianelli) Date: Sun, 17 Oct 2021 11:54:20 -0400 Subject: [Semibug] Need Help with C language In-Reply-To: <4952B33D-1FCD-439B-8666-0056DE15BFE7@icloud.com> References: <4952B33D-1FCD-439B-8666-0056DE15BFE7@icloud.com> Message-ID: <108AE054-7972-40DE-93CD-F579C63FD2E8@icloud.com> Ugh. Ignore last email. Long night. Sorry. Anthony Cascianelli > On Oct 17, 2021, at 11:53 AM, Anthony Cascianelli wrote: > > ?Bitwise left shift. I think. > > Anthony Cascianelli > >> On Oct 17, 2021, at 11:44 AM, Jonathan Drews wrote: >> >> ? >> Hi Folks: >> >> I am trying to understand the C code in "Numerical Recipes for C". I came across this puzzling >> fragment: >> >> for ( it=1, j=1; j <= n-1; j++ ) it <<= 1; >> ..... >> ..... >> I know that it << 1 is a bitwise shift operation. What does it <<= 1 mean? >> >> >> -- >> Kind regards, >> Jonathan >> _______________________________________________ >> Semibug mailing list >> Semibug at lists.nycbug.org >> http://lists.nycbug.org:8080/mailman/listinfo/semibug From acascianelli at icloud.com Sun Oct 17 11:53:37 2021 From: acascianelli at icloud.com (Anthony Cascianelli) Date: Sun, 17 Oct 2021 11:53:37 -0400 Subject: [Semibug] Need Help with C language In-Reply-To: <577f7b9f-34a4-446a-909b-ba6fda99c9c1@www.fastmail.com> References: <577f7b9f-34a4-446a-909b-ba6fda99c9c1@www.fastmail.com> Message-ID: <4952B33D-1FCD-439B-8666-0056DE15BFE7@icloud.com> Bitwise left shift. I think. Anthony Cascianelli > On Oct 17, 2021, at 11:44 AM, Jonathan Drews wrote: > > ? > Hi Folks: > > I am trying to understand the C code in "Numerical Recipes for C". I came across this puzzling > fragment: > > for ( it=1, j=1; j <= n-1; j++ ) it <<= 1; > ..... > ..... > I know that it << 1 is a bitwise shift operation. What does it <<= 1 mean? > > > -- > Kind regards, > Jonathan > _______________________________________________ > Semibug mailing list > Semibug at lists.nycbug.org > http://lists.nycbug.org:8080/mailman/listinfo/semibug From job at sobornost.net Sun Oct 17 11:47:48 2021 From: job at sobornost.net (Job Snijders) Date: Sun, 17 Oct 2021 15:47:48 +0000 Subject: [Semibug] Need Help with C language In-Reply-To: <577f7b9f-34a4-446a-909b-ba6fda99c9c1@www.fastmail.com> References: <577f7b9f-34a4-446a-909b-ba6fda99c9c1@www.fastmail.com> Message-ID: On Sun, Oct 17, 2021 at 09:43:40AM -0600, Jonathan Drews wrote: > I know that it << 1 is a bitwise shift operation. What does it <<= 1 mean? This is a 'bitwise assignment operator'. The string '<<=' means "left shift assignment" https://en.wikipedia.org/wiki/Bitwise_operations_in_C Kind regards, Job From jondrews at fastmail.com Sun Oct 17 18:23:12 2021 From: jondrews at fastmail.com (Jonathan Drews) Date: Sun, 17 Oct 2021 16:23:12 -0600 Subject: [Semibug] Need Help with C language In-Reply-To: References: <577f7b9f-34a4-446a-909b-ba6fda99c9c1@www.fastmail.com> Message-ID: <8246b14e-6dfb-4383-ba7c-81c35223ccc5@www.fastmail.com> I think I understand what is going on. Just as i = i + 1 can be written as i += 1 so also can i = ( i << 1 ) be written as i <<= 1. Am I understanding that correctly? On Sun, Oct 17, 2021, at 09:47, Job Snijders wrote: > On Sun, Oct 17, 2021 at 09:43:40AM -0600, Jonathan Drews wrote: > > I know that it << 1 is a bitwise shift operation. What does it <<= 1 mean? > > This is a 'bitwise assignment operator'. > > The string '<<=' means "left shift assignment" > > https://en.wikipedia.org/wiki/Bitwise_operations_in_C > > Kind regards, > > Job > -------------- next part -------------- An HTML attachment was scrubbed... URL: From jondrews at fastmail.com Sun Oct 17 19:41:43 2021 From: jondrews at fastmail.com (Jonathan Drews) Date: Sun, 17 Oct 2021 17:41:43 -0600 Subject: [Semibug] Need Help with C language In-Reply-To: <8246b14e-6dfb-4383-ba7c-81c35223ccc5@www.fastmail.com> References: <577f7b9f-34a4-446a-909b-ba6fda99c9c1@www.fastmail.com> <8246b14e-6dfb-4383-ba7c-81c35223ccc5@www.fastmail.com> Message-ID: <111758d0-07b5-49d4-828c-fee22236764a@www.fastmail.com> I found the answer myself in Kernighan and Ritchie "The C Programming Language", page 50: expr1 op= expr2 is equivalent to expr1 = expr1 op expr2 where op is any of the following: + - * / % << >> & ^ |. This also holds true for ksh93. Namely in ksh93 i = ( i << 1 ) is the same as i <<= 1. On Sun, Oct 17, 2021, at 16:23, Jonathan Drews wrote: > I think I understand what is going on. Just as i = i + 1 can be written as > i += 1 so also can i = ( i << 1 ) be written as i <<= 1. Am I understanding that correctly? > > On Sun, Oct 17, 2021, at 09:47, Job Snijders wrote: >> On Sun, Oct 17, 2021 at 09:43:40AM -0600, Jonathan Drews wrote: >> > I know that it << 1 is a bitwise shift operation. What does it <<= 1 mean? >> >> This is a 'bitwise assignment operator'. >> >> The string '<<=' means "left shift assignment" >> >> https://en.wikipedia.org/wiki/Bitwise_operations_in_C >> >> Kind regards, >> >> Job >> > > _______________________________________________ > Semibug mailing list > Semibug at lists.nycbug.org > http://lists.nycbug.org:8080/mailman/listinfo/semibug > -------------- next part -------------- An HTML attachment was scrubbed... URL: From jondrews at fastmail.com Mon Oct 18 20:07:46 2021 From: jondrews at fastmail.com (Jonathan Drews) Date: Mon, 18 Oct 2021 18:07:46 -0600 Subject: [Semibug] EMACS presentation Tue, Oct 19th Message-ID: Folks: We will have a presentation on EMACS on Tuesday, October 19th, at 1700 Detroit, MI time. This is an online meeting given through Jitsi. The Jitsi URL is: https://meet.jit.si/SEMI-BugEMACSPresentation One of our members is a developer for Shopify and an accomplished EMACS user. He will demonstrate the advantages of EMACS -- Kind regards, Jonathan From jondrews at fastmail.com Mon Oct 18 20:17:08 2021 From: jondrews at fastmail.com (Jonathan Drews) Date: Mon, 18 Oct 2021 18:17:08 -0600 Subject: [Semibug] CORRECTION: EMACS presentation Tue, Oct 19th In-Reply-To: References: Message-ID: On Mon, Oct 18, 2021 at 06:07:46PM -0600, Jonathan Drews wrote: > Folks: > > We will have a presentation on EMACS on Tuesday, October 19th, at The time should be 1900 Detroit, MI time. The meeting will start at that time The Jitsi URL is: https://meet.jit.si/SEMI-BugEMACSPresentation From jondrews at fastmail.com Thu Oct 21 06:04:59 2021 From: jondrews at fastmail.com (Jonathan Drews) Date: Thu, 21 Oct 2021 04:04:59 -0600 Subject: [Semibug] Clang tutorials Message-ID: ddiHi Gals & Guys: It has been a long time since I have compiled any C programs. Can anyone point me to a good tutorial on compiling with clang? I have some old notes on compiling with gcc but I have used gcc in over 12 years. Does clang use compile instructions similar to this? gcc -Wall -I/usr/local/include/ -c Bessel.c gcc -L/usr/local/lib Bessel.o -lm -lgsl -lgslcblas -o BESSJ I have to compile programs with local *.h files and I have forgotten the flags that are used. The *.c programs begin with this: #include #include"nrutil.h" How would I include the nrutil.h file with my compile? -- Kind regards, Jonathan From jkeenan at pobox.com Thu Oct 21 07:39:43 2021 From: jkeenan at pobox.com (James E Keenan) Date: Thu, 21 Oct 2021 07:39:43 -0400 Subject: [Semibug] Clang tutorials In-Reply-To: References: Message-ID: <7133d25f-3813-4a14-2c91-fd3419ca9081@pobox.com> On 10/21/21 6:04 AM, Jonathan Drews wrote: > ddiHi Gals & Guys: > > It has been a long time since I have compiled any C programs. Can > anyone point me to a good tutorial on compiling with clang? The first link in a search at DDDG. I have > some old notes on compiling with gcc but I have used gcc in over 12 > years. Does clang use compile instructions similar to this? > > gcc -Wall -I/usr/local/include/ -c Bessel.c > gcc -L/usr/local/lib Bessel.o -lm -lgsl -lgslcblas -o BESSJ > Yes. From jkeenan at pobox.com Thu Oct 21 08:19:27 2021 From: jkeenan at pobox.com (James E Keenan) Date: Thu, 21 Oct 2021 08:19:27 -0400 Subject: [Semibug] Clang tutorials In-Reply-To: <7133d25f-3813-4a14-2c91-fd3419ca9081@pobox.com> References: <7133d25f-3813-4a14-2c91-fd3419ca9081@pobox.com> Message-ID: <4fb8e85c-cfa0-ee63-47af-19d9c682fda6@pobox.com> On 10/21/21 7:39 AM, James E Keenan wrote: > On 10/21/21 6:04 AM, Jonathan Drews wrote: >> ddiHi Gals & Guys: >> >> ? It has been a long time since I have compiled any C programs. Can >> anyone point me to a good tutorial on compiling with clang? > > The first link in a search at DDDG. > https://clang.llvm.org/get_started.html > I have >> some old notes on compiling with gcc but I have used gcc in over 12 >> years. Does clang use compile instructions similar to this? >> >> gcc -Wall -I/usr/local/include/ -c Bessel.c >> gcc -L/usr/local/lib Bessel.o -lm -lgsl -lgslcblas -o BESSJ >> > > Yes. > > _______________________________________________ > Semibug mailing list > Semibug at lists.nycbug.org > http://lists.nycbug.org:8080/mailman/listinfo/semibug