Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
htfy96
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
25 ms
·
151.
▲
by
htfy96
8y ago
They can use str.at() in C++ to ensure boundary safety
152.
▲
by
htfy96
8y ago
The problem is what is a breaking/major change for kernel? Is it referring to user-space API? The kernel ABI? Or the driver functionality/ABI?
153.
▲
by
htfy96
8y ago
The problem is that most legacy code (especially firmwares) is C and will never have a chance to be rewritten in another language. If you get a chance into VLSI field you will be amazed that they are still relying on Tcl to do complicated s
154.
▲
by
htfy96
8y ago
For me, the most significant change is: > For C++ applications running on Windows, PDB now load in a separate 64-bit process. This change addresses a range of crashes caused by the debugger running out of memory when debugging applicatio
155.
▲
Visual Studio 2019 RC
(docs.microsoft.com)
3 points
by
htfy96
8y ago
|
1 comments
156.
▲
by
htfy96
8y ago
That's true, but not difficult as many people may think. In most cases you only need to remember most-used ~20 instructions and leave the remaining to reference. Sure it requires other domain knowledge, but it has almost nothing to do
157.
▲
by
htfy96
8y ago
Typescript, as I know, uses type erasure to implement generics, which can cause significant overhead in cases like JSON decoder.
158.
▲
by
htfy96
8y ago
Just wondering if it's possible to implement something like expression template used in Eigen3 in Rust. C++'s template can be used in more than generics.
159.
▲
by
htfy96
8y ago
The problem is that the community has already diverted in the way to organize sources, and each of them believes they have the best solution. Similarly, all C++ issues originate from the fragmentation of community: some (maybe 2/3) pre
160.
▲
by
htfy96
8y ago
> Axboe claims that it is far more efficient, but no benchmark results have been included yet to back up that claim. Among other things, this interface can do asynchronous buffered I/O without a context switch in cases where the des
161.
▲
by
htfy96
8y ago
Introduction to io_uring on lwn: https://lwn.net/Articles/776703/
162.
▲
by
htfy96
8y ago
Until you join a game company in China where everyone works 12+ h/day, 6 days/wrek
163.
▲
by
htfy96
8y ago
Even simpler with some template boilerplate code: // Just copy paste this template<typename T> class CContainer { protected: T *pimpl; CContainer(T* raw_ptr): pimpl(raw_ptr) {}
164.
▲
by
htfy96
8y ago
Then we are basically on the same side. It's just our principles that vary. Security is ensured with external tools (e.g., SQL sanitizer/checker/minimum privilege), and AWS's 4TB instance exists for a reason - graph data
165.
▲
by
htfy96
8y ago
I totally agree on your points in the first paragraph, but sometimes the boundary between suitable and unsuitable tasks is quite vague, and cross-language development introduces new complexity. I mean if something is 2x in other languages,
166.
▲
by
htfy96
8y ago
The opposite is also correct. Last week I wrapped a Rust application into C++ application.
167.
▲
by
htfy96
8y ago
My stance is that "the majority of C++'s semantics" can also evolve with time, and one of C++'s the core design philosophy is to make core as minimal as possible so that the language can be evolved by how people use it
168.
▲
by
htfy96
8y ago
A tour of C++ from Bjarne: https://learning.oreilly.com/library/view/a-tour-of/97801335...
169.
▲
by
htfy96
8y ago
from my perspective, the biggest changes are: - auto var = eval() - add_observer([this](int value) { this->log(value); }); // lambda expression - vec2 = std::move(vec1); // everything in C++ by default is value-type,
170.
▲
by
htfy96
8y ago
TBH I'm more willing to see a negative filter on these claimed team-values. "Risk over stability" may sound attractive for me (as well as many new grads to polish their resumes) several years ago, until you realize it's
171.
▲
by
htfy96
8y ago
I think the prevalence of book of commented sources in China partly comes from the way that Chinese big companies interview people - asking a lot of implementation details (especially for DBs), even though in most cases that is useless in d
172.
▲
by
htfy96
8y ago
This sounds great but also may suffer from frauds: consider a company paying something like 500k in the first year then only paying minimum wage for the next N years together with early-leave penalty. Moreover even the first 500k might be
173.
▲
A Modern History of Offensive Security Research
(docs.google.com)
2 points
by
htfy96
8y ago
|
0 comments
174.
▲
E-Maxx's Competitive Algorithms in English
(cp-algorithms.com)
3 points
by
htfy96
8y ago
|
0 comments
175.
▲
Curl adds support for HTTP/0.9
(github.com)
2 points
by
htfy96
8y ago
|
0 comments
176.
▲
by
htfy96
8y ago
This xkcd comic is not the case - I also consider myself as a mediocre people
177.
▲
by
htfy96
8y ago
That's true, but according to my experience, it's usually better to perform gradual migrations like from Ruby to Crystal, if it can't solve the problem, try some other GC-based languages like Go. Things like Rust should be th
178.
▲
by
htfy96
8y ago
Just curious: why there are so many articles putting two things that varies a lot in their market positions in juxtaposition? e.g., Go or Rust/Ruby to rust/Wasm over JavaScript/NoSQL to MySQL
179.
▲
by
htfy96
8y ago
For those not familiar with this title: - traditional CMake (<3.1) usually means hard-coded paths, lots of imperative build commands in CMakeLists.txt - Modern CMake: There is a book on this: https://cliutils.gitlab.io/mo
180.
▲
More Modern CMake
(youtube.com)
1 points
by
htfy96
8y ago
|
1 comments
More ›