Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
nequo
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
43 ms
·
691.
▲
by
nequo
3y ago
For example, understanding why certain estimators give you the average treatment effect on treated individuals rather than the average treatment effect on everyone is easier if you understand the mathematics of it. But you need to know basi
692.
▲
Growing std::vector by a factor that allows memory reuse (2020)
(github.com)
1 points
by
nequo
3y ago
|
0 comments
693.
▲
by
nequo
3y ago
Thank you for the explanation and the Godbolt example! I appreciate it. Apologies for fumbling around in confusion.
694.
▲
by
nequo
3y ago
It seems to me that `sizeof` returns the number of bytes that the thing takes up in memory. For example: int numbers[] = {1, 2, 3}; // sizeof(numbers) = 12 > Your confusion (besides the pointer thing) is that 'x&#x
695.
▲
by
nequo
3y ago
Right, I am mixing up two things here. You are right that bringing up pointers here is a mistake. But apart from that, I would expect `{'x', 'y', 'z', '\0'}` to have size 16 rather than size 4 because
696.
▲
by
nequo
3y ago
I know. But my understanding was that `"xyz"` is an array of characters so that these two would have the same representation in memory: char word[] = {'x', 'y', 'z', '\0'}; //
697.
▲
by
nequo
3y ago
Does this mean that `word` in char *word = "xyz"; is a pointer to an array of four `int`s, `'x'`, `'y'`, `'z'`, and `'\0'`? When I evaluate sizeof(*word) I do get 1 instead of
698.
▲
by
nequo
3y ago
Why is sizeof('x') equal to 4 if char letter = 'x'; sizeof(letter) is equal to 1, just like `sizeof(char)`? If `'x'` is represented as an `int` in C, shouldn't `letter` in this example als
699.
▲
by
nequo
3y ago
Yeah, that makes sense. The CLI is definitely confusing. Every now and then you have draw on a book of spells to use it. I find it more comfortable with Magit but not sure if that makes up for all of the problems with the CLI. What VCS woul
700.
▲
by
nequo
3y ago
Perhaps it also includes (quasi) dead code that is not used anymore because regulations changed, and code for one-off analyses and experimentation?
701.
▲
by
nequo
3y ago
Do you have a source for that? From what I recall, SPJ says that the grass is always greener on the other side. So if Haskell was strict by default, some of us would be pining for a lazy version of it.
702.
▲
by
nequo
3y ago
The differences between Mu and Haskell are not that large. They use GHC as a library in their front end. Gergo Erdi gave a talk on it last year: https://news.ycombinator.com/item?id=35801844
703.
▲
by
nequo
3y ago
Gergo Erdi gave a talk on the GHC efforts of Standard Chartered last year: https://www.youtube.com/watch?v=fZ66Pz7015Q
704.
▲
by
nequo
3y ago
This is the terminology that Git uses. Porcelain is the UI, whether it’s the basic CLI, Magit, Fugitive, or anything else. Plumbing is Git under the UI. Are you saying that the CLI is bad, or that Git’s underlying concepts and data model ar
705.
▲
by
nequo
3y ago
10^{2.55+1.68} = 10^4.23 ≈ 17000 What’s the shortcut by which the author calculates the approximation without a calculator in the second step here?
706.
▲
by
nequo
3y ago
Edge and Chrome use the same engine, don’t they? So the correct iOS parallel is not Apple’s refusal to allow non-WebKit engines. But Apple’s hypothetical refusal to allow links to be opened in WebKit-flavored Firefox. Which, for the record,
707.
▲
This Is Your Brain On Stale Air (2019) [video]
(youtube.com)
2 points
by
nequo
3y ago
|
0 comments
708.
▲
by
nequo
3y ago
But Git is not only the porcelain, it’s also the plumbing. Do you think that the plumbing is super mediocre too?
709.
▲
by
nequo
3y ago
CVS used to be the standard before Git. Arguably CVS as the standard was not better than no standard if no standard let you use decentralized version control. But Git is pretty good, so it will take something vastly better to replace it.
710.
▲
by
nequo
4y ago
Cell phones 15 years ago still leaked location information via the cell tower they connected to, didn’t they? This doesn’t seem like a development from the past 15 years like you’re saying. So if you were privacy conscious to that extent 15
711.
▲
by
nequo
4y ago
I am not trolling. I don’t recommend engaging in a good-faith dialogue with someone by prefacing it with your belief that they are trolling. If you're basing your trust in ChatGPT on the claim that it is trained on Wikipedia, you might
712.
▲
by
nequo
4y ago
Yes, I would start with Google Scholar, or at least Wikipedia because it tries to provide sources for each statement that it makes. > Who’s to say that ChatGPT doesn’t provide a better job of filtering it out? No one because no one knows
713.
▲
by
nequo
4y ago
When you run out of HN, do you hit up ChatGPT?
714.
▲
by
nequo
4y ago
Why feed yourself with potential misinformation that you don’t know the true source of and you might never double check?
715.
▲
by
nequo
4y ago
> Isn’t it funny how humans are allowed to keep copyrighted material in their minds You’re not allowed to take it out of your mind and sell it as your own product without permission from the copyright holder though.
716.
▲
Call for corporate sponsors and Glasgow Haskell Compiler activities report
(well-typed.com)
2 points
by
nequo
4y ago
|
0 comments
717.
▲
by
nequo
4y ago
In their defense, a meta-analysis is supposed to be an overview of the current state of the literature.
718.
▲
by
nequo
4y ago
It is true that currying looks comparatively awful in Rust. But that is not because Rust uses parentheses and commas. A hypothetical C-style language could use dedicated syntax for currying, like some_long_ass_function_name(some_quirky_
719.
▲
by
nequo
4y ago
I think this is partly because of the syntax. When we write human languages (that use a Latin script), we use punctuation to delineate the beginning and end of terms. In a language like C or Rust, terms are surrounded by commas, parentheses
720.
▲
by
nequo
4y ago
In what sense is immutability better? What changed?
More ›