Click here to Skip to main content
15,895,084 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: WSO CCC OTD 2020-12-21 - we have a Winner! Pin
OriginalGriff20-Dec-20 22:24
mveOriginalGriff20-Dec-20 22:24 
GeneralRe: WSO CCC OTD 2020-12-21 - we have a Winner! Pin
musefan20-Dec-20 22:54
musefan20-Dec-20 22:54 
GeneralRe: WSO CCC OTD 2020-12-21 - we have a Winner! Pin
Richard MacCutchan21-Dec-20 2:07
mveRichard MacCutchan21-Dec-20 2:07 
GeneralThat's not the way I remember that scene... Pin
CodeWraith20-Dec-20 14:02
CodeWraith20-Dec-20 14:02 
JokeRe: That's not the way I remember that scene... Pin
Kornfeld Eliyahu Peter20-Dec-20 20:04
professionalKornfeld Eliyahu Peter20-Dec-20 20:04 
GeneralRe: That's not the way I remember that scene... Pin
Johnny J.20-Dec-20 21:04
professionalJohnny J.20-Dec-20 21:04 
GeneralRe: That's not the way I remember that scene... Pin
CodeWraith20-Dec-20 21:44
CodeWraith20-Dec-20 21:44 
PraiseI did it! Huge JSON on 8-bit w/ < 2kB of RAM Pin
honey the codewitch20-Dec-20 12:14
mvahoney the codewitch20-Dec-20 12:14 
I rewrote my JSON reader because the code was filthy on account of being a port from C#, and not being fully designed for what it ended up doing.

I also wanted to make sure it compiled and ran on the ATmega2560, my test 8-bit processor with 8kB of SRAM (since i tightly control allocations I can put a ceiling on the RAM use wherever i want - so if i want to test it limiting it to 2kB I can)

It screams on a 64-bit, and crawls on 8-bit but it runs.

It's kind of clever how I did it. You create extractors to pull data from your JSON dataset, and it directs the pull parser along the proper path, retrieving all the values for you super efficiently.

anyway, I'm patting myself on the back because this is pretty cool.

Although I'm running down a bug right now, and because everything is streaming it's really difficult to debug sometimes. For example, I can never see the entire field name I'm comparing against when I'm looking for a field because I do all comparisons inline to avoid loading the entire string into RAM.

This is fun to code, and I really think I did invent a better mousetrap.

I'm a long way from my next article but I'm pretty happy with this so far. Smile | :)
Real programmers use butterflies

GeneralRe: I did it! Huge JSON on 8-bit w/ < 2kB of RAM Pin
Randor 20-Dec-20 13:34
professional Randor 20-Dec-20 13:34 
GeneralRe: I did it! Huge JSON on 8-bit w/ < 2kB of RAM Pin
honey the codewitch20-Dec-20 13:39
mvahoney the codewitch20-Dec-20 13:39 
GeneralRe: I did it! Huge JSON on 8-bit w/ < 2kB of RAM Pin
Randor 20-Dec-20 14:04
professional Randor 20-Dec-20 14:04 
GeneralRe: I did it! Huge JSON on 8-bit w/ < 2kB of RAM Pin
honey the codewitch20-Dec-20 14:06
mvahoney the codewitch20-Dec-20 14:06 
GeneralRe: I did it! Huge JSON on 8-bit w/ < 2kB of RAM Pin
Randor 21-Dec-20 11:31
professional Randor 21-Dec-20 11:31 
GeneralRe: I did it! Huge JSON on 8-bit w/ < 2kB of RAM Pin
honey the codewitch21-Dec-20 11:54
mvahoney the codewitch21-Dec-20 11:54 
GeneralRe: I did it! Huge JSON on 8-bit w/ < 2kB of RAM Pin
Randor 21-Dec-20 12:06
professional Randor 21-Dec-20 12:06 
GeneralRe: I did it! Huge JSON on 8-bit w/ < 2kB of RAM Pin
honey the codewitch21-Dec-20 13:03
mvahoney the codewitch21-Dec-20 13:03 
GeneralRe: I did it! Huge JSON on 8-bit w/ < 2kB of RAM Pin
Randor 21-Dec-20 13:47
professional Randor 21-Dec-20 13:47 
GeneralRe: I did it! Huge JSON on 8-bit w/ < 2kB of RAM Pin
honey the codewitch21-Dec-20 13:56
mvahoney the codewitch21-Dec-20 13:56 
JokeWho is Santa’s favorite singer? Pin
Sandeep Mewara20-Dec-20 7:24
mveSandeep Mewara20-Dec-20 7:24 
GeneralRe: Who is Santa’s favorite singer? Pin
W Balboos, GHB20-Dec-20 8:33
W Balboos, GHB20-Dec-20 8:33 
GeneralRe: Who is Santa’s favorite singer? Pin
OriginalGriff20-Dec-20 9:21
mveOriginalGriff20-Dec-20 9:21 
GeneralNew Normal Christmas songs Pin
OriginalGriff20-Dec-20 4:27
mveOriginalGriff20-Dec-20 4:27 
GeneralRe: New Normal Christmas songs Pin
W Balboos, GHB20-Dec-20 4:55
W Balboos, GHB20-Dec-20 4:55 
GeneralRe: New Normal Christmas songs Pin
RickZeeland20-Dec-20 5:38
mveRickZeeland20-Dec-20 5:38 
GeneralRe: New Normal Christmas songs Pin
PIEBALDconsult20-Dec-20 6:16
mvePIEBALDconsult20-Dec-20 6:16 

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.