Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
scaredginger
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
8 ms
·
61.
▲
by
scaredginger
4y ago
https://docs.exaloop.io/codon/general/differences Looks like you can use bigger integers and they're very explicit about it not being a drop-in replacement for Python
62.
▲
by
scaredginger
4y ago
Super neat that it has an FFI as well
63.
▲
by
scaredginger
4y ago
Yeah, or accept a small runtime cost in exchange for a smaller binary
64.
▲
by
scaredginger
4y ago
To be honest, I'd struggle to think of a language with generics or dynamic typing where you couldn't do function composition. Even in C, you could do something like in this godbolt link (ugly, I know): https://godbolt.o
65.
▲
by
scaredginger
4y ago
I'm not satisfied by your explanation here. What definition of 'polymorphism' are you using? Why would type checking need to precede monomorphisation? Additionally, how do C++ concepts fit into your beliefs?
66.
▲
by
scaredginger
4y ago
My wording may have been unclear. I have no doubt you had good technical justification for this port. I'm purely talking about the experimental results regarding builds and toolchains here. For people starting a new project rather than
67.
▲
by
scaredginger
4y ago
I didn't mean to be dismissive. Like I said, I think it's useful for somebody. I just don't think it's useful to me
68.
▲
by
scaredginger
4y ago
What you've said here is mostly correct. The key part you've omitted is that monomorphization is opt-in. One could write Rust like C if they wanted to; they would have to be insane, but they could
69.
▲
by
scaredginger
4y ago
Please elaborate. I agree C++ templates are more flexible in what they do (SFINAE etc.), but Rust generics and C++ templates still both use monomorphization
70.
▲
by
scaredginger
4y ago
I gave up only a little beyond where they revealed that they ported line-by-line. I think this is an interesting experiment for those considering a Rust rewrite, but has no utility for a greenfield project. The scales are stacked strongly i
71.
▲
by
scaredginger
4y ago
Not to mention efficiency. Sure, it's 'easier' to make a copy of all the data when crossing the FFI boundary
72.
▲
by
scaredginger
4y ago
Even as someone who loves Rust, I completely agree with this. Rust is a niche tool, better suited for replacing C++ workloads than Python workloads
73.
▲
by
scaredginger
4y ago
I think 'crazy' isn't the right word here. I'm not a psychologist, but I think a lot of this behaviour is consistent with autism or ADHD
74.
▲
by
scaredginger
4y ago
B and C voters aren't strategic here. If they wish to knock out A, then placing A at the bottom would not be strategic voting. The point is that A voters arguably should have voted such that they could influence which of the two other
75.
▲
by
scaredginger
4y ago
Fair enough, I mostly agree with you. I was just trying to say that it's not really feasible to eliminate game theory from voting entirely. I wish that nuance was discussed, but seeing as so many people still seem to think they can onl
76.
▲
by
scaredginger
4y ago
Nah, let's say there are 3 candidates: A, B and C. A wins a plurality of first preference votes. Otherwise, voters are split between B and C. We assume that if a candidate places C as their first preference, they will place B as their
77.
▲
by
scaredginger
4y ago
Just $137 billion more to go
78.
▲
by
scaredginger
4y ago
https://archive.ph/UvW0E
79.
▲
by
scaredginger
4y ago
To start off with, I think our elections are some of the best in the world and ranked-choice voting is a good system to use in that it's simple enough to explain and to work at scale, and still gives fair outcomes. However, I don'
80.
▲
by
scaredginger
4y ago
This is a great point. Why is Git LFS uploading a large file in 50 byte chunks?
81.
▲
by
scaredginger
4y ago
Is this a joke?
82.
▲
by
scaredginger
4y ago
Yup, freegans are welcome in the vegan camp. People who eat tofu and buy leather are not
83.
▲
by
scaredginger
4y ago
Wikipedia is wrong here. > Veganism is a philosophy and way of living which seeks to exclude—as far as is possible and practicable—all forms of exploitation of, and cruelty to, animals for food, clothing or any other purpose; and by exte
84.
▲
by
scaredginger
4y ago
you got a source for that claim, chief?
85.
▲
by
scaredginger
4y ago
I think it's a shame that 'vegetarian' has come to mean 'lacto-ovo vegetarian' in the vernacular. Now, 'plant-based' generally takes the position in language that 'vegetarian' should occupy. To b
86.
▲
by
scaredginger
4y ago
It's insanely stupid that pirates offer a better service than the big content distribution platforms. Consumers should feel little guilt about piracy at this point
87.
▲
by
scaredginger
4y ago
Seems very macabre to try and apply the idea to human populations, but I suppose this did more or less happen in WWI on the Western Front...
88.
▲
by
scaredginger
4y ago
Perhaps I'm oversimplifying, but if this neglect results in independent random events of destruction of these individual small things, it'll average out, so it's fine as long as they can be replaced
89.
▲
by
scaredginger
4y ago
Bees dying after stinging really highlights the question of what an organism is to me. It seems similar to routine cell death; the organism (hive) keeps thriving. In the grand scheme of things, the individual doesn't matter
90.
▲
by
scaredginger
4y ago
Library authors can make their modules initialize lazily. It's additional code complexity, but it's probably worth it in certain cases. At one point, I was on a team developing a complex extension module that would take several se
More ›