Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
creata
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
46 ms
·
841.
▲
by
creata
6y ago
But when Matrix gains massive adoption from the mainstream, wouldn't you expect those people to primarily rush to matrix.org?
842.
▲
by
creata
6y ago
Matrix is merely federated, right? Why is it unlikely that a situation like email or the Internet will emerge, where the network still ends up massively centralized because that's just more convenient ?
843.
▲
by
creata
6y ago
That's fair enough, but in the short term, Cloudflare is more trustworthy (and tolerant of free speech!) than my ISP and government. Is there an initiative in which I have to trust none of these parties?
844.
▲
by
creata
6y ago
How will DoH help "huge corporations... take control of the population"?
845.
▲
by
creata
6y ago
> the language emphasizes the reduction of memory bugs That's not really true: Rust's borrowing and ownership apply to most kinds of in-program resource ownership and aliasing, not just memory. > The resulting code then crea
846.
▲
by
creata
6y ago
Wikipedia has a list of big-name unsolved problems in complexity theory. Most of these have very simple problem statements. https://en.wikipedia.org/wiki/List_of_unsolved_problems_in_c...
847.
▲
by
creata
6y ago
That's not even close to all there is to it. Complexity analysis is a relatively young field with lots of deceptively simple unsolved problems. For a simple example of how it's a lot more than that, follow Tarjan's proof of t
848.
▲
by
creata
6y ago
On the other hand, what does Zig lose that C++ has? I've seen that it doesn't have destructors. Does it have some other means of ensuring that I'm closing my resources appropriately, or am I burdened with ensuring that myse
849.
▲
by
creata
6y ago
> the function calls make it crystal clear that something non-trivial is happening under the hood. Well, it makes it crystal clear that something non-trivial may be happening under the hood. If I have a vector type which is implemented
850.
▲
by
creata
6y ago
Maybe C "disappears" while coding, but I'd much rather it stuck around to help me out. When writing C, I have to carefully make sure that each resource has been freed/closed (but not too soon!), that I'm not mutatin
851.
▲
by
creata
6y ago
> if you don't use .push I don't think I've ever needed to avoid .push. > I still doubletake Why? "arr[i]" just means "skip i elements and get the next one," which is perfectly intuitive to me. I und
852.
▲
by
creata
6y ago
Wow, I wonder why Crikey's tone on this legislation changed so much between August 2020 and now.
853.
▲
by
creata
6y ago
> Nobody said "Australia no longer has access to Google" That's not true: the article's title intentionally misled on that front, and the article body continued to raise fears about a "restricted" search pro
854.
▲
by
creata
6y ago
Yep. In this very thread we see people with the misunderstanding that Google is going to block Australians from using its search engine.
855.
▲
by
creata
6y ago
You can find a small example for generating CSE'd C code for a sympy expression at https://stackoverflow.com/questions/22665990/optimize-code-g... . I think the built-in code generator is a bit strange, thoug
856.
▲
by
creata
6y ago
Sorry if this comes across as blunt, but what self-serving decisions has Signal made, how do they benefit Signal, and how do they compromise users' privacy?
857.
▲
by
creata
6y ago
As an aside, this is exactly how HashSets are implemented in the Rust standard library.[0] [0]: https://rust-lang.github.io/hashbrown/hashbrown/hash_set/ind...
858.
▲
by
creata
6y ago
I agree: you can definitely make it generic in both arguments. I was just arguing that this order of arguments makes more sense.
859.
▲
by
creata
6y ago
Sorry, I've only taken statistics 101. What's "concordance" in this context?
860.
▲
by
creata
6y ago
Perhaps they want named arguments so that join(sep=', ', strings='hello') and join(strings='hello', sep=', ') are equivalent.
861.
▲
by
creata
6y ago
Right, and it's important to remember that mathematics is sharply optimized for human understanding, whereas programming languages strike a careful compromise between human understanding and efficient execution by machines. I don
862.
▲
by
creata
6y ago
What's wrong with (','.join(['a', 'b']))? If it's the order of arguments, then I want to point out that the order has two big advantages: * partial application is actually useful: I've actually u
863.
▲
by
creata
6y ago
Sorry: you seem to be misunderstanding me, but I do not know how to express myself better. Edit: for reference, I'm looking for an analog of the let! construct from "Linear types can change the world!" and the borrowing usage
864.
▲
by
creata
6y ago
> That said, reading a list length (in O(n) time) and then performing an operation on it is usually an anti-pattern Of course it's unnatural for Haskell lists, but replace "list" with "Array" (or even just the he
865.
▲
by
creata
6y ago
> the way you did boolean operations with shapes based on their color has not been bested since by any other editor. Can you expand on this? How did it use colors to help us work with boolean operations on shapes?
866.
▲
by
creata
6y ago
If I have a list I can only use once, how can I get its length? In Rust, read-only borrows accomplish that, but I don't see a counterpart in Haskell. I feel like getting the length of a list shouldn't count as "using" it
867.
▲
by
creata
6y ago
This is statistics at its worst. How can you conclude from just the last seven days that "those measures that CA took... don't seem to be working as expected"?
868.
▲
by
creata
6y ago
Rust used to have a lot of stuff built into the language, including garbage collection![0] I think that a long time ago they chose to move stuff out into libraries so that Rust could be a serious competitor to C++. https://pcwalt
869.
▲
by
creata
6y ago
> which are much better than C++/Rust's approach of being unsafe-by-default. Nitpick: Rust is safer than Java by default. You can't ever dereference a null pointer (only raw pointers can be null, not references) or make
870.
▲
by
creata
6y ago
Or perhaps we should accept that programming a computer is more like playing a board game and less like speaking, and optimize languages along those lines.
More ›