Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
imron
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
31 ms
·
361.
▲
by
imron
4y ago
> The thing they rewrote also worked great in production. It may well have, but the Rust version “was faster, it crashed less, and we even knew it fixed some issues” https://hacks.mozilla.org/2022/06/everything-
362.
▲
by
imron
4y ago
> * Comments float above the code > * Comment on any text selection in the file > * Comments don't get lost when code changes This addresses my main pet peeves with GitHub/Bitbucket reviews! 2 questions: With regards to c
363.
▲
by
imron
4y ago
> It blows my mind that 72% of developers love Slack. Just wait until you've been forced by your company to use Teams instead, then you'll find yourself advocating for Slack even if you hate it too.
364.
▲
by
imron
4y ago
> C++11 came out in 2011 C++0x was a thing, with varying levels of support from all major compilers, for years before C++11 was finally ratified. In the context of my original comment though, no matter how dated the code base, I think it
365.
▲
by
imron
4y ago
The point is not that c++ can't do this (I also have code that does this dating back over 10 years), it's that despite having code to do string_view/string_piece, Chromium was still performing 25,000 allocations per keystroke
366.
▲
by
imron
4y ago
A step in the right direction if you have a compiler with c++17 support. Note: chrome only supported c++17 features in Dec 2021 [0], and whether std::string_view is allowed to be used is still 'to be determined'. 0: https:/&
367.
▲
by
imron
4y ago
Perhaps, but in the in the ancient past before STL was standardized, Chrome didn't exist. 10 years ago (when the parent mentioned they were still at Google) c++11 was already out.
368.
▲
by
imron
4y ago
Use a CxxString: https://cxx.rs/binding/cxxstring.html At some point there will need to be an allocation when crossing Rust -> C++ boundary because Rust strings are not null-terminated. The difference Rust makes is
369.
▲
by
imron
4y ago
Good point!
370.
▲
by
imron
4y ago
About 70% of all exploits: https://www.chromium.org/Home/chromium-security/memory-safet...
371.
▲
by
imron
4y ago
It's the 'too many string types' that helps. With C++, if you have char*'s (because you don't need to own the memory) and you pass it to a function that takes a const std::string& (because it also doesn't w
372.
▲
by
imron
4y ago
> The C++ designers allowed you to avoid friction here by allowing you to pass a std::string to a function expending a const char . Technically, this is an operator method. It's the other way round. You can pass a const char* to a
373.
▲
by
imron
4y ago
> Have a shorter hiring process. Maybe cut out the recruiter screen? The downside of this is that you'll spend a greater amount of time interviewing people who are not appropriate for the role.
374.
▲
by
imron
4y ago
> And why would Facebook be the one who actually figure out how to build some super appealing virtual world They don't need to build a super appealing virtual world, they just need to figure out how to get you coming back to somethi
375.
▲
by
imron
4y ago
I guess what we need now then is std::open_unordered_map ;-)
376.
▲
by
imron
4y ago
Most people will likely never read your profile unless they have a specific reason to, and replying to a post is not a specific reason for many (I basically never check profiles of people I've replied to). Using upvotes to indicate &qu
377.
▲
by
imron
4y ago
You can, you just won't be able to hit the fingerprint reader without taking your fingers off the home keys, except for the little finger on your right hand (giant monster hands excluded).
378.
▲
by
imron
4y ago
But unless you’ve set it to be the little finger on your right hand, you have to take your fingers off the home keys to activate it
379.
▲
by
imron
4y ago
They are not running around in public.
380.
▲
by
imron
4y ago
How it a bigger deal than any of the significantly larger and longer drops that have happened in tether’s history?
381.
▲
by
imron
4y ago
I have no love for tether or even crypto, but please read the y-axis on the graph, then zoom out to all time for some perspective. https://coinmarketcap.com/currencies/tether/?period=1d Perhaps the sky really is f
382.
▲
by
imron
4y ago
That it cost more than Avatar (released around the same time) in both actual and adjusted costs is staggering .
383.
▲
by
imron
4y ago
> You should take a look at the Wikipedia list of the most expensive films, inflation-adjusted: https://en.wikipedia.org/wiki/List_of_most_expensive_films#M... How on earth is Tangled #9 on this list?
384.
▲
by
imron
4y ago
> She also taught me to read 2000 words per minute with retention, Can you expand upon this and/or link to any resources related to the method?
385.
▲
by
imron
4y ago
> Why did the author do things this way? I must be missing something. Likely because it's easier to test against different allocators with a small replay tool than it is to try and get Doom3 to compile against dlmalloc, jemalloc, mi
386.
▲
by
imron
4y ago
Ooh, a new fasterthanli.me article > 69 minute read Heh.
387.
▲
by
imron
4y ago
Lucky you managed to hit the front page of Facebook's support queue.
388.
▲
by
imron
4y ago
P.S. the software is absolutely mission critical (responsible for a non-trivial % of total company profit), hence the reason it's not going to get rewritten without a very, very compelling business case.
389.
▲
by
imron
4y ago
The one I’m working on is a behemoth and already has several hundred thousand lines of other languages (python, Java, scala) as part of it. The c++ will be staying c++. I don’t say this out of any affinity for c++(check my other comments fo
390.
▲
by
imron
4y ago
> How is it possible that this address became linked in any way to my identity, let alone my new name? Wait 'til you see what else they know about you.
More ›