Viewing profile — alvarelle
alvarelle
HN member- Joined
- Thu, Jan 30, 2020, 10:09 PM UTC
- HN karma
- 50
- Public activity
- 27 items
- HN profile
- View on Hacker News ↗
About alvarelle
No profile information was provided.
Recent public activity
-
comment
Comment #25387582
> in rust as long as you don't use a feature you don't need to know about it. Is that not the same in C++ and in most languages? ... until someone else in your team uses it in your…
-
comment
Comment #25353360
Yes. That's orthogonal. And people have been using CMake with Qt (and moc) for almost as long as cmake exists
-
comment
Comment #25353329
You should be fine with the LGPL license of Qt.
-
comment
Comment #25264509
> ... std::atomic . This tells the compiler not to elide reads and writes of this variable, ... If I'm not mistaken, this is not true. The compiler is still allowed to elide reads …
-
comment
Comment #24459673
I find it ironic that you answer to a comment asking for links, but you don't provide any. (Same for the other comments in this thread)
-
comment
Comment #24247755
I believe I understand correctly UB and unsafe. The cxx crate and the autocxx tool should make sure that the exposed C++ functions only take arguments types which have well defined…
-
comment
Comment #24244998
The point is that the C++ code should be safe because the C++ programmer should not introduce UB on its C++ code. If the C++ code invoke UB, that is a bug in the C++ code which sho…
-
comment
Comment #23989292
Imagine what proponents to heliocentrism such as Galileo had to face explaining their theory and how it explain a simplified elliptic orbit for the planets rather than the strange …
-
comment
Comment #23844109
I did not see digraphs mentioned. Could look like . The formatting tool could even normalize that to some prettier unicode.
-
comment
Comment #23674907
The graphical design of his website?
-
comment
Comment #23200800
What's magic in Box?
-
comment
Comment #23146723
I believe you got it backwards. The price of bitcoin determines how much the miners are going to spend to produce it. (Or we are both wrong)
-
comment
Comment #23058995
Could also try to use the smallvec crate in this case, which put small allocation on the stack https://docs.rs/smallvec/
-
comment
Comment #23058664
But with rust you have to re-learn the language every six weeks as it changes so fast. (/s)
-
comment
Comment #23007888
No, it hasn't. Actually C++20 comes with only the minimal support for coroutines in the std library. If you want to do anything useful, you need to implement a promise type yoursel…
-
comment
Comment #23003903
I don't know about the others, but C++ don't have a default implementation as part of the standard. If you want an event loop, you need to use one of the many libraries that provid…
-
comment
Comment #22960751
I have a laptop I bought in 2009. I installed archlinux when I got it and upgraded regularly, and it still works.
-
comment
Comment #22960090
> Can anyone elaborate why exactly allowing demonstrably harmful and malicious lies [...] "Contradicting WHO" is not the same as "demonstrably harmful and malicious lies"
-
comment
Comment #22959968
> Who decides who the liars, cranks and con artists are? Yes, WHO decides.
-
comment
Comment #22914176
The article also suggests you should start with the post expensive option (60 in your case)
-
comment
Comment #22914050
Romans needed many more than 3 "digit" (or rather letter) to represent this date. Also, the AD system (counting the year since the birth of Jesus Christ) was introduced much later.…
-
comment
Comment #22820236
Personally, I stick with K&R C. I haven't gotten around to update all my with function signatures. whats is the thing with putting (void) all over or specifying the return type of …
-
comment
Comment #22820111
On the other hand, you could argue that the r# gives you "more prominence" which is exactly the stated goal of using that macro.
-
comment
Comment #22784184
Or using this crate: https://docs.rs/cpp/0.5.4/cpp/
-
comment
Comment #22747712
In C++ you can't hide a variable with another of the same name in the same scope. So you'd want to give different names to all the 'state' variables.