Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
flqn
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
10 ms
·
61.
▲
by
flqn
5y ago
Monads are not the same as effect types, but Haskell affords implementing effects using monads, so I'd argue the comparison is relevant.
62.
▲
by
flqn
6y ago
Excess iron in seawater can cause huge imbalalances by seeding algae blooms. Any large scale application of this would need to take that into account or risk disrupting ecosystems.
63.
▲
by
flqn
6y ago
Dispatch during pattern matching happens at runtime, which requires some means of discriminating the matched values with run-time information. Typescript doesn't provide any more runtime type information than Javascript does, and so it
64.
▲
by
flqn
6y ago
No, I'd rather maintainers of packages consider ABI versioning and stability. I should never be in a case where a patch to a dynamic library causes an ABI break. Stable interfaces are crucial for a healthy software ecosystem.
65.
▲
by
flqn
6y ago
Yes, but "for" the OP is what was being questioned.
66.
▲
by
flqn
6y ago
I don't think static linking saves you here. This looks to be caused by an ODR violation (the "one definition rule"). The linker has two symbols with the same identifier and has to choose one.
67.
▲
by
flqn
6y ago
In addition to using cursors or whatever pagination method suits your backend in query params, it's also a good idea to include pagination URLs in the response itself if you can. Greatly simplifies what the client has to do and reduces
68.
▲
by
flqn
6y ago
Code size is not always a good performance metric
69.
▲
by
flqn
6y ago
It is, since the compiler can inline the comparator.
70.
▲
by
flqn
6y ago
Regarding the comment on discriminated unions, I've actually found the opposite with the new ability to have separate types for sentinels. Before, since both iterators had to be the same type, the end iterator needed some special casin
71.
▲
by
flqn
6y ago
It's either a typo or a play on Kafka since "kappa" is a twitch meme
72.
▲
by
flqn
6y ago
Yeah, that line made me wince too. It's not "just code" when there's a community of users and maintainers of the open-source project. Even if it were closed-source and developed internally, experience developing software
73.
▲
by
flqn
6y ago
Agreed, the ESP32 ecosystem is a stellar example of what MCU vendors could offer.
74.
▲
by
flqn
6y ago
Reading a book on the basics doesn't mean you don't have a grasp of them. I'd argue that refreshing your knowledge on things is a mark of a good engineer, regardless of seniority.
75.
▲
by
flqn
6y ago
Concepts are a recent addition, but not the only one that has improved compile-time or static programming in C++. The `constexpr` specifier, for instance, was added in C++11 and with every release since then it's been able to replace m
76.
▲
by
flqn
6y ago
Huh, seems like a more convenient CGI
77.
▲
by
flqn
6y ago
It really depends. Small amount of source code doesn't necessarily mean a small binary if you have a ton of template instantiations.
78.
▲
by
flqn
6y ago
Combination of the 'g' command (go-to) and 'f' to mean file. It attepts to open the file at the path under the cursor.
79.
▲
by
flqn
7y ago
The "stealth archer" build in skyrim is overpowered since the enemy AI can't usually know where the arrow came from, and they tend to aggro, look around their immediate area, then go back to the idle state allowing the player
80.
▲
by
flqn
7y ago
I'm assuming concurrency concerns of trying to execute code that is mid-patch
81.
▲
by
flqn
7y ago
I'm wondering if they'll have some solution similar to Rosetta
82.
▲
by
flqn
7y ago
Potentially, though there are other solutions that could be used. There was a product they used a while back during the transition to x86 architecture that did code translation, for example. https://en.m.wikipedia.org/wiki&#
83.
▲
by
flqn
7y ago
Only the css reference pixel. In other contexts a pixel is a point sample with no size
84.
▲
by
flqn
7y ago
Cachegrind on linux is part of valgrinds analysers
85.
▲
by
flqn
7y ago
I'm guessing this is because the runtime keeps a few pages around for free-lists and the like? Interesting that there's a hump in the middle there.
86.
▲
by
flqn
7y ago
That's pretty much the issue; linking against libraries you can't/don't want to rebuild that may have been built with different versions of those symbols. The standard library is shipped as a DLL/shared object on pr
87.
▲
by
flqn
7y ago
That's sorta the price to pay for having multiple versions of symbols. I'd take having overloads where needed for older ABI versions over linker errors. Also, I imagine you wouldn't necessarily need overloads for all versions
88.
▲
by
flqn
7y ago
It'd take an ABI break to implement, but wouldn't using inline namespaces under std mean backward compatiblity is possible in the future? You could have std::cpp20::string, for example, which is in an inline namespace std::cpp20.
89.
▲
by
flqn
7y ago
In those cases, a malformed request is common enough that discriminating between well-formed and malformed should be thought of like a first-class part of handling a request, not an error-handling situation. Errors are when things go wrong
90.
▲
by
flqn
7y ago
I can't say I'm a fan of these sorts of articles. "Which strategy is most performant?!" is rarely the appropriate measure for an error handling strategy, it's more nuanced than that. Concerns like what makes a rec
More ›