Click here to Skip to main content
15,887,434 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.

 
NewsInteresting MS Video Pin
Super Lloyd9-Jun-22 13:01
Super Lloyd9-Jun-22 13:01 
GeneralI'm feeling "diverse" today Pin
honey the codewitch9-Jun-22 11:29
mvahoney the codewitch9-Jun-22 11:29 
GeneralRe: I'm feeling "diverse" today Pin
Sander Rossel9-Jun-22 20:57
professionalSander Rossel9-Jun-22 20:57 
GeneralRe: I'm feeling "diverse" today Pin
honey the codewitch9-Jun-22 22:03
mvahoney the codewitch9-Jun-22 22:03 
GeneralRe: I'm feeling "diverse" today Pin
Sander Rossel10-Jun-22 1:33
professionalSander Rossel10-Jun-22 1:33 
GeneralRe: I'm feeling "diverse" today Pin
klinkenbecker10-Jun-22 2:36
klinkenbecker10-Jun-22 2:36 
GeneralRe: I'm feeling "diverse" today Pin
honey the codewitch10-Jun-22 2:38
mvahoney the codewitch10-Jun-22 2:38 
GeneralRe: I'm feeling "diverse" today Pin
klinkenbecker10-Jun-22 3:21
klinkenbecker10-Jun-22 3:21 
Yes, that is way too big Smile | :)

Specifically, I'm not sure the exact size of the parser, but we routinely order map entries for size and JSON never gets anywhere near the top. Top flash hogs are radio (3k), print engine (2k), events (2.5k), class engine (2.6k), object engine (3.8k) (8051 numbers). Together they are ~60% of the ~20k flash for the OS.

My 'guestimate' size delta was based on looking at your regex code which, at first blush, looked much more complex than our JSON parser (excluding the binary json part).

We parse JSON 'in place' in the buffer it came in on, we don't use a heap (anywhere) and we don't create a 'document', generally jumping straight to methods. Since the radios we use are typically 128 byte max frame size, JSON is typically very constrained. Everything else is managed on the (2k) stack.

Having seen your other work, I know you have thought about the problem very carefully. Just saying our mileage is different, mostly because we have bounded the problem in very specific ways that are generic to our (IoT) domain. It is often not possible to do that when attempting to solve for the 'unbounded' problem for 'everyone'.

Effectively managing embedded constraints is one of the reasons why embedded resists unbounded solutions and their inevitable inclusion of unnecessary code (for any given specific instance).

Smile | :)

modified 10-Jun-22 9:37am.

GeneralRe: I'm feeling "diverse" today Pin
honey the codewitch10-Jun-22 3:56
mvahoney the codewitch10-Jun-22 3:56 
GeneralRe: I'm feeling "diverse" today Pin
klinkenbecker10-Jun-22 7:27
klinkenbecker10-Jun-22 7:27 
GeneralRe: I'm feeling "diverse" today Pin
honey the codewitch10-Jun-22 8:56
mvahoney the codewitch10-Jun-22 8:56 
GeneralRe: I'm feeling "diverse" today Pin
klinkenbecker10-Jun-22 12:03
klinkenbecker10-Jun-22 12:03 
QuestionRe: I'm feeling "diverse" today Pin
megaadam10-Jun-22 3:48
professionalmegaadam10-Jun-22 3:48 
AnswerRe: I'm feeling "diverse" today Pin
honey the codewitch10-Jun-22 3:55
mvahoney the codewitch10-Jun-22 3:55 
GeneralRe: I'm feeling "diverse" today Pin
megaadam10-Jun-22 4:15
professionalmegaadam10-Jun-22 4:15 
GeneralRe: I'm feeling "diverse" today Pin
honey the codewitch10-Jun-22 6:30
mvahoney the codewitch10-Jun-22 6:30 
GeneralRe: I'm feeling "diverse" today Pin
megaadam10-Jun-22 6:13
professionalmegaadam10-Jun-22 6:13 
GeneralRe: I'm feeling "diverse" today Pin
honey the codewitch10-Jun-22 6:29
mvahoney the codewitch10-Jun-22 6:29 
AnswerRe: I'm feeling "diverse" today Pin
klinkenbecker10-Jun-22 7:40
klinkenbecker10-Jun-22 7:40 
GeneralRe: I'm feeling "diverse" today Pin
Daniel Pfeffer10-Jun-22 4:17
professionalDaniel Pfeffer10-Jun-22 4:17 
GeneralRe: I'm feeling "diverse" today Pin
Member 916705712-Jun-22 20:30
Member 916705712-Jun-22 20:30 
GeneralRe: I'm feeling "diverse" today Pin
honey the codewitch12-Jun-22 20:46
mvahoney the codewitch12-Jun-22 20:46 
GeneralRe: I'm feeling "diverse" today Pin
Member 916705712-Jun-22 21:59
Member 916705712-Jun-22 21:59 
GeneralRe: I'm feeling "diverse" today Pin
honey the codewitch12-Jun-22 22:04
mvahoney the codewitch12-Jun-22 22:04 
GeneralRe: I'm feeling "diverse" today Pin
Member 916705712-Jun-22 22:06
Member 916705712-Jun-22 22:06 

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.