Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
ChrisSD
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
79 ms
·
841.
▲
by
ChrisSD
7y ago
And that's fine. A productive discussion can be had along those lines. However if someone refuses to even acknowledge that there are facts then there's no discussion to be had. It almost feels like we're in an age with a kind
842.
▲
by
ChrisSD
7y ago
> What's annoying in this article is that it doesn't come right out and say that MS is considering offering a full Windows SDK with a Rust API. The closest I see the article come to mentioning this is: "Exploring the use o
843.
▲
by
ChrisSD
7y ago
Technically the journalists should have editorial independence and a firewall between them and marketing. So they could in theory investigate their own paper's revenue stream. Although in this case they wouldn't have to frame it i
844.
▲
by
ChrisSD
7y ago
It should be noted that the so-called "cookie law" is about more than just cookies. It's about all user data and who can access it and for what reason. If this more tightly controls who user data is given to then that is a bi
845.
▲
by
ChrisSD
7y ago
I've noticed that happening a lot lately. It's frustrating because the blog post is interesting on its own merits and doesn't need to have a click bait title inserted.
846.
▲
by
ChrisSD
7y ago
Read what dancek said again. In Rust `a..b` means a <= x < b So 0..256 is 0 <= x < 256 That is "less than" 256. There's no equals (that would be `0..=256` in Rust).
847.
▲
by
ChrisSD
7y ago
Use Rust's `const fn`. In its current state you can't do any looping, Nor any other control flow. Fun times. Doing recursion works easily enough but the hard part is stopping.
848.
▲
by
ChrisSD
7y ago
I think you're misunderstanding the intent of the post. An unsafe block is absolutely meant to ensure everything is safe outside of that block. However it's up to the unsafe programmer to do that. Using `unsafe` is telling Rust &q
849.
▲
by
ChrisSD
7y ago
I like Rob Pike but wow that sounds like a bad argument, at least based on the parts you quote. Saying, effectively, "you just don't understand how great it is" and then insulting the intelligence of C++ programmers isn'
850.
▲
by
ChrisSD
7y ago
> So despite the fact that many consider Go to be the main Rust competitor for writing complete programs... Really? That seems odd to me. I guess there's some overlap between the two languages but they mostly exists in different sph
851.
▲
by
ChrisSD
7y ago
I think you have to be careful when presuming to speak for "most programmers".
852.
▲
by
ChrisSD
7y ago
I think many people aren't going to stress too much about breaking a site's T&C because a) nobody ever reads them and b) they're practically unenforceable in many places. However, I do agree that people should care more a
853.
▲
by
ChrisSD
7y ago
I don't think it should be designed to save keystrokes at the cost of readability.
854.
▲
by
ChrisSD
7y ago
C++ classes vs. Rust traits isn't just a matter of syntax differences. Btw the function syntax is: fn foo(x: u16, y: u16) -> u32 If it were more C++ like it'd be: u32 foo(u16 x, u16 y) Which is less keystrokes
855.
▲
by
ChrisSD
7y ago
It's not down now and the incident lasted only minutes? I wonder if "[website] is down" has become such a meme that every interruption in service is front page news, akin to how the media will suddenly start reporting every s
856.
▲
by
ChrisSD
7y ago
And I'd add that CC0 is more "properly unlicensed" than Unlicensed is. Or at least more thoroughly so.
857.
▲
by
ChrisSD
7y ago
Mozilla do actually do a lot of manual code review, especially for new addons. That was one issue with the big extension migration; it was taking forever for new style addons to be approved.
858.
▲
by
ChrisSD
7y ago
Indeed. If you're not a cryptographer then you shouldn't be rolling your own crypto. That includes selecting low level libraries, etc. You want a whole crypto system that's made by experts. Preferably one that's open to
859.
▲
by
ChrisSD
7y ago
Surely version control solved this issue. Use whatever you like. Have a standard for the repository itself. Auto-convert if and when necessary.
860.
▲
by
ChrisSD
7y ago
How does the language enforce spaces only? PEP8 was only meant as a style guide for the python standard library. Although many have unfortunately taken it as a religious text.
861.
▲
by
ChrisSD
7y ago
I'm guessing most people don't particularly care about z ordering. All they want is something that says "this should be on top of everything else". Or more rarely "this should be underneath everything else". As
862.
▲
by
ChrisSD
7y ago
As a UK citizen, that last part doesn't seem true for my personal banking. Once you have an account it's very easy to open others at different banks. Just recently I opened a secondary account with an app only bank. Other finance
863.
▲
by
ChrisSD
7y ago
If people just wanted to use the old addon system then all that requires is changing a few options when building Firefox (in official Firefox builds, only moz can deploy such addons). So keeping up with security updates shouldn't be ha
864.
▲
by
ChrisSD
7y ago
I've been told before that this advice isn't appropriate for anyone who isn't a Debian developer. Things can break and testing may not get important security patches until a while after unstable and stable.
865.
▲
by
ChrisSD
7y ago
The author dislikes both Python and Docker. But mostly Python. For the reasons why, see the article (you can safely skip the first two paragraphs). The biggest gripes are concurrency and package management.
866.
▲
by
ChrisSD
7y ago
They are technically available to the poor but in practice many people can't afford to tie up their money for long periods. If they're forced to take their money out of the fund due to their circumstances, then they could actually
867.
▲
by
ChrisSD
7y ago
I'm trying to say it isn't beyond the bounds of possibility for Microsoft to allow a more permissive license for at least a subset of their headers. Even while maintaing Windows' proprietary nature. This particular sub thread
868.
▲
by
ChrisSD
7y ago
According to the nomicon[0], using a zero sized array in a repr(C) struct is the best practice for type safety. I also seem to remember someone saying the zero sized array is analogous to how LLVM bitcode represents void* in C. [0] https:&
869.
▲
by
ChrisSD
7y ago
MaybeUninit<T> is very welcome considering mem::uninitialized turned out to be such a mistake. I only tried using it once which dissuaded me from trying again, which was probably for the best. I'm still looking forward to const g
870.
▲
by
ChrisSD
7y ago
Sure but surely the point of the windows headers is to define the public interface. This has been made more explicit with Microsoft's ApiSet Contracts, which defines a more minimal set of function definitions grouped into sets like &qu
More ›