Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
Chabs
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
45 ms
·
1.
▲
by
Chabs
7y ago
The Something Awful forums is the obvious candidate here. It costs a flat 10$ to create an account. This generally makes trolling, spamming and scamming a losing proposition and broadly helps with the signal to noise ratio.
2.
▲
by
Chabs
7y ago
It traditionally leads to bigger executables and longer compile times. With modern compilers, both of these are non-issues for "most" reasonably-sized projects.
3.
▲
Show HN: Lockless Variadic Futures for C++17
(github.com)
11 points
by
Chabs
7y ago
|
0 comments
4.
▲
by
Chabs
7y ago
Welp, I was not expecting this to show up on Hacker News so early in the project's life cycle. This is still fairly early work, so I apologize if the API is not quite as neat as it could be yet. Still, author here, I'll gladly acc
5.
▲
by
Chabs
8y ago
Unfortunately, you can't leverage template substitution rules with the lambda approach. And that's really necessary if you want to have actual powerful match expressions.
6.
▲
by
Chabs
8y ago
std::visit mostly allows you to do that already: https://coliru.stacked-crooked.com/a/be5c44281eea8bc4 Then only unfortunate missing piece of the puzzle is that there's no trivial way to create a closure out of th
7.
▲
by
Chabs
8y ago
My gut feeling is that yes, this is pretty much self evident. However, the interesting part of the paper is that they use that equivalency to propose that properties of polynomial regression are applicable to Neural networks, and draw some
8.
▲
by
Chabs
8y ago
If I'm reading this right, the core of the argument is that since any continuous function is can be approximated via a taylor series expansion, then activation functions can be seen, in-effect, as polynomial in nature, and since a neur
9.
▲
by
Chabs
8y ago
We are talking about a language that goes so far as to make sure it functions on systems where the size of a byte is not 8, or where memory is not necessarily linearly addressed. People tend to forget how shockingly flexible standard-compli
10.
▲
by
Chabs
8y ago
That's handled by the preprocessor. It's literally just a "insert the contents of that file here" copy-paste.
11.
▲
by
Chabs
8y ago
C++, as a language, has never cared about the notion of "files". The entire standard is defined as a function of a "Translation Unit", which is an abstract notion that we tend to associate with "a single .cpp file&q
12.
▲
by
Chabs
8y ago
Hot take: success is almost always accompanied by a healthy dose of survivor bias. For each of these success stories, there are a lot of good people who did the exact same thing, but it didn't pan out because of timing, location, or ot
13.
▲
by
Chabs
8y ago
constexpr variables must have a literal type, which requires a trivial destructor.
14.
▲
by
Chabs
8y ago
The most egregious thing for me is: > in other words, the reader is expected to understand the semantics of an unknown function without consulting the declaration (or documentation). The idea that the author considers making code as self
15.
▲
by
Chabs
8y ago
Speculation: GPU-based text rendering is typically going to be done using two triangles per glyph. So what they are seeing is probably not the allocation of the underlying texture storage, but the transient vertex buffer that contains the i
16.
▲
by
Chabs
8y ago
> All in all, OOP is a toolkit for building bad abstractions: abstractions that do not easily model computation, that hide data. That's a fundamental property of type erasure, which is not exclusive to OOP, and far from the extent o
17.
▲
by
Chabs
8y ago
I didn't mean rust was fundamentally OOP, but that rust implements, through runtime traits, exactly the behavior you are criticizing OOP for. Sorry about that
18.
▲
by
Chabs
8y ago
I think you are conflating OOP with type erasure. Most OOP languages support type erasure (including rust!), but that's far from all there is to it.
19.
▲
by
Chabs
8y ago
Frankly, having User inherit from DBMapper is way more egregious in my eyes than Sword inheriting from Weapon. It doesn't really matter because both of these things can be better solved using composition + traits/interfaces anyway
20.
▲
by
Chabs
8y ago
But that's the whole point of JAVA. It's an opinionated platform with a hyper-standardized workflow. Sure, that limits creativity, but in many business contexts, the last thing you want is your programmers getting "cute"
21.
▲
by
Chabs
8y ago
One thing that I'm surprised this doesn't cover, especially since it's so C++-centric, is that modern C++ OOP is much more defined by lifetime/scope management than anything else. What defines something as an object is t
22.
▲
by
Chabs
8y ago
Information as actual physical property (as opposed to a human construct) is basically the only way we found to solve Maxwell's demon seemingly reducing entropy. Specifically, the entropy within the box gets converted into information
23.
▲
by
Chabs
8y ago
Long answer short: Information has to be a fundamental conserved property of the universe for the second law of thermodynamics to work under some thought experiments.
24.
▲
by
Chabs
8y ago
Outside observers never see the material cross the horizon, ever. That's why it's called a horizon, you'll never reach it (from the pov of an outside observer). Growth-wise, you have to keep in mind that the black hole doesn&
25.
▲
by
Chabs
8y ago
To elaborate, ASIO is arguably the de-facto standard way to do low-level networking in C++, to the point where it forms the basis for the standard library's upcoming networking library.
26.
▲
by
Chabs
8y ago
I think you are misunderstanding my question. I am not suggesting that ASIO fills the role your library does. All it is, really, is just fancied-up cross-patform select(). What I'm wondering is: Is there's a specific reason you ch
27.
▲
by
Chabs
8y ago
What is the rationale behind going for from-full-scratch instead of packaging a copy of ASIO with the library? Beating properly-used ASIO performance is going to be a massive uphill battle, especially in multithreaded scenarios. On that not
28.
▲
by
Chabs
8y ago
Expression templates (ala boost::spirit) definitely come to mind. The callstack in a -O0 build can get very, very deep. Heck just using std::numeric_limits<int>::min() will incur a function call in -O0, but nobody cares since it gets
29.
▲
by
Chabs
8y ago
I'd like to introduce you to the wonderful world of templates.
30.
▲
by
Chabs
8y ago
OP's point is the other way around. They are wondering if Mozilla can afford the financial hit of not getting that money from Google anymore. If Google leaves that space, then Bing won't have real competition here, and will pay su
More ›