Hacker Read top | best | new | newcomments | leaders | about | bookmarklet login

There's a framework for C now at https://vely.dev which may help with C strings safety and memory management, among other things.


sort by: page size:

Completely detached from the debugging experience but that actually looks like a cute little custom GUI framework ...and it's all in C!

I really like C too, although I wish it was slightly higher level. Proper strings, built-in hashmaps, few other small improvements.

C has libraries too, you know :)

Lots of code is written in C :)

There is plenty of new C code.

This sounds awesome. C is my preferred language and I use it whenever I can and when it makes sense. I'd love to see this code. Is there a public repo for it?

What C code? I only see Java.

Most of my pain-points with C were solved with syntactic-sugar libraries like Cello (http://libcello.org/).

Strictly speaking, this wouldn't be C any more. But it would be a bit more memory-safe.

I really like it, waiting for the C API documentation. Congrats to the author, Calvin Rose. [1]

[1] https://bakpakin.com


C was my first language, but I hadn't used it (outside of C++) for a long time. In recent days it suddenly crashed my little "use new cool languages for the heck of it" party.

I was experimenting with Swift, trying to make it fit my rather performance/memory critical string processing needs. As it turns out, you can use C code from Swift about as easily as you can use Java code from another JVM language.

So I implemented a variant of the short string optimization in a few lines of C code. It's amazing how well C fits the bill as a lingua franca for code that does questionable things to bits and/or is meant to be used from other languages.

There's very little competition for C in that role.


C is a pretty nice language, have a look ;)

This seems reasonable for working with C APIs.

Yes, very nice. What I've learned about C recently is that while the default language and standard library has no type safety and is generally horrible, it has all the tools you need to build something that is type safe and not horrible. And, most of the time, it doesn't even incur a speed hit.

Now I just need to teach the people writing 99% of the C programs I encounter to not do it so horribly :)


Love it. Seeing C being used in the browser to transpile C is.. weird. In the good way.

It's much nicer if you're using the C API...

Excited to see the code. C isn't known for being great for writing high level applications like this, so I'm really curious what the source looks like. Especially since it has no dependencies!

nice. now if someone can port it to C so that everyone can benefit... :)

the source code link seems to be down :( i remember being pretty impressed by how clean and readable the c code was.
next

Legal | privacy