Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
mathstuf
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
11 ms
·
61.
▲
by
mathstuf
3y ago
You can move the code, sure. It's the infrastructure that is hard to relocate (issues, pulls). If one uses references like `#123` in the history, you need to do something to keep them "alive" on a migration. GitLab itself has
62.
▲
by
mathstuf
3y ago
There's a variant where Monty trips and opens one of the doors by accident. Then it is 50/50 again (because he could have tripped into the car door). See also this video where cutting off a question in the middle changes the proba
63.
▲
by
mathstuf
3y ago
> One of the most important pieces of legislation in the UK that helped improve safety in workplaces was the Health and Safety at Work Act 1974, which placed a duty of care on organisations to look after the wellbeing of their staff. I&#
64.
▲
by
mathstuf
3y ago
Someone , yes. The person in front of you? Unlikely. Analogy: someone has a winning lottery ticket. Is it the one in your hand? Probably not.
65.
▲
by
mathstuf
3y ago
I noticed this when I went to RPI (I graduated HS in 2007). My high school wasn't ranked at all (or at least no one cared where it was ranked) and AP courses weren't offered until after I graduated. Based on reports from my younge
66.
▲
by
mathstuf
3y ago
Hmm. I see issues about finding executable-but-not-readable files, but nothing about `access(X_OK)` specifically (though GitLab's search may be failing here). Anyways, there are a number of…unfortunate behaviors that are baked in too d
67.
▲
by
mathstuf
3y ago
FD: CMake developer Do you mind pointing me to that issue? Off-HN is fine too (same GitHub handles here; grab an email address from commit metadata).
68.
▲
by
mathstuf
3y ago
If you're never using any external dependencies, it can work. It's just the no-dep C projects are few and far between. As soon as you have things like dependencies or compiler detection, CMake or other build systems really start p
69.
▲
by
mathstuf
3y ago
Webb can only point away from Earth as the Sun is on the other side of Earth from Webb's location. All it would see is a bright source of IR; nothing much useful there. I'm afraid it would also likely be destroyed in the process a
70.
▲
by
mathstuf
3y ago
It can be portable and still want to expose native information. SDL2 is probably something we can all agree is portable, but this still exists: https://wiki.libsdl.org/SDL2/SDL_SysWMmsg
71.
▲
by
mathstuf
3y ago
Sure, but I also prefer talking directly about what you're talking about though. If you have some Windows implementations that need to talk to each other, I'd rather they use HANDLE and HMODULE than "void* winkwinknudgenudge&
72.
▲
by
mathstuf
3y ago
It's not allowed: > One person or legal entity may maintain no more than one free Account (if you choose to control a machine account as well, that's fine, but it can only be used for running a machine). https://docs
73.
▲
by
mathstuf
3y ago
Modules don't have search paths unless you toss everything into one directory. The robust way is to instead do `-fmodule-path=modname=path/to/bmi` where ambiguity is non-existent. It is IFNDR to have two modules of the same n
74.
▲
by
mathstuf
3y ago
Because `void*` to pass `HANDLE` around is better how? Maybe if you're able to hermetically seal off platform-specific bits, but usually you'll have two parts that want to talk about Windows API types across their call boundaries…
75.
▲
by
mathstuf
3y ago
Clang modules were basically "let's try to automate precompiled headers". It lacks the isolation offered by proper modules. Even if they're not faster, the isolation is something I'm looking forward to.
76.
▲
by
mathstuf
3y ago
FWIW, the `#embed`/`std::embed` proposal is the preferable solution here. There's a lot of time spent in the compiler parsing those ASCII floats into bytes (and I've seen `clang-format` take ages to format a block of `0xXX`
77.
▲
by
mathstuf
3y ago
Yes, the number of times I've had a `LoadLibrary` function name conflict with `windows.h`'s `A`/`W` suffix-switching or had to deal with X11's `#define Status int` "typedef" mucking with completely unrelated co
78.
▲
by
mathstuf
3y ago
Indeed. Mismatching headers and libraries is not all that rare. I've seen headers found from Homebrew, libraries from the macOS SDK, and some related tool from `/usr`. Things…rarely work out well, but you only find out in your tes
79.
▲
by
mathstuf
3y ago
I'm speculating, but I think that if one enforced "module is a namespace", projects like Qt, standard libraries, and other libraries would be forced to ignore them for far longer than anyone wants due to ABI stability require
80.
▲
by
mathstuf
3y ago
Please also report relevant issues to CMake itself. We can't fix what we don't hear about :) . FD: CMake developer.
81.
▲
by
mathstuf
3y ago
That is only if you have a global module fragment. Without that, you can start right off with `export module M;`.
82.
▲
by
mathstuf
3y ago
FD: I'm a member of SG15, author of P1689[1], and implemented much of the support for compiling them in CMake. It is my opinion that hand-coded Makefiles are unlikely to handle modules well. They have the same required strategy as Fort
83.
▲
by
mathstuf
3y ago
There are new rules about "reachability" and "module linkage". Not to mention things like methods defined within the class declaration are no longer as-if `inline` when within a module. It's not just "a faster
84.
▲
by
mathstuf
3y ago
The implementations have no agreement here. Clang "likes" `.cppm` while MSVC "likes" `.ixx`. I don't think there's any hope for agreement on extensions.
85.
▲
by
mathstuf
3y ago
Probably because things that don't get "used" can still affect things. There's a lot of detail in name lookup algorithms and SFINAE where computing what you end up using and giving each TU its own view is probably not mu
86.
▲
by
mathstuf
3y ago
Unlikely to be fixed. The module files are basically AST dumps and no compiler keeps that stable over time. Even flag selections make incompatible BMIs. So if one TU uses C++20 and another uses C++23, they'll each need their own BMI of
87.
▲
by
mathstuf
3y ago
Not the GP, but I'm also aphantasic. To me, the square hole question is more like "cubes have square faces, therefore yes". Seems to me like touch typing (knowing shapes) vs. hunt-and-peck typing (search for shape, align). Fo
88.
▲
by
mathstuf
3y ago
I never learned how to do the "one bunny ear" effectively (I could never remember some detail and they'd always fall apart) and did the "two bunny ear" method until 2010 or so when the Numberphile video on the faste
89.
▲
by
mathstuf
3y ago
Timings and audio handling sound like logic things and not something Rust's advantages over C++ would inherently support better. If I had to hazard a guess, it's that the C++ projects are just more mature and have seen more "
90.
▲
by
mathstuf
3y ago
One strategy I heard about is to get a local group of like-minded individuals together, throw all of your loyalty cards in a communal pile then take one back randomly. That mixes the signal up for any kind of targeted tracking while also ge
More ›