4,235 karma · joined Sep 10, 2015 (11y ago) · 1,525 submissions
comment 5y ago · link · parent
Also, this incentivizes male athletes that can't win medals but are close to take hormone replacement theory solely so they can compete in the much easier female category and win medals, which runs in the same arguments against doping.
On the other hand, if you don't, then MtF transgender people are not likely to win anything, since hormone replacement therapy reduces performance (but not enough to match non-SRY people).
comment 5y ago · link · parent
So I think the risk of getting infected in fall may well be significant enough to make taking the vaccine a good decision.
Plus of course by vaccinating you no longer need to worry about minimizing infection risk, you don't need to get fake certificates to access things that are restricted to vaccinated people, you are free to travel to developing countries without risk.
Also if you don't vaccinate now and the pandemic somehow has a resurgence you will have to rush to vaccinate then and stay at least month in full isolation while others who are vaccinated are freely going to events instead of doing the isolation now that events haven't fully resumed yet.
comment 5y ago · link · parent
And obviously any intelligent CPU architect, if they make a CPU that masks the upper bits, they would make the number of bits that gets masked configurable per-process and not dependent on the maximum virtual address space supported by the CPU.
comment 5y ago · link · parent
Their proposed improvement is also terrible, since it divides multiple times unnecessary, and checks for negativity multiple times unnecessarily.
The proper simple solution is of course a handwritten binary search with if-else blocks that starts with the most likely range, annotated with "likely" annotations, and a single division.
If this is the main task of the program for a while, and thus a large fraction of the cache can be dedicated to it, then solutions with large lookup tables are worth trying (obviously optimizing string formatting is also essential in this case).
This is why software is so often broken, there's a lot of incompetent people programming.
comment 5y ago · link · parent
You can pass -nostdlib to gcc to disable linking the CRT startup object (or use ld directly) and you can pass --default-script /dev/null to ld to disable the linker script.
There is no need to declare main or check arguments or return types since in C arguments are both pushed and popped by the caller and the language provides no typing guarantees and thus there is no problem in calling functions with mismatched argument or return type declarations.
comment 5y ago · link · parent
2. Use ARIA
3. Use position: absolute?
4. Create it with position: absolute/relative and use CSS :hover selector to show it (or see #5 for explicit open/close)
5. Use <details> or a checkbox along with the appropriate CSS
comment 5y ago · link · parent
They are more powerful than the basic formula languages in most spreadsheet software, which is why spreadsheet software usually offers the ability to write custom functions using traditional programming languages.
comment 5y ago · link · parent
You can't easily use another delivery method for apps to iPhone users (that would require iPhone users to also buy and carry an Android device, which is a massive hassle).
comment 5y ago · link · parent
These features are very worth the hassle of providing this capability (which is known as "IPI"s), and once you have that hardware interrupts become pretty much free to support by using the same capability and the OS/user can then decide whether to dedicate a core, to affinity them to a core, to load balance them among all cores or to disable the interrupts and poll instead.
comment 5y ago · link · parent
It's mathematically impossible to prevent key extraction unless you put the key in an HSM (the TPM might function as such, but it may not have good performance) and use that for decryption (the most you can do is make the key larger up to the amount of RAM you have, at the costing of wasting RAM).
Even if you use an HSM, the malware can just extract the data itself or even on-the-fly decrypt the disk with the HSM and re-encrypt with a known key and then exfiltrate the known key, so all this does is make the attack slower since you need to read/write the whole disk.
comment 5y ago · link · parent
But if you really want it, writing a custom boot ROM and OS is probably the only way you can have an actually secure system (you might need a custom CPU as well).
Given the lack of skill and discipline of most programmers the whole TPM/secure-boot/UEFI/grub/Linux/dm-verity stack is likely full of holes, so just the assuming that it works as you'd expect will probably be disappointing.
comment 5y ago · link · parent
As far as I can tell this architecture was possible at least starting from the introduction of DX11 hardware more than 10 years ago, and it seems to be the most straightforward way of rendering a realistic 3D scene.
comment 5y ago · link · parent
If you want more than 256 bytes of local variables you will have to setup more offset copies of the stack pointer in the zero page first.
Also most variables can be stored in the zeropage as caller-saved pseudo-registers and only spilled on the stack as needed.
If you don't have threads or recursion then assigning fixed addresses is even better.
It may however overall be much more space-efficient to implement a bytecode emulator for a proper 32/64-bit instruction set instead of trying to generate 6502 code.
comment 5y ago · link · parent
You only need to send an updated position and direction on every frame, which can fit in 10 bytes (16-bit screen space fixed point coordinates, 3 position coordinates + 1 orientation + one 16-bit animation/action ID).
With a 100mbps connection you can send 160 KB per frame at 60fps and thus support 16K characters.
comment 5y ago · link · parent
If e.g. you don't know what an hashmap or a balanced search tree is, or that you can find common items between two sequences or find a shortest path in a graph with non-negative edges in O(n log n), or that you can't (as far as we know) solve SAT, max-clique or subset-sum in polynomial time then you should not be programming software to be used by others.
Advanced algorithm design skill however is generally only useful if you are doing specifically algorithmic work.