Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
detrino
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
7 ms
·
1.
▲
by
detrino
7y ago
I think you misunderstand me. I am saying that on Linux text at normal PPI is pretty much as good (to me) as text at high PPI because it has sub pixel rendering and strong hinting that Mac OS X lacks,
2.
▲
by
detrino
7y ago
OSX has had sub pixel rendering disabled by default since Mojave. It also never had the strong hinting that you can find on Linux and Windows which makes text significantly sharper at the cost of differing from the shape as specified by the
3.
▲
by
detrino
7y ago
Do you use Mac OS X? When using Windows or Linux I don't find much benefit in text rendering on a 4k display. But as Mac OS X has no sub pixel rendering or grid fitting text looks terrible without a high ppi display.
4.
▲
by
detrino
7y ago
You can still get 2% interest on that buy buying treasury ETFs, or 1.56% currently by asking them to open a preferred deposit account for you, which is essentially a savings account with a high interest rate. You dont have to keep it in cas
5.
▲
by
detrino
7y ago
If you have bank of america you can link your bofa and merrill accounts. They even give you bonuses on your credit cards of +25/50/75% cash back for balances over 25/50/100k in assets between both.
6.
▲
by
detrino
7y ago
Depends what you consider a Rope. Does it require constant time concat? Does it require immutability? Does it require a balancing scheme based on the fib sequence? Does it require that the tree is binary? My tree is an attempt to be as fast
7.
▲
by
detrino
7y ago
Re benchmarking vs other data structures: Here is a B+Tree based sequence container I made: https://github.com/det/segmented_tree Basically, it has O(log n) everything like a binary search tree you suggested but also v
8.
▲
by
detrino
10y ago
If you enforce the use of clang-format then this is not an issue as it will indent the code correctly.
9.
▲
by
detrino
10y ago
It's impressive that clang generates the same assembly for both versions: https://godbolt.org/g/yLh1EF Note that the assembly for process_message2 calls each function only once even though some appear twice in the
10.
▲
by
detrino
10y ago
Returning a stack allocated value is a move in C++11/14. It is also true that in many circumstances a compiler may optimize that move away using RVO/NRVO. Consider this example: http://ideone.com/T872Oj In F1 the
11.
▲
by
detrino
10y ago
I would expect B-trees to outperform binary trees even in a persistent data structure. The necessity of binary trees comes when you need stable iterators/references.
12.
▲
by
detrino
10y ago
std::array does not exist because it is easier to read. It exists because C arrays behave strangely. Two examples: decay to pointer and no value semantics.
13.
▲
by
detrino
10y ago
Your loop: void TestSigned(int min, int max, int step) { for (int i = max; i >= min; i -= step) F(i); } Becomes this with unsigned: void TestUnsigned(unsigned min, unsigned max, unsigned step) { while (true
14.
▲
by
detrino
11y ago
I've written a Data Structure[1] for C++ to handle this problem. It uses counted B+Trees internally and is a drop in replacement for C++14's std::vector. [1] https://github.com/det/segmented_tree
15.
▲
by
detrino
11y ago
They cherry picked a retailer that was out of stock and listing an old price on the pink scooter.
16.
▲
by
detrino
11y ago
Note that the pink scooter has a grayed-out "Add to cart" button. They are sold out of the pink version so you can't even buy it on target.com (Where the screenshot appears to be from). The old price is completely irrelevant
17.
▲
by
detrino
11y ago
Nothing in particular, just admitting the possibility.
18.
▲
by
detrino
11y ago
I've looked into this and it seems you are correct, thanks for the explanation.
19.
▲
by
detrino
11y ago
Who is assuming anything? People are conducting science and the evidence doesn't support an advantage for this particular function. Also, not only do I not think it is not absurd to consider that maybe a second language does not offer
20.
▲
by
detrino
11y ago
Because bitmaps target a specific resolution they can be tweaked so that features are aligned to pixel boundaries resulting in less anti-aliasing. Truetype fonts are an example of a vector format that can still look sharp at arbitrary resol
21.
▲
by
detrino
11y ago
> Git was not designed for security Can you elaborate on this? While it's true that SHA-1 is now broken, my understanding is that git's reason for using SHA-1 was to ensure the integrity of the entire history.
22.
▲
by
detrino
11y ago
A more common complaint is about whiteboard coding. Having a laptop connected to a projector is exactly what many people say they would prefer.
23.
▲
by
detrino
11y ago
Location: Las Vegas, Nevada Remote: Yes Willing to relocate: Yes Technologies: C++, C#, C, Python, Git, Subversion, Linux, Windows Github: http://github.com/det Email: chris@detrino.org
24.
▲
by
detrino
11y ago
You can not order anything on that page. Besides, there is absolutely reason for doubt when the BoM is estimated to be more than $9.
25.
▲
by
detrino
11y ago
Finger trees don't provide O(1) insertion, just O(1) prepend and append.
26.
▲
by
detrino
11y ago
> Compared to Rust? I doubt that. Like I said, Rust lets you dance near the line. Your problem is that you are trying to imagine what happens in the real world rather than just looking at it. > This is from experience in various large
27.
▲
by
detrino
11y ago
Your comment has the structure of a well reasoned argument, but it's predicated on falsehoods. Most large C++ projects do not unnecessarily use reference counting. Most C++ programmers do not fear using references or pointers because o
28.
▲
by
detrino
11y ago
> it's an equivalent set of principles to what you would do in C++ to keep your pointers safe. The things you can prove statically with the borrow checker are a subset of the things that wont trigger UB in C++.
29.
▲
by
detrino
11y ago
There is a clear bias. When talking about Java: > JVM garbage collection is notoriously expensive. > Java’s known performance issues made it unappealing. > However, in our past experience, we ported a large system from Java to Go,
30.
▲
by
detrino
11y ago
Lanczos-2 is pretty much identical to Catmull-Rom, and Lanczos-3+ are all sharper than Catmull-Rom, but at the cost of ringing artifacts.
More ›