tfb <tfb@work.it.out> writes:
Lawrence D?Oliveiro <ldo@nz.invalid> wrote:
Have they come up with any excuses as to why OS kernels don?t use
garbage collection?
Here is why: they're written either in C or in languages which must be
memory & call compatible with C. It is essentially impossible to implement >> a garbage collector in C. There is a famous counterexample: the Boehm GC. >> It would probably be possible to use that in an OS kernel written in C but >> I expect it would be very hard to retrofit it to an existing kernel. It's >> also (because C) not a copying collector.
Introduction to GC:
The GC package contains the Boehm-Demers-Weiser conservative garbage collector, which can be used as a garbage collecting replacement for the
C malloc function or C++ new operator. It allows you to allocate memory basically as you normally would, without explicitly deallocating memory
that is no longer useful. The collector automatically recycles memory
when it determines that it can no longer be otherwise accessed. The
collector is also used by a number of programming language
implementations that either use C as intermediate code, want to
facilitate easier interoperation with C libraries, or just prefer the
simple collector interface. Alternatively, the garbage collector may be
used as a leak detector for C or C++ programs, though that is not its
primary goal.
this is what guile uses and GCC can use.
C was a deeply appropriate language to write an OS for the PDP-11. At
every point since then there's been the choice of continuing to use C and
either a port of that OS or an implementation of a compatible OS or of
implementing a new, incompatible, OS. For at least 30 years there's really >> only been one answer to that question. And so, today, by a series of
perfectly reasonable choices, we've ended up with a vast OS implemented in >> a language which is now deeply inappropriate.
let me guess assembler is not your programming language of choice.
henceforth C.
Sadly we've also ended up with programmers who think the machines they
program for are giant PDP-11s, and as a result machines which spend a huge >> amount of effort pretending to be giant PDP-11s.
It's all a tragedy.
Sadly we've also ended up with programmers who think the machines
they program for are giant PDP-11s, and as a result machines which
spend a huge amount of effort pretending to be giant PDP-11s.
It's all a tragedy.
The tragedy is not using Common Lisp for everything.
Johann 'Myrkraverk' Oskarsson <johann@myrkraverk.invalid> writes:
[...]
Sadly we've also ended up with programmers who think the machines
they program for are giant PDP-11s, and as a result machines which
spend a huge amount of effort pretending to be giant PDP-11s.
It's all a tragedy.
The tragedy is not using Common Lisp for everything.
I loved this bit and I have a feeling you're correct. My little
experience with Common Lisp is that it allows me to write the equivalent
fast code that I'd write in C, where speed matters. In other words, I
seem to gain nothing (other than more work) by writing typical
applications in C.
Johann 'Myrkraverk' Oskarsson <johann@myrkraverk.invalid> writes:
The tragedy is not using Common Lisp for everything.
I loved this bit and I have a feeling you're correct.
On Fri, 31 Jul 2026 12:21:51 -0300, Anton Antimo wrote:
Johann 'Myrkraverk' Oskarsson <johann@myrkraverk.invalid> writes:
The tragedy is not using Common Lisp for everything.
I loved this bit and I have a feeling you're correct.
What a dumb idea. Common Lisp is full of legacy baggage to cater to proprietary pre-POSIX OSes which are now extinct.
Python can offer basic facilities like these in its standard library: <https://docs.python.org/3/library/subprocess.html> <https://docs.python.org/3/library/select.html>; where are the Common
Lisp equivalents?
Johann 'Myrkraverk' Oskarsson <johann@myrkraverk.invalid> writes:
[...]
Sadly we've also ended up with programmers who think the machines
they program for are giant PDP-11s, and as a result machines which
spend a huge amount of effort pretending to be giant PDP-11s.
It's all a tragedy.
The tragedy is not using Common Lisp for everything.
I loved this bit and I have a feeling you're correct. My little
experience with Common Lisp is that it allows me to write the equivalent
fast code that I'd write in C, where speed matters. In other words, I
seem to gain nothing (other than more work) by writing typical
applications in C.
Anton Antimo <anton@safunu.org> writes:
Johann 'Myrkraverk' Oskarsson <johann@myrkraverk.invalid> writes:
[...]
Sadly we've also ended up with programmers who think the machines
they program for are giant PDP-11s, and as a result machines which
spend a huge amount of effort pretending to be giant PDP-11s.
It's all a tragedy.
The tragedy is not using Common Lisp for everything.
I loved this bit and I have a feeling you're correct. My little
experience with Common Lisp is that it allows me to write the equivalent
fast code that I'd write in C, where speed matters. In other words, I
seem to gain nothing (other than more work) by writing typical
applications in C.
Wait until you read LISP:Lisp In Small Pieces. it's published in france.
PYTHON IS THE ONLY TRUE SOLUTION PYTHON HAS BEEN THE BEST THE ONLY
LANGUAGE FOR CENTURIES REFERENCE COUNTING WILL NOT CORRUPT YOUR PRECIOUS BODILY FLUIDS GARBAGE COLLECTION IS THE WORK OF SATAN PYTHON IS THE
STANDARD REFERENCE COUNTING MAKES THE BIRDS SING AND THE GRASS GREEN
GARBAGE COLLECTORS ARE CONTINUALLY TRAWLING THROUGH DEAD DATA LISP IS OBSOLETE EVIL NOBODY USES LISP USE PYTHON LIKE ME USE PYTHON REFERENCE
PYTHON LISP SLOW FAST PYTHON BEST YES PYTHON GARBAGE BAD PYTHON OBSOLETE
It is 2042.
Fade.
Well, that was only a leg-pull. Here is another paragraph of that
slop, to provide some balance.
Enterprise backend ? Java or C#
On Sat, 1 Aug 2026 07:49:41 -0400, Paul wrote:
Well, that was only a leg-pull. Here is another paragraph of that
slop, to provide some balance.
Enterprise backend ? Java or C#
This <https://www.infoworld.com/article/4091447/spring-ai-tutorial-get-started-with-spring-ai.html>
is supposed to be an example of how you do AI programming in Java.
Is anybody still mystified why normal people would rather use Python
instead?
| Sysop: | Jacob Catayoc |
|---|---|
| Location: | Pasay City, Metro Manila, Philippines |
| Users: | 4 |
| Nodes: | 4 (0 / 4) |
| Uptime: | 496008:19:58 |
| Calls: | 178 |
| Files: | 605 |
| D/L today: |
22 files (18,741K bytes) |
| Messages: | 70,124 |