Thales Fragoso's Avatar

Thales Fragoso

@thalesfragoso.bsky.social

Encantador de areia e apreciador de structured concurrency.

258 Followers  |  82 Following  |  152 Posts  |  Joined: 31.08.2024  |  2.0856

Latest posts by thalesfragoso.bsky.social on Bluesky

typ

04.10.2025 13:56 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0

Natural languages are incredible informal and ambiguous.

30.09.2025 17:51 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

From the people who brought you "Free Monads" comes a new challenge: Freer Monads.

29.09.2025 02:48 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

Mutable alias with references is UB. It's basically the textbook use of unsafe.

22.09.2025 22:14 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0

Does it really need to be safe though?

I would rather have it marked unsafe with proper `Safety` comments than have it "safe, but not really".

22.09.2025 21:48 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0

Ok, you got me worried for a sec.

26.05.2025 20:09 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

Did bluesky just pulled a link preview from your spelled-out url?

26.05.2025 20:04 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0

Who decides which parts are the goodies and which aren't?

17.05.2025 04:55 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

As vezes faltam as metas concretas tambΓ©m.

16.05.2025 16:36 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

I'm currently using choc sunsets, a bit more difficult to find but I'm really liking them.

16.05.2025 16:33 β€” πŸ‘ 2    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

Mas precisa disso tudo? A proteΓ§Γ£o vale pra criatura tambΓ©m? Minha interpretaΓ§Γ£o era que sΓ³ protege o jogador.

14.05.2025 16:49 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0

Can you give an example of the last sentence?

11.05.2025 16:30 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0

Pra deixar claro, interpretei "o mexe quase nada em documentaΓ§Γ£o" como mudanΓ§as pequenas/insignificantes na documentaΓ§Γ£o.

Mas agora nΓ£o tenho certeza se interpretei certo .-.

06.05.2025 20:36 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0

"LGTM, thanks." (Clicks merge).

Sou preguiΓ§oso, qualquer outra coisa seria esforΓ§o sem benefΓ­cio.

06.05.2025 20:16 β€” πŸ‘ 2    πŸ” 0    πŸ’¬ 2    πŸ“Œ 0

TambΓ©m comecei no Malboro depois de aprender python.

06.05.2025 00:19 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

rustls already covers a good chunk of openssl use cases.

It doesn't do its own crypto however, but that isn't necessarily bad. People usually roll with assembly for that still anyways.

06.05.2025 00:07 β€” πŸ‘ 2    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

You might even be able to do with references and safe code, but the resulting type won't be very flexible to use, since it will be borrowed for the whole time it exists. You might be interested in reading:

doc.rust-lang.org/nomicon/drop...

01.05.2025 20:19 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

You can do with raw pointers and care. Also, you probably want to pin `xs` before creating the pointers because a lot of methods in Vec can invalidate its original memory.

01.05.2025 20:09 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0

I use async even for stupid CLI tools. Easily selecting concurrency abstractions is a game changer.

28.04.2025 16:19 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

Do you mean that they end up erasing the underlying type even if they don't need to?

24.04.2025 14:47 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

@sseraphini.bsky.social isso Γ© verdade?

20.04.2025 14:02 β€” πŸ‘ 2    πŸ” 1    πŸ’¬ 0    πŸ“Œ 0

All is good until you accidentally convert a concrete error to an error interface.

14.04.2025 16:36 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

In which way go is more type-safe than C#? Genuine question.

09.04.2025 20:50 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

People say that allocations never fail on linux, and that it kills your process instead.

08.04.2025 23:56 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0

Weird question, but which OS?

08.04.2025 23:20 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0

Concordo com o conselho na situaΓ§Γ£o que foi dado.

Mas com o tempo Γ© sempre bom tentar achar um equilΓ­brio.

"Na indΓΊstria" Γ© comum que o "sempre pode melhorar depois" seja uma grande ilusΓ£o.

06.04.2025 13:30 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

"OO is about hardend boundaries, self containment, modeling the problem domain, &c."

That just sounds like any other abstraction. Can you be more precise on what OOP in specific brings to the table?

03.04.2025 15:20 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0

Just be careful to not accidentally convert the value to an error interface. That might take a bit to debug...

02.04.2025 19:54 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

TΓ‘ com a mulesta.

02.04.2025 17:33 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

An example would be using it with any type that might have padding.

My recommendation is to use crates that already have that thought out, like zerocopy or bytemuck.

31.03.2025 01:22 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0

@thalesfragoso is following 20 prominent accounts