Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
petters
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
68 ms
·
781.
▲
by
petters
9y ago
Yes, C++ without a monorepo is very difficult.
782.
▲
by
petters
9y ago
> lack of a proper, cross platform, package manager: I know the history, I know that C/C++ are basically embedded in the system and they use the system package manager, I think the problem is deeper than that and that the problem co
783.
▲
by
petters
9y ago
Yes, but it is a bit awkward. You can can separate implementations depending on whether T has a particular member function. I need to look up how every time, though.
784.
▲
by
petters
9y ago
Not sure I like this pointer. Copying a pointer should not be a heavyweight operation. That is pretty well established. I wish C++ had a unique_ptr without the ability to be null. But that does not seem possible given that moving from a poi
785.
▲
by
petters
9y ago
Yes, tungsten has a density surprisingly similar to gold. The original example in the grandparent comment would be expensive to counterfeit, though.
786.
▲
by
petters
9y ago
That is similar to have e.g. gold coins as currency. That is inefficient because it is hard to create enough of the currency for the economy to function optimally. It is also quite expensive.
787.
▲
by
petters
9y ago
I have worked at a company using one repo per team and at Google which uses a big monorepo. I much prefer the latter. As long as you have the infrastructure to support it, I see no other downsides (obviously, Google does not use git).
788.
▲
by
petters
9y ago
Dan Luu has a good list of HN comments: https://danluu.com/hn-comments/
789.
▲
by
petters
9y ago
The parent comment is of course sarcasm, but I wonder… Are there any studies that significantly concludes that engineers are more extrovert of more introvert than the general population?
790.
▲
by
petters
9y ago
The author took the time to write a blog post, but not trying the code for anything else than that bogus() function. Had they done that, they would have realized their mistake.
791.
▲
by
petters
9y ago
> I still haven't chatted to my friend about this, because what on earth do you say? > But naturally I didn't enquire any further into her relationship with the family. I just hope I would do the opposite. This is so wrong.
792.
▲
by
petters
9y ago
I am running an integer programming solver in the browser with wasm: https://www.strandmark.net/wasm/glpk.html Its single-threaded performance is essentially native, but I don't have the numbers.
793.
▲
by
petters
9y ago
Peter Lax wrote a graduate text on functional analysis where every other chapter consists of "applications". Even though the quotation marks are certainly warranted, I liked that concept.
794.
▲
by
petters
9y ago
Seems like a good tutorial! The example video is shot during daytime, though.
795.
▲
by
petters
9y ago
Deprecating old and arguably inferior syntax is part of the evolution of a language. C++ is not going anywhere, so improvements are welcome. Upgrading from is_void to is_void_v can be done automatically.
796.
▲
by
petters
9y ago
As others have pointed out, this does not really emulate the Rust borrow checker. You can still have multiple references and pointers to the same object.
797.
▲
by
petters
9y ago
For matrices of the form s^2 I + B, where B(i, j) depends on the distance between points i, j.
798.
▲
by
petters
9y ago
> There are no laws of physics dedicated to adjusting energy, momentum, information in order to conserve them. They are conserved by a mathematical correctness of every physical law The physical laws guarantee conservation, yes. But not
799.
▲
by
petters
9y ago
Came here to say this. Yes, use an IDE. Obviously, there are huge benefits of using text as storage. What if your team wants to start using Java, but git does not support it yet? Or Joe's editor?
800.
▲
by
petters
9y ago
> Is there any concrete evidence to believe in hypothesis 2 over hypothesis 1? If not, I'd rather go with the hypothesis that doesn't sound absurd. Almost the entire idea of quantum mechanics is that hypothesis 1 is incorrect.
801.
▲
by
petters
9y ago
Sure, it makes sense. But reality is complex. The amplitudes of the wave function are real (no puns intended) and the Bell inequalities are also real. It's not just about incomplete knowledge.
802.
▲
by
petters
10y ago
Works well for me on mobile Chrome. But loads way too slowly.
803.
▲
by
petters
10y ago
Exceptions are typically faster than error codes when errors are rare.
804.
▲
by
petters
10y ago
In my opinion, the primary use case of self-diving cars aren't personal ownership. Society as a whole wastes a lot of resources when every household has a car that stands still 95% of the time. With self-driving cars, we can plausibly
805.
▲
by
petters
10y ago
I agree. After I have interviewed and seen Google pass on a candidate, I sometimes feel I was lucky in my interviews.
806.
▲
by
petters
10y ago
I'm sorry that this happened to you. But don't you think you could have prepared better? Understanding code others have written is important and in my opinion asking about bits is not unreasonable.
807.
▲
by
petters
10y ago
Microsoft charges $0.004/h for a static IP. That's $35 annually and $280M/year for 8 million addresses. So perhaps the sale will give MIT a billion?
808.
▲
by
petters
10y ago
This way of adding metaprogramming to C does not improve performance. The compiler will still be unable to inline the comparisons in the qsort example. C++ will continue to be much faster.
809.
▲
by
petters
10y ago
That fix is an improvement, but in general I think it is better to whitelist stuff instead. Unicode is huge and complicated.
810.
▲
by
petters
10y ago
When I bought my Sony in 2012, it felt obvious to me that cameras with mirrors are a dead end.
More ›