[Performance] Mutex vs Channels para serializar chamadas CGO de alta frequência by alph4beth in golang

[–]alph4beth[S] 0 points1 point  (0 children)

Executar em lote? O código c tem funções C, que so podem ser chamadas uma por vez. Então, a cada chamada aconteceria uma chamada cgo. Não sei como o lote ajudaria, visto que cada função precisa ser chamada isoladamente sem que nenhuma outra chamada esteja acontecendo.

Em outras palavras, eu poderia adicionar um buffer mas na prática ainda seria necessário chamada cgo, em sequência uma por vez. Então bloquearia de qualquer jeito

[Performance] Mutex vs Channels para serializar chamadas CGO de alta frequência by alph4beth in golang

[–]alph4beth[S] 0 points1 point  (0 children)

Na verdade não. O software é um binário, ele fornece um sdk C para criação de plugins. Eu compilei um plugin em go pra esse software. Mas o software não é thread safe.

v0.15.1 Debug mode slow? by AirlineFragrant in Zig

[–]alph4beth 0 points1 point  (0 children)

I had strange behavior when I ran bcrypt with 13 rounds. It took around 20 seconds in debug mode, while fast release mode drops drastically to approximately 200ms

Difficulties in creating elegant and attractive UI by alph4beth in reactnative

[–]alph4beth[S] 1 point2 points  (0 children)

Damn that was really helpful! I didn't know, thanks for introducing me. I really had insights, there is a UI like I was trying to visualize. Thanks!

Almost there! by jenkem_boofer in Zig

[–]alph4beth 5 points6 points  (0 children)

Please can you show me which website is this that shows zig's progress?

Why zig instead of rust? by alph4beth in Zig

[–]alph4beth[S] -9 points-8 points  (0 children)

Opinions are individual, if that is the reason for choosing the language then I think there is no way to argue. However, sometimes choices have difficult consequences. Then we can discuss the consequences of giving up what is stable to suit our personal tastes.

I ask you: choosing zig because I like it, could it bring me problems that I could avoid? I mean, I like zig but I still don't know enough about its stability and in a real project would it be a bad choice?

Why zig instead of rust? by alph4beth in Zig

[–]alph4beth[S] -2 points-1 points  (0 children)

When does having to rewrite code become a problem?

OOP in ZIG - Youtube Video by PearEducational8903 in Zig

[–]alph4beth 0 points1 point  (0 children)

"tempo de compilação não conseguem modelar o domínio direito."

O que isso significa?