HackerTrans
TopNewTrendsCommentsPastAskShowJobs

dsvr

no profile record

Submissions

Parsing JSON in C

vely.dev
2 points·by dsvr·4 anni fa·1 comments

[untitled]

1 points·by dsvr·4 anni fa·0 comments

[untitled]

1 points·by dsvr·4 anni fa·0 comments

[untitled]

1 points·by dsvr·4 anni fa·0 comments

C programming framework Vely 13 released

vely.dev
2 points·by dsvr·4 anni fa·1 comments

comments

dsvr
·3 anni fa·discuss
There's a framework for C now at https://vely.dev which may help with C strings safety and memory management, among other things.
dsvr
·4 anni fa·discuss
Simpler way to parse JSON in C with Vely framework.

See how to get a JSON request from the web, either from an HTML form (via POST) or JavaScript (application/json) request body.

The example shows parsing JSON in two different ways: traversing the whole document, or extracting the exact fields you need.

The example is a list of cities, within states, within countries.

Disclosure: I am Vely's creator. - Sergio
dsvr
·4 anni fa·discuss
Here's an example of how an existing (and maybe the oldest?) language but with "new armor" can significantly lower the carbon footprint:

Writing Green Software - Is Our Code Unfriendly to Environment - https://dev.to/velydev/writing-green-software-is-our-code-un...
dsvr
·4 anni fa·discuss
Vely is a framework for C developers.

Improvements in Vely 13/12:

- Bunch of examples, including multitenant SaaS Notes application in only about 300 lines of code.

- Added JSON support.

- Added UTF8 support.

- Added Hash table support.

- Added cache for super fast REGEX pattern matching and replacement.

- Simplified SQL queries for a clean simple interface.

- Source files now have .vely file extension to make it easy to recognize Vely code.

- Building applications now has automatic library inclusion.

- Lots of bug fixes.

See release notes at https://vely.dev/release_notes.html for details.