On 30/01/16 17:17, 嘱 Tiib wrote:
> On Saturday, 30 January 2016 11:55:13 UTC+2, bartekltg wrote:
>> On 28.01.2016 23:35, 嘱 Tiib wrote:
>>> On Thursday, 28 January 2016 23:39:00 UTC+2, Lynn McGuire wrote:
>>>> On 1/28/2016 3:30 PM, 嘱 Tiib wrote:
>>>>> That has to be separate standard since "graphics" means few LEDs
>>>>> for lot of devices where C++ runs.
>>>>>
>>>>
>>>> Not sure what you mean by "few LEDs" ?
>>>
>>> I meant that lot of equipment where C++ runs has only few "light emitting
>>> diodes" if any as end-user output. The standard IO may be is used during
>>> production of device thru UART ("universal asynchronous receiver/transmitter")
>>> or the like.
>>>
>>> As far I know the C++ standards committee does not like to specify
>>> language or library subsets and prefers the implementations to implement
>>> the whole language.
>>
>> Do you use threads, dynamic memory and heavy foating point random
>> number generators on tiny microcontrollers?
>
> I indeed do use threads and dynamic allocations. The <random> in C++
> is relatively lightweight but I don't need it typically.
>
>> No, you do not. But these still are included in the standard.
>
> What you mean? Over 70% of things that can run software sold today are
> MCU, so someone got to program these buggers and that is fairly frequent
> need.
> The typical MCU that are used now are way more powerful than the
> computers that I did learn to program on decades ago, are dirt cheap and
> take next to no power.
> See
http://www.eetimes.com/document.asp?doc_id=1322014&print=yes
> Majority of market is WiFi, then Bluetooth.
>
Point of fact - the majority of MCUs do /not/ have WiFi or anything of
the sort. It is believable that of the people who responded to that
survey, that about 50% said that when they used some sort of wireless
communication on a project, it included WiFi. But that's all.
Similarly, reading that page quickly gives the impression that 17% of
embedded systems run Android, when in reality microcontrollers that are
not powerful enough to run Android outsell ones that are by a factor of
something like 10,000 to 1.
However, it is certainly true that a typical modern MCU is more powerful
than those of only a few years ago, and 32-bit systems (especially
Cortex M) are very much on the increase. This makes it a lot more
realistic to use "big system" features of C++ in a wider range of
embedded systems.
> In most of programs I don't use most of standard library since I do
> not need it for resolving particular problem. I may need them in
> next. However graphics as such does not make sense whatsoever about
> most MCU so it should be separate library not standard C++ library.
>
At least it should be optional, rather than required. And certainly the
sort of graphics needed in embedded systems covers a wide range - from
no visible interface, through simple screens or LEDs, then small
graphics screens with very limited features, to full computer-like
screens. There is no standard in what hardware is available, and no
standard in the type of software features needed.
>>
>> Also, the standard prefers U2 as integer number implementation;-)
>
> I failed to decipher what you mean. U2? Bono, Edge, Adam, Larry?
>
I've no idea either.