Idk how actix works, but if there is no other way around it, you’ll have to store pstmt in some kind of global state. Maybe in a global Vec or HashMap that stores unfinished streams.
Idk how actix works, but if there is no other way around it, you’ll have to store pstmt in some kind of global state. Maybe in a global Vec or HashMap that stores unfinished streams.
I don’t think the problem is in the closure itself, since pstmt isn’t used inside the closure. To me, it looks like rec_iter has the lifetime of pstmt.
pstmt is dropped at the end of the function. However, rec_iter isn’t dropped at the end of the function (it is returned). You should either pass pstmt from outside the function as a reference and have zknotestream a lifetime smaller than pstmt, or return pstmt along with rec_iter. Idk if the last option is detected by rust though.
GPL libraries have an advantage in their legal power. MIT libraries have an advantage when users have to choose between 2 libraries.
All other things being equal, users will use more permissive libraries. So unless maintainers put more effort into the GPL, a MIT one will gather more users, which attracts more maintainers, which ends up in more MIT libraries than GPL ones existing.
I didn’t know that the difference between LGPL and GPL is that it allows to statically link. Then idk the reason
Probably because rust links statically by default, so making a library gpl means users will be forced to make their project GPL too, so MIT libraries have an incredible advantage.
IANAL though, so idk.
I don’t understand what minors and women has to do with it. Only adult men (where adult just means >18yo) can be terrorists? The other points might be valid (or not), but just saying “there are minors and women” means nothing.
They don’t mention it in the article, but IIRC he was with the the Belgian PM.
For those that don’t want to click on a reddit link:
Credit to u/paintboth1234
www.youtube.com##+js(nano-stb, resolve(1), *, 0.001)
While that is the compatibility mode windows, it was my experience with updated Linux on a new laptop.
Well, one could argue that since this community is called “work reform”, the point of this infographic is to make workers aware of how much more companies would pay them. This infographic does not accomplish that.
If your company buys a chair for 1000€ and you sell it for 1001€, the company got a revenue of 1001€. You cannot ask more than 1€ to be paid to you for it though, since the company would be losing money. That’s what is called a profit margin.
This infographic shows companies from a wide range of sectors, and a wide range of profit margins as if they were comparable. You cannot compare the wage/revenue ratio of a supermarket to a tech company, since they operate at different profit margins.
You can compare wage/(profit+wage) ratio though, as it measures which part of the pie goes to the workers and which to the company, and that is universal.
It is true that it’s hard to measure “profit”, but that fact doesn’t make this infographic any better.
This infographic has a very big and obvious flaw: wages are not the only cost of a company.
If a company covers its wages costs in 1 day it doesn’t mean that it’s pocketing the remaining 363.
Instead of revenue, they should use wages+profit. This way we can see which companies take what part of the generated value for themselves.
According to many religions, not being straight is a sin. Therefore being friendly towards LGBT ppl is bad, therefore It’s regressive.
Nobody is against what they believe is best. Calling something “progressive” is like calling the DRPK “democratic”, it’s just a name. Whether something progresses humanity is not objective, it’s subjective.
Maybe the DRPK example is not the best since it’s clearly not democratic for almost all people, but you get what I mean.
I’ve never heard of slint before. I’ve only used iced and imgui. Can someone that has used it tell me its pros/cons?
Is the DSL good? Can I make UIs without the DSL? Does it have good multiline text editing? (Neither imgui nor iced is good at that).
I searched “YouTube adblocker” on both google and DDG. The first mention of ublock origin was in the 1st page of Google (just at the bottom, under “recommended adblockers for Firefox”, the 2nd option). There was no mention of it on DDG, even though I clicked “more results” once (so searched the equivalent of 2 pages). The problem with Google search is not google, it’s SEO, that affects all search engines.
Unlock origin is the adblocker that people are installing. There are a lot of people with shitty adblockers out there, I guess they are switching.
It’s probably only the text. Images and videos weigh a lot more than text.
There are GUI libraries. I personally use iced a lot. Even if it’s not v1.0 yet, it has many features. There are also bindings for other more common libraries such as GTK, QT and imgui. There’s also egui as a native rust alternative to imgui.
Are all hydro storage like that though? It doesn’t seem too outlandish to think of a hydro storage plant that is also fed by a river
Rain fills them without consuming energy
Not really manual memory management. I’d say C++'s memory management is automatic, just not safe.
Yes, a lot of programming languages are memory safe, maybe it would be faster to list memory unsafe popular languages.