Blackthorn

joined 1 year ago
[–] Blackthorn@programming.dev 5 points 1 year ago

It competes with C, so in 2023 this basically means embedded systems. It offers executable size of few KB and out-of-the-box cross-platform compilation. It's a modern C, basically, and it claims to be even faster than C as some language rules allow more optimizations

[–] Blackthorn@programming.dev 5 points 1 year ago (1 children)

My understanding is that this is possible: you should be able to take a C project, add a build.zig file and under the hood the system is calling clang to compile the C project. HOWEVER, you can now add a .zig source file, compile that in zig and link together with the output of the C compiler into an executable. If this is actually true, I can definitely see the attractiveness of the language.

[–] Blackthorn@programming.dev 9 points 1 year ago

I salute the author of this for drawing a CRT monitor.

[–] Blackthorn@programming.dev 1 points 1 year ago

I'll remember to celebrate that :D

[–] Blackthorn@programming.dev 4 points 1 year ago (8 children)

Well I guess the point is that you shouldn't need all these method calls to achieve simple goals. Most of those "getF" are calls to some SystemFactory to get a GenericObjectFactory and so on and so forth.

[–] Blackthorn@programming.dev 13 points 1 year ago

Follow up of: "Mmm... should I put lifecycle annotation in these 10 structs or just use and Rc and call it a day?". Rc and Box FTW.

[–] Blackthorn@programming.dev 2 points 1 year ago

I second this game. The cat can also find a mate abd have kittens

[–] Blackthorn@programming.dev 5 points 1 year ago (2 children)

I've been hearing "This is the year of Linux on desktop" since at least 2002...

[–] Blackthorn@programming.dev 2 points 1 year ago

I love cargo, but cargo.io could REALLY make good use of namespaces. It's insane when clear library names are taken by highschoolers at their first project and there is nothing to be done about it. I'd also like some kind of curating on the packages.

view more: ‹ prev next ›