Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
azth
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
85 ms
·
871.
▲
Rust for C++ programmers – part 4: unique pointers
(featherweightmusings.blogspot.co.nz)
4 points
by
azth
13y ago
|
0 comments
872.
▲
by
azth
13y ago
What cost do conversions incur?
873.
▲
by
azth
13y ago
Do the radar systems on these vehicles have any effects on health?
874.
▲
by
azth
13y ago
> The number of times I've needed a generic abs in my life -- zero. What about a generic max() or min() function?
875.
▲
by
azth
13y ago
Thanks for the insightful reply. :)
876.
▲
by
azth
13y ago
> so I sometimes transliterate Go code to Java (the resulting code is always of similar length, perhaps with a slight advantage to Java, now with Java 8's streams and such). How does performance compare?
877.
▲
by
azth
13y ago
Yep. The same applies with Scala too (with `val` vs `var` declarations). I still don't like the separation of type declarations with the actual implementation; they should be the same, which is what Rust and even C++ got right.
878.
▲
by
azth
13y ago
> It feels like an improved C rather than building on the traditions of C++ say. I do feel that Go is an improved C (perhaps Java-lite). If you want a better C++, you might want to check out Rust.
879.
▲
by
azth
13y ago
Java's `final` while useful for primitives, it is not really that useful for reference types, which constitute the majority of types. C++'s `const` is a much better solution. Better yet, both Rust and D have superior immutability
880.
▲
by
azth
13y ago
But it's not just about indexes or certain containers. Sure, C++ makes things unwieldy, but the solution is not to drop operator overloading in its entirety. Rust wants to take on C++ head to head. For graphics programming and certain
881.
▲
by
azth
13y ago
Points taken :)
882.
▲
by
azth
13y ago
It doesn't sound like you are a systems programmer. That, and several of the points you mention lack substance. > - Explicit allocations (stack vs heap) and ownership management. This is a great feature. If you're writing anoth
883.
▲
by
azth
13y ago
Interesting. Where do you work if I may ask?
884.
▲
by
azth
13y ago
Your comment is disgusting.
885.
▲
by
azth
13y ago
> Start-up culture is increasingly bullshit and toxic Does that apply mainly to SV, or have you had/seen similar experiences elsewhere?
886.
▲
by
azth
13y ago
> is that top picture of a hellish working environment typical? I have a panic attack just looking at it. It's all about the "culture" man, you need to get with the times.
887.
▲
Net Neutrality AMA on Reddit
(reddit.com)
2 points
by
azth
13y ago
|
0 comments
888.
▲
by
azth
13y ago
Does "small-company stock options" apply only to pre-IPO startups? If not, what else does the term cover?
889.
▲
by
azth
13y ago
Don't argue with him/her, the parent poster is clearly acting immature.
890.
▲
by
azth
13y ago
Points taken. In my favor; however, English is not my native language :) Though I do definitely make lots of mistakes in my native one.
891.
▲
by
azth
13y ago
Thanks for the explanation. I am aware of that; however, the sentence I quoted does not make sense grammatically; "algorithmic complexity" is not an adjective.
892.
▲
by
azth
13y ago
> As a first step, we could check whether the digits 0 through 9 appeared with approximately equal frequency, among, say, the first million digits. Passing such a test is clearly necessary for randomness... Why is that the case? This jus
893.
▲
by
azth
13y ago
Was the CPU pegged at 100% when using Python then?
894.
▲
by
azth
13y ago
> provided that your problems are not algorithmic complexity What does that even mean?
895.
▲
F-35 C++ coding standard [pdf]
(stroustrup.com)
20 points
by
azth
13y ago
|
67 comments
896.
▲
by
azth
13y ago
Where are you based? Reach me via email (it is on my profile page).
897.
▲
Rust for C++ programmers – an intermission – why Rust
(featherweightmusings.blogspot.com.au)
4 points
by
azth
13y ago
|
1 comments
898.
▲
by
azth
13y ago
Whoops, deleted my previous comment since I quickly found out the answer after I submitted the question :) The compiler already knows the location of the function, and should be able to call it directly, if not inline it. Thanks for your an
899.
▲
by
azth
13y ago
I suppose you simply wrap the functionality in a class with a destructor? That's what I thought at first too; however, the author mentions in the comments section on that page something about this interacting in a hard fashion with C+
900.
▲
Servo on Android
(twitter.com)
2 points
by
azth
13y ago
|
0 comments
More ›