Click here to Skip to main content
15,886,919 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
GeneralRe: I like C more than I thought I would Pin
den2k8814-Sep-22 21:19
professionalden2k8814-Sep-22 21:19 
GeneralRe: I like C more than I thought I would Pin
Member 1330167915-Sep-22 0:00
Member 1330167915-Sep-22 0:00 
GeneralRe: I like C more than I thought I would Pin
David O'Neil15-Sep-22 6:21
professionalDavid O'Neil15-Sep-22 6:21 
GeneralRe: I like C more than I thought I would Pin
inlandchris114-Sep-22 21:34
inlandchris114-Sep-22 21:34 
GeneralRe: I like C more than I thought I would Pin
honey the codewitch14-Sep-22 22:14
mvahoney the codewitch14-Sep-22 22:14 
GeneralRe: I like C more than I thought I would Pin
giulicard14-Sep-22 21:57
giulicard14-Sep-22 21:57 
GeneralRe: I like C more than I thought I would Pin
honey the codewitch14-Sep-22 22:13
mvahoney the codewitch14-Sep-22 22:13 
GeneralRe: I like C more than I thought I would Pin
giulicard14-Sep-22 22:25
giulicard14-Sep-22 22:25 
honey the codewitch wrote:
Absolutely, although I would not use STL and and Boost on most IoT class MCUs, and the reason his heap fragmentation.


I understand, but I wasn't talking about STL containers: I was talking about "algorithms". Many ready-to-use algorithms only work on data in place. However, you can use STL algorithms on standard C arrays (basically pointers are "random access iterators", intended as the category, aren't they?). If you like templates can always use std::array which has zero overhead with respect C array.

honey the codewitch wrote:
When you're dealing with say 360KB of usable SRAM (the amount available for use on an ESP32) or less, the struggle is real. STL just takes a big steamer all over your heap.


I started programming MCUs like 6805 in pure assembly up to MC68000 in "pure C". So I know well what are you talking about. Smile | :)

Regards.
GeneralRe: I like C more than I thought I would Pin
honey the codewitch14-Sep-22 23:04
mvahoney the codewitch14-Sep-22 23:04 
GeneralRe: I like C more than I thought I would Pin
Martin ISDN14-Sep-22 23:35
Martin ISDN14-Sep-22 23:35 
GeneralRe: I like C more than I thought I would Pin
honey the codewitch14-Sep-22 23:53
mvahoney the codewitch14-Sep-22 23:53 
GeneralRe: I like C more than I thought I would Pin
Martin ISDN15-Sep-22 2:22
Martin ISDN15-Sep-22 2:22 
GeneralRe: I like C more than I thought I would Pin
honey the codewitch14-Sep-22 23:58
mvahoney the codewitch14-Sep-22 23:58 
GeneralRe: I like C more than I thought I would Pin
Cpichols15-Sep-22 2:23
Cpichols15-Sep-22 2:23 
GeneralRe: I like C more than I thought I would Pin
Juan Pablo Reyes Altamirano15-Sep-22 4:43
Juan Pablo Reyes Altamirano15-Sep-22 4:43 
GeneralRe: I like C more than I thought I would Pin
sasadler15-Sep-22 6:14
sasadler15-Sep-22 6:14 
GeneralRe: I like C more than I thought I would Pin
honey the codewitch15-Sep-22 6:19
mvahoney the codewitch15-Sep-22 6:19 
GeneralRe: I like C more than I thought I would Pin
rjmoses17-Sep-22 23:39
professionalrjmoses17-Sep-22 23:39 
GeneralRe: I like C more than I thought I would Pin
honey the codewitch17-Sep-22 23:49
mvahoney the codewitch17-Sep-22 23:49 
GeneralRe: I like C more than I thought I would Pin
rjmoses19-Sep-22 0:29
professionalrjmoses19-Sep-22 0:29 
GeneralRe: I like C more than I thought I would Pin
Clive Hudson23-Sep-22 5:52
Clive Hudson23-Sep-22 5:52 
GeneralRe: I like C more than I thought I would Pin
honey the codewitch23-Sep-22 7:09
mvahoney the codewitch23-Sep-22 7:09 
AnswerPrograming gut feeling - ** Update! ** Pin
megaadam13-Sep-22 23:37
professionalmegaadam13-Sep-22 23:37 
AnswerRe: Programing gut feeling Pin
honey the codewitch13-Sep-22 23:39
mvahoney the codewitch13-Sep-22 23:39 
AnswerRe: Programing gut feeling Pin
CPallini14-Sep-22 0:27
mveCPallini14-Sep-22 0:27 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.