Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
Const-me
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
61 ms
·
841.
▲
by
Const-me
5y ago
I thing the OP wants to implement a browser engine from scratch, without forking Chrome or Firefox.
842.
▲
by
Const-me
5y ago
> to learn the 'nuts and bolts' of rendering These nuts and bolts are very different between CPU and GPU. CPU-based libraries are painting pixels in bitmaps in system memory. Most GPU-based libraries are uploading indexed trian
843.
▲
by
Const-me
5y ago
The system you described reminds me of astronomic navigation used in SR-71: https://theaviationgeekclub.com/the-sr-71-astroinertial-navi...
844.
▲
by
Const-me
5y ago
If I wanted to create a web browser from the ground up, I would do that in C#. And I would not use graphical libraries such as Xlib or Cairo, none of them has good hardware support. I think the right way is building on top of 3D GPU APIs, l
845.
▲
by
Const-me
5y ago
For production code as opposed to exams of job interviews, it’s usually better to use hardware implementation. All modern CPUs have instructions for that, popcnt on Intel/AMD, vcnt.8 on ARM Neon. Many languages have standard library fu
846.
▲
by
Const-me
5y ago
Why do you think the market inevitably becomes a monopoly? In the last 20 years we had generations when AMD CPUs were better (Athlon XP, Athlon 64, Zen 2, Zen 3) and generations when Intel CPUs were better (Core 2 Duo, Sandy Bridge, Haswell
847.
▲
by
Const-me
5y ago
> left leaning people leaving the platform It’s believable they dislike the change and leaving Twitter. I don’t believe thousands of them have actually deleted their accounts. People are generally lazy. In my experience, this quality is
848.
▲
by
Const-me
5y ago
I wonder which C++ compiler the article is about? My toolchain is way more complicated, not straightforward at all. The obj files made from cpp sources contain some intermediate representation, very far from machine code or assembly. The ma
849.
▲
by
Const-me
5y ago
Twitter ToS says they ban accounts for quite a few reasons. These include promoting violence, harassement, wishing or hoping that someone experiences physical harm, promoting terrorism or violent extremism, etc https://help.twitt
850.
▲
by
Const-me
5y ago
My guess it’s their deliberate design decision. It could be that most users of the library don’t care about small things. About the template stuff, I think their main performance advantage over traditional BLAS is not even SIMD, it’s lazy e
851.
▲
by
Const-me
5y ago
I never really used GLM, but Eigen was substantially slower than DirectXMath https://github.com/microsoft/DirectXMath for these things. Despite the name, 99% of that library is OS agnostic, only a few small pieces (lik
852.
▲
by
Const-me
5y ago
> when your entities are positions, velocities, etc. For use cases where FP32 precision is enough, I usually use DirectXMath library https://github.com/Microsoft/DirectXMath for that. That thing is cross-platform in
853.
▲
by
Const-me
5y ago
Using it for years, and mostly happy with that library. The performance is awesome for very long vectors / large matrices. It’s less than ideal for small things when the size is known at compile-time. If one knows SIMD intrinsics, in s
854.
▲
by
Const-me
5y ago
That thing is COM, which is a small subset of C++ ABI. Technically it’s about the same as on Windows, i.e. C ABI with extra first argument for this pointer. Once upon a time I made this library https://github.com/const-me&#x
855.
▲
by
Const-me
5y ago
Apparently, the OP’s issue was ABI incompatibility between VC++ (also used by Windows SDK and everything built on top, including Direct3D 12), and System V (used on Linux, also MinGW on Windows). VC++ documentation says structures are retur
856.
▲
by
Const-me
5y ago
Good article, 1 comment, still. > slugging through the depths of hell where only a footnote from Raymond Chen himself will save you The behavior is well documented: https://docs.microsoft.com/en-us/cpp/build
857.
▲
by
Const-me
5y ago
> You can't make much use of an Android phone unless you sign in with your google account. This depends on the phone. Samsung phones aren’t terribly bad, I’ve been using one without google account for a few months now. For instance,
858.
▲
by
Const-me
5y ago
UWP/WinRT was close to the nuclear option. I think the main reason it failed is their app store. They should have allowed to publish these new apps with SetupSomething.exe and I think developers would eventually switch. A good example
859.
▲
by
Const-me
5y ago
Good article, one remark, still. > breaking from the legacy is hard for the sake of backwards compatibility Generally yes, but in case of Windows the hard part of the problem is already solved. I think it was just the wrong priorities. S
860.
▲
by
Const-me
5y ago
Thanks for the help! > Maybe the gatekeepers are doing that The homepage of MS edge browser on my computer (set automatically, I never bothered to change the defaults) is a field of sunflowers with a comment which says it’s a national fl
861.
▲
by
Const-me
5y ago
All components eventually fail. To maintain a system operational, one needs to be able to fix or replace failed components. Replacing a high-tech component made 50+ years ago (like a vacuum tube) can be prohibitively expensive even for mili
862.
▲
by
Const-me
5y ago
> Why then should the west not apply broad sanctions AND include sanctions on Oil & Gas exports as well? That's exactly what we're doing. If we ban Russian oil & gas overnight, the markets will freak out and the damage
863.
▲
by
Const-me
5y ago
I agree. I recently read the book "American Muckraker" by James O'Keefe. It has quite a few examples of that in modern US. Based on unconfirmed rumors, similar things do happen here in Montenegro as well.
864.
▲
by
Const-me
5y ago
Putin can write a new law which says all personal banks accounts are now nationalized. He can also inflate the currency by orders of magnitude, and make it a crime to own USD/EUR cache (it was a crime in USSR). And that's why the
865.
▲
by
Const-me
5y ago
Not GP, but here’s a large non-government organization which accepts donations: https://en.wikipedia.org/wiki/Come_Back_Alive https://savelife.in.ua/en/
866.
▲
by
Const-me
5y ago
I live in Montenegro. The country was part of Yugoslavia. I spoke with a guy who fought that war. I asked him "do you think the war would have ended without American intervention?" and he responded "no, I don't think it
867.
▲
by
Const-me
5y ago
> I am for keeping Ukraine as a neutral buffer separating Russia and the US. US is on another continent. It doesn't needs that buffer, Atlantic ocean is rather wide and deep. You seems to ignore what Ukrainians want. NATO is an open
868.
▲
by
Const-me
5y ago
> Does this being on YouTube make it any less meaningful? The professor is clueless. Before the war has started in 2014, Ukrainians din't want NATO expansion. Overwhelmingly, they wanted to stay neutral. In 2008 NATO summit in Roman
869.
▲
by
Const-me
5y ago
> but I'm pointing out the standard explicitly lets vector's constructors fail Yeah, but that thing has more than one constructor. Since C++/17, the default constructor of std::vector which doesn’t allocate any storage is
870.
▲
by
Const-me
5y ago
> Do you construct your std::vector<T> objects with factories too? I usually do it like that: try { vec.resize( wantedSize ); } catch( const std::bad_alloc& ) { return E_OUTOFMEMORY; }
More ›