Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
Cyph0n
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
15 ms
·
241.
▲
by
Cyph0n
9mo ago
Where does uv download the Python interpreter to?
242.
▲
by
Cyph0n
9mo ago
It is safe btw. The difference is that it returns two mutable references vs. one shared ref and one mutable ref. But as they noted, a mutable ref can always be “downgraded” into a shared ref.
243.
▲
by
Cyph0n
9mo ago
Eh, it’s not uncommon to need this distinction. The Go convention is to return (res *MyStruct, ok bool). An Option type is a cleaner representation.
244.
▲
by
Cyph0n
9mo ago
Gotcha. There is a split_at_mut method that splits a mutable slice reference into two. That doesn’t address the problem you had, but I think that’s best you can do with safe Rust.
245.
▲
by
Cyph0n
9mo ago
Do you mean borrows for different fields of a struct? If so, that’s handled today - it’s sometimes called “splitting borrows”: https://doc.rust-lang.org/nomicon/borrow-splitting.html
246.
▲
by
Cyph0n
9mo ago
This comes with the added benefit that your environment is reverted as soon as you exit the Nix shell.
247.
▲
by
Cyph0n
9mo ago
The problem isn't undefined behavior per se; I was using it as an example for strncpy. Rust is a no - in fact, the goal of (safe) Rust is to eliminate undefined behavior. Zig on the other hand I don't know about. In general, I see
248.
▲
by
Cyph0n
9mo ago
strncpy doesn’t handle overlapping buffers (undefined behavior). Better to use strncpy_s (if you can) as it is safer overall. See: https://en.cppreference.com/w/c/string/byte/strncpy.html . As an aside, t
249.
▲
by
Cyph0n
10mo ago
I think the solution is a build system that requires version pinning - options include Nix, Bazel, and Buck.
250.
▲
by
Cyph0n
10mo ago
> Checks can be linters, security scanners, etc. The first checks I setup are build and test. The rest is “extra”.
251.
▲
by
Cyph0n
10mo ago
Very cool! Are there any blog posts or articles about Tangled? Docs seem pretty light.
252.
▲
by
Cyph0n
10mo ago
Can you expand on why that’s the case? Suppose the Chinese gov has access to my robovac data. Given that I reside in the US, how is that worse than ICE having access to my data?
253.
▲
by
Cyph0n
10mo ago
It was a capitalist corporation beholden to demands by domestic law enforcement and intelligence agencies. And just because a corporation is based in China doesn’t automatically make it some kind of government managed communist entity.
254.
▲
by
Cyph0n
10mo ago
No. I was responding to the implied claim that mandatory service generally absolves a person of any form of complicity.
255.
▲
by
Cyph0n
10mo ago
If you have an open mind & are arguing in good faith - which based on your wording is probably not the case - then I will respond to your points. Not wasting my time otherwise given that we’re two years into this calamity.
256.
▲
by
Cyph0n
10mo ago
Yes, they didn’t normalize, so they’re irrelevant to the peace equation floated by the person I replied to. So a genocidal campaign to level Gaza and cleanse it of its human anima- oops, I meant people, expand settlements in the WB, and occ
257.
▲
by
Cyph0n
10mo ago
ICC, not ICJ - the so-called Hague invasion act.
258.
▲
by
Cyph0n
10mo ago
And then subsequently ruined peace with 3/4 (Saudi never normalized). > Islamists that hate Jews for not being part of their empire hate them. That’s not even close to reality, but whatever helps you justify genocide I guess.
259.
▲
by
Cyph0n
10mo ago
They already have a major PR problem and are scrambling to fix it. What they don’t - or don’t care enough to - realize is that given the enormity of the crimes they committed (heck, still are committing!), nothing short of accountability an
260.
▲
by
Cyph0n
10mo ago
The CIA, probably.
261.
▲
by
Cyph0n
10mo ago
This is the kind of discussion that I feel would be better to have in-person; I am not a great writer :) Re: Israel & the term genocide, if you closely look at the combination of: (1) the words that came/are coming out of the mou
262.
▲
by
Cyph0n
10mo ago
Nice deflection. All I need to care about as a lowly SWE is that this attack injured thousands of Lebanese civilians. This is the real world, not a movie or simulated war game. And I would wager that you would immediately condemn such a b
263.
▲
by
Cyph0n
10mo ago
I understand we won’t come to an agreement here, but I wanted to respond to two of your points: 1. Re: the term genocide, do you know why Palestinians have been insisting on this specific word to be used? Because genocidal intent was clearl
264.
▲
by
Cyph0n
10mo ago
I have expanded in other comments in this same tree, but it was indiscriminate in timing, location, and possession (unless Israel individually verified possession). If it were a “discriminate” attack as you claim, then we wouldn’t have seen
265.
▲
by
Cyph0n
10mo ago
> linked to Hezbollah's own military encrypted network, and triggered by a pager message encrypted to that network. I am not sure where you’re getting this information from. For instance, you seem confident that this network used ex
266.
▲
by
Cyph0n
10mo ago
> Israel has a laudable and low civilian: militant kill ratio, possibly the best in the history of modern combat. Right, that’s my cue to stop engaging :)
267.
▲
by
Cyph0n
10mo ago
So it’s either drop a bomb on them or mass detonate explosive devices? Love it.
268.
▲
by
Cyph0n
10mo ago
So you understand that the proscription is the core problem, but in the same breath, still focus the blame on protestors for fighting this proscription? By the way, in case you somehow overlooked it, the whole point of people protesting und
269.
▲
by
Cyph0n
10mo ago
Re: timing - They were triggered to explode en masse, which implies that there was zero consideration to minimizing civilian harm. Re: location - They exploded everywhere you can think of, while these targets were doing civilian activities
270.
▲
by
Cyph0n
10mo ago
Growing tired of repeating the same response to the same points. Please see on of my other replies to sibling comments.
More ›