You can call me old fashioned, but I still believe there's never been a
more elegant computer language than the original K&R C. You can keep the >rest; I'll stick with that.
You can call me old fashioned, but I still believe there's never been a
more elegant computer language than the original K&R C. You can keep the rest; I'll stick with that.
You can call me old fashioned, but I still believe there's never been a
more elegant computer language than the original K&R C. You can keep the rest; I'll stick with that.
My 'best' language is ALGOL. The modern equivalent is PHP which, with a
bit of improvement, could be made almost as good as ALGOL
On 11/1/2024 11:25 AM, Liz Tuddenham wrote:
I use Limbo as a scripting language as it has the familiarity
of C without the pointer issue (safety for non-programmers),
adds support for concurrency, GC and *lists* (annoying to
have to reinvent for other languages... esp those that don't
support pointers!)
What about C++?
On 11/1/24 19:04, Cursitor Doom wrote:
You can call me old fashioned, but I still believe there's never been a
more elegant computer language than the original K&R C. You can keep
the rest; I'll stick with that.
Agreed! All the hand-holding of later versions just get in the way.
Jeroen Belleman
On 11/1/2024 3:50 PM, Nick Hayward wrote:
What about C++?
C++ is an order of magnitude more complex than C. Even a
casual C programmer can imagine what his code will look
like after compilation. I.e., can imagine exactly what the
CPU will be doing (ignoring the fact that the compiler will
often out-think the coder in terms of time/space efficiency).
On Fri, 1 Nov 2024 19:57:21 +0100, Jeroen Belleman wrote:
On 11/1/24 19:04, Cursitor Doom wrote:
You can call me old fashioned, but I still believe there's never been a
more elegant computer language than the original K&R C. You can keep
the rest; I'll stick with that.
Agreed! All the hand-holding of later versions just get in the way.
Jeroen Belleman
What about C++?
On Fri, 1 Nov 2024 16:03:00 -0700, Don Y <blockedofcourse@foo.invalid>
wrote:
On 11/1/2024 3:50 PM, Nick Hayward wrote:
What about C++?
C++ is an order of magnitude more complex than C. Even a
casual C programmer can imagine what his code will look
like after compilation. I.e., can imagine exactly what the
CPU will be doing (ignoring the fact that the compiler will
often out-think the coder in terms of time/space efficiency).
We want to time the execution of a control algorithm. One way to time
it is to run it in a loop maybe 100K times and measure that with a
stopwatch. But a very smart compiler might run it once, notice that
nothing has changed, and skip the reruns.
It's best to bang a port pin and measure it with an oscilloscope.
We've had FPGA compilers do that sort of thing, optimize out
intentional delays. One fix is to XOR signals with a level from a pin
that *we* know is always low.
C++ is an order of magnitude more complex than C. Even a
casual C programmer can imagine what his code will look
like after compilation. I.e., can imagine exactly what the
CPU will be doing (ignoring the fact that the compiler will
often out-think the coder in terms of time/space efficiency).
I think that the complexity ratio between C and C++ well exceeds ten.
It took a while for compilers to handle mutual-exclusion
functions/commands correctly - in most architectures, one must block interrupts for this to work correctly. It's a long story, and is a
good reason to work in assembly for that.
You can call me old fashioned, but I still believe there's never been a
more elegant computer language than the original K&R C. You can keep the rest; I'll stick with that.
On Fri, 01 Nov 2024 16:54:44 -0700, john larkin <jl@glen--canyon.com>
wrote:
On Fri, 1 Nov 2024 16:03:00 -0700, Don Y <blockedofcourse@foo.invalid> >>wrote:
On 11/1/2024 3:50 PM, Nick Hayward wrote:
What about C++?
C++ is an order of magnitude more complex than C. Even a
casual C programmer can imagine what his code will look
like after compilation. I.e., can imagine exactly what the
CPU will be doing (ignoring the fact that the compiler will
often out-think the coder in terms of time/space efficiency).
I think that the complexity ratio between C and C++ well exceeds ten.
Have kernel debugger, will travel. Well, now days it's had kernel
debugger, would travel.
We want to time the execution of a control algorithm. One way to time
it is to run it in a loop maybe 100K times and measure that with a >>stopwatch. But a very smart compiler might run it once, notice that
nothing has changed, and skip the reruns.
Yeah. In C, one can declare something to be "volatile", which tells
the optimizer that it is not alone, that something invisible may
change it.
There were some compilers this treated volatile as friendly advice,
versus royal command, but those compilers were soon stamped out. But
they do pop up from time to time in new products.
It took a while for compilers to handle mutual-exclusion
functions/commands correctly - in most architectures, one must block >interrupts for this to work correctly. It's a long story, and is a
good reason to work in assembly for that.
It's best to bang a port pin and measure it with an oscilloscope.
Yes.
We've had FPGA compilers do that sort of thing, optimize out
intentional delays. One fix is to XOR signals with a level from a pin
that *we* know is always low.
One would assume that there is a FPGA equivalent to volatile.
Joe Gwinn
"Cursitor Doom" <cd999666@notformail.com> wrote in message news:vg3575$3bio0$1@dont-email.me...
You can call me old fashioned, but I still believe there's never been a
more elegant computer language than the original K&R C. You can keep the
rest; I'll stick with that.
Having just got back from a vacation I thought I'd give my input to this before looking into whether it's worthwhile getting back
into sinewave oscillators.
You can call me old fashioned, but I still believe there's never been a
more elegant computer language than the original K&R C. You can keep the >rest; I'll stick with that.
On Fri, 1 Nov 2024 19:57:21 +0100, Jeroen Belleman wrote:
On 11/1/24 19:04, Cursitor Doom wrote:
You can call me old fashioned, but I still believe there's never been a
more elegant computer language than the original K&R C. You can keep
the rest; I'll stick with that.
Agreed! All the hand-holding of later versions just get in the way.
Jeroen Belleman
What about C++?
On a sunny day (Fri, 1 Nov 2024 22:50:41 -0000 (UTC)) it happened Nick Hayward ><nhayward8990@protonmail.com> wrote in <vg3m01$3e15j$2@dont-email.me>:
On Fri, 1 Nov 2024 19:57:21 +0100, Jeroen Belleman wrote:
On 11/1/24 19:04, Cursitor Doom wrote:
You can call me old fashioned, but I still believe there's never been a >>>> more elegant computer language than the original K&R C. You can keep
the rest; I'll stick with that.
Agreed! All the hand-holding of later versions just get in the way.
Jeroen Belleman
What about C++?
It is a crime against humanity!!!
You can call me old fashioned, but I still believe there's never been a
more elegant computer language than the original K&R C. You can keep the rest; I'll stick with that.
Java, python, ruby, c#, rust and all other the modern shit can just [go away] as far as I'm concerned - they're all non-solutions to the wrong problems.
On a sunny day (Fri, 1 Nov 2024 22:50:41 -0000 (UTC)) it happened Nick Hayward ><nhayward8990@protonmail.com> wrote in <vg3m01$3e15j$2@dont-email.me>:
On Fri, 1 Nov 2024 19:57:21 +0100, Jeroen Belleman wrote:
On 11/1/24 19:04, Cursitor Doom wrote:
You can call me old fashioned, but I still believe there's never been a >>>> more elegant computer language than the original K&R C. You can keep
the rest; I'll stick with that.
Agreed! All the hand-holding of later versions just get in the way.
Jeroen Belleman
What about C++?
It is a crime against humanity!!!
On a sunny day (Fri, 1 Nov 2024 18:04:21 -0000 (UTC)) it happened Cursitor >Doom <cd999666@notformail.com> wrote in <vg3575$3bio0$1@dont-email.me>:
You can call me old fashioned, but I still believe there's never been a >>more elegant computer language than the original K&R C. You can keep the >>rest; I'll stick with that.
Agree, I use C only and asm when needed.
I started with binary interfacing hardware...
Nothing of all of that was hard.
BASIC was fun too, but very limiting, slow interpreted language.
On a sunny day (Fri, 1 Nov 2024 18:04:21 -0000 (UTC)) it happened Cursitor >Doom <cd999666@notformail.com> wrote in <vg3575$3bio0$1@dont-email.me>:
You can call me old fashioned, but I still believe there's never been a >>more elegant computer language than the original K&R C. You can keep the >>rest; I'll stick with that.
Agree, I use C only and asm when needed.
I started with binary interfacing hardware...
Nothing of all of that was hard.
BASIC was fun too, but very limiting, slow interpreted language.
but fun for simple math...
No floating point shit when doing asm .
most human relevant things can be done in 32 bit integer.
My first computer was a Sinclair ZX80
It ran BASIC, a good BASIC.
Then I converted it to a CP/M machine, running the C80 C compiler.
https://panteltje.nl/panteltje/z80/system14/index.html
Added all sortd of I/O:
https://panteltje.nl/panteltje/z80/system14/diagrams/index.html
At work I was using the first IBM PCs..
designing ISA cards with all sort of things on it, like vector stuff,
process control, what not.
My CP/M running Z81 (by then) was faster than the IBM due to the RAMDISK I build.
Still using C now at home and Micochip PIC asm...
No bloat today
On Sat, 02 Nov 2024 07:42:19 GMT, Jan Panteltje <alien@comet.invalid>
wrote:
On a sunny day (Fri, 1 Nov 2024 18:04:21 -0000 (UTC)) it happened Cursitor >>Doom <cd999666@notformail.com> wrote in <vg3575$3bio0$1@dont-email.me>:
You can call me old fashioned, but I still believe there's never been a >>>more elegant computer language than the original K&R C. You can keep the >>>rest; I'll stick with that.
Agree, I use C only and asm when needed.
I started with binary interfacing hardware...
Nothing of all of that was hard.
BASIC was fun too, but very limiting, slow interpreted language.
PowerBasic is a fabulous compiler. We did one contest, an array math
signal processing thing. I wrote it in PB, another guy in c. Mine ran
4 times as fast. He played with the code and compiler optimiztions
for a couple of days and got it up to about 60% as fast as my PB
version.
I used the obvious FOR loop with subscripts to scan the array. He used >pointers.
c is really a PDP-11 assembler. In the early days of PDP-11
programming, everybody was fascinated with using pointers to wander up
and down the world, and with pushing stuff onto the stack. It shows in
c now.
On Sat, 02 Nov 2024 07:42:19 GMT, Jan Panteltje <alien@comet.invalid>
wrote:
On a sunny day (Fri, 1 Nov 2024 18:04:21 -0000 (UTC)) it happened Cursitor >>Doom <cd999666@notformail.com> wrote in <vg3575$3bio0$1@dont-email.me>:
You can call me old fashioned, but I still believe there's never been a >>>more elegant computer language than the original K&R C. You can keep the >>>rest; I'll stick with that.
Agree, I use C only and asm when needed.
I started with binary interfacing hardware...
Nothing of all of that was hard.
BASIC was fun too, but very limiting, slow interpreted language.
but fun for simple math...
No floating point shit when doing asm .
most human relevant things can be done in 32 bit integer.
My first computer was a Sinclair ZX80
It ran BASIC, a good BASIC.
Then I converted it to a CP/M machine, running the C80 C compiler.
https://panteltje.nl/panteltje/z80/system14/index.html
Added all sortd of I/O:
https://panteltje.nl/panteltje/z80/system14/diagrams/index.html
At work I was using the first IBM PCs..
designing ISA cards with all sort of things on it, like vector stuff, >>process control, what not.
My CP/M running Z81 (by then) was faster than the IBM due to the RAMDISK I build.
Still using C now at home and Micochip PIC asm...
No bloat today
About 30 years ago, I bought a C compiler from Microsoft. It came in a >foot-cube box with thumping great manuals and umpteen discs. What a
pile of shit that turned out to be. It was *riddled* with bugs and the >Microsoft 'support' people were as dense as pig shit and didn't seem
to know a thing about the product. But that didn't stop them keeping
me tied up on the line racking up charges while they came up with ever
more ingenious tactics of trying to cover up how vacuous they really
were on the subject. I subsequently migrated to Borland and life got a
hell of a lot better, thankfully.
On Sat, 02 Nov 2024 07:44:28 GMT, Jan Panteltje <alien@comet.invalid>
wrote:
On a sunny day (Fri, 1 Nov 2024 22:50:41 -0000 (UTC)) it happened Nick Hayward
<nhayward8990@protonmail.com> wrote in <vg3m01$3e15j$2@dont-email.me>:
On Fri, 1 Nov 2024 19:57:21 +0100, Jeroen Belleman wrote:
On 11/1/24 19:04, Cursitor Doom wrote:
You can call me old fashioned, but I still believe there's never been a >>>>> more elegant computer language than the original K&R C. You can keep >>>>> the rest; I'll stick with that.
Agreed! All the hand-holding of later versions just get in the way.
Jeroen Belleman
What about C++?
It is a crime against humanity!!!
Most computing languages originate from programmers wanting to play
with programming because solving real-world problems - the things we
pay them to do - isn't interesting.
In academia, they need toys and things to argue about so they keep
inventing languages. It's like economists who can't say "let the
market work, and econ 101 is all anybody needs."
I sat in on one cs class where new languages weren't enough fun, so
the prof lectured about compiler compilers, a whole new layer of
abstraction.
On Sat, 02 Nov 2024 07:44:28 GMT, Jan Panteltje <alien@comet.invalid>
wrote:
On a sunny day (Fri, 1 Nov 2024 22:50:41 -0000 (UTC)) it happened Nick Hayward
<nhayward8990@protonmail.com> wrote in <vg3m01$3e15j$2@dont-email.me>:
On Fri, 1 Nov 2024 19:57:21 +0100, Jeroen Belleman wrote:
On 11/1/24 19:04, Cursitor Doom wrote:
You can call me old fashioned, but I still believe there's never been a >>>>> more elegant computer language than the original K&R C. You can keep >>>>> the rest; I'll stick with that.
Agreed! All the hand-holding of later versions just get in the way.
Jeroen Belleman
What about C++?
It is a crime against humanity!!!
Most computing languages originate from programmers wanting to play
with programming because solving real-world problems - the things we
pay them to do - isn't interesting.
In academia, they need toys and things to argue about so they keep
inventing languages. It's like economists who can't say "let the
market work, and econ 101 is all anybody needs."
I sat in on one cs class where new languages weren't enough fun, so
the prof lectured about compiler compilers, a whole new layer of
abstraction.
On a sunny day (Sat, 02 Nov 2024 07:55:18 -0700) it happened john larkin ><JL@gct.com> wrote in <dnecijt2s9um4l6a4qnq3j0ekto8fl955d@4ax.com>:
On Sat, 02 Nov 2024 07:42:19 GMT, Jan Panteltje <alien@comet.invalid> >>wrote:
On a sunny day (Fri, 1 Nov 2024 18:04:21 -0000 (UTC)) it happened Cursitor >>>Doom <cd999666@notformail.com> wrote in <vg3575$3bio0$1@dont-email.me>:
You can call me old fashioned, but I still believe there's never been a >>>>more elegant computer language than the original K&R C. You can keep the >>>>rest; I'll stick with that.
Agree, I use C only and asm when needed.
I started with binary interfacing hardware...
Nothing of all of that was hard.
BASIC was fun too, but very limiting, slow interpreted language.
PowerBasic is a fabulous compiler. We did one contest, an array math
signal processing thing. I wrote it in PB, another guy in c. Mine ran
4 times as fast. He played with the code and compiler optimiztions
for a couple of days and got it up to about 60% as fast as my PB
version.
I used the obvious FOR loop with subscripts to scan the array. He used >>pointers.
c is really a PDP-11 assembler. In the early days of PDP-11
programming, everybody was fascinated with using pointers to wander up
and down the world, and with pushing stuff onto the stack. It shows in
c now.
I use for example C on my PCs and the Raspberry Pis I have.
C is yery portable, libraries and open source applications everywhere.
gcc is a nice compiler that supports many architectures.
Stuff I wrote for the PC in C comp[iles and runs on the Raspberries...
This Usenet newsreader I use now I wrote in the late nineties when moving to Linux
as there was no Free Agent for Linux...
Still using it, now posting from a Pi4 8 GB.
It uses linked lists, I have a database of Usenet postings going back to these days.
https://panteltje.nl/panteltje/newsflex/index.html
There are some compatibility issues, but that is because the graphics library I use
had some changes, but can work around it.
More C code:
https://panteltje.nl/panteltje/newsflex/download.html
There is a simple 8052 assembler written in C on that webpage too.
And a z80 dissasembler .
https://panteltje.nl/panteltje/z80/index.html
etc etc
My website is basic html.
On Sat, 2 Nov 2024 12:00:36 -0400, "Edward Rawde"
<invalid@invalid.invalid> wrote:
"john larkin" <JL@gct.com> wrote in message news:p5ecij1jf5a4in5mnmelkdfrovelr0esko@4ax.com...
On Sat, 02 Nov 2024 07:44:28 GMT, Jan Panteltje <alien@comet.invalid>
wrote:
On a sunny day (Fri, 1 Nov 2024 22:50:41 -0000 (UTC)) it happened Nick Hayward
<nhayward8990@protonmail.com> wrote in <vg3m01$3e15j$2@dont-email.me>:
On Fri, 1 Nov 2024 19:57:21 +0100, Jeroen Belleman wrote:
On 11/1/24 19:04, Cursitor Doom wrote:
You can call me old fashioned, but I still believe there's never been a >>>>>>> more elegant computer language than the original K&R C. You can keep >>>>>>> the rest; I'll stick with that.
Agreed! All the hand-holding of later versions just get in the way. >>>>>>
Jeroen Belleman
What about C++?
It is a crime against humanity!!!
Most computing languages originate from programmers wanting to play
with programming because solving real-world problems - the things we
pay them to do - isn't interesting.
In academia, they need toys and things to argue about so they keep
inventing languages. It's like economists who can't say "let the
market work, and econ 101 is all anybody needs."
I sat in on one cs class where new languages weren't enough fun, so
the prof lectured about compiler compilers, a whole new layer of
abstraction.
Ah lex and yacc.
Well if you're going to use any kind of compiler/interpreter, someone has to write it.
Does LTSpice originate from designers wanting to play with simulation because putting real parts together isn't interesting?
It's slow and expensive to make ICs, so it makes sense to simulate
first. The ICE in SPICE means "integrated circuit emphasis."
https://www.youtube.com/watch?v=x6TrbD7-IwU
That's brilliant, cultivating your intuition. But I disagree about
using Spice to design real products: it works.
Managers tend to like simulation because you don't have to get your hands dirty.
At least not until the design which worked fine in simulation either doesn't work at all or has some unexpected issue in reality.
I can run a sim that steps through hundreds or thousands of cases, and
run it over a weekend. A silimar set of breadboard tests might take
months of hands-on bench work.
And I was never good at nonlinear control theory. Nobody is.
I do breadboard to test parts whose models can't be trusted or when
models are unavailable, but we seldom breadboard complex circuits and
never breadboard actual products.
I know of one giant organization that defines six iterations of a
design, and uses at least that many. It takes them years to finish
anything.
On Sat, 02 Nov 2024 07:44:28 GMT, Jan Panteltje <alien@comet.invalid>
wrote:
On a sunny day (Fri, 1 Nov 2024 22:50:41 -0000 (UTC)) it happened Nick Hayward
<nhayward8990@protonmail.com> wrote in <vg3m01$3e15j$2@dont-email.me>:
On Fri, 1 Nov 2024 19:57:21 +0100, Jeroen Belleman wrote:
On 11/1/24 19:04, Cursitor Doom wrote:
You can call me old fashioned, but I still believe there's never been a >>>>> more elegant computer language than the original K&R C. You can keep >>>>> the rest; I'll stick with that.
Agreed! All the hand-holding of later versions just get in the way.
Jeroen Belleman
What about C++?
It is a crime against humanity!!!
Most computing languages originate from programmers wanting to play
with programming because solving real-world problems - the things we
pay them to do - isn't interesting.
In academia, they need toys and things to argue about so they keep
inventing languages. It's like economists who can't say "let the
market work, and econ 101 is all anybody needs."
I sat in on one cs class where new languages weren't enough fun, so
the prof lectured about compiler compilers, a whole new layer of
abstraction.
On 11/1/2024 5:05 PM, Joe Gwinn wrote:
C++ is an order of magnitude more complex than C. Even a
casual C programmer can imagine what his code will look
like after compilation. I.e., can imagine exactly what the
CPU will be doing (ignoring the fact that the compiler will
often out-think the coder in terms of time/space efficiency).
I think that the complexity ratio between C and C++ well exceeds ten.
Possibly. But, the cognitive load is roughly an order of magnitude.
If the developer can't "grok" (in the most literal sense of the word)
what's going on, what hope has he?
It took a while for compilers to handle mutual-exclusion
functions/commands correctly - in most architectures, one must block
interrupts for this to work correctly. It's a long story, and is a
good reason to work in assembly for that.
With modern processors, there are considerably more pitfalls than that.
Most "programmers" haven't a clue as to what a "barrier" is nor when
(or why!) to use them.
And, as hardware has become more featureful, the needs for talking
to the iron UNAMBIGUOUSLY are increasing, constantly. Open door
for obscure, intermittent bugs...
"john larkin" <JL@gct.com> wrote in message news:p5ecij1jf5a4in5mnmelkdfrovelr0esko@4ax.com...
On Sat, 02 Nov 2024 07:44:28 GMT, Jan Panteltje <alien@comet.invalid>
wrote:
On a sunny day (Fri, 1 Nov 2024 22:50:41 -0000 (UTC)) it happened Nick Hayward
<nhayward8990@protonmail.com> wrote in <vg3m01$3e15j$2@dont-email.me>:
On Fri, 1 Nov 2024 19:57:21 +0100, Jeroen Belleman wrote:
On 11/1/24 19:04, Cursitor Doom wrote:
You can call me old fashioned, but I still believe there's never been a >>>>>> more elegant computer language than the original K&R C. You can keep >>>>>> the rest; I'll stick with that.
Agreed! All the hand-holding of later versions just get in the way.
Jeroen Belleman
What about C++?
It is a crime against humanity!!!
Most computing languages originate from programmers wanting to play
with programming because solving real-world problems - the things we
pay them to do - isn't interesting.
In academia, they need toys and things to argue about so they keep
inventing languages. It's like economists who can't say "let the
market work, and econ 101 is all anybody needs."
I sat in on one cs class where new languages weren't enough fun, so
the prof lectured about compiler compilers, a whole new layer of
abstraction.
Ah lex and yacc.
Well if you're going to use any kind of compiler/interpreter, someone has to write it.
Does LTSpice originate from designers wanting to play with simulation because putting real parts together isn't interesting?
Managers tend to like simulation because you don't have to get your hands dirty.
At least not until the design which worked fine in simulation either doesn't work at all or has some unexpected issue in reality.
On Sat, 02 Nov 2024 07:44:28 GMT, Jan Panteltje <alien@comet.invalid>
wrote:
On a sunny day (Fri, 1 Nov 2024 22:50:41 -0000 (UTC)) it happened Nick Hayward
<nhayward8990@protonmail.com> wrote in <vg3m01$3e15j$2@dont-email.me>:
On Fri, 1 Nov 2024 19:57:21 +0100, Jeroen Belleman wrote:
On 11/1/24 19:04, Cursitor Doom wrote:
You can call me old fashioned, but I still believe there's never been a >>>>> more elegant computer language than the original K&R C. You can keep >>>>> the rest; I'll stick with that.
Agreed! All the hand-holding of later versions just get in the way.
Jeroen Belleman
What about C++?
It is a crime against humanity!!!
Most computing languages originate from programmers wanting to play
with programming because solving real-world problems - the things we
pay them to do - isn't interesting.
In academia, they need toys and things to argue about so they keep
inventing languages. It's like economists who can't say "let the
market work, and econ 101 is all anybody needs."
I sat in on one cs class where new languages weren't enough fun, so
the prof lectured about compiler compilers, a whole new layer of
abstraction.
On 2/11/2024 12:01 pm, Edward Rawde wrote:
"Cursitor Doom" <cd999666@notformail.com> wrote in message news:vg3575$3bio0$1@dont-email.me...
You can call me old fashioned, but I still believe there's never been a
more elegant computer language than the original K&R C. You can keep the >>> rest; I'll stick with that.
Having just got back from a vacation I thought I'd give my input to this before looking into whether it's worthwhile getting back
into sinewave oscillators.
John May has come up with a much better sine wave oscillator than yours.
It also has more components, and I'm not sure that all of them are strictly necessary. Getting deep enough into the design to be
sure where the harmonics are coming from is going to be difficult. I think I'm getting there, but I'm not all that motivated to
put in the rest of the
work.
One obvious point is that a FET channel isn't a perfect resistor - as the voltage across it rises above zero it starts looking
more like a constant current diode (and you can buy FET-based constant current diodes).
In theory, if you added a second harmonic component to the FET gate drive you could make it look like a resistor over a wider
range of voltage, if the phasing was close enough to right.
You've also got the point that when there's a voltage drop across the FET channel, it adds to the gate-to-channel voltage (as has
been mentioned here) and you can cancel that with an in-phase fundamental component
--
Bill Sloman, Sydney
On Fri, 1 Nov 2024 16:03:00 -0700, Don Y <blockedofcourse@foo.invalid>
wrote:
On 11/1/2024 3:50 PM, Nick Hayward wrote:
What about C++?
C++ is an order of magnitude more complex than C. Even a
casual C programmer can imagine what his code will look
like after compilation. I.e., can imagine exactly what the
CPU will be doing (ignoring the fact that the compiler will
often out-think the coder in terms of time/space efficiency).
We want to time the execution of a control algorithm. One way to time
it is to run it in a loop maybe 100K times and measure that with a
stopwatch. But a very smart compiler might run it once, notice that
nothing has changed, and skip the reruns.
It's best to bang a port pin and measure it with an oscilloscope.
We've had FPGA compilers do that sort of thing, optimize out
intentional delays. One fix is to XOR signals with a level from a pin
that *we* know is always low.
On 01/11/2024 23:54, john larkin wrote:
On Fri, 1 Nov 2024 16:03:00 -0700, Don Y <blockedofcourse@foo.invalid>
wrote:
On 11/1/2024 3:50 PM, Nick Hayward wrote:
What about C++?
C++ is an order of magnitude more complex than C. Even a
casual C programmer can imagine what his code will look
like after compilation. I.e., can imagine exactly what the
CPU will be doing (ignoring the fact that the compiler will
often out-think the coder in terms of time/space efficiency).
We want to time the execution of a control algorithm. One way to time
it is to run it in a loop maybe 100K times and measure that with a
stopwatch. But a very smart compiler might run it once, notice that
nothing has changed, and skip the reruns.
Most compilers these days are smart enough to move loop invariants
outside of a loop and then dispose of the loop. You must have side
effects in any code that you want to benchmark. Optimisers can be
*really* smart about rearranging code for maximum performance by
avoiding pipeline stalls. Only the very best humans can match them now.
Every now and then you stumble upon a construct that on certain
platforms is unreasonably fast (2x or 4x). Increasingly because it has >vectorised a loop on the fly when all go faster stripes are enabled.
Precision timers and benchmarking tools are available on most platforms
no need to use a stop watch unless you enjoy watching paint dry.
It's best to bang a port pin and measure it with an oscilloscope.
We've had FPGA compilers do that sort of thing, optimize out
intentional delays. One fix is to XOR signals with a level from a pin
that *we* know is always low.
If the compiler can see that is true you could still get caught out.
On a sunny day (Sat, 02 Nov 2024 14:46:50 +0000) it happened Cursitor Doom ><cd@notformail.com> wrote in <beecij9b6q9s1tccqch6a9hhnege4h5507@4ax.com>:
On Sat, 02 Nov 2024 07:42:19 GMT, Jan Panteltje <alien@comet.invalid> >>wrote:
On a sunny day (Fri, 1 Nov 2024 18:04:21 -0000 (UTC)) it happened Cursitor >>>Doom <cd999666@notformail.com> wrote in <vg3575$3bio0$1@dont-email.me>:
You can call me old fashioned, but I still believe there's never been a >>>>more elegant computer language than the original K&R C. You can keep the >>>>rest; I'll stick with that.
Agree, I use C only and asm when needed.
I started with binary interfacing hardware...
Nothing of all of that was hard.
BASIC was fun too, but very limiting, slow interpreted language.
but fun for simple math...
No floating point shit when doing asm .
most human relevant things can be done in 32 bit integer.
My first computer was a Sinclair ZX80
It ran BASIC, a good BASIC.
Then I converted it to a CP/M machine, running the C80 C compiler.
https://panteltje.nl/panteltje/z80/system14/index.html
Added all sortd of I/O:
https://panteltje.nl/panteltje/z80/system14/diagrams/index.html
At work I was using the first IBM PCs..
designing ISA cards with all sort of things on it, like vector stuff, >>>process control, what not.
My CP/M running Z81 (by then) was faster than the IBM due to the RAMDISK I build.
Still using C now at home and Micochip PIC asm...
No bloat today
About 30 years ago, I bought a C compiler from Microsoft. It came in a >>foot-cube box with thumping great manuals and umpteen discs. What a
pile of shit that turned out to be. It was *riddled* with bugs and the >>Microsoft 'support' people were as dense as pig shit and didn't seem
to know a thing about the product. But that didn't stop them keeping
me tied up on the line racking up charges while they came up with ever
more ingenious tactics of trying to cover up how vacuous they really
were on the subject. I subsequently migrated to Borland and life got a
hell of a lot better, thankfully.
C/80 (for Z80) was a nice C compiler
In 1998 I bought a computer magazine at the train station and it came with a CD with SLS Linux
That distro had, among other things, gcc as C compiler.
Moved to Linux right away and been using gcc ever since.
I alaready had a book on Unix, so it took just a few hours to get working in linux.
The Unix book I had bought because years earlier I worked a while at a big linear accelerator where they used those PDP things that
ran Unix.
For work I have had to work with Microsoft stuff and C++ and what not, what a mess.
These days you can just ask AI to write the code for you?
"Bill Sloman" <bill.sloman@ieee.org> wrote in message news:vg4fff$3lok1$1@dont-email.me...
On 2/11/2024 12:01 pm, Edward Rawde wrote:
"Cursitor Doom" <cd999666@notformail.com> wrote in message news:vg3575$3bio0$1@dont-email.me...
You can call me old fashioned, but I still believe there's never been a >>>> more elegant computer language than the original K&R C. You can keep the >>>> rest; I'll stick with that.
Having just got back from a vacation I thought I'd give my input to this before looking into whether it's worthwhile getting back
into sinewave oscillators.
John May has come up with a much better sine wave oscillator than yours.
That's no surprise. I can remember one or two other occasions when I thought I had a brilliant way to do it but someone else came up
with a better way.
I don't specifically mean sinewave oscillators.
It also has more components, and I'm not sure that all of them are strictly necessary. Getting deep enough into the design to be
sure where the harmonics are coming from is going to be difficult. I think I'm getting there, but I'm not all that motivated to
put in the rest of the
work.
One obvious point is that a FET channel isn't a perfect resistor - as the voltage across it rises above zero it starts looking
more like a constant current diode (and you can buy FET-based constant current diodes).
In theory, if you added a second harmonic component to the FET gate drive you could make it look like a resistor over a wider
range of voltage, if the phasing was close enough to right.
You've also got the point that when there's a voltage drop across the FET channel, it adds to the gate-to-channel voltage (as has
been mentioned here) and you can cancel that with an in-phase fundamental component
The last circuit of my own had both an n fet and a p fet.
I found that by adding a capacitor from one gate to the other (to try to cancel the unwanted signals in opposite phase) I could get
the unwanted gate signal below 100uV. I then had harmonics approaching 60dB down except one at 50dB (I think 2KHz). Not brilliant
but not bad.
There are some useful pointers here: >https://sound-au.com/articles/sinewave.htm
In particular where it says "Done properly, a JFET can provide distortion performance that is as good or better than a lamp or
thermistor."
Perhaps I'll concentrate on how to make the FET behave as a voltage variable resistor over the widest possible range.
I also what to look into what I meant by crud and non crud mode in LTSpice. >This mysterious effect can depend on things such as which specific computer is used and how long is specified before collecting
simulation data.
You can see it in the gate voltage after startup. It looks a bit like a PLL hunting and eventually locking but it doesn't happen at
startup, it happens after seconds.
So I'll need to be able to post some pictures to show that. I'll get to that.
Is there an easy way to remove a DC offset from a simulation trace so that my n and p gate signals can be superimposed after
startup?
--
Bill Sloman, Sydney
On Sat, 02 Nov 2024 15:41:11 GMT, Jan Panteltje <alien@comet.invalid>
wrote:
On a sunny day (Sat, 02 Nov 2024 07:55:18 -0700) it happened john larkin >><JL@gct.com> wrote in <dnecijt2s9um4l6a4qnq3j0ekto8fl955d@4ax.com>:
On Sat, 02 Nov 2024 07:42:19 GMT, Jan Panteltje <alien@comet.invalid> >>>wrote:
On a sunny day (Fri, 1 Nov 2024 18:04:21 -0000 (UTC)) it happened Cursitor >>>>Doom <cd999666@notformail.com> wrote in <vg3575$3bio0$1@dont-email.me>: >>>>
You can call me old fashioned, but I still believe there's never been a >>>>>more elegant computer language than the original K&R C. You can keep the >>>>>rest; I'll stick with that.
Agree, I use C only and asm when needed.
I started with binary interfacing hardware...
Nothing of all of that was hard.
BASIC was fun too, but very limiting, slow interpreted language.
PowerBasic is a fabulous compiler. We did one contest, an array math >>>signal processing thing. I wrote it in PB, another guy in c. Mine ran
4 times as fast. He played with the code and compiler optimiztions
for a couple of days and got it up to about 60% as fast as my PB
version.
I used the obvious FOR loop with subscripts to scan the array. He used >>>pointers.
c is really a PDP-11 assembler. In the early days of PDP-11
programming, everybody was fascinated with using pointers to wander up >>>and down the world, and with pushing stuff onto the stack. It shows in
c now.
I use for example C on my PCs and the Raspberry Pis I have.
C is yery portable, libraries and open source applications everywhere.
gcc is a nice compiler that supports many architectures.
Stuff I wrote for the PC in C comp[iles and runs on the Raspberries...
This Usenet newsreader I use now I wrote in the late nineties when moving to Linux
as there was no Free Agent for Linux...
Still using it, now posting from a Pi4 8 GB.
It uses linked lists, I have a database of Usenet postings going back to these days.
https://panteltje.nl/panteltje/newsflex/index.html
There are some compatibility issues, but that is because the graphics library I use
had some changes, but can work around it.
More C code:
https://panteltje.nl/panteltje/newsflex/download.html
There is a simple 8052 assembler written in C on that webpage too.
And a z80 dissasembler .
https://panteltje.nl/panteltje/z80/index.html
etc etc
My website is basic html.
The guy who wrote the PDP-11 assembler said that it was really a
language processor. We built several cross-assemblers as macros within
the PDP-11 assembler, including the 6800, 6802, 6803, and 68332
processors.
Amazingly, Digikey will still sell you a 68332.
On Sat, 2 Nov 2024 13:07:32 -0400, "Edward Rawde"
<invalid@invalid.invalid> wrote:
"Bill Sloman" <bill.sloman@ieee.org> wrote in message news:vg4fff$3lok1$1@dont-email.me...
On 2/11/2024 12:01 pm, Edward Rawde wrote:
"Cursitor Doom" <cd999666@notformail.com> wrote in message news:vg3575$3bio0$1@dont-email.me...
You can call me old fashioned, but I still believe there's never been a >>>>> more elegant computer language than the original K&R C. You can keep the >>>>> rest; I'll stick with that.
Having just got back from a vacation I thought I'd give my input to this before looking into whether it's worthwhile getting
back
into sinewave oscillators.
John May has come up with a much better sine wave oscillator than yours.
That's no surprise. I can remember one or two other occasions when I thought I had a brilliant way to do it but someone else came
up
with a better way.
I don't specifically mean sinewave oscillators.
It also has more components, and I'm not sure that all of them are strictly necessary. Getting deep enough into the design to be
sure where the harmonics are coming from is going to be difficult. I think I'm getting there, but I'm not all that motivated to
put in the rest of the
work.
One obvious point is that a FET channel isn't a perfect resistor - as the voltage across it rises above zero it starts looking
more like a constant current diode (and you can buy FET-based constant current diodes).
In theory, if you added a second harmonic component to the FET gate drive you could make it look like a resistor over a wider
range of voltage, if the phasing was close enough to right.
You've also got the point that when there's a voltage drop across the FET channel, it adds to the gate-to-channel voltage (as
has
been mentioned here) and you can cancel that with an in-phase fundamental component
The last circuit of my own had both an n fet and a p fet.
I found that by adding a capacitor from one gate to the other (to try to cancel the unwanted signals in opposite phase) I could
get
the unwanted gate signal below 100uV. I then had harmonics approaching 60dB down except one at 50dB (I think 2KHz). Not brilliant
but not bad.
There are some useful pointers here: >>https://sound-au.com/articles/sinewave.htm
In particular where it says "Done properly, a JFET can provide distortion performance that is as good or better than a lamp or
thermistor."
Perhaps I'll concentrate on how to make the FET behave as a voltage variable resistor over the widest possible range.
I also what to look into what I meant by crud and non crud mode in LTSpice. >>This mysterious effect can depend on things such as which specific computer is used and how long is specified before collecting
simulation data.
You can see it in the gate voltage after startup. It looks a bit like a PLL hunting and eventually locking but it doesn't happen
at
startup, it happens after seconds.
So I'll need to be able to post some pictures to show that. I'll get to that.
Hi Edward,
I've been messing around with a real-life WB oscillator - the busted
one I originally posted about. AFAIK, everyone else here has just been simming them, so I thought it might be useful if I provided some
detail that others may have overlooked.
The thing that stands out in my experiments in replacing the broken thermistor with a pot and attempting to twiddle for the optimum sine
wave is just how close the waveform has to get to collapsing from insufficient feedback in order to get a nice sine wave. It's a
knife-edge adjustment to get it right and then of course, with
constantly shifting temperatures it goes out of adjustment again
within a few seconds. But the sweet spot for the best waveshape is
*just* a whisker above collapse.
HTH.
Is there an easy way to remove a DC offset from a simulation trace so that my n and p gate signals can be superimposed after
startup?
--
Bill Sloman, Sydney
Most compilers these days are smart enough to move loop invariants outside of a
loop and then dispose of the loop. You must have side effects in any code that
you want to benchmark. Optimisers can be *really* smart about rearranging code
for maximum performance by avoiding pipeline stalls. Only the very best humans
can match them now.
Every now and then you stumble upon a construct that on certain platforms is unreasonably fast (2x or 4x). Increasingly because it has vectorised a loop on
the fly when all go faster stripes are enabled.
Precision timers and benchmarking tools are available on most platforms no need
to use a stop watch unless you enjoy watching paint dry.
"Cursitor Doom" <cd@notformail.com> wrote in message news:ahucij5dt50fihbuenl766e80isr227gqa@4ax.com...
On Sat, 2 Nov 2024 13:07:32 -0400, "Edward Rawde"
<invalid@invalid.invalid> wrote:
"Bill Sloman" <bill.sloman@ieee.org> wrote in message news:vg4fff$3lok1$1@dont-email.me...
On 2/11/2024 12:01 pm, Edward Rawde wrote:That's no surprise. I can remember one or two other occasions when I thought I had a brilliant way to do it but someone else came
"Cursitor Doom" <cd999666@notformail.com> wrote in message news:vg3575$3bio0$1@dont-email.me...
You can call me old fashioned, but I still believe there's never been a >>>>>> more elegant computer language than the original K&R C. You can keep the >>>>>> rest; I'll stick with that.
Having just got back from a vacation I thought I'd give my input to this before looking into whether it's worthwhile getting
back
into sinewave oscillators.
John May has come up with a much better sine wave oscillator than yours. >>>
up
with a better way.
I don't specifically mean sinewave oscillators.
It also has more components, and I'm not sure that all of them are strictly necessary. Getting deep enough into the design to be
sure where the harmonics are coming from is going to be difficult. I think I'm getting there, but I'm not all that motivated to
put in the rest of the
work.
One obvious point is that a FET channel isn't a perfect resistor - as the voltage across it rises above zero it starts looking
more like a constant current diode (and you can buy FET-based constant current diodes).
In theory, if you added a second harmonic component to the FET gate drive you could make it look like a resistor over a wider
range of voltage, if the phasing was close enough to right.
You've also got the point that when there's a voltage drop across the FET channel, it adds to the gate-to-channel voltage (as
has
been mentioned here) and you can cancel that with an in-phase fundamental component
The last circuit of my own had both an n fet and a p fet.
I found that by adding a capacitor from one gate to the other (to try to cancel the unwanted signals in opposite phase) I could
get
the unwanted gate signal below 100uV. I then had harmonics approaching 60dB down except one at 50dB (I think 2KHz). Not brilliant
but not bad.
There are some useful pointers here: >>>https://sound-au.com/articles/sinewave.htm
In particular where it says "Done properly, a JFET can provide distortion performance that is as good or better than a lamp or
thermistor."
Perhaps I'll concentrate on how to make the FET behave as a voltage variable resistor over the widest possible range.
I also what to look into what I meant by crud and non crud mode in LTSpice. >>>This mysterious effect can depend on things such as which specific computer is used and how long is specified before collecting
simulation data.
You can see it in the gate voltage after startup. It looks a bit like a PLL hunting and eventually locking but it doesn't happen
at
startup, it happens after seconds.
So I'll need to be able to post some pictures to show that. I'll get to that.
Hi Edward,
I've been messing around with a real-life WB oscillator - the busted
one I originally posted about. AFAIK, everyone else here has just been
simming them, so I thought it might be useful if I provided some
detail that others may have overlooked.
The thing that stands out in my experiments in replacing the broken
thermistor with a pot and attempting to twiddle for the optimum sine
wave is just how close the waveform has to get to collapsing from
insufficient feedback in order to get a nice sine wave. It's a
knife-edge adjustment to get it right and then of course, with
constantly shifting temperatures it goes out of adjustment again
within a few seconds. But the sweet spot for the best waveshape is
*just* a whisker above collapse.
HTH.
Well it's all exactly what you would expect because as was previously pointed out, a gain of 1.0000000001 (with as many 0s as you
want) will grow to limiting but a gain of 0.99999999999 (with as many 9s as you want) will die to nothing. So in any real circuit
you must constantly control the gain so that never goes into limiting and never dies. Yes this will usually be a knife-edge thing.
If you try to do this manually then the slightest change in anything (supply voltage, temperature, humidity, wind direction,
Halloween) will tip it one way or another.
Pure sine waves are surprisingly difficult to generate for this reason. Real analogue hardware just doesn't want to do it naturally
(unless the frequency is so high that the next harmonic is barely noticed or easy to filter). It would much rather produce a square
(limited) wave or nothing at all.
Is there an easy way to remove a DC offset from a simulation trace so that my n and p gate signals can be superimposed after
startup?
--
Bill Sloman, Sydney
Sorry, that should be YACC, not YASP.
Jeroen Belleman (who has seen too many software tools starting
with 'YA'.)
On Fri, 1 Nov 2024 17:20:39 -0700, Don Y <blockedofcourse@foo.invalid>
wrote:
On 11/1/2024 5:05 PM, Joe Gwinn wrote:
C++ is an order of magnitude more complex than C. Even a
casual C programmer can imagine what his code will look
like after compilation. I.e., can imagine exactly what the
CPU will be doing (ignoring the fact that the compiler will
often out-think the coder in terms of time/space efficiency).
I think that the complexity ratio between C and C++ well exceeds ten.
Possibly. But, the cognitive load is roughly an order of magnitude.
If the developer can't "grok" (in the most literal sense of the word)
what's going on, what hope has he?
Most certainly. I first measured the complexity of computer languages
in the says when Ada83 first emerged in the mid 1980s, long before the object-oriented stuff emerged. The competition was K&R C.
People knew that Ada was far more complicated than C, but exactly how
can one quantify such a slippery thing as "complexity" (whatever that
means)?
In those days, we used DEC VAX/VMS computers, and DEC had
well-regarded compilers for both C and Ada83, so I measured the total
file footprint in bytes on the disk of the two compilers (and their libraries), and Ada83 was ten times the size of the C compiler.
Now this Ada83 compiler was unable to do anything except pass the
formal acceptance test for Ada83 compilers, while the C compiler was
in wide use, so the true ratio had to exceed ten when the Ada compiler matured.
C++ was emerging around then, and the Ada community was forced to
respond - their answer was Ada95. One assumes that it is a factor
larger and more complex than Ada83, and that it too grew as it
matured.
You are probably able to weigh the various compilers, allowing us to
quantify the offerings of today.
It took a while for compilers to handle mutual-exclusion
functions/commands correctly - in most architectures, one must block
interrupts for this to work correctly. It's a long story, and is a
good reason to work in assembly for that.
With modern processors, there are considerably more pitfalls than that.
Most "programmers" haven't a clue as to what a "barrier" is nor when
(or why!) to use them.
These programmers would likely hurt themselves if allowed to use a hex calculator without close supervision. So better find better
programmers.
And, as hardware has become more featureful, the needs for talking
to the iron UNAMBIGUOUSLY are increasing, constantly. Open door
for obscure, intermittent bugs...
Sounds like a good argument for running machine code right on the iron
- no annoying obscuring layers.
On Sat, 2 Nov 2024 15:57:39 -0400, "Edward Rawde"
<invalid@invalid.invalid> wrote:
"Cursitor Doom" <cd@notformail.com> wrote in message news:ahucij5dt50fihbuenl766e80isr227gqa@4ax.com...
On Sat, 2 Nov 2024 13:07:32 -0400, "Edward Rawde"
<invalid@invalid.invalid> wrote:
"Bill Sloman" <bill.sloman@ieee.org> wrote in message news:vg4fff$3lok1$1@dont-email.me...
On 2/11/2024 12:01 pm, Edward Rawde wrote:That's no surprise. I can remember one or two other occasions when I thought I had a brilliant way to do it but someone else
"Cursitor Doom" <cd999666@notformail.com> wrote in message news:vg3575$3bio0$1@dont-email.me...
You can call me old fashioned, but I still believe there's never been a >>>>>>> more elegant computer language than the original K&R C. You can keep the
rest; I'll stick with that.
Having just got back from a vacation I thought I'd give my input to this before looking into whether it's worthwhile getting
back
into sinewave oscillators.
John May has come up with a much better sine wave oscillator than yours. >>>>
came
up
with a better way.
I don't specifically mean sinewave oscillators.
It also has more components, and I'm not sure that all of them are strictly necessary. Getting deep enough into the design to
be
sure where the harmonics are coming from is going to be difficult. I think I'm getting there, but I'm not all that motivated
to
put in the rest of the
work.
One obvious point is that a FET channel isn't a perfect resistor - as the voltage across it rises above zero it starts looking
more like a constant current diode (and you can buy FET-based constant current diodes).
In theory, if you added a second harmonic component to the FET gate drive you could make it look like a resistor over a wider
range of voltage, if the phasing was close enough to right.
You've also got the point that when there's a voltage drop across the FET channel, it adds to the gate-to-channel voltage (as
has
been mentioned here) and you can cancel that with an in-phase fundamental component
The last circuit of my own had both an n fet and a p fet.
I found that by adding a capacitor from one gate to the other (to try to cancel the unwanted signals in opposite phase) I could
get
the unwanted gate signal below 100uV. I then had harmonics approaching 60dB down except one at 50dB (I think 2KHz). Not
brilliant
but not bad.
There are some useful pointers here: >>>>https://sound-au.com/articles/sinewave.htm
In particular where it says "Done properly, a JFET can provide distortion performance that is as good or better than a lamp or
thermistor."
Perhaps I'll concentrate on how to make the FET behave as a voltage variable resistor over the widest possible range.
I also what to look into what I meant by crud and non crud mode in LTSpice. >>>>This mysterious effect can depend on things such as which specific computer is used and how long is specified before collecting
simulation data.
You can see it in the gate voltage after startup. It looks a bit like a PLL hunting and eventually locking but it doesn't happen
at
startup, it happens after seconds.
So I'll need to be able to post some pictures to show that. I'll get to that.
Hi Edward,
I've been messing around with a real-life WB oscillator - the busted
one I originally posted about. AFAIK, everyone else here has just been
simming them, so I thought it might be useful if I provided some
detail that others may have overlooked.
The thing that stands out in my experiments in replacing the broken
thermistor with a pot and attempting to twiddle for the optimum sine
wave is just how close the waveform has to get to collapsing from
insufficient feedback in order to get a nice sine wave. It's a
knife-edge adjustment to get it right and then of course, with
constantly shifting temperatures it goes out of adjustment again
within a few seconds. But the sweet spot for the best waveshape is
*just* a whisker above collapse.
HTH.
Well it's all exactly what you would expect because as was previously pointed out, a gain of 1.0000000001 (with as many 0s as you
want) will grow to limiting but a gain of 0.99999999999 (with as many 9s as you want) will die to nothing. So in any real circuit
you must constantly control the gain so that never goes into limiting and never dies. Yes this will usually be a knife-edge thing.
If you try to do this manually then the slightest change in anything (supply voltage, temperature, humidity, wind direction,
Halloween) will tip it one way or another.
Pure sine waves are surprisingly difficult to generate for this reason. Real analogue hardware just doesn't want to do it
naturally
(unless the frequency is so high that the next harmonic is barely noticed or easy to filter). It would much rather produce a
square
(limited) wave or nothing at all.
Indeed. And that's why it's really quite remarkable that this tiny
passive device enables the generation of such spectrally pure
sinewaves; an 'ancient' technology that still holds a candle in the
digital world of today.
Is there an easy way to remove a DC offset from a simulation trace so that my n and p gate signals can be superimposed after
startup?
--
Bill Sloman, Sydney
"Cursitor Doom" <cd@notformail.com> wrote in message news:k85dijlrcq38er2i5klcru0vuppakheurl@4ax.com...
On Sat, 2 Nov 2024 15:57:39 -0400, "Edward Rawde"
<invalid@invalid.invalid> wrote:
"Cursitor Doom" <cd@notformail.com> wrote in message news:ahucij5dt50fihbuenl766e80isr227gqa@4ax.com...
On Sat, 2 Nov 2024 13:07:32 -0400, "Edward Rawde"
<invalid@invalid.invalid> wrote:
"Bill Sloman" <bill.sloman@ieee.org> wrote in message news:vg4fff$3lok1$1@dont-email.me...
On 2/11/2024 12:01 pm, Edward Rawde wrote:That's no surprise. I can remember one or two other occasions when I thought I had a brilliant way to do it but someone else
"Cursitor Doom" <cd999666@notformail.com> wrote in message news:vg3575$3bio0$1@dont-email.me...
You can call me old fashioned, but I still believe there's never been a
more elegant computer language than the original K&R C. You can keep the
rest; I'll stick with that.
Having just got back from a vacation I thought I'd give my input to this before looking into whether it's worthwhile getting
back
into sinewave oscillators.
John May has come up with a much better sine wave oscillator than yours. >>>>>
came
up
with a better way.
I don't specifically mean sinewave oscillators.
It also has more components, and I'm not sure that all of them are strictly necessary. Getting deep enough into the design to
be
sure where the harmonics are coming from is going to be difficult. I think I'm getting there, but I'm not all that motivated
to
put in the rest of the
work.
One obvious point is that a FET channel isn't a perfect resistor - as the voltage across it rises above zero it starts looking
more like a constant current diode (and you can buy FET-based constant current diodes).
In theory, if you added a second harmonic component to the FET gate drive you could make it look like a resistor over a wider
range of voltage, if the phasing was close enough to right.
You've also got the point that when there's a voltage drop across the FET channel, it adds to the gate-to-channel voltage (as
has
been mentioned here) and you can cancel that with an in-phase fundamental component
The last circuit of my own had both an n fet and a p fet.
I found that by adding a capacitor from one gate to the other (to try to cancel the unwanted signals in opposite phase) I could
get
the unwanted gate signal below 100uV. I then had harmonics approaching 60dB down except one at 50dB (I think 2KHz). Not
brilliant
but not bad.
There are some useful pointers here: >>>>>https://sound-au.com/articles/sinewave.htm
In particular where it says "Done properly, a JFET can provide distortion performance that is as good or better than a lamp or
thermistor."
Perhaps I'll concentrate on how to make the FET behave as a voltage variable resistor over the widest possible range.
I also what to look into what I meant by crud and non crud mode in LTSpice.
This mysterious effect can depend on things such as which specific computer is used and how long is specified before collecting
simulation data.
You can see it in the gate voltage after startup. It looks a bit like a PLL hunting and eventually locking but it doesn't happen
at
startup, it happens after seconds.
So I'll need to be able to post some pictures to show that. I'll get to that.
Hi Edward,
I've been messing around with a real-life WB oscillator - the busted
one I originally posted about. AFAIK, everyone else here has just been >>>> simming them, so I thought it might be useful if I provided some
detail that others may have overlooked.
The thing that stands out in my experiments in replacing the broken
thermistor with a pot and attempting to twiddle for the optimum sine
wave is just how close the waveform has to get to collapsing from
insufficient feedback in order to get a nice sine wave. It's a
knife-edge adjustment to get it right and then of course, with
constantly shifting temperatures it goes out of adjustment again
within a few seconds. But the sweet spot for the best waveshape is
*just* a whisker above collapse.
HTH.
Well it's all exactly what you would expect because as was previously pointed out, a gain of 1.0000000001 (with as many 0s as you
want) will grow to limiting but a gain of 0.99999999999 (with as many 9s as you want) will die to nothing. So in any real circuit
you must constantly control the gain so that never goes into limiting and never dies. Yes this will usually be a knife-edge thing.
If you try to do this manually then the slightest change in anything (supply voltage, temperature, humidity, wind direction,
Halloween) will tip it one way or another.
Pure sine waves are surprisingly difficult to generate for this reason. Real analogue hardware just doesn't want to do it
naturally
(unless the frequency is so high that the next harmonic is barely noticed or easy to filter). It would much rather produce a
square
(limited) wave or nothing at all.
Indeed. And that's why it's really quite remarkable that this tiny
passive device enables the generation of such spectrally pure
sinewaves; an 'ancient' technology that still holds a candle in the
digital world of today.
I can't say I've read much on "ancient technology" since my early teen years. >WH Smiths was full of literature such as "the unexplained" at the time.
These days it's even harder to filter nonsense from useful information but this page seems reasonable:
https://sound-au.com/articles/sinewave.htm
Particularly where it says "Done properly, a JFET can provide distortion performance that is as good or better than a lamp or
thermistor."
Is there an easy way to remove a DC offset from a simulation trace so that my n and p gate signals can be superimposed after
startup?
--
Bill Sloman, Sydney
On 11/2/2024 11:01 AM, Martin Brown wrote:
Most compilers these days are smart enough to move loop invariants
outside of a loop and then dispose of the loop. You must have side
effects in any code that you want to benchmark. Optimisers can be
*really* smart about rearranging code for maximum performance by
avoiding pipeline stalls. Only the very best humans can match them now.
You need a few more asterisks stressing "really"! What's most amusing
is how the folks who write "clever"/obscure code fragments THINKING they
are "optimizing" it just annoy the compiler. On any substantial piece
of code, "you" simply can't outperform it. Your mind gets tired. You
make mistakes. The compiler just plows ahead. EVERY TIME IT IS INVOKED!
On 11/2/24 15:48, Don Y wrote:
On 11/2/2024 11:01 AM, Martin Brown wrote:Over a decade ago I hand optimized some vector code on the CELL processor. I then compiled some C++ code doing the same operations in nested loops with vector optimization turned on. The compiler was faster by a cycle when they found a load that could be done in parallel that I had missed.
Most compilers these days are smart enough to move loop invariants outside >>> of a loop and then dispose of the loop. You must have side effects in any >>> code that you want to benchmark. Optimisers can be *really* smart about
rearranging code for maximum performance by avoiding pipeline stalls. Only >>> the very best humans can match them now.
You need a few more asterisks stressing "really"! What's most amusing
is how the folks who write "clever"/obscure code fragments THINKING they
are "optimizing" it just annoy the compiler. On any substantial piece
of code, "you" simply can't outperform it. Your mind gets tired. You
make mistakes. The compiler just plows ahead. EVERY TIME IT IS INVOKED! >>
I didn't bother doing assembler code after that.
On Sat, 02 Nov 2024 07:44:28 GMT, Jan Panteltje <alien@comet.invalid>
wrote:
On a sunny day (Fri, 1 Nov 2024 22:50:41 -0000 (UTC)) it happened Nick Hayward
<nhayward8990@protonmail.com> wrote in <vg3m01$3e15j$2@dont-email.me>:
On Fri, 1 Nov 2024 19:57:21 +0100, Jeroen Belleman wrote:
On 11/1/24 19:04, Cursitor Doom wrote:
You can call me old fashioned, but I still believe there's never been a >>>>> more elegant computer language than the original K&R C. You can keep >>>>> the rest; I'll stick with that.
Agreed! All the hand-holding of later versions just get in the way.
Jeroen Belleman
What about C++?
It is a crime against humanity!!!
Then we're all agreed: C++ is an abomination in the sight of the Lord
and the invention of the Devil himself.
"Bill Sloman" <bill.sloman@ieee.org> wrote in message news:vg4fff$3lok1$1@dont-email.me...
On 2/11/2024 12:01 pm, Edward Rawde wrote:
"Cursitor Doom" <cd999666@notformail.com> wrote in message news:vg3575$3bio0$1@dont-email.me...
You can call me old fashioned, but I still believe there's never been a >>>> more elegant computer language than the original K&R C. You can keep the >>>> rest; I'll stick with that.
Having just got back from a vacation I thought I'd give my input to this before looking into whether it's worthwhile getting back
into sinewave oscillators.
John May has come up with a much better sine wave oscillator than yours.
That's no surprise. I can remember one or two other occasions when I thought I had a brilliant way to do it but someone else came up
with a better way.
I don't specifically mean sinewave oscillators.
It also has more components, and I'm not sure that all of them are strictly necessary. Getting deep enough into the design to be
sure where the harmonics are coming from is going to be difficult. I think I'm getting there, but I'm not all that motivated to
put in the rest of the
work.
One obvious point is that a FET channel isn't a perfect resistor - as the voltage across it rises above zero it starts looking
more like a constant current diode (and you can buy FET-based constant current diodes).
In theory, if you added a second harmonic component to the FET gate drive you could make it look like a resistor over a wider
range of voltage, if the phasing was close enough to right.
You've also got the point that when there's a voltage drop across the FET channel, it adds to the gate-to-channel voltage (as has
been mentioned here) and you can cancel that with an in-phase fundamental component
The last circuit of my own had both an n fet and a p fet.
I found that by adding a capacitor from one gate to the other (to try to cancel the unwanted signals in opposite phase) I could get
the unwanted gate signal below 100uV. I then had harmonics approaching 60dB down except one at 50dB (I think 2KHz). Not brilliant
but not bad.
There are some useful pointers here: https://sound-au.com/articles/sinewave.htm
In particular where it says "Done properly, a JFET can provide distortion performance that is as good or better than a lamp or
thermistor."
Perhaps I'll concentrate on how to make the FET behave as a voltage variable resistor over the widest possible range.
I also what to look into what I meant by crud and non crud mode in LTSpice. This mysterious effect can depend on things such as which specific computer is used and how long is specified before collecting
simulation data.
You can see it in the gate voltage after startup. It looks a bit like a PLL hunting and eventually locking but it doesn't happen at
startup, it happens after seconds.
So I'll need to be able to post some pictures to show that. I'll get to that.
Is there an easy way to remove a DC offset from a simulation trace so that my n and p gate signals can be superimposed after
startup?
On Sat, 2 Nov 2024 13:07:32 -0400, "Edward Rawde"
<invalid@invalid.invalid> wrote:
"Bill Sloman" <bill.sloman@ieee.org> wrote in message news:vg4fff$3lok1$1@dont-email.me...
On 2/11/2024 12:01 pm, Edward Rawde wrote:
"Cursitor Doom" <cd999666@notformail.com> wrote in message news:vg3575$3bio0$1@dont-email.me...
You can call me old fashioned, but I still believe there's never been a >>>>> more elegant computer language than the original K&R C. You can keep the >>>>> rest; I'll stick with that.
Having just got back from a vacation I thought I'd give my input to this before looking into whether it's worthwhile getting back
into sinewave oscillators.
John May has come up with a much better sine wave oscillator than yours.
That's no surprise. I can remember one or two other occasions when I thought I had a brilliant way to do it but someone else came up
with a better way.
I don't specifically mean sinewave oscillators.
It also has more components, and I'm not sure that all of them are strictly necessary. Getting deep enough into the design to be
sure where the harmonics are coming from is going to be difficult. I think I'm getting there, but I'm not all that motivated to
put in the rest of the
work.
One obvious point is that a FET channel isn't a perfect resistor - as the voltage across it rises above zero it starts looking
more like a constant current diode (and you can buy FET-based constant current diodes).
In theory, if you added a second harmonic component to the FET gate drive you could make it look like a resistor over a wider
range of voltage, if the phasing was close enough to right.
You've also got the point that when there's a voltage drop across the FET channel, it adds to the gate-to-channel voltage (as has
been mentioned here) and you can cancel that with an in-phase fundamental component
The last circuit of my own had both an n fet and a p fet.
I found that by adding a capacitor from one gate to the other (to try to cancel the unwanted signals in opposite phase) I could get
the unwanted gate signal below 100uV. I then had harmonics approaching 60dB down except one at 50dB (I think 2KHz). Not brilliant
but not bad.
There are some useful pointers here:
https://sound-au.com/articles/sinewave.htm
In particular where it says "Done properly, a JFET can provide distortion performance that is as good or better than a lamp or
thermistor."
Perhaps I'll concentrate on how to make the FET behave as a voltage variable resistor over the widest possible range.
I also what to look into what I meant by crud and non crud mode in LTSpice. >> This mysterious effect can depend on things such as which specific computer is used and how long is specified before collecting
simulation data.
You can see it in the gate voltage after startup. It looks a bit like a PLL hunting and eventually locking but it doesn't happen at
startup, it happens after seconds.
So I'll need to be able to post some pictures to show that. I'll get to that.
Hi Edward,
I've been messing around with a real-life WB oscillator - the busted
one I originally posted about. AFAIK, everyone else here has just been simming them, so I thought it might be useful if I provided some
detail that others may have overlooked.
The thing that stands out in my experiments in replacing the broken thermistor with a pot and attempting to twiddle for the optimum sine
wave is just how close the waveform has to get to collapsing from insufficient feedback in order to get a nice sine wave. It's a
knife-edge adjustment to get it right and then of course, with
constantly shifting temperatures it goes out of adjustment again
within a few seconds. But the sweet spot for the best waveshape is
*just* a whisker above collapse.
HTH.
Is there an easy way to remove a DC offset from a simulation trace so that my n and p gate signals can be superimposed after
startup?
On Sat, 2 Nov 2024 15:57:39 -0400, "Edward Rawde"
<invalid@invalid.invalid> wrote:
"Cursitor Doom" <cd@notformail.com> wrote in message news:ahucij5dt50fihbuenl766e80isr227gqa@4ax.com...
On Sat, 2 Nov 2024 13:07:32 -0400, "Edward Rawde"
<invalid@invalid.invalid> wrote:
"Bill Sloman" <bill.sloman@ieee.org> wrote in message news:vg4fff$3lok1$1@dont-email.me...
On 2/11/2024 12:01 pm, Edward Rawde wrote:That's no surprise. I can remember one or two other occasions when I thought I had a brilliant way to do it but someone else came
"Cursitor Doom" <cd999666@notformail.com> wrote in message news:vg3575$3bio0$1@dont-email.me...
You can call me old fashioned, but I still believe there's never been a >>>>>>> more elegant computer language than the original K&R C. You can keep the
rest; I'll stick with that.
Having just got back from a vacation I thought I'd give my input to this before looking into whether it's worthwhile getting
back
into sinewave oscillators.
John May has come up with a much better sine wave oscillator than yours. >>>>
up
with a better way.
I don't specifically mean sinewave oscillators.
It also has more components, and I'm not sure that all of them are strictly necessary. Getting deep enough into the design to be
sure where the harmonics are coming from is going to be difficult. I think I'm getting there, but I'm not all that motivated to
put in the rest of the
work.
One obvious point is that a FET channel isn't a perfect resistor - as the voltage across it rises above zero it starts looking
more like a constant current diode (and you can buy FET-based constant current diodes).
In theory, if you added a second harmonic component to the FET gate drive you could make it look like a resistor over a wider
range of voltage, if the phasing was close enough to right.
You've also got the point that when there's a voltage drop across the FET channel, it adds to the gate-to-channel voltage (as
has
been mentioned here) and you can cancel that with an in-phase fundamental component
The last circuit of my own had both an n fet and a p fet.
I found that by adding a capacitor from one gate to the other (to try to cancel the unwanted signals in opposite phase) I could
get
the unwanted gate signal below 100uV. I then had harmonics approaching 60dB down except one at 50dB (I think 2KHz). Not brilliant
but not bad.
There are some useful pointers here:
https://sound-au.com/articles/sinewave.htm
In particular where it says "Done properly, a JFET can provide distortion performance that is as good or better than a lamp or
thermistor."
Perhaps I'll concentrate on how to make the FET behave as a voltage variable resistor over the widest possible range.
I also what to look into what I meant by crud and non crud mode in LTSpice.
This mysterious effect can depend on things such as which specific computer is used and how long is specified before collecting
simulation data.
You can see it in the gate voltage after startup. It looks a bit like a PLL hunting and eventually locking but it doesn't happen
at
startup, it happens after seconds.
So I'll need to be able to post some pictures to show that. I'll get to that.
Hi Edward,
I've been messing around with a real-life WB oscillator - the busted
one I originally posted about. AFAIK, everyone else here has just been
simming them, so I thought it might be useful if I provided some
detail that others may have overlooked.
The thing that stands out in my experiments in replacing the broken
thermistor with a pot and attempting to twiddle for the optimum sine
wave is just how close the waveform has to get to collapsing from
insufficient feedback in order to get a nice sine wave. It's a
knife-edge adjustment to get it right and then of course, with
constantly shifting temperatures it goes out of adjustment again
within a few seconds. But the sweet spot for the best waveshape is
*just* a whisker above collapse.
HTH.
Well it's all exactly what you would expect because as was previously pointed out, a gain of 1.0000000001 (with as many 0s as you
want) will grow to limiting but a gain of 0.99999999999 (with as many 9s as you want) will die to nothing. So in any real circuit
you must constantly control the gain so that never goes into limiting and never dies. Yes this will usually be a knife-edge thing.
If you try to do this manually then the slightest change in anything (supply voltage, temperature, humidity, wind direction,
Halloween) will tip it one way or another.
Pure sine waves are surprisingly difficult to generate for this reason. Real analogue hardware just doesn't want to do it naturally
(unless the frequency is so high that the next harmonic is barely noticed or easy to filter). It would much rather produce a square
(limited) wave or nothing at all.
Indeed. And that's why it's really quite remarkable that this tiny
passive device enables the generation of such spectrally pure
sinewaves; an 'ancient' technology that still holds a candle in the
digital world of today.
Is there an easy way to remove a DC offset from a simulation trace so that my n and p gate signals can be superimposed after
startup?
On 3/11/2024 8:12 am, Cursitor Doom wrote:
On Sat, 2 Nov 2024 15:57:39 -0400, "Edward Rawde"
<invalid@invalid.invalid> wrote:
"Cursitor Doom" <cd@notformail.com> wrote in message news:ahucij5dt50fihbuenl766e80isr227gqa@4ax.com...
On Sat, 2 Nov 2024 13:07:32 -0400, "Edward Rawde"
<invalid@invalid.invalid> wrote:
"Bill Sloman" <bill.sloman@ieee.org> wrote in message news:vg4fff$3lok1$1@dont-email.me...
On 2/11/2024 12:01 pm, Edward Rawde wrote:That's no surprise. I can remember one or two other occasions when I thought I had a brilliant way to do it but someone else came
"Cursitor Doom" <cd999666@notformail.com> wrote in message news:vg3575$3bio0$1@dont-email.me...
You can call me old fashioned, but I still believe there's never been a
more elegant computer language than the original K&R C. You can keep the
rest; I'll stick with that.
Having just got back from a vacation I thought I'd give my input to this before looking into whether it's worthwhile getting
back
into sinewave oscillators.
John May has come up with a much better sine wave oscillator than yours. >>>>>
up
with a better way.
I don't specifically mean sinewave oscillators.
It also has more components, and I'm not sure that all of them are strictly necessary. Getting deep enough into the design to be
sure where the harmonics are coming from is going to be difficult. I think I'm getting there, but I'm not all that motivated to
put in the rest of the
work.
One obvious point is that a FET channel isn't a perfect resistor - as the voltage across it rises above zero it starts looking
more like a constant current diode (and you can buy FET-based constant current diodes).
In theory, if you added a second harmonic component to the FET gate drive you could make it look like a resistor over a wider
range of voltage, if the phasing was close enough to right.
You've also got the point that when there's a voltage drop across the FET channel, it adds to the gate-to-channel voltage (as
has
been mentioned here) and you can cancel that with an in-phase fundamental component
The last circuit of my own had both an n fet and a p fet.
I found that by adding a capacitor from one gate to the other (to try to cancel the unwanted signals in opposite phase) I could
get
the unwanted gate signal below 100uV. I then had harmonics approaching 60dB down except one at 50dB (I think 2KHz). Not brilliant
but not bad.
There are some useful pointers here:
https://sound-au.com/articles/sinewave.htm
In particular where it says "Done properly, a JFET can provide distortion performance that is as good or better than a lamp or
thermistor."
Perhaps I'll concentrate on how to make the FET behave as a voltage variable resistor over the widest possible range.
I also what to look into what I meant by crud and non crud mode in LTSpice.
This mysterious effect can depend on things such as which specific computer is used and how long is specified before collecting
simulation data.
You can see it in the gate voltage after startup. It looks a bit like a PLL hunting and eventually locking but it doesn't happen
at
startup, it happens after seconds.
So I'll need to be able to post some pictures to show that. I'll get to that.
Hi Edward,
I've been messing around with a real-life WB oscillator - the busted
one I originally posted about. AFAIK, everyone else here has just been >>>> simming them, so I thought it might be useful if I provided some
detail that others may have overlooked.
The thing that stands out in my experiments in replacing the broken
thermistor with a pot and attempting to twiddle for the optimum sine
wave is just how close the waveform has to get to collapsing from
insufficient feedback in order to get a nice sine wave. It's a
knife-edge adjustment to get it right and then of course, with
constantly shifting temperatures it goes out of adjustment again
within a few seconds. But the sweet spot for the best waveshape is
*just* a whisker above collapse.
HTH.
Well it's all exactly what you would expect because as was previously pointed out, a gain of 1.0000000001 (with as many 0s as you
want) will grow to limiting but a gain of 0.99999999999 (with as many 9s as you want) will die to nothing. So in any real circuit
you must constantly control the gain so that never goes into limiting and never dies. Yes this will usually be a knife-edge thing.
If you try to do this manually then the slightest change in anything (supply voltage, temperature, humidity, wind direction,
Halloween) will tip it one way or another.
Pure sine waves are surprisingly difficult to generate for this reason. Real analogue hardware just doesn't want to do it naturally
(unless the frequency is so high that the next harmonic is barely noticed or easy to filter). It would much rather produce a square
(limited) wave or nothing at all.
Indeed. And that's why it's really quite remarkable that this tiny
passive device enables the generation of such spectrally pure
sinewaves; an 'ancient' technology that still holds a candle in the
digital world of today.
They can generate tolerably spectrally pure sine waves if engineered in
with sufficient expertise, which is pretty thin on the ground.
It's not an area where digital technology has a lot to offer. Today's
word isn't exactly digital either - every system has a analog front end
Is there an easy way to remove a DC offset from a simulation trace so that my n and p gate signals can be superimposed after
startup?
And Cursitor Doom hasn't a clue about that.
On 2/11/2024 11:40 pm, Cursitor Doom wrote:
On Sat, 02 Nov 2024 07:44:28 GMT, Jan Panteltje <alien@comet.invalid>
wrote:
On a sunny day (Fri, 1 Nov 2024 22:50:41 -0000 (UTC)) it happened Nick Hayward
<nhayward8990@protonmail.com> wrote in <vg3m01$3e15j$2@dont-email.me>:
On Fri, 1 Nov 2024 19:57:21 +0100, Jeroen Belleman wrote:
On 11/1/24 19:04, Cursitor Doom wrote:
You can call me old fashioned, but I still believe there's never been a >>>>>> more elegant computer language than the original K&R C. You can keep >>>>>> the rest; I'll stick with that.
Agreed! All the hand-holding of later versions just get in the way.
Jeroen Belleman
What about C++?
It is a crime against humanity!!!
Then we're all agreed: C++ is an abomination in the sight of the Lord
and the invention of the Devil himself.
Jan Panteltje and Cursitor Doom are a very small - and poorly informed - >element of our community.
That they both agree is evidence that the proposition is probably flawed.
On 3/11/2024 6:21 am, Cursitor Doom wrote:
On Sat, 2 Nov 2024 13:07:32 -0400, "Edward Rawde"
<invalid@invalid.invalid> wrote:
"Bill Sloman" <bill.sloman@ieee.org> wrote in message news:vg4fff$3lok1$1@dont-email.me...
On 2/11/2024 12:01 pm, Edward Rawde wrote:That's no surprise. I can remember one or two other occasions when I thought I had a brilliant way to do it but someone else came up
"Cursitor Doom" <cd999666@notformail.com> wrote in message news:vg3575$3bio0$1@dont-email.me...
You can call me old fashioned, but I still believe there's never been a >>>>>> more elegant computer language than the original K&R C. You can keep the >>>>>> rest; I'll stick with that.
Having just got back from a vacation I thought I'd give my input to this before looking into whether it's worthwhile getting back
into sinewave oscillators.
John May has come up with a much better sine wave oscillator than yours. >>>
with a better way.
I don't specifically mean sinewave oscillators.
It also has more components, and I'm not sure that all of them are strictly necessary. Getting deep enough into the design to be
sure where the harmonics are coming from is going to be difficult. I think I'm getting there, but I'm not all that motivated to
put in the rest of the
work.
One obvious point is that a FET channel isn't a perfect resistor - as the voltage across it rises above zero it starts looking
more like a constant current diode (and you can buy FET-based constant current diodes).
In theory, if you added a second harmonic component to the FET gate drive you could make it look like a resistor over a wider
range of voltage, if the phasing was close enough to right.
You've also got the point that when there's a voltage drop across the FET channel, it adds to the gate-to-channel voltage (as has
been mentioned here) and you can cancel that with an in-phase fundamental component
The last circuit of my own had both an n fet and a p fet.
I found that by adding a capacitor from one gate to the other (to try to cancel the unwanted signals in opposite phase) I could get
the unwanted gate signal below 100uV. I then had harmonics approaching 60dB down except one at 50dB (I think 2KHz). Not brilliant
but not bad.
There are some useful pointers here:
https://sound-au.com/articles/sinewave.htm
In particular where it says "Done properly, a JFET can provide distortion performance that is as good or better than a lamp or
thermistor."
Perhaps I'll concentrate on how to make the FET behave as a voltage variable resistor over the widest possible range.
I also what to look into what I meant by crud and non crud mode in LTSpice. >>> This mysterious effect can depend on things such as which specific computer is used and how long is specified before collecting
simulation data.
You can see it in the gate voltage after startup. It looks a bit like a PLL hunting and eventually locking but it doesn't happen at
startup, it happens after seconds.
So I'll need to be able to post some pictures to show that. I'll get to that.
Hi Edward,
I've been messing around with a real-life WB oscillator - the busted
one I originally posted about. AFAIK, everyone else here has just been
simming them, so I thought it might be useful if I provided some
detail that others may have overlooked.
The thing that stands out in my experiments in replacing the broken
thermistor with a pot and attempting to twiddle for the optimum sine
wave is just how close the waveform has to get to collapsing from
insufficient feedback in order to get a nice sine wave. It's a
knife-edge adjustment to get it right and then of course, with
constantly shifting temperatures it goes out of adjustment again
within a few seconds. But the sweet spot for the best waveshape is
*just* a whisker above collapse.
HTH.
Of course it is.That's why Wein bridges need a non-linear element that
can be adjust to get the gain exactly right and keep it there.
Is there an easy way to remove a DC offset from a simulation trace so that my n and p gate signals can be superimposed after
startup?
There is but Cursitor Doom doesn't know it.
On Sun, 3 Nov 2024 13:27:26 +1100, Bill Sloman <bill.sloman@ieee.org>
wrote:
On 3/11/2024 6:21 am, Cursitor Doom wrote:
On Sat, 2 Nov 2024 13:07:32 -0400, "Edward Rawde"
<invalid@invalid.invalid> wrote:
"Bill Sloman" <bill.sloman@ieee.org> wrote in message news:vg4fff$3lok1$1@dont-email.me...
On 2/11/2024 12:01 pm, Edward Rawde wrote:
"Cursitor Doom" <cd999666@notformail.com> wrote in message news:vg3575$3bio0$1@dont-email.me...
You've also got the point that when there's a voltage drop across the FET channel, it adds to the gate-to-channel voltage (as has
been mentioned here) and you can cancel that with an in-phase fundamental component
The last circuit of my own had both an n fet and a p fet.
I found that by adding a capacitor from one gate to the other (to try to cancel the unwanted signals in opposite phase) I could get
the unwanted gate signal below 100uV. I then had harmonics approaching 60dB down except one at 50dB (I think 2KHz). Not brilliant
but not bad.
There are some useful pointers here:
https://sound-au.com/articles/sinewave.htm
In particular where it says "Done properly, a JFET can provide distortion performance that is as good or better than a lamp or
thermistor."
Perhaps I'll concentrate on how to make the FET behave as a voltage variable resistor over the widest possible range.
I also what to look into what I meant by crud and non crud mode in LTSpice.
This mysterious effect can depend on things such as which specific computer is used and how long is specified before collecting
simulation data.
You can see it in the gate voltage after startup. It looks a bit like a PLL hunting and eventually locking but it doesn't happen at
startup, it happens after seconds.
So I'll need to be able to post some pictures to show that. I'll get to that.
Of course it is.That's why Wein bridges need a non-linear element that
can be adjust to get the gain exactly right and keep it there.
Not necessarily. You could have a linear component set up in such a
way that it performs non-linearly.
Is there an easy way to remove a DC offset from a simulation trace so that my n and p gate signals can be superimposed after
startup?
There is but Cursitor Doom doesn't know it.
Yeah, still haven't heard of capacitors.
On Sun, 3 Nov 2024 13:13:12 +1100, Bill Sloman <bill.sloman@ieee.org>
wrote:
On 2/11/2024 11:40 pm, Cursitor Doom wrote:
On Sat, 02 Nov 2024 07:44:28 GMT, Jan Panteltje <alien@comet.invalid>
wrote:
On a sunny day (Fri, 1 Nov 2024 22:50:41 -0000 (UTC)) it happened Nick Hayward
<nhayward8990@protonmail.com> wrote in <vg3m01$3e15j$2@dont-email.me>: >>>>
On Fri, 1 Nov 2024 19:57:21 +0100, Jeroen Belleman wrote:
On 11/1/24 19:04, Cursitor Doom wrote:
You can call me old fashioned, but I still believe there's never been a >>>>>>> more elegant computer language than the original K&R C. You can keep >>>>>>> the rest; I'll stick with that.
Agreed! All the hand-holding of later versions just get in the way. >>>>>>
Jeroen Belleman
What about C++?
It is a crime against humanity!!!
Then we're all agreed: C++ is an abomination in the sight of the Lord
and the invention of the Devil himself.
Jan Panteltje and Cursitor Doom are a very small - and poorly informed -
element of our community.
That they both agree is evidence that the proposition is probably flawed.
Or - more likely - that it doesn't conform to your rather bizarre
world-view, Bill.
On 3/11/2024 7:56 pm, Cursitor Doom wrote:
On Sun, 3 Nov 2024 13:27:26 +1100, Bill Sloman <bill.sloman@ieee.org>
wrote:
On 3/11/2024 6:21 am, Cursitor Doom wrote:
On Sat, 2 Nov 2024 13:07:32 -0400, "Edward Rawde"
<invalid@invalid.invalid> wrote:
"Bill Sloman" <bill.sloman@ieee.org> wrote in message news:vg4fff$3lok1$1@dont-email.me...
On 2/11/2024 12:01 pm, Edward Rawde wrote:
"Cursitor Doom" <cd999666@notformail.com> wrote in message news:vg3575$3bio0$1@dont-email.me...
<snip>
You've also got the point that when there's a voltage drop across the FET channel, it adds to the gate-to-channel voltage (as has
been mentioned here) and you can cancel that with an in-phase fundamental component
The last circuit of my own had both an n fet and a p fet.
I found that by adding a capacitor from one gate to the other (to try to cancel the unwanted signals in opposite phase) I could get
the unwanted gate signal below 100uV. I then had harmonics approaching 60dB down except one at 50dB (I think 2KHz). Not brilliant
but not bad.
There are some useful pointers here:
https://sound-au.com/articles/sinewave.htm
In particular where it says "Done properly, a JFET can provide distortion performance that is as good or better than a lamp or
thermistor."
Perhaps I'll concentrate on how to make the FET behave as a voltage variable resistor over the widest possible range.
I also what to look into what I meant by crud and non crud mode in LTSpice.
This mysterious effect can depend on things such as which specific computer is used and how long is specified before collecting
simulation data.
John May made the point that in LTSpice trapezium integration (as
opposed to modified trapezium integration) give less distortion in the >simulated waveform. Numerical integration is a good way of accumulating >rounding error, and shorter words mean more rounding error.
You can see it in the gate voltage after startup. It looks a bit like a PLL hunting and eventually locking but it doesn't happen at
startup, it happens after seconds.
Closed loop feedback takes a while to settle. If you known what you are
doing you can mostly make the settling dead-beat, but sometimes this
costs you more performance that you can afford.
So I'll need to be able to post some pictures to show that. I'll get to that.
<snipped Cursitor Doom being an ass>
Of course it is.That's why Wein bridges need a non-linear element that
can be adjust to get the gain exactly right and keep it there.
Not necessarily. You could have a linear component set up in such a
way that it performs non-linearly.
Then it stops being a linear component.
Is there an easy way to remove a DC offset from a simulation trace so that my n and p gate signals can be superimposed after
startup?
There is but Cursitor Doom doesn't know it.
Yeah, still haven't heard of capacitors.
Non sequitur. The simulation program involved - LTSpice - does
accommodate capacitors, but you don't need to add them to the circuit
being simulated to do what Edward Rawde was asking for.
On Sun, 3 Nov 2024 20:53:19 +1100, Bill Sloman <bill.sloman@ieee.org>
wrote:
On 3/11/2024 7:56 pm, Cursitor Doom wrote:
On Sun, 3 Nov 2024 13:27:26 +1100, Bill Sloman <bill.sloman@ieee.org>
wrote:
On 3/11/2024 6:21 am, Cursitor Doom wrote:
On Sat, 2 Nov 2024 13:07:32 -0400, "Edward Rawde"
<invalid@invalid.invalid> wrote:
"Bill Sloman" <bill.sloman@ieee.org> wrote in message news:vg4fff$3lok1$1@dont-email.me...
On 2/11/2024 12:01 pm, Edward Rawde wrote:
"Cursitor Doom" <cd999666@notformail.com> wrote in message news:vg3575$3bio0$1@dont-email.me...
Is there an easy way to remove a DC offset from a simulation trace so that my n and p gate signals can be superimposed after
startup?
There is but Cursitor Doom doesn't know it.
Yeah, still haven't heard of capacitors.
Non sequitur. The simulation program involved - LTSpice - does
accommodate capacitors, but you don't need to add them to the circuit
being simulated to do what Edward Rawde was asking for.
The fact is that a 1fF cap would have had the desired effect without compromising the circuit's performance. Why do you feel the need to complicate everything? Oh yes, to show us all how clever you are....
You can call me old fashioned, but I still believe there's never been a
more elegant computer language than the original K&R C. You can keep the rest; I'll stick with that.
On Sun, 03 Nov 2024 08:59:36 +0000, Cursitor Doom <cd@notformail.com>rsions just get in the way.
wrote:
On Sun, 3 Nov 2024 13:13:12 +1100, Bill Sloman <bill.sloman@ieee.org> >>wrote:
On 2/11/2024 11:40 pm, Cursitor Doom wrote:
On Sat, 02 Nov 2024 07:44:28 GMT, Jan Panteltje <alien@comet.invalid>
wrote:
On a sunny day (Fri, 1 Nov 2024 22:50:41 -0000 (UTC)) it happened Nick Hayward
<nhayward8990@protonmail.com> wrote in <vg3m01$3e15j$2@dont-email.me>: >>>>>
On Fri, 1 Nov 2024 19:57:21 +0100, Jeroen Belleman wrote:
On 11/1/24 19:04, Cursitor Doom wrote:
You can call me old fashioned, but I still believe there's never been a
more elegant computer language than the original K&R C. You can keep >>>>>>>> the rest; I'll stick with that.
Agreed! All the hand-holding of later ve
Jeroen Belleman
What about C++?
It is a crime against humanity!!!
Then we're all agreed: C++ is an abomination in the sight of the Lord
and the invention of the Devil himself.
Jan Panteltje and Cursitor Doom are a very small - and poorly informed - >>>element of our community.
That they both agree is evidence that the proposition is probably flawed.
Or - more likely - that it doesn't conform to your rather bizarre >>world-view, Bill.
His world view is that he knows everything and everyone else is stupid
so deserves insults.
That's really sad.
On Sun, 3 Nov 2024 13:13:12 +1100, Bill Sloman <bill.sloman@ieee.org>
wrote:
On 2/11/2024 11:40 pm, Cursitor Doom wrote:
On Sat, 02 Nov 2024 07:44:28 GMT, Jan Panteltje <alien@comet.invalid>
wrote:
On a sunny day (Fri, 1 Nov 2024 22:50:41 -0000 (UTC)) it happened Nick Hayward
<nhayward8990@protonmail.com> wrote in <vg3m01$3e15j$2@dont-email.me>: >>>>
On Fri, 1 Nov 2024 19:57:21 +0100, Jeroen Belleman wrote:
On 11/1/24 19:04, Cursitor Doom wrote:
You can call me old fashioned, but I still believe there's never been a >>>>>>> more elegant computer language than the original K&R C. You can keep >>>>>>> the rest; I'll stick with that.
Agreed! All the hand-holding of later versions just get in the way. >>>>>>
Jeroen Belleman
What about C++?
It is a crime against humanity!!!
Then we're all agreed: C++ is an abomination in the sight of the Lord
and the invention of the Devil himself.
Jan Panteltje and Cursitor Doom are a very small - and poorly informed - >>element of our community.
That they both agree is evidence that the proposition is probably flawed.
Or - more likely - that it doesn't conform to your rather bizarre
world-view, Bill.
On Sun, 03 Nov 2024 09:24:39 -0800, john larkin <JL@gct.com> wrote:
On Sun, 03 Nov 2024 08:59:36 +0000, Cursitor Doom <cd@notformail.com> >>wrote:rsions just get in the way.
On Sun, 3 Nov 2024 13:13:12 +1100, Bill Sloman <bill.sloman@ieee.org> >>>wrote:
On 2/11/2024 11:40 pm, Cursitor Doom wrote:
On Sat, 02 Nov 2024 07:44:28 GMT, Jan Panteltje <alien@comet.invalid> >>>>> wrote:
On a sunny day (Fri, 1 Nov 2024 22:50:41 -0000 (UTC)) it happened Nick Hayward
<nhayward8990@protonmail.com> wrote in <vg3m01$3e15j$2@dont-email.me>: >>>>>>
On Fri, 1 Nov 2024 19:57:21 +0100, Jeroen Belleman wrote:
On 11/1/24 19:04, Cursitor Doom wrote:
You can call me old fashioned, but I still believe there's never been a
more elegant computer language than the original K&R C. You can keep >>>>>>>>> the rest; I'll stick with that.
Agreed! All the hand-holding of later ve
Or - more likely - that it doesn't conform to your rather bizarre >>>world-view, Bill.
Jeroen Belleman
What about C++?
It is a crime against humanity!!!
Then we're all agreed: C++ is an abomination in the sight of the Lord >>>>> and the invention of the Devil himself.
Jan Panteltje and Cursitor Doom are a very small - and poorly informed - >>>>element of our community.
That they both agree is evidence that the proposition is probably flawed. >>>
His world view is that he knows everything and everyone else is stupid
so deserves insults.
That's really sad.
I had to laugh out loud when I read that because it's *so* true. The >condescension in particular is off the scale. It's a wonder he deigns
to talk to anyone at all! But his limited vocabulary gives him away
every time. Have you noticed how fond of the word 'fatuous' he is?
That's his go-to insult for just about everything.
Talking about structural "elegance" in my opinion (Common) LISP is one of the best. Data, structures, functions, even programs... everything is only atoms and lists.
On Sun, 03 Nov 2024 17:37:43 +0000, Cursitor Doom <cd@notformail.com>
wrote:
On Sun, 03 Nov 2024 09:24:39 -0800, john larkin <JL@gct.com> wrote:
On Sun, 03 Nov 2024 08:59:36 +0000, Cursitor Doom <cd@notformail.com> >>>wrote:rsions just get in the way.
On Sun, 3 Nov 2024 13:13:12 +1100, Bill Sloman <bill.sloman@ieee.org> >>>>wrote:
On 2/11/2024 11:40 pm, Cursitor Doom wrote:
On Sat, 02 Nov 2024 07:44:28 GMT, Jan Panteltje <alien@comet.invalid> >>>>>> wrote:
On a sunny day (Fri, 1 Nov 2024 22:50:41 -0000 (UTC)) it happened Nick Hayward
<nhayward8990@protonmail.com> wrote in <vg3m01$3e15j$2@dont-email.me>: >>>>>>>
On Fri, 1 Nov 2024 19:57:21 +0100, Jeroen Belleman wrote:
On 11/1/24 19:04, Cursitor Doom wrote:
You can call me old fashioned, but I still believe there's never been a
more elegant computer language than the original K&R C. You can keep >>>>>>>>>> the rest; I'll stick with that.
Agreed! All the hand-holding of later ve
Or - more likely - that it doesn't conform to your rather bizarre >>>>world-view, Bill.
Jeroen Belleman
What about C++?
It is a crime against humanity!!!
Then we're all agreed: C++ is an abomination in the sight of the Lord >>>>>> and the invention of the Devil himself.
Jan Panteltje and Cursitor Doom are a very small - and poorly informed - >>>>>element of our community.
That they both agree is evidence that the proposition is probably flawed. >>>>
His world view is that he knows everything and everyone else is stupid
so deserves insults.
That's really sad.
I had to laugh out loud when I read that because it's *so* true. The >>condescension in particular is off the scale. It's a wonder he deigns
to talk to anyone at all! But his limited vocabulary gives him away
every time. Have you noticed how fond of the word 'fatuous' he is?
That's his go-to insult for just about everything.
Best to ignore him.
On Sun, 03 Nov 2024 10:17:24 -0800, john larkin <JL@gct.com> wrote:
On Sun, 03 Nov 2024 17:37:43 +0000, Cursitor Doom <cd@notformail.com> >>wrote:
On Sun, 03 Nov 2024 09:24:39 -0800, john larkin <JL@gct.com> wrote:
On Sun, 03 Nov 2024 08:59:36 +0000, Cursitor Doom <cd@notformail.com> >>>>wrote:rsions just get in the way.
On Sun, 3 Nov 2024 13:13:12 +1100, Bill Sloman <bill.sloman@ieee.org> >>>>>wrote:
On 2/11/2024 11:40 pm, Cursitor Doom wrote:
On Sat, 02 Nov 2024 07:44:28 GMT, Jan Panteltje <alien@comet.invalid> >>>>>>> wrote:
On a sunny day (Fri, 1 Nov 2024 22:50:41 -0000 (UTC)) it happened Nick Hayward
<nhayward8990@protonmail.com> wrote in <vg3m01$3e15j$2@dont-email.me>: >>>>>>>>
On Fri, 1 Nov 2024 19:57:21 +0100, Jeroen Belleman wrote:
On 11/1/24 19:04, Cursitor Doom wrote:
You can call me old fashioned, but I still believe there's never been a
more elegant computer language than the original K&R C. You can keep
the rest; I'll stick with that.
Agreed! All the hand-holding of later ve
Or - more likely - that it doesn't conform to your rather bizarre >>>>>world-view, Bill.
Jeroen Belleman
What about C++?
It is a crime against humanity!!!
Then we're all agreed: C++ is an abomination in the sight of the Lord >>>>>>> and the invention of the Devil himself.
Jan Panteltje and Cursitor Doom are a very small - and poorly informed - >>>>>>element of our community.
That they both agree is evidence that the proposition is probably flawed. >>>>>
His world view is that he knows everything and everyone else is stupid >>>>so deserves insults.
That's really sad.
I had to laugh out loud when I read that because it's *so* true. The >>>condescension in particular is off the scale. It's a wonder he deigns
to talk to anyone at all! But his limited vocabulary gives him away
every time. Have you noticed how fond of the word 'fatuous' he is?
That's his go-to insult for just about everything.
Best to ignore him.
Absolutely. And I shall do once again when the sham election is
finally over and Kamala Harris declared the winner.
On Sun, 03 Nov 2024 08:59:36 +0000, Cursitor Doom <cd@notformail.com>
wrote:
On Sun, 3 Nov 2024 13:13:12 +1100, Bill Sloman <bill.sloman@ieee.org>
wrote:
On 2/11/2024 11:40 pm, Cursitor Doom wrote:Or - more likely - that it doesn't conform to your rather bizarre
On Sat, 02 Nov 2024 07:44:28 GMT, Jan Panteltje <alien@comet.invalid>
wrote:
On a sunny day (Fri, 1 Nov 2024 22:50:41 -0000 (UTC)) it happened Nick Hayward
<nhayward8990@protonmail.com> wrote in <vg3m01$3e15j$2@dont-email.me>: >>>>>
On Fri, 1 Nov 2024 19:57:21 +0100, Jeroen Belleman wrote:
On 11/1/24 19:04, Cursitor Doom wrote:
You can call me old fashioned, but I still believe there's never been a
more elegant computer language than the original K&R C. You can keep >>>>>>>> the rest; I'll stick with that.
Agreed! All the hand-holding of later versions just get in the way. >>>>>>>
Jeroen Belleman
What about C++?
It is a crime against humanity!!!
Then we're all agreed: C++ is an abomination in the sight of the Lord
and the invention of the Devil himself.
Jan Panteltje and Cursitor Doom are a very small - and poorly informed - >>> element of our community.
That they both agree is evidence that the proposition is probably flawed. >>
world-view, Bill.
His world view is that he knows everything and everyone else is stupid
so deserves insults.
That's really sad.
On Sun, 03 Nov 2024 18:49:03 +0000, Cursitor Doom <cd@notformail.com>
wrote:
On Sun, 03 Nov 2024 10:17:24 -0800, john larkin <JL@gct.com> wrote:
On Sun, 03 Nov 2024 17:37:43 +0000, Cursitor Doom <cd@notformail.com>
wrote:
On Sun, 03 Nov 2024 09:24:39 -0800, john larkin <JL@gct.com> wrote:
On Sun, 03 Nov 2024 08:59:36 +0000, Cursitor Doom <cd@notformail.com> >>>>> wrote:rsions just get in the way.
On Sun, 3 Nov 2024 13:13:12 +1100, Bill Sloman <bill.sloman@ieee.org> >>>>>> wrote:
On 2/11/2024 11:40 pm, Cursitor Doom wrote:
On Sat, 02 Nov 2024 07:44:28 GMT, Jan Panteltje <alien@comet.invalid> >>>>>>>> wrote:
On a sunny day (Fri, 1 Nov 2024 22:50:41 -0000 (UTC)) it happened Nick Hayward
<nhayward8990@protonmail.com> wrote in <vg3m01$3e15j$2@dont-email.me>:
On Fri, 1 Nov 2024 19:57:21 +0100, Jeroen Belleman wrote:
On 11/1/24 19:04, Cursitor Doom wrote:
You can call me old fashioned, but I still believe there's never been a
more elegant computer language than the original K&R C. You can keep
the rest; I'll stick with that.
Agreed! All the hand-holding of later ve
Jeroen Belleman
What about C++?
It is a crime against humanity!!!
Then we're all agreed: C++ is an abomination in the sight of the Lord >>>>>>>> and the invention of the Devil himself.
Jan Panteltje and Cursitor Doom are a very small - and poorly informed -
element of our community.
That they both agree is evidence that the proposition is probably flawed.
Or - more likely - that it doesn't conform to your rather bizarre
world-view, Bill.
His world view is that he knows everything and everyone else is stupid >>>>> so deserves insults.
That's really sad.
I had to laugh out loud when I read that because it's *so* true. The
condescension in particular is off the scale. It's a wonder he deigns
to talk to anyone at all! But his limited vocabulary gives him away
every time. Have you noticed how fond of the word 'fatuous' he is?
That's his go-to insult for just about everything.
Best to ignore him.
Absolutely. And I shall do once again when the sham election is
finally over and Kamala Harris declared the winner.
Best to ignore her too.
On 4/11/2024 6:37 am, john larkin wrote:
On Sun, 03 Nov 2024 18:49:03 +0000, Cursitor Doom <cd@notformail.com>
wrote:
On Sun, 03 Nov 2024 10:17:24 -0800, john larkin <JL@gct.com> wrote:
On Sun, 03 Nov 2024 17:37:43 +0000, Cursitor Doom <cd@notformail.com>
wrote:
On Sun, 03 Nov 2024 09:24:39 -0800, john larkin <JL@gct.com> wrote:
On Sun, 03 Nov 2024 08:59:36 +0000, Cursitor Doom <cd@notformail.com> >>>>>> wrote:rsions just get in the way.
On Sun, 3 Nov 2024 13:13:12 +1100, Bill Sloman <bill.sloman@ieee.org> >>>>>>> wrote:
On 2/11/2024 11:40 pm, Cursitor Doom wrote:
On Sat, 02 Nov 2024 07:44:28 GMT, Jan Panteltje <alien@comet.invalid> >>>>>>>>> wrote:
On a sunny day (Fri, 1 Nov 2024 22:50:41 -0000 (UTC)) it happened Nick Hayward
<nhayward8990@protonmail.com> wrote in <vg3m01$3e15j$2@dont-email.me>:
On Fri, 1 Nov 2024 19:57:21 +0100, Jeroen Belleman wrote: >>>>>>>>>>>
On 11/1/24 19:04, Cursitor Doom wrote:
You can call me old fashioned, but I still believe there's never been a
more elegant computer language than the original K&R C. You can keep
the rest; I'll stick with that.
Agreed! All the hand-holding of later ve
Jeroen Belleman
What about C++?
It is a crime against humanity!!!
Then we're all agreed: C++ is an abomination in the sight of the Lord >>>>>>>>> and the invention of the Devil himself.
Jan Panteltje and Cursitor Doom are a very small - and poorly informed -
element of our community.
That they both agree is evidence that the proposition is probably flawed.
Or - more likely - that it doesn't conform to your rather bizarre >>>>>>> world-view, Bill.
His world view is that he knows everything and everyone else is stupid >>>>>> so deserves insults.
That's really sad.
I had to laugh out loud when I read that because it's *so* true. The >>>>> condescension in particular is off the scale. It's a wonder he deigns >>>>> to talk to anyone at all! But his limited vocabulary gives him away
every time. Have you noticed how fond of the word 'fatuous' he is?
That's his go-to insult for just about everything.
Best to ignore him.
Absolutely. And I shall do once again when the sham election is
finally over and Kamala Harris declared the winner.
Best to ignore her too.
Ignorance is bliss. Few people can be comfortable with their heads
jammed firmly up their own arseholes, but John Larkin and Cursitor
Doom do seem to manage it.
On Sat, 02 Nov 2024 09:08:36 -0700, john larkin <JL@gct.com> wrote:
On Sat, 02 Nov 2024 15:41:11 GMT, Jan Panteltje <alien@comet.invalid>
wrote:
On a sunny day (Sat, 02 Nov 2024 07:55:18 -0700) it happened john larkin >>> <JL@gct.com> wrote in <dnecijt2s9um4l6a4qnq3j0ekto8fl955d@4ax.com>:
On Sat, 02 Nov 2024 07:42:19 GMT, Jan Panteltje <alien@comet.invalid>
wrote:
On a sunny day (Fri, 1 Nov 2024 18:04:21 -0000 (UTC)) it happened Cursitor
Doom <cd999666@notformail.com> wrote in <vg3575$3bio0$1@dont-email.me>: >>>>>
You can call me old fashioned, but I still believe there's never been a >>>>>> more elegant computer language than the original K&R C. You can keep the >>>>>> rest; I'll stick with that.
Agree, I use C only and asm when needed.
I started with binary interfacing hardware...
Nothing of all of that was hard.
BASIC was fun too, but very limiting, slow interpreted language.
PowerBasic is a fabulous compiler. We did one contest, an array math
signal processing thing. I wrote it in PB, another guy in c. Mine ran
4 times as fast. He played with the code and compiler optimiztions
for a couple of days and got it up to about 60% as fast as my PB
version.
I used the obvious FOR loop with subscripts to scan the array. He used >>>> pointers.
c is really a PDP-11 assembler. In the early days of PDP-11
programming, everybody was fascinated with using pointers to wander up >>>> and down the world, and with pushing stuff onto the stack. It shows in >>>> c now.
I use for example C on my PCs and the Raspberry Pis I have.
C is yery portable, libraries and open source applications everywhere.
gcc is a nice compiler that supports many architectures.
Stuff I wrote for the PC in C comp[iles and runs on the Raspberries...
This Usenet newsreader I use now I wrote in the late nineties when moving to Linux
as there was no Free Agent for Linux...
Still using it, now posting from a Pi4 8 GB.
It uses linked lists, I have a database of Usenet postings going back to these days.
https://panteltje.nl/panteltje/newsflex/index.html
There are some compatibility issues, but that is because the graphics library I use
had some changes, but can work around it.
More C code:
https://panteltje.nl/panteltje/newsflex/download.html
There is a simple 8052 assembler written in C on that webpage too.
And a z80 dissasembler .
https://panteltje.nl/panteltje/z80/index.html
etc etc
My website is basic html.
The guy who wrote the PDP-11 assembler said that it was really a
language processor. We built several cross-assemblers as macros within
the PDP-11 assembler, including the 6800, 6802, 6803, and 68332
processors.
Steve Gibson of grc.com is heavily into PDP-8s and his site has a good selection of info on 'em if anyone's interested.
Amazingly, Digikey will still sell you a 68332.
Price?
On Mon, 4 Nov 2024 15:05:51 +1100, Bill Sloman <bill.sloman@ieee.org>
wrote:
On 4/11/2024 6:37 am, john larkin wrote:
On Sun, 03 Nov 2024 18:49:03 +0000, Cursitor Doom <cd@notformail.com>
wrote:
On Sun, 03 Nov 2024 10:17:24 -0800, john larkin <JL@gct.com> wrote:
On Sun, 03 Nov 2024 17:37:43 +0000, Cursitor Doom <cd@notformail.com> >>>>> wrote:
On Sun, 03 Nov 2024 09:24:39 -0800, john larkin <JL@gct.com> wrote: >>>>>>
On Sun, 03 Nov 2024 08:59:36 +0000, Cursitor Doom <cd@notformail.com> >>>>>>> wrote:rsions just get in the way.
On Sun, 3 Nov 2024 13:13:12 +1100, Bill Sloman <bill.sloman@ieee.org> >>>>>>>> wrote:
On 2/11/2024 11:40 pm, Cursitor Doom wrote:
On Sat, 02 Nov 2024 07:44:28 GMT, Jan Panteltje <alien@comet.invalid>
wrote:
On a sunny day (Fri, 1 Nov 2024 22:50:41 -0000 (UTC)) it happened Nick Hayward
<nhayward8990@protonmail.com> wrote in <vg3m01$3e15j$2@dont-email.me>:
On Fri, 1 Nov 2024 19:57:21 +0100, Jeroen Belleman wrote: >>>>>>>>>>>>
On 11/1/24 19:04, Cursitor Doom wrote:
You can call me old fashioned, but I still believe there's never been a
more elegant computer language than the original K&R C. You can keep
the rest; I'll stick with that.
Agreed! All the hand-holding of later ve
Jeroen Belleman
What about C++?
It is a crime against humanity!!!
Then we're all agreed: C++ is an abomination in the sight of the Lord
and the invention of the Devil himself.
Jan Panteltje and Cursitor Doom are a very small - and poorly informed -
element of our community.
That they both agree is evidence that the proposition is probably flawed.
Or - more likely - that it doesn't conform to your rather bizarre >>>>>>>> world-view, Bill.
His world view is that he knows everything and everyone else is stupid >>>>>>> so deserves insults.
That's really sad.
I had to laugh out loud when I read that because it's *so* true. The >>>>>> condescension in particular is off the scale. It's a wonder he deigns >>>>>> to talk to anyone at all! But his limited vocabulary gives him away >>>>>> every time. Have you noticed how fond of the word 'fatuous' he is? >>>>>> That's his go-to insult for just about everything.
Best to ignore him.
Absolutely. And I shall do once again when the sham election is
finally over and Kamala Harris declared the winner.
Best to ignore her too.
Ignorance is bliss. Few people can be comfortable with their heads
jammed firmly up their own arseholes, but John Larkin and Cursitor
Doom do seem to manage it.
That's a bit rich coming from you, Bill. You're so far up yours you
could check your own prostate.
On Sat, 02 Nov 2024 09:08:36 -0700, john larkin <JL@gct.com> wrote:
On Sat, 02 Nov 2024 15:41:11 GMT, Jan Panteltje <alien@comet.invalid> >>wrote:
On a sunny day (Sat, 02 Nov 2024 07:55:18 -0700) it happened john larkin >>><JL@gct.com> wrote in <dnecijt2s9um4l6a4qnq3j0ekto8fl955d@4ax.com>:
On Sat, 02 Nov 2024 07:42:19 GMT, Jan Panteltje <alien@comet.invalid> >>>>wrote:
On a sunny day (Fri, 1 Nov 2024 18:04:21 -0000 (UTC)) it happened Cursitor >>>>>Doom <cd999666@notformail.com> wrote in <vg3575$3bio0$1@dont-email.me>: >>>>>
You can call me old fashioned, but I still believe there's never been a >>>>>>more elegant computer language than the original K&R C. You can keep the >>>>>>rest; I'll stick with that.
Agree, I use C only and asm when needed.
I started with binary interfacing hardware...
Nothing of all of that was hard.
BASIC was fun too, but very limiting, slow interpreted language.
PowerBasic is a fabulous compiler. We did one contest, an array math >>>>signal processing thing. I wrote it in PB, another guy in c. Mine ran
4 times as fast. He played with the code and compiler optimiztions
for a couple of days and got it up to about 60% as fast as my PB >>>>version.
I used the obvious FOR loop with subscripts to scan the array. He used >>>>pointers.
c is really a PDP-11 assembler. In the early days of PDP-11 >>>>programming, everybody was fascinated with using pointers to wander up >>>>and down the world, and with pushing stuff onto the stack. It shows in >>>>c now.
I use for example C on my PCs and the Raspberry Pis I have.
C is yery portable, libraries and open source applications everywhere. >>>gcc is a nice compiler that supports many architectures.
Stuff I wrote for the PC in C comp[iles and runs on the Raspberries... >>>This Usenet newsreader I use now I wrote in the late nineties when moving to Linux
as there was no Free Agent for Linux...
Still using it, now posting from a Pi4 8 GB.
It uses linked lists, I have a database of Usenet postings going back to these days.
https://panteltje.nl/panteltje/newsflex/index.html
There are some compatibility issues, but that is because the graphics library I use
had some changes, but can work around it.
More C code:
https://panteltje.nl/panteltje/newsflex/download.html
There is a simple 8052 assembler written in C on that webpage too.
And a z80 dissasembler .
https://panteltje.nl/panteltje/z80/index.html
etc etc
My website is basic html.
The guy who wrote the PDP-11 assembler said that it was really a
language processor. We built several cross-assemblers as macros within
the PDP-11 assembler, including the 6800, 6802, 6803, and 68332
processors.
Steve Gibson of grc.com is heavily into PDP-8s and his site has a good >selection of info on 'em if anyone's interested.
Amazingly, Digikey will still sell you a 68332.
Price?
On Sat, 02 Nov 2024 19:30:52 +0000, Cursitor Doom <cd@notformail.com>...
wrote:
On Sat, 02 Nov 2024 09:08:36 -0700, john larkin <JL@gct.com> wrote:
On Sat, 02 Nov 2024 15:41:11 GMT, Jan Panteltje <alien@comet.invalid> >>>wrote:
On a sunny day (Sat, 02 Nov 2024 07:55:18 -0700) it happened john larkin >>>><JL@gct.com> wrote in <dnecijt2s9um4l6a4qnq3j0ekto8fl955d@4ax.com>:
On Sat, 02 Nov 2024 07:42:19 GMT, Jan Panteltje <alien@comet.invalid> >>>>>wrote:
On a sunny day (Fri, 1 Nov 2024 18:04:21 -0000 (UTC)) it happened Cursitor
Doom <cd999666@notformail.com> wrote in <vg3575$3bio0$1@dont-email.me>: >>>>>>
We will need to redesign a bunch of older products as parts go EOL,
but the 68332 has outlived about 5 generations of various ARM chips
already.
On Mon, 4 Nov 2024 15:05:51 +1100, Bill Sloman <bill.sloman@ieee.org>
wrote:
On 4/11/2024 6:37 am, john larkin wrote:
On Sun, 03 Nov 2024 18:49:03 +0000, Cursitor Doom <cd@notformail.com>
wrote:
On Sun, 03 Nov 2024 10:17:24 -0800, john larkin <JL@gct.com> wrote:
On Sun, 03 Nov 2024 17:37:43 +0000, Cursitor Doom <cd@notformail.com> >>>>> wrote:
On Sun, 03 Nov 2024 09:24:39 -0800, john larkin <JL@gct.com> wrote: >>>>>>
On Sun, 03 Nov 2024 08:59:36 +0000, Cursitor Doom <cd@notformail.com> >>>>>>> wrote:rsions just get in the way.
On Sun, 3 Nov 2024 13:13:12 +1100, Bill Sloman <bill.sloman@ieee.org> >>>>>>>> wrote:
On 2/11/2024 11:40 pm, Cursitor Doom wrote:
On Sat, 02 Nov 2024 07:44:28 GMT, Jan Panteltje <alien@comet.invalid>
wrote:
On a sunny day (Fri, 1 Nov 2024 22:50:41 -0000 (UTC)) it happened Nick Hayward
<nhayward8990@protonmail.com> wrote in <vg3m01$3e15j$2@dont-email.me>:
On Fri, 1 Nov 2024 19:57:21 +0100, Jeroen Belleman wrote: >>>>>>>>>>>>
On 11/1/24 19:04, Cursitor Doom wrote:
You can call me old fashioned, but I still believe there's never been a
more elegant computer language than the original K&R C. You can keep
the rest; I'll stick with that.
Agreed! All the hand-holding of later ve
Jeroen Belleman
What about C++?
It is a crime against humanity!!!
Then we're all agreed: C++ is an abomination in the sight of the Lord
and the invention of the Devil himself.
Jan Panteltje and Cursitor Doom are a very small - and poorly informed -
element of our community.
That they both agree is evidence that the proposition is probably flawed.
Or - more likely - that it doesn't conform to your rather bizarre >>>>>>>> world-view, Bill.
His world view is that he knows everything and everyone else is stupid >>>>>>> so deserves insults.
That's really sad.
I had to laugh out loud when I read that because it's *so* true. The >>>>>> condescension in particular is off the scale. It's a wonder he deigns >>>>>> to talk to anyone at all! But his limited vocabulary gives him away >>>>>> every time. Have you noticed how fond of the word 'fatuous' he is? >>>>>> That's his go-to insult for just about everything.
Best to ignore him.
Absolutely. And I shall do once again when the sham election is
finally over and Kamala Harris declared the winner.
Best to ignore her too.
Ignorance is bliss. Few people can be comfortable with their heads
jammed firmly up their own arseholes, but John Larkin and Cursitor
Doom do seem to manage it.
That's a bit rich coming from you, Bill. You're so far up yours you
could check your own prostate.
"john larkin" <JL@gct.com> wrote in message news:fnthij9gl2g19bijc4jsm8fb7vuhe1keht@4ax.com...
On Sat, 02 Nov 2024 19:30:52 +0000, Cursitor Doom <cd@notformail.com>...
wrote:
On Sat, 02 Nov 2024 09:08:36 -0700, john larkin <JL@gct.com> wrote:
On Sat, 02 Nov 2024 15:41:11 GMT, Jan Panteltje <alien@comet.invalid> >>>>wrote:
On a sunny day (Sat, 02 Nov 2024 07:55:18 -0700) it happened john larkin >>>>><JL@gct.com> wrote in <dnecijt2s9um4l6a4qnq3j0ekto8fl955d@4ax.com>:
On Sat, 02 Nov 2024 07:42:19 GMT, Jan Panteltje <alien@comet.invalid> >>>>>>wrote:
On a sunny day (Fri, 1 Nov 2024 18:04:21 -0000 (UTC)) it happened Cursitor
Doom <cd999666@notformail.com> wrote in <vg3575$3bio0$1@dont-email.me>: >>>>>>>
We will need to redesign a bunch of older products as parts go EOL,
but the 68332 has outlived about 5 generations of various ARM chips
already.
Haven't used one for 25 years and yes I bet plenty of people will be panicking over what to do when they're no longer available
because the original designers will be long since gone.
On Mon, 04 Nov 2024 10:18:33 +0000, Cursitor Doom <cd@notformail.com>
wrote:
On Mon, 4 Nov 2024 15:05:51 +1100, Bill Sloman <bill.sloman@ieee.org> >>wrote:
On 4/11/2024 6:37 am, john larkin wrote:
On Sun, 03 Nov 2024 18:49:03 +0000, Cursitor Doom <cd@notformail.com>
wrote:
On Sun, 03 Nov 2024 10:17:24 -0800, john larkin <JL@gct.com> wrote:
On Sun, 03 Nov 2024 17:37:43 +0000, Cursitor Doom <cd@notformail.com> >>>>>> wrote:
On Sun, 03 Nov 2024 09:24:39 -0800, john larkin <JL@gct.com> wrote: >>>>>>>
On Sun, 03 Nov 2024 08:59:36 +0000, Cursitor Doom <cd@notformail.com> >>>>>>>> wrote:rsions just get in the way.
On Sun, 3 Nov 2024 13:13:12 +1100, Bill Sloman <bill.sloman@ieee.org> >>>>>>>>> wrote:
On 2/11/2024 11:40 pm, Cursitor Doom wrote:
On Sat, 02 Nov 2024 07:44:28 GMT, Jan Panteltje <alien@comet.invalid>
wrote:
On a sunny day (Fri, 1 Nov 2024 22:50:41 -0000 (UTC)) it happened Nick Hayward
<nhayward8990@protonmail.com> wrote in <vg3m01$3e15j$2@dont-email.me>:
On Fri, 1 Nov 2024 19:57:21 +0100, Jeroen Belleman wrote: >>>>>>>>>>>>>
On 11/1/24 19:04, Cursitor Doom wrote:
You can call me old fashioned, but I still believe there's never been a
more elegant computer language than the original K&R C. You can keep
the rest; I'll stick with that.
Agreed! All the hand-holding of later ve
Jeroen Belleman
What about C++?
It is a crime against humanity!!!
Then we're all agreed: C++ is an abomination in the sight of the Lord
and the invention of the Devil himself.
Jan Panteltje and Cursitor Doom are a very small - and poorly informed -
element of our community.
That they both agree is evidence that the proposition is probably flawed.
Or - more likely - that it doesn't conform to your rather bizarre >>>>>>>>> world-view, Bill.
His world view is that he knows everything and everyone else is stupid >>>>>>>> so deserves insults.
That's really sad.
I had to laugh out loud when I read that because it's *so* true. The >>>>>>> condescension in particular is off the scale. It's a wonder he deigns >>>>>>> to talk to anyone at all! But his limited vocabulary gives him away >>>>>>> every time. Have you noticed how fond of the word 'fatuous' he is? >>>>>>> That's his go-to insult for just about everything.
Best to ignore him.
Absolutely. And I shall do once again when the sham election is
finally over and Kamala Harris declared the winner.
Best to ignore her too.
Ignorance is bliss. Few people can be comfortable with their heads
jammed firmly up their own arseholes, but John Larkin and Cursitor
Doom do seem to manage it.
That's a bit rich coming from you, Bill. You're so far up yours you
could check your own prostate.
Doom, please be a little civilized. Sloman is delighted to make a foul
fool of you.
On Mon, 04 Nov 2024 09:57:04 -0800, john larkin <jl@glen--canyon.com>
wrote:
On Mon, 04 Nov 2024 10:18:33 +0000, Cursitor Doom <cd@notformail.com>
wrote:
On Mon, 4 Nov 2024 15:05:51 +1100, Bill Sloman <bill.sloman@ieee.org>
wrote:
On 4/11/2024 6:37 am, john larkin wrote:
On Sun, 03 Nov 2024 18:49:03 +0000, Cursitor Doom <cd@notformail.com> >>>>> wrote:
On Sun, 03 Nov 2024 10:17:24 -0800, john larkin <JL@gct.com> wrote: >>>>>>
On Sun, 03 Nov 2024 17:37:43 +0000, Cursitor Doom <cd@notformail.com> >>>>>>> wrote:
On Sun, 03 Nov 2024 09:24:39 -0800, john larkin <JL@gct.com> wrote: >>>>>>>>
On Sun, 03 Nov 2024 08:59:36 +0000, Cursitor Doom <cd@notformail.com> >>>>>>>>> wrote:rsions just get in the way.
On Sun, 3 Nov 2024 13:13:12 +1100, Bill Sloman <bill.sloman@ieee.org>
wrote:
On 2/11/2024 11:40 pm, Cursitor Doom wrote:
On Sat, 02 Nov 2024 07:44:28 GMT, Jan Panteltje <alien@comet.invalid>
wrote:
On a sunny day (Fri, 1 Nov 2024 22:50:41 -0000 (UTC)) it happened Nick Hayward
<nhayward8990@protonmail.com> wrote in <vg3m01$3e15j$2@dont-email.me>:
On Fri, 1 Nov 2024 19:57:21 +0100, Jeroen Belleman wrote: >>>>>>>>>>>>>>
On 11/1/24 19:04, Cursitor Doom wrote:
You can call me old fashioned, but I still believe there's never been a
more elegant computer language than the original K&R C. You can keep
the rest; I'll stick with that.
Agreed! All the hand-holding of later ve
Jeroen Belleman
What about C++?
It is a crime against humanity!!!
Then we're all agreed: C++ is an abomination in the sight of the Lord
and the invention of the Devil himself.
Jan Panteltje and Cursitor Doom are a very small - and poorly informed -
element of our community.
That they both agree is evidence that the proposition is probably flawed.
Or - more likely - that it doesn't conform to your rather bizarre >>>>>>>>>> world-view, Bill.
His world view is that he knows everything and everyone else is stupid
so deserves insults.
That's really sad.
I had to laugh out loud when I read that because it's *so* true. The >>>>>>>> condescension in particular is off the scale. It's a wonder he deigns >>>>>>>> to talk to anyone at all! But his limited vocabulary gives him away >>>>>>>> every time. Have you noticed how fond of the word 'fatuous' he is? >>>>>>>> That's his go-to insult for just about everything.
Best to ignore him.
Absolutely. And I shall do once again when the sham election is
finally over and Kamala Harris declared the winner.
Best to ignore her too.
Ignorance is bliss. Few people can be comfortable with their heads
jammed firmly up their own arseholes, but John Larkin and Cursitor
Doom do seem to manage it.
That's a bit rich coming from you, Bill. You're so far up yours you
could check your own prostate.
Doom, please be a little civilized. Sloman is delighted to make a foul
fool of you.
Relax, John. I'm just having a bit of fun with Bill for some
much-needed Election light relief. I'll go back to ignoring him again
once they've announced Harris as the winner.
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 415 |
Nodes: | 16 (2 / 14) |
Uptime: | 93:07:41 |
Calls: | 8,690 |
Calls today: | 5 |
Files: | 13,250 |
Messages: | 5,947,022 |