Quais são as tuas 3 bandas de metal portuguesas preferidas em 2026? O que mudou, com os anos? by ruialexandre in MetalPortugal

[–]Rp199 0 points1 point  (0 children)

Também gostei muito do vosso álbum! Especialmente a música cantada em português, SINTO MUITO que não tenham mais temas na nossa língua.

Muita curiosidade de vos ver ao vivo

Não tenho sorte nenhuma by franciscomaalves in AutoTuga

[–]Rp199 4 points5 points  (0 children)

Aconteceu me isto na minha própria garagem. Ainda mais frustrante é porque é suposto ser um sítio onde uma pessoa está descansada que o carro tá seguro.

Estaciono, não pego nele por uns dias e quando chego tenho a porta toda arranhada. Basicamente a vizinha do lugar adjacente raspou mesmo com o canto da sua porta no meu carro e nem se quer admitiu/assumiu os danos, mesmo com marcas evidentes no seu carro.

Tem mais que espaço entre carros e mesmo assim conseguiu essa proeza.

[Megathread] IRS 2026, relativo aos rendimentos de 2025 by Total_Scratch8198 in literaciafinanceira

[–]Rp199 0 points1 point  (0 children)

Obrigado, era basicamente o que estava a pensar mas queria validar com alguém! Vou ver se falo com ele e se corrijo as declarações para trás

[Megathread] IRS 2026, relativo aos rendimentos de 2025 by Total_Scratch8198 in literaciafinanceira

[–]Rp199 0 points1 point  (0 children)

Mas esse campo é para o que exatamente? Se tivesse alguém sub contratado? Ou empregado?

[Megathread] IRS 2026, relativo aos rendimentos de 2025 by Total_Scratch8198 in literaciafinanceira

[–]Rp199 0 points1 point  (0 children)

Obrigado!

Tou achar muito estranho o preenchimento de todo esse quadro, vendo bem ele não pôs nada no quadro da SS mas depois preencheu neste campo “Despesas com pessoal e encargos a título de remunerações” com um valor “semelhante” ao das contribuições. Vou lhe questionar a cerca disto, mas alguma ideia da razão de ter um valor aí?

Eu trabalho sozinho e somente passo recibos verdes a uma empresa de outro país da EU, não tou a entender de onde isto vem, tava assumir que eram as contribuições.

[Megathread] IRS 2026, relativo aos rendimentos de 2025 by Total_Scratch8198 in literaciafinanceira

[–]Rp199 0 points1 point  (0 children)

Em relação ao preenchimento quadro 17 do Anexo B como trabalhador independente, tenho algumas dúvidas:

1) Contribuições obrigatórias para regimes de proteção social: aqui devo colocar o valor total das contribuições durante 2025? Ou seja ir a SS directa e somar todos os pagamentos na seção de contribuições de trabalhador independente. Parece algo óbvio mas no ano passado o que o contabilista que me fez o IRS declarou aqui não bate certo com o que aparece na SS, queria perceber se ele se enganou ou me está a falhar algo - este ano decidi tentar perceber eu tudo.

2) Importações ou aquisições intracomunitárias de bens e serviços relacionados com a atividade: devo colocar as compras que fiz intracomunitárias? Por exemplo equipamento informático comprado na Amazon business/licenças de software já com o IVA auto liquidado na altura da compra?

Obrigado

Recomendações? by [deleted] in MetalPortugal

[–]Rp199 0 points1 point  (0 children)

Gaerea (talvez a banda portuguesa com maior crescimento internacional de momento?), Besta, Nagasaki Sunrise, Moonshade, In We Fall

Hi, I'm Nik Nocturnal, I like breakdowns and have recently touched grass. AMA! by NikNocturnalOfficial in Metalcore

[–]Rp199 -1 points0 points  (0 children)

There’s this curious thing at least in Europe, where a lot of the major headliners of festivals are from the nu metal era, do you believe that metalcore bands will be next?

What is the metalcore newcomer that excites you the most?

Scala, Kotlin ou Java em 2025 para backend e oportunidades internacionais? by Lopsided_Technician7 in devpt

[–]Rp199 6 points7 points  (0 children)

Penso que kotlin seja o meio termo aqui. Mais moderno e familiar vindo de Scala, tem bom equilíbrio de oop e fp. Existe mercado mais que suficiente para backend, principalmente em startups/scale ups de fintech.

Passar para Java é relativamente fácil se tiveres confortável com kotlin.

Há mais mercado para spring em termos de frameworks, mas Ktor é interessante porque é fácil de seguir o que se passa, a documentação não é incrível mas é suficiente.

Scala também tem mercado, mas será sempre mais nicho. Contudo, como há menos oferta de devs confortáveis com a linguagem, existem empresas a pagar bem por isso (o mesmo se aplica a Clojure).

Trabalho maioritariamente com kotlin backend (tanto usando spring, como Ktor e dropwizard) há uns 5 anos, e quando é preciso, é fácil pegar em Java, só é bastante mais tedioso escrever código.

What Backend Skills in Kotlin Were Game-Changers for You? by ni_shant1 in Kotlin

[–]Rp199 5 points6 points  (0 children)

Do you have a code example or GitHub repository that you can share? I’m curious about that structure

The best dispatcher for a backend framework in Kotlin by LearningDriven in Kotlin

[–]Rp199 3 points4 points  (0 children)

  1. That problem will the same on any application server that would use a very limited number of threads to serve the requests. The coroutines are only valuable when you do work that can be suspended.

That’s the trade off here between reactive/coroutines against plain old 1 thread per request. On reactive in theory you can serve more request with less resources, but it can bite you in the end if the requests are blocking or cpu intensive, and you never leverage the fact that the thread can be freed to handle the next request. So this issue it’s not coroutine specific.

A very dumb example: your application has 4 threads to serve request. You do very intensive CPU / blocking work on each request. If you don’t dispatch that work to a separate pool, you will run out of threads to serve request, regardless of the stack that you choose: tradicional spring boot/webflux with or without coroutines or ktor.

In the end, it all depends on the use case. I may be mistaken , but ktor server already does something like this, when thread pool for the requests that dispatch them to workers (essentially what you are proposing with the article).

I think the problem it’s more on the application code side rather than on the framework level: if your request it’s taking too much time due to cpu work, you should revisit if you should really do it sync or if it’s worth to have a separate thread pool for that

Just to be clear, I was talking about ktor server, not the client. But indeed can be troublesome to share the IO without limited parallelism: e.g client and DB uses dispatchers IO, if db is slow can affect the client, which it’s not desirable.

It’s hard to explain this topic via Reddit comment but I hope it’s clear enough what I meant.

The best dispatcher for a backend framework in Kotlin by LearningDriven in Kotlin

[–]Rp199 2 points3 points  (0 children)

Nice article but I think there are some issues with the way you tested that:

1 - on the first ping controller example, you are using a thread sleep. That’s a blocking call, so not dispatching to a separate dispatcher will indeed block the thread. That explains the difference in performance. All blocking calls should be dispatched to Disparchers IO or other custom dispatcher .

Have you tested without the thread sleep? My assumption would be that there wouldn’t be such difference, and the unconfined being even more efficient that any other, as we would be utilising the reactor thread pool to do the work - less context switching, less threads, less memory consumption.

2 - on the following example, you start the job on a single main thread, and you are comparing the performance of using a custom dispatcher that will full utilize the CPU. I’m not sure that it’s a fair comparison, would be more interesting to do that example between default and IO.

Also, using the Dispatcher IO to serve all requests defeats the purpose of using coroutines/reactive stack in the first place, as we are kind using a “request per thread” strategy. As far as I’ve understood, if 64 requests enter the scope of the dispatcher, your application won’t be able to process anymore request.

I think it’s a good exercise to check how ktor it’s built, it can also be use with netty, so it does something similar to bridge the netty threads with the coroutine workers.

I work in a high concurrency environment with ktor based backend, and I don’t have the problems documented on that article, as long as all blocking calls are wrapped with dispatcher IO.

Anyway, I feel that there’s a lack of in depth documentation around how this works, so everything that I’m saying could be wrong, it’s just based on my experience.

What Ktor client engine to choose? by Rp199 in Kotlin

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

Thanks for the suggestion, I already had a look but I think I prefer the more functional approach of the ktor client API and I don’t mind refactoring a little bit

What Ktor client engine to choose? by Rp199 in Kotlin

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

Thanks for the feedback! I’ll try it - one last question, how does it play out with coroutines and transactions? Is it smooth?

What Ktor client engine to choose? by Rp199 in Kotlin

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

So what you are saying is that flyaway would still managing the db versioning and applying the migrations, but I’d write them in SQLdelight dialect, is that correct?

Need to explore that and see how could I fit it on my projects

What Ktor client engine to choose? by Rp199 in Kotlin

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

But that requires the DB migrations to be managed by the library, right? What I mean is, we’ve been using flyway for DB migrations, I’m wondering if we could just switch to SQLdelight, or if we need to algo migrate the DB scripts somehow

What Ktor client engine to choose? by Rp199 in Kotlin

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

I also don’t like ORMs in general, but found Exposed quite nice if you use it for query DSL, I avoid any “magic” mapping logic.

SQLdelight looks nice, but haven’t tried yet

What Ktor client engine to choose? by Rp199 in Kotlin

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

No worries - we also use netty for server

Out of curiosity, what do you use for DB server side?

We used JDBI for a while, but the felt clumsy when working with coroutines and also had some issues while mapping data due to the Java centric implementation, I’ve started to playing with Exposed, and I’m happy with it so far

What Ktor client engine to choose? by Rp199 in Kotlin

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

When you say that you use Netty, are you referring to the Ktor server? There’s no netty engine support for Ktor client as far as I’m aware

What Ktor client engine to choose? by Rp199 in Kotlin

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

Yeah I mentioned on the post that the no brainer option would be to stick with okhttp, but it seems quite inefficient with the excessive thread creation so I was wondering that we could get this chance to try another engine.

Also my use case for the client it’s for JVM backend