Re: The joy of FORTH (not)

Liste des GroupesRevenir à col misc 
Sujet : Re: The joy of FORTH (not)
De : antispam (at) *nospam* fricas.org (Waldek Hebisch)
Groupes : alt.folklore.computers comp.os.linux.misc
Date : 24. Oct 2024, 01:10:20
Autres entêtes
Organisation : To protect and to server
Message-ID : <vfc399$39pf9$1@paganini.bofh.team>
References : 1 2 3 4 5 6 7 8 9 10 11 12 13
User-Agent : tin/2.6.2-20221225 ("Pittyvaich") (Linux/6.1.0-9-amd64 (x86_64))
In alt.folklore.computers Lawrence D'Oliveiro <ldo@nz.invalid> wrote:
On Tue, 22 Oct 2024 16:07:33 -0700, Peter Flass wrote:
 
Lawrence D'Oliveiro <ldo@nz.invalid> wrote:
>
On Tue, 22 Oct 2024 09:59:31 -0700, John Ames wrote:
 
Which, sure, beefy microcontrollers with comparatively spacious memory
loadouts are cheaper than ever, but less luxurious ones are cheaper
still - and a byte saved is, as always, a byte earned ;)
 
How much of your time did it take to save that byte?
 
Think of how many bytes you would need to save per hour of your time,
to make it worthwhile to whoever is paying for that time.
 
If it’s the difference between using what you have and buying a more
expensive board, times however-many units you’re shipping, it might not
be too many.
 
Presumably there is some threshold below which it simply isn’t worth
trying to save a bit of RAM. What is it nowadays: as much as 1MiB? Higher?
Lower?

It seems that you do not know what you are talking about.  Most
embedded systems are small single chip ones.  Smallest chips
on the market are something like 64 bytes of RAM and 1 kB flash.
IMO those make sense if you have simple problem which fits
without making special effort (or maybe you have huge volume).
If you are using Micro-Python your program, however simple
will not fit into such chip.  Forth _may_ fit but you need
to make effort to get small version of Forth.  Next interesting
point are chips with 2-4 kB RAM and 16kB flash.  Those are
popular chips availale for 10-30 cents in quantity and few
times more in small volume.  For hobbists interesting point
is STM32F103C8T6.  It has 20 kB RAM and 64 kB flash.  Boards
with this chip (or chinese clones of it) are available at
aroud $2 from chinese sellers.  This is cheap enough to put
such board as part of a design and handling such board is
much easier than building own circuit with the chip.  There
are bigger chips, but tendency is for much higher price
when you need more RAM.  In classic MCU-s 1MB of RAM means
_very_ big and expensive chip.  This is mainly because
MCU normally need logic parts (like processor core), analog
circuits (ADC-s and/or comparators), static RAM and flash.
Apparently it is tricky to get all of those into a single
process and bigger static RAM tends to take a lot of chip
area.  There are now new "chips" which use multi-die
technology.  For example RP2040 has flash on separate die
allowing much larger RAM compared to single die version.

Once you want more than 1MB RAM it makes sense to use exteral
RAM.  And for larger amount one probably would prefer DRAM.
If you use DRAM, then smallest sensible amount is probably
16 MB.  There is a chip on the market containing 1GHz core
and 64MB DRAM (this probably is two-die chip).  One can
get boards with this chip at about twice of cost of
RP2040 board.  Note that RP2040 has its own flash, while
the board with bigger chip needs extra flash or SD-card.
SD-card adds cost and at least cheap SD-cards tends to
be  unreliable, so you may be pushed to more expensive
technology like eMMC.

Beside cost of the MCU chip there is also board cost.  Small
chips can be put on simple cheap boards.  More advanced chips
tends to require more advanced boards which may be more expensive,
especially in small quantities.

Concerning two-die chips, they are attractive for low-cost
gadgets, but may be problematic in real-time context.
Namely, flash access in such chips is _much_ slower than
in single-die chips.  This may be partially compensated
using caches, on average such chips perform quite well.
But worst case time may be many times longer than best
case and it gets much harder to provide any warranty on
execution time.

For embedded chips cost is not the only factor.  Namely, many
embedded devices use battery power.  More processor cycles
and more data read from RAM and flash means more power
drain.  To have reasonable battery life one needs efficient
program and a small chip.

--
                              Waldek Hebisch

Date Sujet#  Auteur
21 Sep 24 * Can't Avoid That Shit Rust - Even On Gentoo1621Farley Flud
21 Sep 24 +- Re: Can't Avoid That Shit Rust - Even On Gentoo1Farley Flud
24 Sep 24 `* Re: Can't Avoid That Shit Rust - Even On Gentoo1619186282@ud0s4.net
24 Sep 24  +* Re: Can't Avoid That Shit Rust - Even On Gentoo6Lawrence D'Oliveiro
24 Sep 24  i+* Re: Can't Avoid That Shit Rust - Even On Gentoo2Pancho
25 Sep 24  ii`- Re: Can't Avoid That Shit Rust - Even On Gentoo1186282@ud0s4.net
25 Sep 24  i`* Re: Can't Avoid That Shit Rust - Even On Gentoo3186282@ud0s4.net
25 Sep 24  i +- Re: Can't Avoid That Shit Rust - Even On Gentoo1Lawrence D'Oliveiro
25 Sep 24  i `- Re: Can't Avoid That Shit Rust - Even On Gentoo1rbowman
24 Sep 24  +* Re: Can't Avoid That Shit Rust - Even On Gentoo4D
25 Sep 24  i`* Re: Can't Avoid That Shit Rust - Even On Gentoo3186282@ud0s4.net
25 Sep 24  i `* Re: Can't Avoid That Shit Rust - Even On Gentoo2Lawrence D'Oliveiro
28 Sep 24  i  `- Re: Can't Avoid That Shit Rust - Even On Gentoo1186282@ud0s4.net
24 Sep 24  +* The joy of FORTRAN1560Lars Poulsen
24 Sep 24  i+* Re: The joy of FORTRAN265Sn!pe
24 Sep 24  ii+* Re: The joy of FORTRAN169The Natural Philosopher
24 Sep 24  iii+* Re: The joy of FORTRAN35Lawrence D'Oliveiro
25 Sep 24  iiii+* Re: The joy of FORTRAN22rbowman
25 Sep 24  iiiii+* Re: The joy of FORTRAN19Bob Eager
25 Sep 24  iiiiii+* Re: The joy of FORTRAN16rbowman
25 Sep 24  iiiiiii+* Re: The joy of FORTRAN13Bob Eager
27 Sep 24  iiiiiiii`* Re: The joy of FORTRAN12Peter Flass
27 Sep 24  iiiiiiii +- Re: The joy of FORTRAN1Niklas Karlsson
27 Sep 24  iiiiiiii +* Re: The joy of FORTRAN6R Daneel Olivaw
28 Sep 24  iiiiiiii i+* Re: The joy of FORTRAN3Gordon Henderson
28 Sep 24  iiiiiiii ii+- Re: The joy of FORTRAN1Peter Flass
28 Sep 24  iiiiiiii ii`- Re: The joy of FORTRAN1Bob Eager
28 Sep 24  iiiiiiii i+- Re: The joy of FORTRAN1Peter Flass
28 Sep 24  iiiiiiii i`- Re: The joy of FORTRAN1Lars Poulsen
27 Sep 24  iiiiiiii +- Re: The joy of FORTRAN1Bob Eager
28 Sep 24  iiiiiiii `* Re: The joy of FORTRAN3Lawrence D'Oliveiro
28 Sep 24  iiiiiiii  +- Re: The joy of FORTRAN1Peter Flass
30 Sep 24  iiiiiiii  `- Re: The joy of FORTRAN1Rich Alderson
25 Sep 24  iiiiiii`* Re: The joy of FORTRAN2Lynn Wheeler
25 Sep 24  iiiiiii `- Re: The joy of FORTRAN1Kerr-Mudd, John
25 Sep 24  iiiiii`* Re: The joy of FORTRAN2Chris Ahlstrom
25 Sep 24  iiiiii `- Re: The joy of FORTRAN1Bob Eager
27 Sep 24  iiiii`* Re: The joy of FORTRAN2Peter Flass
27 Sep 24  iiiii `- Re: The joy of FORTRAN1moi
25 Sep 24  iiii+* Re: The joy of FORTRAN3Lynn Wheeler
25 Sep 24  iiiii`* Re: The joy of FORTRAN2Lawrence D'Oliveiro
11 Oct 24  iiiii `- Re: The joy of FORTRAN1Bozo User
25 Sep 24  iiii+* Re: The joy of FORTRAN2Chris Ahlstrom
27 Sep 24  iiiii`- Re: The joy of FORTRAN1Peter Flass
25 Sep 24  iiii+- Re: The joy of FORTRAN1Chris Ahlstrom
25 Sep 24  iiii+- Re: The joy of FORTRAN1Kerr-Mudd, John
27 Sep 24  iiii+* Re: The joy of FORTRAN2Peter Flass
27 Sep 24  iiiii`- Re: The joy of FORTRAN1Dennis Boone
27 Sep 24  iiii`* Re: The joy of FORTRAN3Andy Walker
28 Sep 24  iiii +- Re: The joy of FORTRAN1Lawrence D'Oliveiro
28 Sep 24  iiii `- Re: The joy of FORTRAN1Peter Flass
25 Sep 24  iii+* Re: The joy of FORTRAN2Peter Flass
25 Sep 24  iiii`- Re: The joy of FORTRAN1Lawrence D'Oliveiro
25 Sep 24  iii+- Re: The joy of FORTRAN1Peter Flass
25 Sep 24  iii+- Re: The joy of FORTRAN1Peter Flass
25 Sep 24  iii+- Re: The joy of FORTRAN1rbowman
25 Sep 24  iii+* Re: The joy of FORTRAN124Woozy Song
25 Sep 24  iiii`* Re: The joy of FORTRAN123rbowman
25 Sep 24  iiii +* Re: The joy of FORTRAN3Lawrence D'Oliveiro
27 Sep 24  iiii i`* Re: The joy of FORTRAN2Peter Flass
30 Sep 24  iiii i `- Re: The joy of FORTRAN1Waldek Hebisch
25 Sep 24  iiii +* Re: The joy of FORTRAN37Chris Ahlstrom
25 Sep 24  iiii i+* Re: The joy of FORTRAN3R Daneel Olivaw
25 Sep 24  iiii ii`* Re: The joy of FORTRAN2Kerr-Mudd, John
25 Sep 24  iiii ii `- Re: The joy of FORTRAN1R Daneel Olivaw
25 Sep 24  iiii i+* Re: The joy of FORTRAN6Lynn Wheeler
26 Sep 24  iiii ii+- Re: The joy of FORTRAN1Pancho
26 Sep 24  iiii ii`* Re: The joy of FORTRAN4Lynn Wheeler
26 Sep 24  iiii ii `* Re: The joy of FORTRAN3Lawrence D'Oliveiro
27 Sep 24  iiii ii  `* Re: The joy of FORTRAN2rbowman
27 Sep 24  iiii ii   `- Re: The joy of FORTRAN1Lawrence D'Oliveiro
26 Sep 24  iiii i+* Re: The joy of FORTRAN3rbowman
26 Sep 24  iiii ii+- Re: The joy of FORTRAN1John Ames
26 Sep 24  iiii ii`- Re: The joy of FORTRAN1Lawrence D'Oliveiro
26 Sep 24  iiii i+* Re: The joy of FORTRAN19Pancho
26 Sep 24  iiii ii+* Re: The joy of FORTRAN16Lawrence D'Oliveiro
26 Sep 24  iiii iii`* Re: The joy of FORTRAN15Pancho
26 Sep 24  iiii iii `* Re: The joy of FORTRAN14Lawrence D'Oliveiro
27 Sep 24  iiii iii  `* Re: The joy of FORTRAN13Lars Poulsen
27 Sep 24  iiii iii   +* Re: The joy of FORTRAN7Lawrence D'Oliveiro
27 Sep 24  iiii iii   i`* Re: The joy of FORTRAN6Pancho
28 Sep 24  iiii iii   i `* Re: The joy of VAX5Lawrence D'Oliveiro
28 Sep 24  iiii iii   i  `* Re: The joy of VAX4Pancho
29 Sep 24  iiii iii   i   `* Re: The joy of VAX3Robert Marshall
29 Sep 24  iiii iii   i    +- Re: The joy of VAX1Bob Eager
29 Sep 24  iiii iii   i    `- Re: The joy of VAX1Peter Flass
28 Sep 24  iiii iii   `* The joy of VAX C5Lars Poulsen
28 Sep 24  iiii iii    +- Re: The joy of VAX C1The Natural Philosopher
29 Sep 24  iiii iii    +- Re: The joy of VAX C1rbowman
29 Sep 24  iiii iii    `* Re: The joy of VAX C2Peter Flass
30 Sep 24  iiii iii     `- Re: The joy of VAX C1Lawrence D'Oliveiro
27 Sep 24  iiii ii`* Re: The joy of FORTRAN2Peter Flass
27 Sep 24  iiii ii `- Re: The joy of FORTRAN1Lawrence D'Oliveiro
27 Sep 24  iiii i`* Re: The joy of FORTRAN5Peter Flass
27 Sep 24  iiii i +* Re: The joy of FORTRAN2Bob Eager
28 Sep 24  iiii i i`- Re: The joy of FORTRAN1Peter Flass
27 Sep 24  iiii i `* Re: The joy of FORTRAN2Lynn Wheeler
27 Sep 24  iiii i  `- Re: The joy of FORTRAN1Lynn Wheeler
25 Sep 24  iiii `* Re: The joy of FORTRAN82John Ames
25 Sep 24  iiii  +* Re: The joy of FORTRAN77Stefan Ram
25 Sep 24  iiii  i+* Re: The joy of FORTRAN2John Ames
25 Sep 24  iiii  i+* TeX and Pascal [was Re: The joy of FORTRAN]73Rich Alderson
25 Sep 24  iiii  i`- Re: The joy of FORTRAN1Lawrence D'Oliveiro
25 Sep 24  iiii  `* Re: The joy of FORTRAN4Lawrence D'Oliveiro
25 Sep 24  iii`* Re: The joy of FORTRAN4John Levine
24 Sep 24  ii+* Re: The joy of FORTRAN91rbowman
24 Sep 24  ii+* Re: The joy of FORTRAN2Lawrence D'Oliveiro
25 Sep 24  ii`* Re: The joy of FORTRAN2Bob Eager
24 Sep 24  i+* Re: The joy of FORTRAN5Bob Eager
24 Sep 24  i+- Re: The joy of FORTRAN1R Daneel Olivaw
25 Sep 24  i+- Re: The joy of FORTRAN1Peter Flass
25 Sep 24  i`* Re: The joy of FORTRAN1287186282@ud0s4.net
24 Sep 24  +* Re: Can't Avoid That Shit Rust - Even On Gentoo3rek2 hispagatos
24 Sep 24  +* Re: Can't Avoid That Shit Rust - Even On Gentoo2rbowman
24 Sep 24  +- Re: Can't Avoid That Shit Rust - Even On Gentoo1The Natural Philosopher
25 Sep 24  +* Re: Can't Avoid That Shit Rust - Even On Gentoo41rbowman
7 Oct 24  `- Re: Can't Avoid That Shit Rust - Even On Gentoo1Rich Alderson

Haut de la page

Les messages affichés proviennent d'usenet.

NewsPortal