🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: alt.folklore.computers
533 messages
533 total messages Page 10 of 11 Started by Johann 'Myrkraverk' Oskarsson Wed, 14 Oct 2026 11:59
Page 10 of 11 • 533 total messages
Re: “The end of software secrecy is almost upon us"
#464
Author: Lynn Wheeler
Date: Mon, 19 Oct 2026 00:19
42 lines
3554 bytes
kludge@panix.com (Scott Dorsey) writes:
> Pascal is a teaching language with a lot of restrictions on it, basically
> designed to be a more flexible Algol.  
>
> As such, it's not really usable as a development language without extensions,
> and everybody's extensions are different.  The Borland extensions are really
> good, though, and make Pascal into an excellent development language.
>
> The Delphi extensions were good too... but they were different and not
> compatible with the Borland extensions.
>
> The nice thing about Pascal is the restrictions.  It is possible to hurt
> yourself with pointers in Pascal, but nowhere near as easily as with C.

IBM Los Gatos lab was doing lots of stuff with Metaware's TWS
... eventually doing a mainframe Pascal for implementing VLSI chip
design tools ... which led to VS/PASCAL for mainframe and RS6000 unix
workstation (including used for implementing mainframe TCP/IP product)

1992, IBM has one of the largest losses in history of US companies and
was being reorganized into the 13 "baby blues" in preparation for
breaking up the company (take-off on "baby bells" breakup a decade
earlier)
https://web.archive.org/web/20101120231857/http://www.time.com/time/magazine/article/0,9171,977353,00.html
https://content.time.com/time/subscriber/article/0,33009,977353-1,00.html
we had already left IBM but get a call from the bowels of Armonk asking
if we could help with the breakup of the company. Before we get started,
the board brings in the former president of Amex as CEO to try and save
the company, who (somewhat) reverses the breakup.

Part of IBM restructure was unloading vlsi tools on industry tool vendor
... and they required it run on SUN platforms (pervasive in the
industry). I got a contract to port a 50,000 statement vs/pascal VLSI
application to SUN (pascal ... in retrospect it would have been easier
to have rewitten it in "C"). SUN pascal appeared to have been limited to
educational uses *AND* support had been outsourced to an organization on
the opposite side of the planet (easy to walk into sun hdqtrs, but
didn't actually help a lot).

-- 
virtualization experience starting Jan1968, online at home since Mar1970
Re: "The end of software secrecy is almost upon us"
#465
Author: Dan Cross
Date: Mon, 19 Oct 2026 02:03
21 lines
2031 bytes
In article <87h5iizglt.fsf@localhost>, Lynn Wheeler  <lynn@garlic.com> wrote:
>[snip]
>Part of IBM restructure was unloading vlsi tools on industry tool vendor
>... and they required it run on SUN platforms (pervasive in the
>industry). I got a contract to port a 50,000 statement vs/pascal VLSI
>application to SUN (pascal ... in retrospect it would have been easier
>to have rewitten it in "C"). SUN pascal appeared to have been limited to
>educational uses *AND* support had been outsourced to an organization on
>the opposite side of the planet (easy to walk into sun hdqtrs, but
>didn't actually help a lot).

I'm not surprised.  Pascal is not a bad language, but Sun's
Pascal compiler was a descendent of the UCB Pascal system done
on the PDP-11 (starting with a draft by Ken Thompson, who took
it to Berkeley during a sabbatical year in 1975 or '76) and
later ported to the VAX and then Sun workstations.  That was
mainly intended for teaching; using it for production software
always felt kind of like an afterthought.

	- Dan C
Re: "The end of software secrecy is almost upon us"
#466
Author: Peter Flass
Date: Mon, 19 Oct 2026 02:54
27 lines
2824 bytes
On 10/18/26 19:03, Dan Cross wrote:
> In article <87h5iizglt.fsf@localhost>, Lynn Wheeler  <lynn@garlic.com> wrote:
>> [snip]
>> Part of IBM restructure was unloading vlsi tools on industry tool vendor
>> ... and they required it run on SUN platforms (pervasive in the
>> industry). I got a contract to port a 50,000 statement vs/pascal VLSI
>> application to SUN (pascal ... in retrospect it would have been easier
>> to have rewitten it in "C"). SUN pascal appeared to have been limited to
>> educational uses *AND* support had been outsourced to an organization on
>> the opposite side of the planet (easy to walk into sun hdqtrs, but
>> didn't actually help a lot).
> 
> I'm not surprised.  Pascal is not a bad language, but Sun's
> Pascal compiler was a descendent of the UCB Pascal system done
> on the PDP-11 (starting with a draft by Ken Thompson, who took
> it to Berkeley during a sabbatical year in 1975 or '76) and
> later ported to the VAX and then Sun workstations.  That was
> mainly intended for teaching; using it for production software
> always felt kind of like an afterthought.
> 
> 	- Dan C

I would tend to think of Borland Turbo Pascal. Borland wrote good compilers.

As  I said, I have glanced at Free Pascal, and know of one excellent 
package written in it. It seems like a solid and very powerful system, 
but the industry has passed it by and moved on to other things.
Re: "The end of software secrecy is almost upon us"
#468
Author: Lawrence D’Oliveiro
Date: Mon, 19 Oct 2026 06:10
27 lines
2720 bytes
On Sun, 18 Oct 2026 19:54:50 -0700, Peter Flass wrote:

> I would tend to think of Borland Turbo Pascal. Borland wrote good
> compilers.

Their specialty was fast compilers. Not sure how large a source
program they could cope with. Like, could they compile themselves?
Or how complex a build procedure they could handle.

> As I said, I have glanced at Free Pascal, and know of one excellent
> package written in it. It seems like a solid and very powerful
> system, but the industry has passed it by and moved on to other
> things.

Pascal compilers seemed to fall into two roughly separate groups: on
the one hand, you had the mini/mainframe-based implementations, which
all tended to stick closely to the standard (a notable exception being
DEC’s VAX compiler, from version 2 onwards, which had some remarkable
extensions to handle system programming). While on the other hand, you
had the implementations on microprocessor-based machines, which all
seemed to derive from UCSD Pascal in some way.

It turns out there is an official standard, ISO10206, dating from
1990, which specifies a whole lot of extensions to old “standard”
Pascal (ISO7185), including modules, namespace qualification, type
schemata, nice string functions, “bindable” variables, structured
value constructors and other fun stuff.
Re: "The end of software secrecy is almost upon us"
#469
Author: Scott Lurndal
Date: Mon, 19 Oct 2026 14:35
23 lines
2204 bytes
cross@spitfire.i.gajendra.net (Dan Cross) writes:
>In article <87h5iizglt.fsf@localhost>, Lynn Wheeler  <lynn@garlic.com> wrote:
>>[snip]
>>Part of IBM restructure was unloading vlsi tools on industry tool vendor
>>... and they required it run on SUN platforms (pervasive in the
>>industry). I got a contract to port a 50,000 statement vs/pascal VLSI
>>application to SUN (pascal ... in retrospect it would have been easier
>>to have rewitten it in "C"). SUN pascal appeared to have been limited to
>>educational uses *AND* support had been outsourced to an organization on
>>the opposite side of the planet (easy to walk into sun hdqtrs, but
>>didn't actually help a lot).
>
>I'm not surprised.  Pascal is not a bad language, but Sun's
>Pascal compiler was a descendent of the UCB Pascal system done
>on the PDP-11 (starting with a draft by Ken Thompson, who took
>it to Berkeley during a sabbatical year in 1975 or '76) and
>later ported to the VAX and then Sun workstations.  That was
>mainly intended for teaching; using it for production software
>always felt kind of like an afterthought.

The VAX Pascal was certainly good enough for production
systems software, given the access to the starlet
interface library.
Re: "The end of software secrecy is almost upon us"
#471
Author: Bob Eager
Date: Mon, 19 Oct 2026 20:45
7 lines
1407 bytes
On Mon, 19 Oct 2026 14:35:40 +0000, Scott Lurndal wrote:

> The VAX Pascal was certainly good enough for production systems
> software, given the access to the starlet interface library.

There was a complete mail system written in it, although the name escales 
me.
Re: "The end of software secrecy is almost upon us"
#470
Author: Bob Eager
Date: Mon, 19 Oct 2026 20:52
11 lines
1558 bytes
On Mon, 19 Oct 2026 20:45:36 +0000, Bob Eager wrote:

> On Mon, 19 Oct 2026 14:35:40 +0000, Scott Lurndal wrote:
> 
>> The VAX Pascal was certainly good enough for production systems
>> software, given the access to the starlet interface library.
> 
> There was a complete mail system written in it, although the name
> escales me.

PMDF - that was it
Re: "The end of software secrecy is almost upon us"
#472
Author: Bob Eager
Date: Mon, 19 Oct 2026 23:10
15 lines
1777 bytes
On Mon, 19 Oct 2026 21:02:47 +0000, Scott Lurndal wrote:

> Bob Eager <throwaway0008@eager.cx> writes:
>>On Mon, 19 Oct 2026 14:35:40 +0000, Scott Lurndal wrote:
>>
>>> The VAX Pascal was certainly good enough for production systems
>>> software, given the access to the starlet interface library.
>>
>>There was a complete mail system written in it, although the name
>>escales me.
> 
> I wrote a print symbiont in VAX Pascal, as well as usage accounting
> utilities and a few other tools.

I wrote everything in Macro-32 or BCPL.
Re: "The end of software secrecy is almost upon us"
#483
Author: Dan Cross
Date: Tue, 20 Oct 2026 02:07
30 lines
2410 bytes
In article <0VpBS.68246$ACx3.3130@fx15.iad>,
Scott Lurndal <slp53@pacbell.net> wrote:
>cross@spitfire.i.gajendra.net (Dan Cross) writes:
>>In article <87h5iizglt.fsf@localhost>, Lynn Wheeler  <lynn@garlic.com> wrote:
>>>[snip]
>>>Part of IBM restructure was unloading vlsi tools on industry tool vendor
>>>... and they required it run on SUN platforms (pervasive in the
>>>industry). I got a contract to port a 50,000 statement vs/pascal VLSI
>>>application to SUN (pascal ... in retrospect it would have been easier
>>>to have rewitten it in "C"). SUN pascal appeared to have been limited to
>>>educational uses *AND* support had been outsourced to an organization on
>>>the opposite side of the planet (easy to walk into sun hdqtrs, but
>>>didn't actually help a lot).
>>
>>I'm not surprised.  Pascal is not a bad language, but Sun's
>>Pascal compiler was a descendent of the UCB Pascal system done
>>on the PDP-11 (starting with a draft by Ken Thompson, who took
>>it to Berkeley during a sabbatical year in 1975 or '76) and
>>later ported to the VAX and then Sun workstations.  That was
>>mainly intended for teaching; using it for production software
>>always felt kind of like an afterthought.
>
>The VAX Pascal was certainly good enough for production
>systems software, given the access to the starlet
>interface library.

On VMS, sure.  But the Berkeley Pascal system for BSD?  Eh....

	- Dan C.
Re: Re: “The end of software secrecy is almost upon us"
#474
Author: Scott Lurndal
Date: Tue, 20 Oct 2026 14:15
25 lines
1982 bytes
  [Trimmed all but alt.folklore.computers]

kludge@panix.com (Scott Dorsey) writes:
>Blaine  <cactus_DAC@yahoo.com> wrote:
>>I guess I take umbrage at your goto statement. I do nothing of the like.
>
>It gets worse than that.
>
>> groovy::                      ; do that groovy thing
>> 	.call_entry	max_args=33,home_args=true,preserve=<r3,r5>
>> 	movl	(ap),r3       ; boogity boogity boogity
>> 	moval	4(ap),r5      ; yeah, you got it baby
>> 	ret                   ; go back and do it again
>> 	.psect	idata,wrt,noexe,quad
>> 	.align	quad
> 

The Burroughs medium systems MCP was originally written
in assembler.  The module that handled roll-in/roll-out
(swapping in modern parlance) was called HIHO.    As in
Hi-Ho, Hi-Ho, it's off to work we go.  The labels in the
code were 'sleepy', 'grumpy', 'happy', et. alia.

The new process creation code (fork) in the Burroughs large systems MCP,
written in a flavor of Algol 60, was called 'motherforker'.
Re: "The end of software secrecy is almost upon us"
#484
Author: Scott Lurndal
Date: Tue, 20 Oct 2026 14:16
18 lines
1798 bytes
Bob Eager <throwaway0008@eager.cx> writes:
>On Mon, 19 Oct 2026 21:02:47 +0000, Scott Lurndal wrote:
>
>> Bob Eager <throwaway0008@eager.cx> writes:
>>>On Mon, 19 Oct 2026 14:35:40 +0000, Scott Lurndal wrote:
>>>
>>>> The VAX Pascal was certainly good enough for production systems
>>>> software, given the access to the starlet interface library.
>>>
>>>There was a complete mail system written in it, although the name
>>>escales me.
>> 
>> I wrote a print symbiont in VAX Pascal, as well as usage accounting
>> utilities and a few other tools.
>
>I wrote everything in Macro-32 or BCPL.

I used Pascal, Macro-32 and BLISS-32.
Re: “The end of software secrecy is almost upon
#485
Author: Nuno Silva
Date: Wed, 21 Oct 2026 00:29
26 lines
2569 bytes
On 2026-10-20, Lawrence D’Oliveiro wrote:

> On Tue, 20 Oct 2026 19:04:55 GMT, Charlie Gibbs wrote:
>
>> The undisciplined use of GOTOs is bad, agreed.
>
> Is there such a thing as a *disciplined* use of gotos?
>
> I find the C code I write tends to do a lot of dynamic resource
> allocations. These can sometimes fail with errors. So error recovery
> will invariably involve cleaning up those parts of the allocations
> which already succeeded. Gotos are no good for this; you need to exit
> levels of structure nesting one by one, disposing of allocations as
> you go.
>
> I put together an example here
> <https://gitlab.com/ldo/a_structured_discipline_of_programming>. This
> is an extension module that offers services to Python code, because
> that is just about the worst example I could think of, for those who
> think gotos can cut it.

IIRC cleanup routines are one of the places where the logic may be such
that you can't structure it neatly without gotos.

-- 
Nuno Silva
Re: “The end of software secrecy is almost upon
#488
Author: Nuno Silva
Date: Thu, 22 Oct 2026 23:23
37 lines
2905 bytes
[ Keeping the C++ group because that's at least in context, but I'm not
  subscribing to it at the moment. I suppose this could eventually go to
  folklore or alt.unix.geeks? ]

On 2026-10-22, Scott Lurndal wrote:

> boltar@battlestar.co.uk writes:
>>On Wed, 21 Oct 2026 19:01:38 -0000 (UTC)
>>cross@spitfire.i.gajendra.net (Dan Cross) wrote:
>>>In article <11bb1da$qfn9$1@dont-email.me>,  <boltar@battlestar.co.uk> wrote:
>>>>Not sure why you think its conspiracy anything. I use the language on a
>>>>daily basis and everytime a new version comes out I hope they've added
>>>>something useful but since 2014 its been a law of diminishing returns.
>>>>Plus there's unexplained omissions - eg threads have been part of the core
>>>>language since 2011. Great, but what about processes? When do we get them?
>>>>Sure, I could just use fork() but then I could also just use pthread_create()
>>>>too. 
>>>
>>>One can implement a pretty reasonable threads library given the
>>>virtual machine model of standard C or C++.  Processes?  With
>>
>>Virtual machine? Wrong language , comp.lang.java is that way --->
>
> The C/C++ "Virtual Machine Model" as described in the language
> specifications is an apple.
>
> A virtual machine (vmware, kvm, xen, et alia) is an orange.
>
>     assert(apples != oranges);

And here I think "virtual machine" was mistaken to be the Java Virtual
Machine, not the orange type above?

(A grapefruit? Pineapple? Banana?)

-- 
Nuno Silva
Re: “The end of software secrecy is almost upon
#489
Author: Dan Cross
Date: Fri, 23 Oct 2026 00:41
41 lines
2686 bytes
In article <11be5t7$19jbi$4@dont-email.me>,
Nuno Silva  <nunojsilva@invalid.invalid> wrote:
>[ Keeping the C++ group because that's at least in context, but I'm not
>  subscribing to it at the moment. I suppose this could eventually go to
>  folklore or alt.unix.geeks? ]
>
>On 2026-10-22, Scott Lurndal wrote:
>
>> boltar@battlestar.co.uk writes:
>>>On Wed, 21 Oct 2026 19:01:38 -0000 (UTC)
>>>cross@spitfire.i.gajendra.net (Dan Cross) wrote:
>>>>In article <11bb1da$qfn9$1@dont-email.me>,  <boltar@battlestar.co.uk> wrote:
>>>>>Not sure why you think its conspiracy anything. I use the language on a
>>>>>daily basis and everytime a new version comes out I hope they've added
>>>>>something useful but since 2014 its been a law of diminishing returns.
>>>>>Plus there's unexplained omissions - eg threads have been part of the core
>>>>>language since 2011. Great, but what about processes? When do we get them?
>>>>>Sure, I could just use fork() but then I could also just use pthread_create()
>>>>>too. 
>>>>
>>>>One can implement a pretty reasonable threads library given the
>>>>virtual machine model of standard C or C++.  Processes?  With
>>>
>>>Virtual machine? Wrong language , comp.lang.java is that way --->
>>
>> The C/C++ "Virtual Machine Model" as described in the language
>> specifications is an apple.
>>
>> A virtual machine (vmware, kvm, xen, et alia) is an orange.
>>
>>     assert(apples != oranges);
>
>And here I think "virtual machine" was mistaken to be the Java Virtual
>Machine, not the orange type above?
>
>(A grapefruit? Pineapple? Banana?)

The JVM is obviously a lemon.  (Hey-O!)

	- Dan C.
Re: “The end of software secrecy is almost upon
#490
Author: Michael S
Date: Fri, 23 Oct 2026 09:06
43 lines
3234 bytes
On Fri, 23 Oct 2026 00:23:10 +0100
Nuno Silva <nunojsilva@invalid.invalid> wrote:

> [ Keeping the C++ group because that's at least in context, but I'm
> not subscribing to it at the moment. I suppose this could eventually
> go to folklore or alt.unix.geeks? ]
> 
> On 2026-10-22, Scott Lurndal wrote:
> 
> > boltar@battlestar.co.uk writes:  
> >>On Wed, 21 Oct 2026 19:01:38 -0000 (UTC)
> >>cross@spitfire.i.gajendra.net (Dan Cross) wrote:  
> >>>In article <11bb1da$qfn9$1@dont-email.me>,
> >>><boltar@battlestar.co.uk> wrote:  
> >>>>Not sure why you think its conspiracy anything. I use the
> >>>>language on a daily basis and everytime a new version comes out I
> >>>>hope they've added something useful but since 2014 its been a law
> >>>>of diminishing returns. Plus there's unexplained omissions - eg
> >>>>threads have been part of the core language since 2011. Great,
> >>>>but what about processes? When do we get them? Sure, I could just
> >>>>use fork() but then I could also just use pthread_create() too.   
> >>>
> >>>One can implement a pretty reasonable threads library given the
> >>>virtual machine model of standard C or C++.  Processes?  With  
> >>
> >>Virtual machine? Wrong language , comp.lang.java is that way --->  
> >
> > The C/C++ "Virtual Machine Model" as described in the language
> > specifications is an apple.
> >
> > A virtual machine (vmware, kvm, xen, et alia) is an orange.
> >
> >     assert(apples != oranges);  
> 
> And here I think "virtual machine" was mistaken to be the Java Virtual
> Machine, not the orange type above?
> 
> (A grapefruit? Pineapple? Banana?)
> 

The fruit of coffee tree is most commonly called cherry.

Re: “The end of software secrecy is almost upon
#491
Author: Lynn Wheeler
Date: Sat, 24 Oct 2026 00:29
79 lines
6038 bytes
boltar@battlestar.co.uk writes:
> Virtual machine? Wrong language , comp.lang.java is that way --->

some of the CTSS/7094 went to the 5th flr to do Multics, others went to
the IBM Cambridge Science Center on the 4th flr and did virtual machines
(wanted 360/50 to modify with virtual memory but all the extras were
going to FAA ATC project, so had to settle for 360/40 to modify with
virtual memory and did CP40/CMS which morphs into CP67/CMS when 360/67
standard with virtual memory becomes available, precursor to VM370/CMS),
CP67-based science center wide-area network (morphs into internal
corporate network larger than arpanet/internet from beginning until
sometime mid/late 80s when forced to convert to SNA/VTAM, technology
also had been used for corporate sponsord univ BITNET), invented GML in
1969 (decade later morphs in SGML and after another decade morphs into
HTML at CERN), etc

I had taken 2credit hr intro to Fortran/Computers. At end of semester, I
was hired to rewrite 1401 MPIO in 360 assembler for 360/30. Univ. was
getting 360/67 for tss/360 replacing 709/1401 and got 360/30 temporarily
replacing 1401 pending arrival of 360/67.  Univ. shutdown datacenter on
weekends and I would have place dedicated (although 48hrs w/o sleep made
monday classes hard). I was given pile of hardware and software manuals
and got to design and implement my own monitor, interrupt handlers,
device drivers, storage management, error recovery, etc ... and within a
few weeks had 2000 card assembler program (stand alone monitor, booted
with BPS loader). Sometimes I would come in and production had finished
early and everything had been powered off (and 360/30 would power
on). Some number of documents and trail/error found if I put all the
controllers in CE-mode, power on 360/30, power on all the controllers
(and then take out of CE-mode).

The 360/67 arrived within a year of taking intro class and I was hired
fulltime responsible for os/360 (tss/360 not coming to production). 709
did student fortran in less than second. 360/67 (as 360/65) os/360
(MFT9.5) took over a minute, I install HASP cutting time in half. MFT11,
I start redoing SYSGEN STAGE2 (partial tray) to carefully place datasets
and PDS members to optimize arm seek and (PDS directory) multi-track
search, cutting another 2/3rds to 12.9secs. OS/360 never got better than
709 until I install Univ Waterloo WATFOR; as 360/65, WATFOR clocked at
20,000 statements/min (333statements/sec), student fortran tended to run
30-60 statements.

Then CSC came out to install (virtual machine) CP/67 (3rd after CSC
itself and MIT Lincoln Labs) and I mostly get to play with it during my
weekend 48hr window. I then spend a few months rewriting pathlengths for
running OS/360 in virtual machine. Bare machine test ran 322secs
... initially 856secs (CP67 CPU 534secs). After a few months I had CP67
CPU down from 534secs to 113secs. I then start rewriting the
dispatcher/scheduler (dynamic adaptive resource manager/default fair
share scheduling policy), paging, adding ordered seek queuing (from
FIFO) and mutli-page transfer channel programs (from FIFO and optimized
for transfers/revolution, getting 2301 paging drum from 70-80 4k
transfers/sec to channel transfer peak of 270). Six months after univ
initial CP/67 install, CSC was giving one week class in LA. I arrive on
Sunday afternoon and asked to teach the class, it turns out that the
people that were going to teach it had resigned the Friday before to
join one of the 60s CSC CP67 commercial online spin-offs

Before graduate, I was hired fulltime into small group in the Boeing CFO
office to help with the formation of Boeing Computer Services
(consolidate all dataprocessing into an independent business unit). I
think Renton datacenter largest in the world, 360/65s arriving faster
than they could be installed, boxes constantly staged in hallways around
the machine room (jokes about Boeing getting 360/65s like other
companies acquired keypunches). Lots of politics between Renton director
and CFO, who only had a 360/30 for payroll up at Boeing field (although
they enlarge the room for a 1mbyte 360/67 for me to play with when I
wasn't doing other stuff, sort of my personal computer).

trivia: both Boeing and IBM told stories about 360 announcement day,
Boeing submitted an order making the IBM marketing rep, highest paid IBM
employee that year. Sales were still straight commission; IBM shifts to
quota the following year.

When I graduate, I join the science center (instead of staying with
Boeing CFO)

-- 
virtualization experience starting Jan1968, online at home since Mar1970
Re: “The end of software secrecy is almost upon
#492
Author: Nuno Silva
Date: Sat, 24 Oct 2026 22:59
76 lines
4632 bytes
On 2026-10-24, Gary R. Schmidt wrote:

> On 24/10/2026 03:06, Peter Flass wrote:
>> On 10/23/26 01:01, boltar@caprica.universe wrote:
>>> On Thu, 22 Oct 2026 12:19:49 -0400 (EDT)
>>> kludge@panix.com (Scott Dorsey) gabbled:
>>>> In article <11bd7tj$rh4f$1@dont-email.me>, 
>>>> <boltar@battlestar.co.uk> wrote:
>>>>>
>>>>> Most of us have a CS degree. But then we go out into the real
>>>>> world, get a
>>>>> job and find out what real programming on real products entails,
>>>>> not a load
>>>>> of virtual academic naval gazing.
>>>>
>>>> That's because it's not a trade school degree.  It's not there to teach
>>>> you to program, it's there to teach you the fundamentals that you
>>>> need to
>>>> properly understand programming.
>>>
>>> No, it teaches you fundamentals of certain aspects of computer
>>> paradigms such
>>> as databases, graphics, AI. Most people into computers learn actual
>>> programming
>>> long before they hit university.
>>>
>>>> Engineering schools are even more that way.  They don't teach you much
>>>> engineering, but they give you all the background that you need to learn
>>>> engineering.
>>>
>>> Programming isn't pure engineering - its a combination of
>>> engineering, logic,
>>> art and a trade.
>>>
>>>> If you just want a job, getting one of these degrees is not for
>>>> you.  It's
>>>> not there for that.
>>>
>>> Bill Gates never earned a degree. He seemed to do ok.
>>
>>  From what I understand, he wasn't a very good programmer, though.
>
> A story I heard thirty-odd years ago about Bill Gates' purported
> programming ability:
> When MS started making money from their MSBASIC compiler, they started
> hiring real staff.
> One of them was tasked with working through the various functions that
> BASIC does, such as opening files, sorting arrays, and the like.
> When he looked at the sort routine, he exclaimed, loudly, "What idiot
> wrote this, it doesn't do anything!"
> Bill was in the room at the time, wandered over and had a look at what
> they were working on, and said, "Oh, the sort routine.  I could never
> get that to work."
> Apparently it was not a career-limiting action by the programmer.
>
> 	Cheers,
> 		Gary	B-)

And this is probably an example of where it is important to have at
least somehow learned (be it from a "CS" degree or not) that there are
well-known sorting strategies and algorithms and that they perform
differently, and that it's probably better to implement something
sufficiently tested and reviewed? And to know how to pick one that
doesn't work too terribly for the kind of data being sorted.

Still, sorting is, I think, part of the fundamental basics covered in
programming education, and at least at higher education level you can
probably expect that to include a glance at the different algorithms.
So, by the standards of at least 10-20 years ago, this would probably
mean Gates wasn't much of a serious programmer? He wouldn't need to
*memorize* all of them, but just to know that he could look it up and
pick one. But maybe things were vastly different back then?


-- 
Nuno Silva
Re: “The end of software secrecy is almost upon
#493
Author: Peter Flass
Date: Sat, 24 Oct 2026 23:03
77 lines
4874 bytes
On 10/24/26 15:59, Nuno Silva wrote:
> On 2026-10-24, Gary R. Schmidt wrote:
> 
>> On 24/10/2026 03:06, Peter Flass wrote:
>>> On 10/23/26 01:01, boltar@caprica.universe wrote:
>>>> On Thu, 22 Oct 2026 12:19:49 -0400 (EDT)
>>>> kludge@panix.com (Scott Dorsey) gabbled:
>>>>> In article <11bd7tj$rh4f$1@dont-email.me>,
>>>>> <boltar@battlestar.co.uk> wrote:
>>>>>>
>>>>>> Most of us have a CS degree. But then we go out into the real
>>>>>> world, get a
>>>>>> job and find out what real programming on real products entails,
>>>>>> not a load
>>>>>> of virtual academic naval gazing.
>>>>>
>>>>> That's because it's not a trade school degree.  It's not there to teach
>>>>> you to program, it's there to teach you the fundamentals that you
>>>>> need to
>>>>> properly understand programming.
>>>>
>>>> No, it teaches you fundamentals of certain aspects of computer
>>>> paradigms such
>>>> as databases, graphics, AI. Most people into computers learn actual
>>>> programming
>>>> long before they hit university.
>>>>
>>>>> Engineering schools are even more that way.  They don't teach you much
>>>>> engineering, but they give you all the background that you need to learn
>>>>> engineering.
>>>>
>>>> Programming isn't pure engineering - its a combination of
>>>> engineering, logic,
>>>> art and a trade.
>>>>
>>>>> If you just want a job, getting one of these degrees is not for
>>>>> you.  It's
>>>>> not there for that.
>>>>
>>>> Bill Gates never earned a degree. He seemed to do ok.
>>>
>>>   From what I understand, he wasn't a very good programmer, though.
>>
>> A story I heard thirty-odd years ago about Bill Gates' purported
>> programming ability:
>> When MS started making money from their MSBASIC compiler, they started
>> hiring real staff.
>> One of them was tasked with working through the various functions that
>> BASIC does, such as opening files, sorting arrays, and the like.
>> When he looked at the sort routine, he exclaimed, loudly, "What idiot
>> wrote this, it doesn't do anything!"
>> Bill was in the room at the time, wandered over and had a look at what
>> they were working on, and said, "Oh, the sort routine.  I could never
>> get that to work."
>> Apparently it was not a career-limiting action by the programmer.
>>
>> 	Cheers,
>> 		Gary	B-)
> 
> And this is probably an example of where it is important to have at
> least somehow learned (be it from a "CS" degree or not) that there are
> well-known sorting strategies and algorithms and that they perform
> differently, and that it's probably better to implement something
> sufficiently tested and reviewed? And to know how to pick one that
> doesn't work too terribly for the kind of data being sorted.
> 
> Still, sorting is, I think, part of the fundamental basics covered in
> programming education, and at least at higher education level you can
> probably expect that to include a glance at the different algorithms.
> So, by the standards of at least 10-20 years ago, this would probably
> mean Gates wasn't much of a serious programmer? He wouldn't need to
> *memorize* all of them, but just to know that he could look it up and
> pick one. But maybe things were vastly different back then?
> 
> 

TAoCP was available 20 years ago.
Re: what's a process, was The end of software secrecy is almost upon
#494
Author: John Levine
Date: Sun, 25 Oct 2026 18:17
20 lines
2111 bytes
According to  <boltar@caprica.universe>:
>>Threads share resources such as address space, files, etc. A process 
>>runs in its own address space. (at least these days, before virtual 
>>memory, who knows?)
>
>With copy-on-write process models the actual difference is a bit less
>clear cut.

Copy-on-write (or on some older systems copy-on-touch) is an implementation
detail.  Neither process can look inside the other even if they share some
unwritten or untouched pages.

By the way, copy-on-write is quite old.  See this blog post I wrote a long
time ago:

https://obvious.services.net/2011/01/history-of-copy-on-write-memory.html
-- 
Regards,
John Levine, johnl@taugh.com, Primary Perpetrator of "The Internet for Dummies",
Please consider the environment before reading this e-mail. https://jl.ly
Threads and processes (was: Re: "The end of software secrecy is almost upon)
#497
Author: Nuno Silva
Date: Sun, 25 Oct 2026 23:48
42 lines
3304 bytes
On 2026-10-25, boltar@caprica.universe wrote:

> On Sun, 25 Oct 2026 13:34:58 -0000 (UTC)
> cross@spitfire.i.gajendra.net (Dan Cross) gabbled:
>>In article <11bkfcc$104cc$1@dont-email.me>,  <boltar@caprica.universe> wrote:
>>>On Sun, 25 Oct 2026 00:28:19 -0000 (UTC)
>>>cross@spitfire.i.gajendra.net (Dan Cross) gabbled:
>>>> [snip]
>>>
>>>No, it isn't. How similar do you think the posix and windows threading
>>>model/api are? Yet somehow C++ provides a common wrapper for both. There is
>>>no reason the same can't be done for processes and your irrelevant waffle
>>>about past issues of threading on *nix don't change that.
>>
>>You didn't answer my questions.
>>
>>What do you think that a "thread" is?
>>What do you think that a "process" is?
>
> Stop playing games - you don't get to answer a question with a question. 
> Given I've been programming on unix for over 30 years and have written dozens
> of applications using multi process and multi threading and sometimes using both
> I'm quite well aware of the differences. Perhaps you arn't which is why you
> need me to tell you. Well go do your own research.
>
> In the meantime I'll ask one last time - why do you think C++ can provide
> a threading wrapper API but not a multi process one?
>
> Take your time.

It tends to be somewhat easy to get lost in misunderstandings even when
using the very same language. So, if you're discussing threads and/or
processes, explaining what do you mean by these two concepts at least
ensures there's one less source of potential misunderstandings. With
that in account, it's less than stellar not to answer. And then kind of
pulling rank to do so...


"Le langage est source de malentendus." -- Saint-Exupèry

-- 
Nuno Silva
Re: Re: what's a process, was The end of software secrecy is almost upon
#502
Author: boltar
Date: Mon, 26 Oct 2026 09:57
19 lines
2113 bytes
On Sun, 25 Oct 2026 18:17:44 -0000 (UTC)
John Levine <johnl@taugh.com> gabbled:
>According to  <boltar@caprica.universe>:
>>>Threads share resources such as address space, files, etc. A process 
>>>runs in its own address space. (at least these days, before virtual 
>>>memory, who knows?)
>>
>>With copy-on-write process models the actual difference is a bit less
>>clear cut.
>
>Copy-on-write (or on some older systems copy-on-touch) is an implementation
>detail.  Neither process can look inside the other even if they share some
>unwritten or untouched pages.

The point is they are sharing memory. In a reference implementation processes
don't share any virtual memory at all - everything is copied to a new location
at fork - so you can't use sharing memory as a way to demarcate multithreading
and multiprocess.
Re: Re: what's a process, was The end of software secrecy is almost upon
#503
Author: Peter Flass
Date: Mon, 26 Oct 2026 10:53
23 lines
2565 bytes
On 10/26/26 02:57, boltar@caprica.universe wrote:
> On Sun, 25 Oct 2026 18:17:44 -0000 (UTC)
> John Levine <johnl@taugh.com> gabbled:
>> According to  <boltar@caprica.universe>:
>>>> Threads share resources such as address space, files, etc. A process
>>>> runs in its own address space. (at least these days, before virtual
>>>> memory, who knows?)
>>>
>>> With copy-on-write process models the actual difference is a bit less
>>> clear cut.
>>
>> Copy-on-write (or on some older systems copy-on-touch) is an implementation
>> detail.  Neither process can look inside the other even if they share some
>> unwritten or untouched pages.
> 
> The point is they are sharing memory. In a reference implementation processes
> don't share any virtual memory at all - everything is copied to a new location
> at fork - so you can't use sharing memory as a way to demarcate multithreading
> and multiprocess.

In the old days before IUCV or VMCF I did a multi-process application on 
VM by using a file to pass data among processes. Surprisingly, it worked 
well.
Re: Re: what's a process, was The end of software secrecy is almost upon
#505
Author: Scott Lurndal
Date: Mon, 26 Oct 2026 14:44
28 lines
2417 bytes
Peter Flass <Peter@Iron-Spring.com> writes:
>On 10/26/26 02:57, boltar@caprica.universe wrote:
>> On Sun, 25 Oct 2026 18:17:44 -0000 (UTC)
>> John Levine <johnl@taugh.com> gabbled:
>>> According to  <boltar@caprica.universe>:
>>>>> Threads share resources such as address space, files, etc. A process
>>>>> runs in its own address space. (at least these days, before virtual
>>>>> memory, who knows?)
>>>>
>>>> With copy-on-write process models the actual difference is a bit less
>>>> clear cut.
>>>
>>> Copy-on-write (or on some older systems copy-on-touch) is an implementation
>>> detail.  Neither process can look inside the other even if they share some
>>> unwritten or untouched pages.
>> 
>> The point is they are sharing memory. In a reference implementation processes
>> don't share any virtual memory at all - everything is copied to a new location
>> at fork - so you can't use sharing memory as a way to demarcate multithreading
>> and multiprocess.
>
>In the old days before IUCV or VMCF I did a multi-process application on 
>VM by using a file to pass data among processes. Surprisingly, it worked 
>well.

Burroughs had both a synchronous 'core2core' interface between processes
as well as asynchronous storage queues. In the days of small address spaces,
those were invaluable interfaces.
Re: “The end of software secrecy is almost upon
#506
Author: John Ames
Date: Mon, 26 Oct 2026 15:13
19 lines
2307 bytes
On 25 Oct 2026 20:10:26 -0400
Rich Alderson <news@alderson.users.panix.com> wrote:

> The interpreter is assembled from source on a PDP-10 with at least
> 128K (and preferably more) of 36 bit words,because it's implemented
> as local system call macros in PDP-10 assembler.
> 
> Bill wrote the basic framework, Monte Davidoff wrote the
> transcendental math functions, and Paul Allen wrote the PDP-10 code
> to do the assembly.
> 
> NB:  I worked for Paul building Living Computers: Museum+Labs and
> working there as an engineer from 2003-2018, then till 2020 when we
> closed due to the pandemic. I've seen the original code, with named
> attributions.

Thanks for weighing in - I had a notion someone here could provide
direct info on the topic =^_^=
Re: what's a process, was The end of software secrecy is almost upon
#507
Author: Peter Flass
Date: Mon, 26 Oct 2026 15:56
32 lines
3034 bytes
On 10/26/26 07:44, Scott Lurndal wrote:
> Peter Flass <Peter@Iron-Spring.com> writes:
>> On 10/26/26 02:57, boltar@caprica.universe wrote:
>>> On Sun, 25 Oct 2026 18:17:44 -0000 (UTC)
>>> John Levine <johnl@taugh.com> gabbled:
>>>> According to  <boltar@caprica.universe>:
>>>>>> Threads share resources such as address space, files, etc. A process
>>>>>> runs in its own address space. (at least these days, before virtual
>>>>>> memory, who knows?)
>>>>>
>>>>> With copy-on-write process models the actual difference is a bit less
>>>>> clear cut.
>>>>
>>>> Copy-on-write (or on some older systems copy-on-touch) is an implementation
>>>> detail.  Neither process can look inside the other even if they share some
>>>> unwritten or untouched pages.
>>>
>>> The point is they are sharing memory. In a reference implementation processes
>>> don't share any virtual memory at all - everything is copied to a new location
>>> at fork - so you can't use sharing memory as a way to demarcate multithreading
>>> and multiprocess.
>>
>> In the old days before IUCV or VMCF I did a multi-process application on
>> VM by using a file to pass data among processes. Surprisingly, it worked
>> well.
> 
> Burroughs had both a synchronous 'core2core' interface between processes
> as well as asynchronous storage queues. In the days of small address spaces,
> those were invaluable interfaces.

It took IBM a little longer for this, but eventually they got there.
Re: Re: what's a process, was The end of software secrecy is almost
#508
Author: boltar
Date: Mon, 26 Oct 2026 16:19
34 lines
2813 bytes
On Mon, 26 Oct 2026 03:53:45 -0700
Peter Flass <Peter@Iron-Spring.com> gabbled:
>On 10/26/26 02:57, boltar@caprica.universe wrote:
>> On Sun, 25 Oct 2026 18:17:44 -0000 (UTC)
>> John Levine <johnl@taugh.com> gabbled:
>>> According to  <boltar@caprica.universe>:
>>>>> Threads share resources such as address space, files, etc. A process
>>>>> runs in its own address space. (at least these days, before virtual
>>>>> memory, who knows?)
>>>>
>>>> With copy-on-write process models the actual difference is a bit less
>>>> clear cut.
>>>
>>> Copy-on-write (or on some older systems copy-on-touch) is an implementation
>>> detail.  Neither process can look inside the other even if they share some
>>> unwritten or untouched pages.
>> 
>> The point is they are sharing memory. In a reference implementation processes
>
>> don't share any virtual memory at all - everything is copied to a new
>location
>> at fork - so you can't use sharing memory as a way to demarcate
>multithreading
>> and multiprocess.
>
>In the old days before IUCV or VMCF I did a multi-process application on 
>VM by using a file to pass data among processes. Surprisingly, it worked 
>well.

I'd be interested how you'd implement fork() using that method given you
need to copy the state of all file descriptors, heap, stack and global 
memory, current working directory, enviroment variables and a ton of other
things I can't remember without googling.
Re: what's a process, was The end of software secrecy is almost
#509
Author: Peter Flass
Date: Mon, 26 Oct 2026 18:46
41 lines
3311 bytes
On 10/26/26 09:19, boltar@caprica.universe wrote:
> On Mon, 26 Oct 2026 03:53:45 -0700
> Peter Flass <Peter@Iron-Spring.com> gabbled:
>> On 10/26/26 02:57, boltar@caprica.universe wrote:
>>> On Sun, 25 Oct 2026 18:17:44 -0000 (UTC)
>>> John Levine <johnl@taugh.com> gabbled:
>>>> According to  <boltar@caprica.universe>:
>>>>>> Threads share resources such as address space, files, etc. A process
>>>>>> runs in its own address space. (at least these days, before virtual
>>>>>> memory, who knows?)
>>>>>
>>>>> With copy-on-write process models the actual difference is a bit less
>>>>> clear cut.
>>>>
>>>> Copy-on-write (or on some older systems copy-on-touch) is an 
>>>> implementation
>>>> detail.  Neither process can look inside the other even if they 
>>>> share some
>>>> unwritten or untouched pages.
>>>
>>> The point is they are sharing memory. In a reference implementation 
>>> processes
>>
>>> don't share any virtual memory at all - everything is copied to a new
>> location
>>> at fork - so you can't use sharing memory as a way to demarcate
>> multithreading
>>> and multiprocess.
>>
>> In the old days before IUCV or VMCF I did a multi-process application 
>> on VM by using a file to pass data among processes. Surprisingly, it 
>> worked well.
> 
> I'd be interested how you'd implement fork() using that method given you
> need to copy the state of all file descriptors, heap, stack and global 
> memory, current working directory, enviroment variables and a ton of other
> things I can't remember without googling.

No fork. Each VM had a single thread of execution. I was happy to get 
multiple processes to cooperate. It was a master process (virtual 
machine) that distributed work to worker machines.
Re: “The end of software secrecy is almost upon
#453
Author: Chris M. Thomasson
Date: Mon, 02 Nov 2026 02:04
30 lines
2712 bytes
On 11/1/2026 1:34 AM, boltar@caprica.universe wrote:
> On Sat, 31 Oct 2026 13:14:47 -0700
> "Chris M. Thomasson" <chris.m.thomasson.1@gmail.com> gabbled:
>> On 10/31/2026 2:38 AM, boltar@caprica.universe wrote:
>>> If its multithreaded but that still happens someone probably has 
>>> created too
>>> many critical sections with too many locks.
>>>
>>
>> Makes no sense at all. Have you taken a look at my multex? It can create 
> 
> WTF has your multex got to do with anything? No one was talking about your
> code so don't use this discussion as some excuse to show off some code you
> wrote than no one cares about.

It uses a table of a lot of mutexes. Never deadlocks. So, you need to 
study up? You said "too many critical sections with too many locks."

Well, if you don't know how to use them, don't use them. Learn first?

> 
>> a shit lod of mutexes, and never deadlock. It keeps a strict locking 
>> order. Sorts and dedups the mutexes. Also, notice that an object does 
>> not need its own mutex:
> 
> Thats nice.
> 
> tl;dr
> 
Re: The end of software secrecy is almost upon
#454
Author: Rosario19
Date: Mon, 02 Nov 2026 09:54
9 lines
1752 bytes
On Tue, 20 Oct 2026 20:20:39 -0000 (UTC), Lawrence DÿOliveiro wrote:

>On Tue, 20 Oct 2026 15:06:48 -0500, Lynn McGuire wrote:
>
>> The key to writing any software is lots of commenting.
>
>A key point about comments is they should explain *why* the code is

the win for comment it is when code explain itself with 0 comment
Re: The end of software secrecy is almost upon
#456
Author: Rosario19
Date: Mon, 02 Nov 2026 09:58
26 lines
2256 bytes
On Tue, 20 Oct 2026 16:40:47 -0400, Cryptoengineer wrote:

>On 10/20/2026 2:22 PM, Scott Dorsey wrote:
>> In article <11b8b2k$p44i$1@dont-email.me>,  <boltar@battlestar.co.uk> wrote:
>>> Cryptoengineer <petertrei@gmail.com> wrote:
>>>> Edgar Dijkstra: Go To Statement Considered Harmful
>>>
>>> A man who clearly never programmed in assembler.
>> 
>> I have seen a structured assembler class and it's actually not a bad way
>> to think at all.  Having LOOPZ and REP* and similar instructions make it
>> easier to think about do loops.
>> 
>> The key to writing structured assembly is commenting.
>
>The key to writing [] assembly is commenting.

no it is the right code easy to understand
comment can be avoid if someone use meaning varible (even if one char
b= buffer, b=binary b=ebx ecc)

>Fixed That For You.
>
>pt
>
Re: The end of software secrecy is almost upon
#455
Author: Fred. Zwarts
Date: Mon, 02 Nov 2026 10:11
15 lines
2060 bytes
Op 02.nov.2026 om 10:54 schreef Rosario19:
> On Tue, 20 Oct 2026 20:20:39 -0000 (UTC), Lawrence DÿOliveiro wrote:
> 
>> On Tue, 20 Oct 2026 15:06:48 -0500, Lynn McGuire wrote:
>>
>>> The key to writing any software is lots of commenting.
>>
>> A key point about comments is they should explain *why* the code is
> 
> the win for comment it is when code explain itself with 0 comment

Code can only explain what it does, what the algorithm is.
Code cannot explain why that algorithm was chosen. That is where 
comments are for.
Re: “The end of software secrecy is almost upon
#457
Author: boltar
Date: Mon, 02 Nov 2026 15:43
15 lines
2134 bytes
On Sun, 1 Nov 2026 21:59:41 +0200
Michael S <already5chosen@yahoo.com> gabbled:
>On Sun, 1 Nov 2026 08:32:42 -0000 (UTC)
>boltar@caprica.universe wrote:
>> On this one where you see code that is only multithreaded in order to
>> serve individual sockets, not because it needs to be.
>> 
>
>That's because many people unable to implement state machines. Or able,
>but don't like them.
>It has nothing to do with availability and functionality of select/poll
>on Windows.

Last time I had the misfortune to use win32 it couldn't multiplex on sockets.
Re: Re: “The end of software secrecy is almost upon
#458
Author: boltar
Date: Mon, 02 Nov 2026 15:44
15 lines
2005 bytes
On Sun, 1 Nov 2026 18:03:06 -0800
"Chris M. Thomasson" <chris.m.thomasson.1@gmail.com> gabbled:
>On 11/1/2026 1:33 AM, boltar@caprica.universe wrote:
>>> What do you mean? Is the GUI deadlocking?
>> 
>> What do I mean? If you don't understand the concepts of multithreading then
>> maybe stay out of the discussion.
>> 
>
>Ummm. I think you are the one that does not know what the heck they are 
>talking about.

Yeah, ok. I've only been using pthreads for the last 25 years but sure, what
do I know.
Re: Re: “The end of software secrecy is almost upon
#459
Author: boltar
Date: Mon, 02 Nov 2026 15:45
25 lines
2595 bytes
On Sun, 1 Nov 2026 18:04:13 -0800
"Chris M. Thomasson" <chris.m.thomasson.1@gmail.com> gabbled:
>On 11/1/2026 1:34 AM, boltar@caprica.universe wrote:
>> On Sat, 31 Oct 2026 13:14:47 -0700
>> "Chris M. Thomasson" <chris.m.thomasson.1@gmail.com> gabbled:
>>> On 10/31/2026 2:38 AM, boltar@caprica.universe wrote:
>>>> If its multithreaded but that still happens someone probably has 
>>>> created too
>>>> many critical sections with too many locks.
>>>>
>>>
>>> Makes no sense at all. Have you taken a look at my multex? It can create 
>> 
>> WTF has your multex got to do with anything? No one was talking about your
>> code so don't use this discussion as some excuse to show off some code you
>> wrote than no one cares about.
>
>It uses a table of a lot of mutexes. Never deadlocks. So, you need to 
>study up? You said "too many critical sections with too many locks."
>
>Well, if you don't know how to use them, don't use them. Learn first?

I have no desire to spend hours trawling through someones pet project so they
can make a point about what a L337 coder they are. HTH.
Re: The end of software secrecy is almost upon
#461
Author: Charlie Gibbs
Date: Mon, 02 Nov 2026 16:51
28 lines
2219 bytes
On 2026-11-02, Fred. Zwarts <F.Zwarts@HetNet.nl> wrote:

> Op 02.nov.2026 om 10:54 schreef Rosario19:
>
>> On Tue, 20 Oct 2026 20:20:39 -0000 (UTC), Lawrence DÿOliveiro wrote:
>> 
>>> On Tue, 20 Oct 2026 15:06:48 -0500, Lynn McGuire wrote:
>>>
>>>> The key to writing any software is lots of commenting.
>>>
>>> A key point about comments is they should explain *why* the code is
>> 
>> the win for comment it is when code explain itself with 0 comment
>
> Code can only explain what it does, what the algorithm is.
> Code cannot explain why that algorithm was chosen. That is where 
> comments are for.

Unfortuately, a lot of people (especially CS weenies) love to
loudly proclaim, "My code is so readable that no comments are
necessary!"  (Sometimes they apply this argument to their choice
of programming language as well.)  They're usually wrong.

-- 
/~\  Charlie Gibbs                  |  In this world there are
\ /  <cgibbs@kltpzyxm.invalid>      |  two kinds of people:
 X   I'm really at ac.dekanfrus     |  1. Those who can extrapolate
/ \  if you read it the right way.  |  from incomplete data.
Re: “The end of software secrecy is almost upon
#460
Author: Charlie Gibbs
Date: Mon, 02 Nov 2026 16:51
32 lines
2508 bytes
On 2026-11-02, boltar@caprica.universe <boltar@caprica.universe> wrote:

> On Sun, 1 Nov 2026 21:59:41 +0200
>
> Michael S <already5chosen@yahoo.com> gabbled:
>
>> On Sun, 1 Nov 2026 08:32:42 -0000 (UTC)
>> boltar@caprica.universe wrote:
>>
>>> On this one where you see code that is only multithreaded in order to
>>> serve individual sockets, not because it needs to be.
>>
>> That's because many people unable to implement state machines. Or able,
>> but don't like them.
>> It has nothing to do with availability and functionality of select/poll
>> on Windows.
>
> Last time I had the misfortune to use win32 it couldn't multiplex on sockets.

By "multiplex on sockets" do you mean supporting more then one connection
on a single socket?  Serious question here: could you tell me how this can
be useful?

My Win32 code does accept multiple incoming connections on the same
port number, but each one gets its own socket.  And to get back on
thread (ahem), it uses a single thread with nonblocking sockets.

-- 
/~\  Charlie Gibbs                  |  In this world there are
\ /  <cgibbs@kltpzyxm.invalid>      |  two kinds of people:
 X   I'm really at ac.dekanfrus     |  1. Those who can extrapolate
/ \  if you read it the right way.  |  from incomplete data.
Re: The end of software secrecy is almost upon
#467
Author: Lawrence D’Oliveiro
Date: Mon, 02 Nov 2026 20:06
7 lines
1850 bytes
On Mon, 02 Nov 2026 16:51:46 GMT, Charlie Gibbs wrote:

> Unfortuately, a lot of people (especially CS weenies) love to loudly
> proclaim, "My code is so readable that no comments are necessary!"

Wasn’t that the argument made by the “business” users for COBOL? That
the language was practically English anyway ... ?
Re: “The end of software secrecy is almost upon
#473
Author: Michael S
Date: Mon, 02 Nov 2026 21:46
39 lines
3341 bytes
On Mon, 2 Nov 2026 15:43:42 -0000 (UTC)
boltar@caprica.universe wrote:

> On Sun, 1 Nov 2026 21:59:41 +0200
> Michael S <already5chosen@yahoo.com> gabbled:
> >On Sun, 1 Nov 2026 08:32:42 -0000 (UTC)
> >boltar@caprica.universe wrote:  
> >> On this one where you see code that is only multithreaded in order
> >> to serve individual sockets, not because it needs to be.
> >>   
> >
> >That's because many people unable to implement state machines. Or
> >able, but don't like them.
> >It has nothing to do with availability and functionality of
> >select/poll on Windows.  
> 
> Last time I had the misfortune to use win32 it couldn't multiplex on
> sockets.
> 

That's nonsense. That part of Winsock2 API did not change since 1993.
That is, in early 2000s they added poll() (WAASAPoll), but select() is
 the same BSD select() from the very beginning, just a little easier to
use than original, because nfds is DNC.
Now, if you woulds say that on Winsock2 select() can't multiplex
waiting for socket I/O with waiting for other sorts of I/O (files and
pipes) then your statement would make more sense*. 
But it does not sound like you really want to make sense. You strongly
prefer mindless bashing.

----
* - Although, 
1) of course, there (in Win32) exist not too complicated alternative
methods to achieve such multiplexing as well. Just not via select().
2) today, with nearly all file I/O deeply cached, multiplexing waiting
for file I/O with waiting for sockets is a bad idea. OTOH, Multiplexing
sockets with pipes could still make sense, infrequently.

Re: “The end of software secrecy is almost upon
#475
Author: Chris M. Thomasson
Date: Mon, 02 Nov 2026 22:33
32 lines
2966 bytes
On 11/2/2026 7:45 AM, boltar@caprica.universe wrote:
> On Sun, 1 Nov 2026 18:04:13 -0800
> "Chris M. Thomasson" <chris.m.thomasson.1@gmail.com> gabbled:
>> On 11/1/2026 1:34 AM, boltar@caprica.universe wrote:
>>> On Sat, 31 Oct 2026 13:14:47 -0700
>>> "Chris M. Thomasson" <chris.m.thomasson.1@gmail.com> gabbled:
>>>> On 10/31/2026 2:38 AM, boltar@caprica.universe wrote:
>>>>> If its multithreaded but that still happens someone probably has 
>>>>> created too
>>>>> many critical sections with too many locks.
>>>>>
>>>>
>>>> Makes no sense at all. Have you taken a look at my multex? It can 
>>>> create 
>>>
>>> WTF has your multex got to do with anything? No one was talking about 
>>> your
>>> code so don't use this discussion as some excuse to show off some 
>>> code you
>>> wrote than no one cares about.
>>
>> It uses a table of a lot of mutexes. Never deadlocks. So, you need to 
>> study up? You said "too many critical sections with too many locks."
>>
>> Well, if you don't know how to use them, don't use them. Learn first?
> 
> I have no desire to spend hours trawling through someones pet project so 
> they
> can make a point about what a L337 coder they are. HTH.
> 

The code is not all that complicated?
Re: “The end of software secrecy is almost upon
#476
Author: Chris M. Thomasson
Date: Mon, 02 Nov 2026 22:34
21 lines
2397 bytes
On 11/2/2026 7:44 AM, boltar@caprica.universe wrote:
> On Sun, 1 Nov 2026 18:03:06 -0800
> "Chris M. Thomasson" <chris.m.thomasson.1@gmail.com> gabbled:
>> On 11/1/2026 1:33 AM, boltar@caprica.universe wrote:
>>>> What do you mean? Is the GUI deadlocking?
>>>
>>> What do I mean? If you don't understand the concepts of 
>>> multithreading then
>>> maybe stay out of the discussion.
>>>
>>
>> Ummm. I think you are the one that does not know what the heck they 
>> are talking about.
> 
> Yeah, ok. I've only been using pthreads for the last 25 years but sure, 
> what
> do I know.
> 

So you know what you wrote is odd wrt using too many mutexes? You 
snipped it out.
Re: “The end of software secrecy is almost upon
#477
Author: Chris M. Thomasson
Date: Mon, 02 Nov 2026 22:54
22 lines
2505 bytes
On 11/1/2026 2:17 PM, Johann 'Myrkraverk' Oskarsson wrote:
> On 10/27/2026 3:45 AM, Michael S wrote:
>> Windows got Slim Reader/Writer Locks in Vista (2006-11) at the same
>> time as conditional variables. 5 years before C++11.
>> https://learn.microsoft.com/en-us/windows/win32/sync/slim-reader- 
>> writer--srw--locks
>> Of course WinXP remained popular for few more years, approximately up
>> until 2nd half of 2010, but that too predates publication of C++11 in
>> 2011-09.
> 
> Wasn't that work done in preparation for the C++11 standard?  I did not
> keep track of the standard's discussion, but presumably Microsoft had
> people both on the C++ standard's committee, and the Vista programming
> team.

I think so.


> 
> 
> Best wishes, and happy standards!
Re: “The end of software secrecy is almost upon
#478
Author: Chris M. Thomasson
Date: Mon, 02 Nov 2026 22:59
25 lines
2783 bytes
On 11/1/2026 1:32 AM, boltar@caprica.universe wrote:
> On Sat, 31 Oct 2026 19:56:10 +0200
> Michael S <already5chosen@yahoo.com> gabbled:
>> On Sat, 31 Oct 2026 09:47:42 -0000 (UTC)
>> boltar@caprica.universe wrote:
>>
>>> On Sat, 31 Oct 2026 05:37:23 -0000 (UTC)
>>> Lawrence =3D?iso-8859-13?q?D=3DFFOliveiro?=3D <ldo@nz.invalid> gabbled:
>>>> Here=E2=80=99s a fun little thing: if you set a socket to nonblocking and
>>>> then do the connect(2) call, it will seemingly fail with an
>>>> EINPROGRESS error. But in fact, the connection attempt gets
>>>> initiated, and you can monitor its subsequent progress from your
>>>> event loop. =20
>>> =20
>>> Far too many devs don't know about or don't understand multiplexing
>>> using select() or poll(). Admittedly these are borked on Windows as
>>> you can't use sockets with them=20
>>
>> On what planet?
> 
> On this one where you see code that is only multithreaded in order to serve
> individual sockets, not because it needs to be.
> 

Either you are trolling or don't have a clue?
Re: “The end of software secrecy is almost upon
#479
Author: Chris M. Thomasson
Date: Mon, 02 Nov 2026 23:00
18 lines
2468 bytes
On 11/2/2026 7:43 AM, boltar@caprica.universe wrote:
> On Sun, 1 Nov 2026 21:59:41 +0200
> Michael S <already5chosen@yahoo.com> gabbled:
>> On Sun, 1 Nov 2026 08:32:42 -0000 (UTC)
>> boltar@caprica.universe wrote:
>>> On this one where you see code that is only multithreaded in order to
>>> serve individual sockets, not because it needs to be.
>>>
>>
>> That's because many people unable to implement state machines. Or able,
>> but don't like them.
>> It has nothing to do with availability and functionality of select/poll
>> on Windows.
> 
> Last time I had the misfortune to use win32 it couldn't multiplex on sockets.
> 

Ever use Nt say 4.0? IOCP?
Re: “The end of software secrecy is almost upon
#480
Author: Chris M. Thomasson
Date: Mon, 02 Nov 2026 23:02
44 lines
3703 bytes
On 11/2/2026 1:46 PM, Michael S wrote:
> On Mon, 2 Nov 2026 15:43:42 -0000 (UTC)
> boltar@caprica.universe wrote:
> 
>> On Sun, 1 Nov 2026 21:59:41 +0200
>> Michael S <already5chosen@yahoo.com> gabbled:
>>> On Sun, 1 Nov 2026 08:32:42 -0000 (UTC)
>>> boltar@caprica.universe wrote:
>>>> On this one where you see code that is only multithreaded in order
>>>> to serve individual sockets, not because it needs to be.
>>>>    
>>>
>>> That's because many people unable to implement state machines. Or
>>> able, but don't like them.
>>> It has nothing to do with availability and functionality of
>>> select/poll on Windows.
>>
>> Last time I had the misfortune to use win32 it couldn't multiplex on
>> sockets.
>>
> 
> That's nonsense. That part of Winsock2 API did not change since 1993.
> That is, in early 2000s they added poll() (WAASAPoll), but select() is
>   the same BSD select() from the very beginning, just a little easier to
> use than original, because nfds is DNC.
> Now, if you woulds say that on Winsock2 select() can't multiplex
> waiting for socket I/O with waiting for other sorts of I/O (files and
> pipes) then your statement would make more sense*.
> But it does not sound like you really want to make sense. You strongly
> prefer mindless bashing.
> 
> ----
> * - Although,
> 1) of course, there (in Win32) exist not too complicated alternative
> methods to achieve such multiplexing as well. Just not via select().
> 2) today, with nearly all file I/O deeply cached, multiplexing waiting
> for file I/O with waiting for sockets is a bad idea. OTOH, Multiplexing
> sockets with pipes could still make sense, infrequently.
> 
> 

Well, before IOCP we would need to use WaitForMultipleObjects, iirc. But 
there was a trick we had to use. We had to alter the indices! Shift 
them, or even randomize them.
Re: “The end of software secrecy is almost upon
#481
Author: Chris M. Thomasson
Date: Mon, 02 Nov 2026 23:03
42 lines
3564 bytes
On 11/2/2026 1:46 PM, Michael S wrote:
> On Mon, 2 Nov 2026 15:43:42 -0000 (UTC)
> boltar@caprica.universe wrote:
> 
>> On Sun, 1 Nov 2026 21:59:41 +0200
>> Michael S <already5chosen@yahoo.com> gabbled:
>>> On Sun, 1 Nov 2026 08:32:42 -0000 (UTC)
>>> boltar@caprica.universe wrote:
>>>> On this one where you see code that is only multithreaded in order
>>>> to serve individual sockets, not because it needs to be.
>>>>    
>>>
>>> That's because many people unable to implement state machines. Or
>>> able, but don't like them.
>>> It has nothing to do with availability and functionality of
>>> select/poll on Windows.
>>
>> Last time I had the misfortune to use win32 it couldn't multiplex on
>> sockets.
>>
> 
> That's nonsense. That part of Winsock2 API did not change since 1993.
> That is, in early 2000s they added poll() (WAASAPoll), but select() is
>   the same BSD select() from the very beginning, just a little easier to
> use than original, because nfds is DNC.
> Now, if you woulds say that on Winsock2 select() can't multiplex
> waiting for socket I/O with waiting for other sorts of I/O (files and
> pipes) then your statement would make more sense*.
> But it does not sound like you really want to make sense. You strongly
> prefer mindless bashing.
> 
> ----
> * - Although,
> 1) of course, there (in Win32) exist not too complicated alternative
> methods to achieve such multiplexing as well. Just not via select().
> 2) today, with nearly all file I/O deeply cached, multiplexing waiting
> for file I/O with waiting for sockets is a bad idea. OTOH, Multiplexing
> sockets with pipes could still make sense, infrequently.
> 
> 

Have you ever used IOCP on windows?
Re: “The end of software secrecy is almost upon us”
#482
Author: Chris M. Thomasson
Date: Mon, 02 Nov 2026 23:06
49 lines
4133 bytes
On 11/1/2026 11:40 AM, Charlie Gibbs wrote:
> On 2026-10-31, Lawrence D’Oliveiro <ldo@nz.invalid> wrote:
> 
>> On Sat, 31 Oct 2026 04:14:05 GMT, Charlie Gibbs wrote:
>>
>>> I've always tried to avoid the complexities of threading; in most
>>> cases I can get away with round-robin scheduling. But I found that
>>> some servers are very slow to respond, and even when trying to do a
>>> non-blocking setup of a TCP/IP connection, the connect() API would
>>> unavoidably block. I had to spin that part off into its own thread
>>> to keep the rest of the program (including other connections) from
>>> hanging.
>>
>> Here’s a fun little thing: if you set a socket to nonblocking and then
>> do the connect(2) call, it will seemingly fail with an EINPROGRESS
>> error. But in fact, the connection attempt gets initiated, and you can
>> monitor its subsequent progress from your event loop.
>>
>>  From the ERRORS section of <https://manpages.debian.org/connect(2)>:
>>
>>      EINPROGRESS
>>          The socket is nonblocking and the connection cannot be
>>          completed immediately. (UNIX domain sockets failed with EAGAIN
>>          instead.) It is possible to select(2) or poll(2) for
>>          completion by selecting the socket for writing. After
>>          select(2) indicates writability, use getsockopt(2) to read the
>>          SO_ERROR option at level SOL_SOCKET to determine whether
>>          connect() completed successfully (SO_ERROR is zero) or
>>          unsuccessfully (SO_ERROR is one of the usual error codes
>>          listed here, explaining the reason for the failure).
>>
>> I’m not sure about doing this sort of thing from other libraries that
>> wrap socket connections (e.g. SSL/TLS libraries); for these, the usual
>> fallback is still available, as you say, by turning a blocking call
>> into a nonblocking one by pushing it off to a separate thread.
> 
> I was already setting the socket to non-blocking before calling
> connect() - and yet there were times when the API blocked anyway.
> I never did figure out why, and we had a customer getting impatient,
> so I just spun off another thread and moved on to other things.
> 

connect? On Windows we use ConnectEx.

https://learn.microsoft.com/en-us/windows/win32/api/mswsock/nc-mswsock-lpfn_connectex

For accept, AcceptEx:

https://learn.microsoft.com/en-us/windows/win32/api/mswsock/nf-mswsock-acceptex
Re: “The end of software secrecy is almost upon us”
#487
Author: Charlie Gibbs
Date: Tue, 03 Nov 2026 02:42
31 lines
2437 bytes
On 2026-11-02, Chris M. Thomasson <chris.m.thomasson.1@gmail.com> wrote:

> On 11/1/2026 11:40 AM, Charlie Gibbs wrote:
>
>> I was already setting the socket to non-blocking before calling
>> connect() - and yet there were times when the API blocked anyway.
>> I never did figure out why, and we had a customer getting impatient,
>> so I just spun off another thread and moved on to other things.
>
> connect? On Windows we use ConnectEx.
>
> https://learn.microsoft.com/en-us/windows/win32/api/mswsock/nc-mswsock-lpfn_connectex
>
> For accept, AcceptEx:
>
> https://learn.microsoft.com/en-us/windows/win32/api/mswsock/nf-mswsock-acceptex

Ah, but then we come to that critical clause:

Note  This function is a Microsoft-specific extension to the Windows Sockets specification.

Yes, one more attempt to close the open socket model with
Microsoft proprietary extensions.  My code has to run under
Linux as well.  Opening the socket in a separate thread is
guaranteed to avoid hangs, regardless of operating system.

-- 
/~\  Charlie Gibbs                  |  In this world there are
\ /  <cgibbs@kltpzyxm.invalid>      |  two kinds of people:
 X   I'm really at ac.dekanfrus     |  1. Those who can extrapolate
/ \  if you read it the right way.  |  from incomplete data.
Re: “The end of software secrecy is almost upon us”
#496
Author: Chris M. Thomasson
Date: Tue, 03 Nov 2026 05:09
30 lines
2973 bytes
On 11/2/2026 6:42 PM, Charlie Gibbs wrote:
> On 2026-11-02, Chris M. Thomasson <chris.m.thomasson.1@gmail.com> wrote:
> 
>> On 11/1/2026 11:40 AM, Charlie Gibbs wrote:
>>
>>> I was already setting the socket to non-blocking before calling
>>> connect() - and yet there were times when the API blocked anyway.
>>> I never did figure out why, and we had a customer getting impatient,
>>> so I just spun off another thread and moved on to other things.
>>
>> connect? On Windows we use ConnectEx.
>>
>> https://learn.microsoft.com/en-us/windows/win32/api/mswsock/nc-mswsock-lpfn_connectex
>>
>> For accept, AcceptEx:
>>
>> https://learn.microsoft.com/en-us/windows/win32/api/mswsock/nf-mswsock-acceptex
> 
> Ah, but then we come to that critical clause:
> 
> Note  This function is a Microsoft-specific extension to the Windows Sockets specification.
> 
> Yes, one more attempt to close the open socket model with
> Microsoft proprietary extensions.  My code has to run under
> Linux as well.  Opening the socket in a separate thread is
> guaranteed to avoid hangs, regardless of operating system.
> 

Well, on Linux we have aio or io_uring. The latter is more low level 
than the Windows IOCP.
Re: “The end of software secrecy is almost upon us”
#495
Author: Chris M. Thomasson
Date: Tue, 03 Nov 2026 05:11
30 lines
3004 bytes
On 11/2/2026 6:42 PM, Charlie Gibbs wrote:
> On 2026-11-02, Chris M. Thomasson <chris.m.thomasson.1@gmail.com> wrote:
> 
>> On 11/1/2026 11:40 AM, Charlie Gibbs wrote:
>>
>>> I was already setting the socket to non-blocking before calling
>>> connect() - and yet there were times when the API blocked anyway.
>>> I never did figure out why, and we had a customer getting impatient,
>>> so I just spun off another thread and moved on to other things.
>>
>> connect? On Windows we use ConnectEx.
>>
>> https://learn.microsoft.com/en-us/windows/win32/api/mswsock/nc-mswsock-lpfn_connectex
>>
>> For accept, AcceptEx:
>>
>> https://learn.microsoft.com/en-us/windows/win32/api/mswsock/nf-mswsock-acceptex
> 
> Ah, but then we come to that critical clause:
> 
> Note  This function is a Microsoft-specific extension to the Windows Sockets specification.
> 
> Yes, one more attempt to close the open socket model with
> Microsoft proprietary extensions.  My code has to run under
> Linux as well.  Opening the socket in a separate thread is
> guaranteed to avoid hangs, regardless of operating system.
> 

These are for high performance systems. But, they solve a lot of 
problems. Say your program starts to gain a lot of users?
Re: “The end of software secrecy is almost upon us”
#499
Author: Charlie Gibbs
Date: Tue, 03 Nov 2026 07:15
43 lines
3147 bytes
On 2026-11-03, Chris M. Thomasson <chris.m.thomasson.1@gmail.com> wrote:

> On 11/2/2026 6:42 PM, Charlie Gibbs wrote:
>
>> On 2026-11-02, Chris M. Thomasson <chris.m.thomasson.1@gmail.com> wrote:
>> 
>>> On 11/1/2026 11:40 AM, Charlie Gibbs wrote:
>>>
>>>> I was already setting the socket to non-blocking before calling
>>>> connect() - and yet there were times when the API blocked anyway.
>>>> I never did figure out why, and we had a customer getting impatient,
>>>> so I just spun off another thread and moved on to other things.
>>>
>>> connect? On Windows we use ConnectEx.
>>>
>>> https://learn.microsoft.com/en-us/windows/win32/api/mswsock/nc-mswsock-lpfn_connectex
>>>
>>> For accept, AcceptEx:
>>>
>>> https://learn.microsoft.com/en-us/windows/win32/api/mswsock/nf-mswsock-acceptex
>> 
>> Ah, but then we come to that critical clause:
>> 
>> Note  This function is a Microsoft-specific extension to the Windows Sockets specification.
>> 
>> Yes, one more attempt to close the open socket model with
>> Microsoft proprietary extensions.  My code has to run under
>> Linux as well.  Opening the socket in a separate thread is
>> guaranteed to avoid hangs, regardless of operating system.
>
> These are for high performance systems. But, they solve a lot of 
> problems. Say your program starts to gain a lot of users?

In our environment that should never happen.  The only legitimate
users are those that are other elements of our software package.
Any others (or too many seemingly legitimate users) get a rejection
message, followed by disconnection.

-- 
/~\  Charlie Gibbs                  |  In this world there are
\ /  <cgibbs@kltpzyxm.invalid>      |  two kinds of people:
 X   I'm really at ac.dekanfrus     |  1. Those who can extrapolate
/ \  if you read it the right way.  |  from incomplete data.
Page 10 of 11 • 533 total messages
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads