Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
steerablesafe
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
12 ms
·
91.
▲
by
steerablesafe
5y ago
The main cash cow of Mathematica is the library, not necessarily the language. They could certainly make the language more open, while keeping the secret sauce in the library. They could also open up some core parts of the library too.
92.
▲
by
steerablesafe
5y ago
What kind of hidden allocations?
93.
▲
by
steerablesafe
5y ago
That is not really the same. `std::function` is a heavy-weight type-erased wrapper over callable types.
94.
▲
by
steerablesafe
5y ago
Problem is, function parameter names are optional, so you can already have something like `[](x){}`, where `x` is a type.
95.
▲
by
steerablesafe
5y ago
#define class Class #include <some_linux_header.h> #undef class /s
96.
▲
by
steerablesafe
5y ago
Good to know, I hope other toolchains catch up soon.
97.
▲
by
steerablesafe
5y ago
I know you are replying about "gov.uk" being clear or not, but I would just like to add that a FAQ would probably not cover an edge case.
98.
▲
by
steerablesafe
5y ago
C++ modules "exist." They exist in the standard, there are experimental implementation in compilers and there is little to no support yet from build systems (including cmake). I sincerely hope that it turns out OK, but it's n
99.
▲
by
steerablesafe
5y ago
You can create headers that are usable from C and C++, but you have to actively maintain it that way. As C headers tend to not have function definitions in them, it's fairly easy to avoid the C-only features. I doubt that Linux headers
100.
▲
by
steerablesafe
5y ago
There is no reason that Rust doesn't share the same infrastructure problems. The main difference is that the kernel maintainers want Rust in the kernel, while if you want to maintain a module written in C++ then you are on your own.
101.
▲
by
steerablesafe
5y ago
It's definitely not easy or even possible to enable from software. For all intents and purposes displays have three different light sources, with three different fixed spectrum. You can't block a narrow band from red and green pix
102.
▲
by
steerablesafe
5y ago
Now turn off your monitor! Do you see pure black, or maybe you see the reflection of your room and yourself? #000000 might not be pure black.
103.
▲
by
steerablesafe
5y ago
There are still some hidden gem features of search that are still there, like prefixing your search terms with site:example.com, or sometimes even better: -site:example.com .
104.
▲
by
steerablesafe
5y ago
Quoting still seems to work? As I remember + was always for emphasis/importance and quoting was for verbatim, but maybe I remember wrong. I get highlights for Robert here: https://www.google.com/search?q=bob+downey No
105.
▲
by
steerablesafe
5y ago
Interestingly that does compile in C++, which doesn't even have VLAs. A const int like that is usable as constant expressions: https://godbolt.org/z/PzsashEY4
106.
▲
by
steerablesafe
5y ago
Here is an example for sandboxing zlib: https://github.com/google/sandboxed-api/blob/main/sandboxed_... So it adds extra state, that needs to be initialized, adds extra failure points than needed to be h
107.
▲
by
steerablesafe
5y ago
Mandatory SMBC: https://www.smbc-comics.com/?id=1452#comic
108.
▲
by
steerablesafe
5y ago
> For light, refraction follows Snell's law, which states that, for a given pair of media, the ratio of the sines of the angle of incidence θ1 and angle of refraction θ2 is equal to the ratio of phase velocities (v1 / v2) in
109.
▲
by
steerablesafe
5y ago
It looks like that this solution corrects for dispersion in group velocity [1], but it's unclear that it can correct for dispersion in phase velocity at the same time [2]. My intuition that the latter is not possible this way, but opti
110.
▲
by
steerablesafe
5y ago
I just recently used raw disk images with qemu on Debian to remotely install an other distribution on an other partition and then I rebooted into it.
111.
▲
by
steerablesafe
5y ago
Yeah, because the "spiral-rule" is dumb, it's not a spiral at all. It's just regular operator precedence.
112.
▲
by
steerablesafe
5y ago
OK, I don't get `command`. When I run `command time -v sleep 10` it clearly runs /usr/bin/time on my system (the bash builtin doesn't have the -v option), but if I run `command -v time` it outputs `time`, correspond
113.
▲
by
steerablesafe
5y ago
Point being, it doesn't help you finding /usr/bin/command via regular search in PATH and it reports the builtin instead.
114.
▲
by
steerablesafe
5y ago
Apart from not being very random, it also wasn't thread-safe.
115.
▲
by
steerablesafe
5y ago
Most data structures in a project are not performance bottlenecks, so that's alright. While there are much better hash table implementations, std::unordered_map is still usable, although not great.
116.
▲
by
steerablesafe
5y ago
For C++ many standard library functions can't be implemented in standard C++. And it not only shows some very obvious compiler built-ins in the library, but the library can depend on behavior guaranteed by the compiler which is otherwi
117.
▲
by
steerablesafe
5y ago
I don't know how it works for C, but in C++ some (but not all!) fixes are recognized as "defects" in the standard and implementers are encouraged to implement the fixes in previous standard versions too.
118.
▲
by
steerablesafe
5y ago
https://en.wikipedia.org/wiki/Simpson%27s_paradox
119.
▲
by
steerablesafe
5y ago
> This might be why a few of my Highschool’s computers would interpret every 5th right click in minesweeper as a left click This is just pure evil.
120.
▲
by
steerablesafe
5y ago
My guess is that individual atoms entering and leaving the formation happens on a much faster timescale than the formation switching between quasi-stable states. It's almost as-if there are mini phase-transitions between formation size
More ›