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
4 Oct 24 * Re: The joy of FORTRAN233186282@ud0s4.net
4 Oct 24 +* Re: The joy of FORTRAN231Lawrence D'Oliveiro
4 Oct 24 i`* Re: The joy of FORTRAN230186282@ud0s4.net
4 Oct 24 i +* Re: The joy of FORTRAN227Lawrence D'Oliveiro
4 Oct 24 i i`* Re: The joy of FORTRAN226rbowman
4 Oct 24 i i `* Re: The joy of FORTRAN225Lawrence D'Oliveiro
4 Oct 24 i i  +* Re: The joy of FORTRAN219rbowman
5 Oct 24 i i  i`* Re: The joy of FORTRAN218Lawrence D'Oliveiro
6 Oct 24 i i  i `* Re: The joy of FORTRAN217186282@ud0s4.net
6 Oct 24 i i  i  +- Re: The joy of FORTRAN1Lawrence D'Oliveiro
7 Oct 24 i i  i  +* Re: The joy of FORTRAN214rbowman
20 Oct 24 i i  i  i`* Re: The joy of FORTRAN213186282@ud0s4.net
20 Oct 24 i i  i  i +* Re: The joy of FORTH211Peter Dean
20 Oct 24 i i  i  i i+* Re: The joy of FORTH (not)2Lawrence D'Oliveiro
20 Oct 24 i i  i  i ii`- Re: The joy of FORTH (not)1Peter Dean
20 Oct 24 i i  i  i i`* Re: The joy of FORTH (not)208Lawrence D'Oliveiro
21 Oct 24 i i  i  i i `* Re: The joy of FORTH (not)207rbowman
21 Oct 24 i i  i  i i  +* Re: The joy of FORTH (not)199Lawrence D'Oliveiro
21 Oct 24 i i  i  i i  i`* Re: The joy of FORTH (not)198rbowman
21 Oct 24 i i  i  i i  i `* Re: The joy of FORTH (not)197Lawrence D'Oliveiro
21 Oct 24 i i  i  i i  i  `* Re: The joy of FORTH (not)196John Ames
21 Oct 24 i i  i  i i  i   `* Re: The joy of FORTH (not)195Lawrence D'Oliveiro
21 Oct 24 i i  i  i i  i    +* Re: The joy of FORTH (not)187John Ames
22 Oct 24 i i  i  i i  i    i`* Re: The joy of FORTH (not)186Lawrence D'Oliveiro
22 Oct 24 i i  i  i i  i    i `* Re: The joy of FORTH (not)185rbowman
22 Oct 24 i i  i  i i  i    i  `* Re: The joy of FORTH (not)184Lawrence D'Oliveiro
22 Oct 24 i i  i  i i  i    i   +* Re: The joy of FORTH (not)2rbowman
22 Oct 24 i i  i  i i  i    i   i`- Re: The joy of FORTH (not)1Lawrence D'Oliveiro
22 Oct 24 i i  i  i i  i    i   `* Re: The joy of FORTH (not)181John Ames
22 Oct 24 i i  i  i i  i    i    `* Re: The joy of FORTH (not)180Lawrence D'Oliveiro
22 Oct 24 i i  i  i i  i    i     +* Re: The joy of FORTH (not)151John Ames
22 Oct 24 i i  i  i i  i    i     i`* Re: The joy of FORTH (not)150Lawrence D'Oliveiro
22 Oct 24 i i  i  i i  i    i     i `* Re: The joy of FORTH (not)149John Ames
23 Oct 24 i i  i  i i  i    i     i  +* Re: The joy of FORTH (not)147magardner2010
23 Oct 24 i i  i  i i  i    i     i  i+* Re: The joy of FORTH (not)144Lawrence D'Oliveiro
24 Oct 24 i i  i  i i  i    i     i  ii`* Re: The joy of FORTH (not)143magardner2010
24 Oct 24 i i  i  i i  i    i     i  ii `* Re: The joy of FORTH (not)142Lawrence D'Oliveiro
24 Oct 24 i i  i  i i  i    i     i  ii  +* Re: The joy of FORTH (not)139186282@ud0s4.net
24 Oct 24 i i  i  i i  i    i     i  ii  i`* Re: The joy of Ada138Lawrence D'Oliveiro
24 Oct 24 i i  i  i i  i    i     i  ii  i `* Re: The joy of Ada137186282@ud0s4.net
24 Oct 24 i i  i  i i  i    i     i  ii  i  `* Re: The joy of Ada136Lawrence D'Oliveiro
25 Oct 24 i i  i  i i  i    i     i  ii  i   `* Re: The joy of Ada135186282@ud0s4.net
25 Oct 24 i i  i  i i  i    i     i  ii  i    +* Re: The joy of Ada132rbowman
25 Oct 24 i i  i  i i  i    i     i  ii  i    i+* Re: The joy of SQL19Lawrence D'Oliveiro
26 Oct 24 i i  i  i i  i    i     i  ii  i    ii`* Re: The joy of SQL18186282@ud0s4.net
26 Oct 24 i i  i  i i  i    i     i  ii  i    ii +* Re: The joy of SQL4Lawrence D'Oliveiro
26 Oct 24 i i  i  i i  i    i     i  ii  i    ii i`* Re: The joy of SQL3rbowman
26 Oct 24 i i  i  i i  i    i     i  ii  i    ii i `* Re: The joy of SQL2Peter Dean
26 Oct 24 i i  i  i i  i    i     i  ii  i    ii i  `- Re: The joy of SQL1Peter Dean
26 Oct 24 i i  i  i i  i    i     i  ii  i    ii +* Re: The joy of SQL5rbowman
26 Oct 24 i i  i  i i  i    i     i  ii  i    ii i+- Re: The joy of SQL1Lawrence D'Oliveiro
28 Oct 24 i i  i  i i  i    i     i  ii  i    ii i`* Re: The joy of SQL3John Ames
28 Oct 24 i i  i  i i  i    i     i  ii  i    ii i `* Re: The joy of SQL2Chris Ahlstrom
28 Oct 24 i i  i  i i  i    i     i  ii  i    ii i  `- Re: The joy of SQL1Kerr-Mudd, John
26 Oct 24 i i  i  i i  i    i     i  ii  i    ii `* Re: The joy of SQL8The Natural Philosopher
26 Oct 24 i i  i  i i  i    i     i  ii  i    ii  `* Re: The joy of SQL7Lars Poulsen
26 Oct 24 i i  i  i i  i    i     i  ii  i    ii   +* Re: The joy of SQL4Waldek Hebisch
27 Oct 24 i i  i  i i  i    i     i  ii  i    ii   i`* Re: The joy of SQL3The Natural Philosopher
27 Oct 24 i i  i  i i  i    i     i  ii  i    ii   i `* Re: The joy of SQL2rbowman
27 Oct 24 i i  i  i i  i    i     i  ii  i    ii   i  `- Re: The joy of SQL1John Levine
27 Oct 24 i i  i  i i  i    i     i  ii  i    ii   `* Re: The joy of SQL2The Natural Philosopher
27 Oct 24 i i  i  i i  i    i     i  ii  i    ii    `- Re: The joy of SQL1rbowman
26 Oct 24 i i  i  i i  i    i     i  ii  i    i+- Re: The joy of Ada1Lawrence D'Oliveiro
26 Oct 24 i i  i  i i  i    i     i  ii  i    i`* Re: The joy of Ada111The Natural Philosopher
26 Oct 24 i i  i  i i  i    i     i  ii  i    i +- Re: The joy of Linux1Lawrence D'Oliveiro
27 Oct 24 i i  i  i i  i    i     i  ii  i    i `* Re: The joy of Ada109The Natural Philosopher
27 Oct 24 i i  i  i i  i    i     i  ii  i    i  +- Re: The joy of Ada1rbowman
27 Oct 24 i i  i  i i  i    i     i  ii  i    i  `* Re: The joy of Ada107Lawrence D'Oliveiro
28 Oct 24 i i  i  i i  i    i     i  ii  i    i   `* Re: The joy of Ada106186282@ud0s4.net
28 Oct 24 i i  i  i i  i    i     i  ii  i    i    `* Re: The joy of Ada105Lawrence D'Oliveiro
29 Oct 24 i i  i  i i  i    i     i  ii  i    i     +* Re: The joy of Linux80Lawrence D'Oliveiro
30 Oct 24 i i  i  i i  i    i     i  ii  i    i     i+* Re: The joy of Linux78Lawrence D'Oliveiro
30 Oct 24 i i  i  i i  i    i     i  ii  i    i     ii+* Re: The joy of Linux3rbowman
30 Oct 24 i i  i  i i  i    i     i  ii  i    i     iii`* Re: The joy of Linux2186282@ud0s4.net
31 Oct 24 i i  i  i i  i    i     i  ii  i    i     iii `- Re: The joy of Linux1Lawrence D'Oliveiro
3 Nov 24 i i  i  i i  i    i     i  ii  i    i     ii`* Re: The joy of Linux74Lars Poulsen
4 Nov 24 i i  i  i i  i    i     i  ii  i    i     ii +- Re: The joy of Linux1Lawrence D'Oliveiro
4 Nov 24 i i  i  i i  i    i     i  ii  i    i     ii `* Re: The joy of Linux72The Natural Philosopher
4 Nov 24 i i  i  i i  i    i     i  ii  i    i     ii  +* Re: The joy of Linux3Lawrence D'Oliveiro
5 Nov 24 i i  i  i i  i    i     i  ii  i    i     ii  i`* Re: The joy of Linux2186282@ud0s4.net
7 Nov 24 i i  i  i i  i    i     i  ii  i    i     ii  i `- Re: The joy of Linux1Lawrence D'Oliveiro
4 Nov 24 i i  i  i i  i    i     i  ii  i    i     ii  `* Re: The joy of Linux68John Ames
5 Nov 24 i i  i  i i  i    i     i  ii  i    i     ii   `* Re: The joy of Linux67The Natural Philosopher
6 Nov 24 i i  i  i i  i    i     i  ii  i    i     ii    `* Re: The joy of Linux66186282@ud0s4.net
6 Nov 24 i i  i  i i  i    i     i  ii  i    i     ii     +* Re: The joy of Linux27The Natural Philosopher
6 Nov 24 i i  i  i i  i    i     i  ii  i    i     ii     i+* Re: The joy of Linux25rbowman
6 Nov 24 i i  i  i i  i    i     i  ii  i    i     ii     ii+* Re: The joy of Linux9The Natural Philosopher
6 Nov 24 i i  i  i i  i    i     i  ii  i    i     ii     iii+* Re: The joy of Linux6rbowman
7 Nov 24 i i  i  i i  i    i     i  ii  i    i     ii     iiii`* Re: The joy of Linux5The Natural Philosopher
8 Nov 24 i i  i  i i  i    i     i  ii  i    i     ii     iiii `* OT: (politics) [was Re: The joy of Linux]4Robert Riches
8 Nov 24 i i  i  i i  i    i     i  ii  i    i     ii     iiii  `* Re: OT: (politics) [was Re: The joy of Linux]3The Natural Philosopher
8 Nov 24 i i  i  i i  i    i     i  ii  i    i     ii     iiii   `* Re: OT: (politics) [was Re: The joy of Linux]2Rich
9 Nov 24 i i  i  i i  i    i     i  ii  i    i     ii     iiii    `- Re: OT: (politics) [was Re: The joy of Linux]1The Natural Philosopher
6 Nov 24 i i  i  i i  i    i     i  ii  i    i     ii     iii`* Re: The joy of Linux2D
7 Nov 24 i i  i  i i  i    i     i  ii  i    i     ii     iii `- Re: The joy of Linux1The Natural Philosopher
6 Nov 24 i i  i  i i  i    i     i  ii  i    i     ii     ii`* Re: The joy of Linux15D
6 Nov 24 i i  i  i i  i    i     i  ii  i    i     ii     ii +* Re: The joy of Linux2Chris Ahlstrom
7 Nov 24 i i  i  i i  i    i     i  ii  i    i     ii     ii i`- Re: The joy of Linux1The Natural Philosopher
7 Nov 24 i i  i  i i  i    i     i  ii  i    i     ii     ii +* Re: The joy of Linux9rbowman
7 Nov 24 i i  i  i i  i    i     i  ii  i    i     ii     ii i`* Re: The joy of Linux8The Natural Philosopher
7 Nov 24 i i  i  i i  i    i     i  ii  i    i     ii     ii i `* Re: The joy of Linux7rbowman
7 Nov 24 i i  i  i i  i    i     i  ii  i    i     ii     ii `* Re: The joy of Linux3The Natural Philosopher
6 Nov 24 i i  i  i i  i    i     i  ii  i    i     ii     i`- Re: The joy of Linux1Lawrence D'Oliveiro
6 Nov 24 i i  i  i i  i    i     i  ii  i    i     ii     `* Re: The joy of Linux38Rich
30 Oct 24 i i  i  i i  i    i     i  ii  i    i     i`- Re: The joy of Linux1186282@ud0s4.net
30 Oct 24 i i  i  i i  i    i     i  ii  i    i     +- Re: The joy of Ada1186282@ud0s4.net
30 Oct 24 i i  i  i i  i    i     i  ii  i    i     `* Re: The joy of Ada23186282@ud0s4.net
26 Oct 24 i i  i  i i  i    i     i  ii  i    `* Re: The joy of Ada2186282@ud0s4.net
24 Oct 24 i i  i  i i  i    i     i  ii  `* Re: The joy of strong typing2magardner2010
25 Oct 24 i i  i  i i  i    i     i  i`* Re: The joy of FORTH (not)2Peter Flass
23 Oct 24 i i  i  i i  i    i     i  `- Re: The joy of FORTH (not)1Jim Jackson
23 Oct 24 i i  i  i i  i    i     `* Re: The joy of FORTH (not)28Peter Flass
21 Oct 24 i i  i  i i  i    +- Re: The joy of FORTH (not)1rbowman
23 Oct 24 i i  i  i i  i    `* Re: The joy of FORTH (not)6Waldek Hebisch
21 Oct 24 i i  i  i i  +- Re: The joy of FORTH (not)1Peter Dean
24 Oct 24 i i  i  i i  `* Re: The joy of FORTH (not)6Marc Olschok
21 Oct 24 i i  i  i `- Re: The joy of FORTRAN1John Ames
7 Oct 24 i i  i  `- Re: The joy of FORTRAN1The Natural Philosopher
5 Oct 24 i i  `* Re: The joy of FORTRAN5Lawrence D'Oliveiro
4 Oct 24 i +- Re: The joy of FORTRAN1Richard Kettlewell
4 Oct 24 i `- Re: The joy of FORTRAN1John Ames
4 Oct 24 `- Re: python abstractions, The joy of FORTRAN1John Levine

Haut de la page

Les messages affichés proviennent d'usenet.

NewsPortal