Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
dsvr
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
6 ms
·
1.
▲
by
dsvr
3y ago
There's a framework for C now at https://vely.dev which may help with C strings safety and memory management, among other things.
2.
▲
by
dsvr
4y ago
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: tr
3.
▲
Parsing JSON in C
(vely.dev)
2 points
by
dsvr
4y ago
|
1 comments
4.
▲
by
dsvr
4y ago
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.
5.
▲
by
dsvr
4y ago
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 suppor
6.
▲
C programming framework Vely 13 released
(vely.dev)
2 points
by
dsvr
4y ago
|
1 comments
7.
▲
by
dsvr
4y ago
I've incorporated it in "In a nutshell" section on the front page. Hope it helps people get what Vely does right away.
8.
▲
by
dsvr
4y ago
That is a very interesting suggestion. The API underneath is already well-defined and documented in code. Something to consider for sure.
9.
▲
by
dsvr
4y ago
In this case, just check if there is, near the beginning of file: #include "vely.h" which has to be in every Vely .v file.
10.
▲
by
dsvr
4y ago
That is one of the use cases I would say are perfect for Vely. A combination of a low-level and high-level approach, which is often needed, and not just in this arena. IOT (Internet Of Things) is a major application area for Vely. Obviously
11.
▲
by
dsvr
4y ago
Thank you for this feedback. I really appreciate it. I will incorporate it prominently on the web site.
12.
▲
by
dsvr
4y ago
I guess you could say that. Quite a few comparisons here, and none really wrong as it's all in the eye of a beholder. Vely's main goal is to give you building blocks for general purpose application development, especially includin
13.
▲
by
dsvr
4y ago
Vely statements are created to generate safe code that will take care of memory issues you mentioned. It's like using a library that does something for you safely, except that Vely provides an interface that is more flexible and easier
14.
▲
by
dsvr
4y ago
At the time I didn't know that. Perhaps .vely extension, I guess that would do it. Something to consider to be nice for sure. Thanks for that.
15.
▲
by
dsvr
4y ago
I didn't know about Vlang, I checked it out, looks very cool. Vely is really not a language breakthrough. Not at all. I would say Vely is a practical workhorse. It is about power of rapidly doing business. Kind of like PHP but more in
16.
▲
by
dsvr
4y ago
Yes, kind of, you're right. C++ though went on for a roller-coaster of complexity, at least that's how I see it. I think of Vely as staying simple, declarative, and C all the way for performance reasons. More of a collection of pr
17.
▲
by
dsvr
4y ago
I see your point. That's something to add to the documentation. For now, I guess, here it is. Each Vely statement generates some C code, maybe a one-liner, maybe quite a few. It works kind of like a declarative statement, SQL comes to
18.
▲
by
dsvr
4y ago
No, Vely does not understand C. Yes, gcc produces error messages when it comes to C code itself. However, the line number where the issue is located is exactly matched to the Vely source code using #line directive, so I would say 90+% of th
19.
▲
by
dsvr
4y ago
Ha ha, okay you got me. It's a piece of code that is for demonstration only. But I needed a simple piece of code that speaks of shrinking, without making the front page an exercise in design patterns.
20.
▲
by
dsvr
4y ago
I changed the indentation of lists to be smaller. At first just for mobile via media CSS, but then it seemed more readable for desktop too. So it should look better now.
21.
▲
by
dsvr
4y ago
I found DejaVu Sans Mono to be a bit thinner and easier on the eyes. Either way is fine really. One of those whimsical decisions, I guess.
22.
▲
by
dsvr
4y ago
It is fixed. Thanks again.
23.
▲
by
dsvr
4y ago
Great suggestion, thanks. Will do.
24.
▲
by
dsvr
4y ago
Figured out on the fly hackernews markdown. Pretty neat.
25.
▲
by
dsvr
4y ago
Thanks for your feedback. You can see the equivalent C code for any statement pretty easy. For example, if you go to "tutorials", then "tutorial-stock_app", and follow the tutorial instructions, you can always see the ge
26.
▲
by
dsvr
4y ago
Thanks a bunch! I will look into this.
27.
▲
by
dsvr
4y ago
But I guess from a bird's view point, I can see how all the impressions given here are correct. It does look somewhat like PHP for C or like a markup language, or a declarative language etc. There's some truth to all of that to so
28.
▲
by
dsvr
4y ago
I guess you could see some similarities. Vely is standalone though, not an extension. And it is 100% C, always creating native executables. By that I mean a direct native executable from either pure C or embedded statement producing shallow
29.
▲
by
dsvr
4y ago
"Vely" stands for Vel(ocit)y. Though I then realized in Korea it's short for Lo(vely). Could be worse.
30.
▲
by
dsvr
4y ago
I am into grilling and griddling and cooking, so comes natural to me :>
More ›