Click here to Skip to main content
15,439,832 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 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 
1. You define the window size
2. It's quite miserly about how it uses it. Like in my last example, it only used 23 bytes of that window. That's because 90% of the data it only examines one character at a time. The remainder is the stuff you actually request.
3. On an out of memory error it halts the parse and (hopefully*) tries to recover to a known good position, like advancing past the remainder of a string value it got stuck in the middle of. Calling one of the navigation methods again should resume it. Eventually I may make a way to read values in chunks but for now I'm not worried about it. Mostly it would be to process things like base64 blobs

* this is a source of bugs, I'm sure. There's simply so many corner cases there's no way I'll catch them all without the library getting mature. If you've written parsers, you know how easy it is (sometimes) to do naive "panic mode" recovery where you just throw away symbols until a known good state, and how hard it is to actually do good error recovery. In this case, since it's a pull parser, "panic mode" isn't an option since I don't keep a stack.
Real programmers use butterflies

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
mveW 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
mveW 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
professionalPIEBALDconsult20-Dec-20 6:16 
GeneralRe: New Normal Christmas songs Pin
W Balboos, GHB20-Dec-20 6:34
mveW Balboos, GHB20-Dec-20 6:34 
GeneralRe: New Normal Christmas songs Pin
Richard MacCutchan20-Dec-20 7:11
mveRichard MacCutchan20-Dec-20 7:11 
GeneralRe: New Normal Christmas songs Pin
W Balboos, GHB20-Dec-20 7:15
mveW Balboos, GHB20-Dec-20 7:15 
GeneralRe: New Normal Christmas songs Pin
Richard MacCutchan20-Dec-20 7:21
mveRichard MacCutchan20-Dec-20 7:21 
GeneralRe: New Normal Christmas songs Pin
Daniel Pfeffer20-Dec-20 8:07
professionalDaniel Pfeffer20-Dec-20 8:07 
GeneralRe: New Normal Christmas songs Pin
Nelek20-Dec-20 8:28
protectorNelek20-Dec-20 8:28 
GeneralRe: New Normal Christmas songs Pin
Daniel Pfeffer21-Dec-20 3:02
professionalDaniel Pfeffer21-Dec-20 3:02 
GeneralRe: New Normal Christmas songs Pin
Nelek21-Dec-20 3:26
protectorNelek21-Dec-20 3:26 

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.


Straw Poll

When building an application, when is the most important time to consider the User Experience?
They are the ones we write code for, right?
  Results   718 votes