1,309 karma · joined May 2, 2016 (10y ago) · 675 submissions
comment 3d ago · link · parent
> Several classes of attacks are avoided by not allowing unauthenticated packets to influence any state. And more generally, it is possible to implement WireGuard in a way that requires no dynamic memory allocation at all, [...]
An attacker could still shoot blindly and try to saturate your network bandwidth, but at least they shouldn't be able to overload the VPN server and force OOM errors, like they could with SSH AFAICS.
comment 4d ago · link · parent
[0]: https://github.com/signalapp/Signal-Android
comment 4d ago · link · parent
AFAIK the SSH server MUST give a response[2], so network scanners can still find their targets. DoS mitigation is generally performed by a hosting provider or an upstream service.
[0]: https://www.wireguard.com/protocol/#dos-mitigation
[1]: https://www.wireguard.com/papers/wireguard.pdf (5.1 Silence is a Virtue)
comment 1w ago · link · parent
Is it...? I feel like there's a lot more to unpack here. What if the thing a person fell in love with was that somebody just had more power (over them)?
I'd argue that people should fall in love on equal grounds, so the personality of a partner matters more than the perceived status of power.
comment 2w ago · link · parent
<div class="container">
My list
{
list.map((item) => {
let text = null;
if (item.loading) {
text = "Loading...";
} else if (item.error) {
text = "Error loading item";
} else {
text = item.description;
}
return (
<>
<h2>{item.name}</h2>
<p>{text}</p>
</>
);
})
}
</div>
or (btw, I have never seen somebody creating a component for a list) function Item({item}) {
let text = null;
if (item.loading) {
text = "Loading...";
} else if (item.error) {
text = "Error loading item";
} else {
text = item.description;
}
return (
<>
<h2>{item.name}</h2>
<p>{text}</p>
</>
);
};
<div class="container">
My list
{list.map(item => <Item item={item} />)}
</div>
I still don't see any limitation. The @statement-things don't read better either.Anyway, thanks for the quick human exchange of opinions!
comment 2w ago · link · parent
> every interpolation needs to be a statement
Interpolation??? JSX extends the PrimaryExpression in the ECMAScript grammar. So yeah, every JSX element/fragment is an expression, not a statement. You can't seriously consider an ECMAScript expression a limitation?
> you can split control flow into separate component[s]
You do realize that none of the variables in the example above are components, do you? They are the result of JSX elements, and if we're talking React they'd be React elements.
> combine them together [...] makes the actual render result hard to understand
So, for you, a long ECMAScript expression is a limiting factor, but composing shorter, simpler expressions into a longer, more complex one is hard to understand. Even though in your comment above you wrote:
> simple workflow controls would read much better
What's your alternative?
comment 2w ago · link · parent
// this
<Box>
{
shouldShowAnswer(user)
? <Answer value={false}>no</Answer>
: <Box.Comment>
Text Content
</Box.Comment>
}
</Box>
// ...can be written like this
const answer = (
<Answer value={false}>
no
</Answer>
);
const comment = (
<Box.Comment>
Text Content
</Box.Comment>
);
const result = shouldShowAnswer(user) ? answer : comment;
<Box>
{result}
</Box>
In React at least, null won't render anything.#2 is a known trade-off, and so marginal and well known that it's almost not worth mentioning it.
comment 2w ago · link · parent
You'd use asyncio.to_thread[0].
I also don't quite get your complaint... asyncio provides a high-level concurrency primitive with coroutines, and that's a good enough primitive for workflow engines. Even with asyncio you could fork/spawn processes easily with aiomultiprocess[1], if you'd ever want or need to.
What's your use case for having more low-level concurrency primitives (threads/processes) available, having to deal with their synchronization, and running workflows sync?
[0]: https://docs.python.org/3/library/asyncio-task.html#asyncio....
comment 2w ago · link · parent
comment 3w ago · link · parent
The choice of technology being used (camera VS radar) might have various trade-offs, and it's worthwhile to discuss them.
EDIT: Granted, GP could've asked in a less dismissive way.
comment 3w ago · link · parent
- did they just take the affected API offline?
- or did they just disable the account of the attacker?
- or is the exploit actually being fixed?
Environment variables are sensible data, and marking a security incident as resolved with that little detail is quite a take. Even changelog entries for harmless bug fixes are more detailed.
comment 3w ago · link · parent
comment 1mo ago · link · parent
Are there any common resources for this kind of access methods and patterns that specifically aim to bridge the soft-/hardware gap? The best one I can come up with is Performance Analysis and Tuning on Modern CPUs[0] by Denis Bakhvalov.
comment 1mo ago · link · parent