suyashkumar

Joined 8 years ago

Karma
130
Submissions
28
Member since
Feb 1
Software and Biomedical Engineer!

Currently Software Engineer at Google working on Jules--an independent coding agent in the cloud.

Previously: CTO & Co Founder at Gradient Health and Microelastic, Software Engineer at Uber.

Graduated from Duke University with a double major in Biomedical Engineering and Computer Science.

http://twitter.com/suyash_builds

View on Hacker News

Recent submissions

Comment · 6 years ago
Thanks for the kind words! I will definitely check out wolfpacs.

As for your question: I've run into a couple scenarios that require "lookback" into the parsed Dataset to parse correctly. For example, parsing Native PixelData correctly requires looking back for the Rows Element, Cols element, BitsAllocated element, etc in order to correctly parse the NativePixel data. The futzy thing is that these context "elements" need to come from the current Sequence (if parsing within a sequence). So, I do most of my parsing of sequences recursively, with each recursive frame holding pointers to the already parsed elements in this sequence (it's a stack essentially for nested sequences).

Not sure if that answers your question? For most generic elements though, as a parsing library I try to parse it generically and make the value payload available to the caller in case they need to apply any special logic to interpreting it. Though if you have a specific usecase that needs something that is missing here, please let me know or open an issue :).

Comment · 6 years ago
Comment · 6 years ago
Comment · 7 years ago
Thanks!
Comment · 7 years ago
Of course, and sweet thanks! Open to ideas and contribs as well!
Comment · 7 years ago
Great work as always!
Comment · 7 years ago
Thanks, that sounds awesome. Rust seems like an interesting language, haven't really had the chance to dive too deep into it recently though. Go programs can also compile down to webassembly, so looking forward to playing with that as well!

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton