Похожие чаты

This video is really great. https://www.youtube.com/watch?v=QpAhX-gsHMs

33 ответов

14 просмотров

Saved for later, sounds interesting

This video had the basic for loop macro: https://stackoverflow.com/questions/69336050/how-to-implement-gos-defer-in-c-so-that-it-allows-declaring-vars

Thomas
This video had the basic for loop macro: https://s...

in real modern C can use cleanup, is more elegant

Thomas
This video had the basic for loop macro: https://s...

Here talk about defer FILE. void fcleanup(void* ppf){ if( *(void**)ppf) ) fclose(*(void**)ppf); } #define __cleanup(FN) __attribute__((cleanup(FN))) #define __fclose __cleanup(fcleanup) int main(){ __fclose FILE* f = fopen("file", "r"); ... }

Daniele°
in real modern C can use cleanup, is more elegant

I can't use compiler-specific extensions most of the time though

Daniele°
Why?

I use C compilers that aren't that good

Daniele°
For examples?

github.com/immortalvm/ivm-compiler

Thomas
github.com/immortalvm/ivm-compiler

@TRGWII is zig basically just C ?

Adrian
@TRGWII is zig basically just C ?

"C, but with the problems fixed"

Thomas
github.com/immortalvm/ivm-compiler

It's based on GCC, probably have attribute cleanup

Thomas
"C, but with the problems fixed"

hmm this mean zig will replace C in the future ?

Adrian
hmm this mean zig will replace C in the future ?

For some usecases for sure, but never all

Adrian
hmm this mean zig will replace C in the future ?

It doesn't seem to me similar enough to C to replace it.

D
What problems

https://mrcat.au/blog/zig_is_cool/

²
https://mrcat.au/blog/zig_is_cool/

It doesn't seem to give me what I really needed

D
What problems

cleanup code, failed integer hierarchy, implicit casts, defaulting to int, char signedness ambiguity, preprocessor, compilation model, no module system, no nuanced pointer types, ++

Thomas
cleanup code, failed integer hierarchy, implicit c...

in C char not have sign. char != signed char char != unsigned char

Daniele°
in C char not have sign. char != signed char char ...

of course the implementation will have to decide what to do with the abstraction

Daniele°
in C char not have sign. char != signed char char ...

It actually does, but each implementation can pick, and that's my point

Daniele°
in C char not have sign. char != signed char char ...

Even if it was just "char does not have signedness" that's still a huge problem

Thomas
Even if it was just "char does not have signedness...

Many type in C not have a sign, many type are not signed or unsigned.

Daniele°
Many type in C not have a sign, many type are not ...

Okay so the problem is larger than just char then

Thomas
Okay so the problem is larger than just char then

No problems, you only Need to understand the type abstraction

Daniele°
No problems, you only Need to understand the type ...

It's not an abstraction, it's just a mistake

Thomas
It's not an abstraction, it's just a mistake

It's not a error, it's abstraction.

Daniele°
It's not a error, it's abstraction.

What do you gain from having this "abstraction" then?

Thomas
What do you gain from having this "abstraction" th...

You are free to use signed or unsigned value for char implementation

Похожие вопросы

Обсуждают сегодня

Господа, а что сейчас вообще с рынком труда на делфи происходит? Какова ситуация?
Rꙮman Yankꙮvsky
29
А вообще, что может смущать в самой Julia - бы сказал, что нет единого стандартного подхода по многим моментам, поэтому многое выглядит как "хаки" и произвол. Короче говоря, с...
Viktor G.
2
@Benzenoid can you tell me the easiest, and safest way to bu.y HEX now?
Živa Žena
20
This is a question from my wife who make a fortune with memes 😂😂 About the Migration and Tokens: 1. How will the old tokens be migrated to the new $LGCYX network? What is th...
🍿 °anton°
2
30500 за редактор? )
Владимир
47
а через ESC-код ?
Alexey Kulakov
29
What is the Dex situation? Agora team started with the Pnetwork for their dex which helped them both with integration. It’s completed but as you can see from the Pnetwork ann...
Ben
1
Гайс, вопрос для разносторонее развитых: читаю стрим с юарта, нада выделять с него фреймы с определенной структурой, если ли чо готовое, или долбаться с ринг буффером? нада у...
Vitaly
9
Anyone knows where there are some instructions or discort about failed bridge transactions ?
Jochem
21
@lozuk how do I get my phex copies of my ehex from a atomic wallet, to move to my rabby?
Justfrontin 👀
11
Карта сайта